/* ============================================================
   远远精准广告投放系统 — 前台站点样式 (site.css)
   在 style.css 之后加载，覆盖旧版表格布局的视觉，兼容各子页面。
   ============================================================ */
* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font: 14px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: #374151;
	background: #f7f8fc;
	-webkit-font-smoothing: antialiased;
}

a { color: #4f46e5; text-decoration: none; transition: color .2s; }
a:hover { color: #4338ca; }
img { border: 0; max-width: 100%; }
table { border-collapse: collapse; }

.yy-wrap { width: 1200px; max-width: 94%; margin: 0 auto; }
.yy-clear { clear: both; }

/* ============ 顶部导航 ============ */
.yy-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #eef0f7;
}

.yy-header .yy-wrap {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 74px;
}

.yy-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 800;
	color: #312e81;
	letter-spacing: .5px;
	white-space: nowrap;
}

.yy-brand img { height: 42px; display: block; }

.yy-nav { display: flex; gap: 4px; flex: 1; }

.yy-nav a {
	padding: 9px 17px;
	border-radius: 10px;
	color: #4b5563;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.yy-nav a:hover { background: #eef2ff; color: #4338ca; }

.yy-nav a.current {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(99, 102, 241, .32);
}

.yy-auth { display: flex; align-items: center; gap: 10px; }

.yy-auth a {
	font-size: 14px;
	color: #4b5563;
	padding: 8px 14px;
	border-radius: 9px;
}

.yy-auth a:hover { background: #f3f4f6; color: #4338ca; }

.yy-auth a.yy-btn-line {
	border: 1px solid #ddd6fe;
	color: #6366f1;
	font-weight: 600;
}

.yy-auth a.yy-btn-solid {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(99, 102, 241, .3);
}

.yy-auth a.yy-btn-solid:hover { filter: brightness(1.06); color: #fff; }

/* ============ 首屏 ============ */
.yy-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 48%, #ec4899 100%);
	padding: 62px 0 72px;
}

.yy-hero::before, .yy-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .10);
}

.yy-hero::before { width: 460px; height: 460px; top: -190px; right: -90px; }
.yy-hero::after { width: 300px; height: 300px; bottom: -170px; left: 12%; background: rgba(255, 255, 255, .07); }

.yy-hero .yy-wrap {
	position: relative;
	z-index: 3;
	display: flex;
	gap: 50px;
	align-items: center;
}

.yy-hero-left { flex: 1 1 56%; color: #fff; }

.yy-hero-tag {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .3);
	font-size: 13px;
	letter-spacing: 1px;
	margin-bottom: 22px;
}

.yy-hero h1 {
	margin: 0 0 18px;
	font-size: 42px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: 1px;
	text-shadow: 0 6px 24px rgba(49, 46, 129, .35);
}

.yy-hero h1 span {
	background: linear-gradient(90deg, #fff, #ffe4f1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.yy-hero p.yy-desc {
	margin: 0 0 30px;
	font-size: 15px;
	line-height: 1.9;
	color: rgba(255, 255, 255, .88);
	max-width: 520px;
}

.yy-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.yy-btn {
	display: inline-block;
	padding: 13px 34px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	background: #fff;
	color: #5b21b6 !important;
	box-shadow: 0 10px 26px rgba(49, 46, 129, .28);
	transition: all .22s;
}

.yy-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(49, 46, 129, .35); }

.yy-btn-ghost {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .45);
	color: #fff !important;
	box-shadow: none;
}

.yy-btn-ghost:hover { background: rgba(255, 255, 255, .24); }

.yy-hero-stats { display: flex; gap: 40px; margin-top: 38px; }

.yy-hero-stats div { color: rgba(255, 255, 255, .8); font-size: 13px; }

.yy-hero-stats b {
	display: block;
	font-size: 24px;
	color: #fff;
	font-weight: 800;
	letter-spacing: .5px;
}

/* ============ 登录卡片 ============ */
.yy-loginbox {
	flex: 0 0 372px;
	background: #fff;
	border-radius: 18px;
	padding: 28px 28px 22px;
	box-shadow: 0 24px 60px rgba(49, 46, 129, .3);
}

.yy-loginbox h3 {
	margin: 0 0 4px;
	font-size: 19px;
	color: #312e81;
	font-weight: 800;
}

.yy-loginbox .yy-sub { font-size: 12px; color: #9ca3af; margin-bottom: 20px; }

.yy-loginbox input[type="text"],
.yy-loginbox input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	outline: 0;
	transition: all .2s;
	font-family: inherit;
}

.yy-loginbox input[type="text"]:focus,
.yy-loginbox input[type="password"]:focus {
	background: #fff;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.yy-loginbox .yy-cap { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }

.yy-loginbox .yy-cap input { margin-bottom: 0; flex: 1; }

.yy-loginbox .yy-cap img { height: 44px; border-radius: 10px; border: 1px solid #e5e7eb; cursor: pointer; }

.yy-loginbox input[type="submit"],
.yy-loginbox .yy-login-submit {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 4px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(99, 102, 241, .35);
	transition: all .2s;
	text-indent: 4px;
}

.yy-loginbox input[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.06); }

.yy-loginbox .yy-links {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-top: 14px;
	color: #9ca3af;
}

.yy-loginbox .yy-links a { color: #6366f1; }

.yy-loginbox .yy-qq { margin-top: 14px; text-align: center; }

.yy-error { color: #ef4444; font-size: 13px; }

/* ============ 区块 ============ */
.yy-section { padding: 64px 0; }
.yy-section.alt { background: #fff; }

.yy-sec-head { text-align: center; margin-bottom: 44px; }

.yy-sec-head h2 {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 800;
	color: #1f2937;
	letter-spacing: .5px;
}

.yy-sec-head h2::after {
	content: "";
	display: block;
	width: 46px;
	height: 4px;
	border-radius: 4px;
	margin: 14px auto 0;
	background: linear-gradient(90deg, #6366f1, #ec4899);
}

.yy-sec-head p { margin: 0; color: #9ca3af; font-size: 14px; }

/* 四步 */
.yy-steps { display: flex; gap: 20px; flex-wrap: wrap; }

.yy-step {
	flex: 1 1 210px;
	background: #fff;
	border-radius: 16px;
	padding: 30px 24px;
	box-shadow: 0 6px 24px rgba(67, 56, 202, .07);
	position: relative;
	transition: transform .25s, box-shadow .25s;
}

.yy-step:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(67, 56, 202, .14); }

.yy-step .num {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	color: #fff;
	margin-bottom: 18px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 8px 18px rgba(99, 102, 241, .3);
}

.yy-step:nth-child(2) .num { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 8px 18px rgba(14, 165, 233, .3); }
.yy-step:nth-child(3) .num { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 8px 18px rgba(245, 158, 11, .3); }
.yy-step:nth-child(4) .num { background: linear-gradient(135deg, #ec4899, #f472b6); box-shadow: 0 8px 18px rgba(236, 72, 153, .3); }

.yy-step h4 { margin: 0 0 8px; font-size: 17px; color: #1f2937; }
.yy-step p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.8; }

/* 广告类型卡片 */
.yy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }

.yy-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(67, 56, 202, .07);
	transition: transform .25s, box-shadow .25s;
	display: flex;
	flex-direction: column;
}

.yy-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(67, 56, 202, .14); }

.yy-card .thumb {
	height: 150px;
	background: linear-gradient(135deg, #eef2ff, #fdf2f8);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.yy-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.yy-card .body { padding: 18px 20px 22px; }

.yy-card .body h4 { margin: 0 0 8px; font-size: 16px; color: #1f2937; }

.yy-card .body p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.8; }

/* 公告 */
.yy-notice {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(67, 56, 202, .07);
	padding: 8px 24px 18px;
}

.yy-notice li {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px dashed #eef0f7;
	font-size: 14px;
}

.yy-notice li:last-child { border-bottom: 0; }

.yy-notice li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #ec4899);
	flex: 0 0 6px;
}

.yy-notice li a { flex: 1; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yy-notice li a:hover { color: #6366f1; }
.yy-notice li span { color: #9ca3af; font-size: 13px; flex: 0 0 auto; }

.yy-notice-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0 6px;
	border-bottom: 1px solid #f3f4f6;
}

.yy-notice-head h3 { margin: 0; font-size: 18px; color: #1f2937; }
.yy-notice-head a { font-size: 13px; }

/* ============ 页脚 ============ */
.yy-footer {
	background: #1e1b4b;
	color: rgba(255, 255, 255, .68);
	padding: 52px 0 26px;
	margin-top: 20px;
}

.yy-footer .grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.yy-footer h5 { margin: 0 0 16px; font-size: 15px; color: #fff; font-weight: 700; }
.yy-footer a { display: block; color: rgba(255, 255, 255, .66); font-size: 13px; padding: 5px 0; }
.yy-footer a:hover { color: #fff; }
.yy-footer .brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.yy-footer .about { font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .6); }

.yy-copy {
	text-align: center;
	font-size: 12px;
	padding-top: 22px;
	color: rgba(255, 255, 255, .5);
}

.yy-copy a { display: inline; color: rgba(255, 255, 255, .7); }

/* ============ 兼容旧子页面（登录/注册/提示/帮助等） ============ */
.head { background: #fff; border-bottom: 1px solid #eef0f7; }
.head_box { width: 1200px; max-width: 94%; margin: 0 auto; }
.head_list { display: flex; align-items: center; height: 74px; gap: 16px; }
.head .logo { margin: 0; }
.head .logo img { height: 42px; }
.logo-title { font-size: 16px; color: #6b7280; font-weight: 500; margin: 0; }

.main { width: 1200px; max-width: 94%; margin: 0 auto; }

.left_list, .right_login, .intro_box, .title_box, .form_list {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(67, 56, 202, .07);
}

.left_list { padding: 26px 30px 30px; float: left; width: 62%; }
.right_login { padding: 26px 24px; float: right; width: 34%; }

.intro_box { box-shadow: none; padding: 0 0 14px; font-size: 15px; color: #374151; border-radius: 0; }

.title_box { box-shadow: none; border-radius: 0; padding: 0; }

.form_list { list-style: none; margin: 0; padding: 10px 0 0; box-shadow: none; }

.form_list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.form_list label { width: 90px; flex: 0 0 90px; font-size: 14px; color: #4b5563; }

.form_list .input_text {
	flex: 1;
	width: auto !important;
	height: 42px;
	padding: 0 14px;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	outline: 0;
	transition: all .2s;
}

.form_list .input_text:focus { background: #fff; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }

.form_list img { height: 42px; border-radius: 10px; border: 1px solid #e5e7eb; cursor: pointer; }

.btn_css {
	height: 44px;
	padding: 0 34px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(99, 102, 241, .32);
	transition: all .2s;
}

.btn_css:hover { transform: translateY(-1px); filter: brightness(1.06); }

.tip { color: #ef4444; font-size: 12px; display: none; }
.form_list .tip { flex: 0 0 100%; padding-left: 102px; }
.gray9 { color: #9ca3af; }
.red { color: #ef4444; font-style: normal; }
.blue { color: #6366f1 !important; }
.clear { clear: both; }
.noMar { margin-bottom: 0 !important; }

.right_list { list-style: none; margin: 0; padding: 0; }
.right_list li { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.right_list .btn_box { margin-bottom: 18px; }
.right_list .btn_css { width: 100%; padding: 0; }
.right_list .other a { display: inline-flex; align-items: center; gap: 8px; }

/* 旧页面通用的标题与盒子 */
.title { color: #312e81 !important; font-size: 18px !important; font-weight: 800; }
.title_td_1 { height: 3px !important; background: linear-gradient(90deg, #6366f1, #ec4899) !important; border-radius: 3px; }
.title_td_2 { height: 3px !important; background: #eef0f7 !important; border-radius: 3px; }

.box {
	background: #fff !important;
	border: 0 !important;
	border-radius: 16px !important;
	box-shadow: 0 6px 24px rgba(67, 56, 202, .07);
	padding: 20px !important;
}

.box_tit {
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
	border-radius: 10px;
	font-weight: 600;
	line-height: 34px;
	padding: 0 14px !important;
}

.b_bc { background: transparent !important; }

.register h2 { font-size: 20px; color: #1f2937; }

.input_text, .input_1 .input_text {
	border: 1px solid #e5e7eb !important;
	border-radius: 9px !important;
	padding: 8px 12px !important;
	height: auto !important;
	font-size: 14px !important;
	color: #111827 !important;
	background: #f9fafb !important;
	outline: 0;
}

.input_text:focus { background: #fff !important; border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }

.f_submit {
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
	border-radius: 10px !important;
	height: 40px !important;
	line-height: 40px !important;
	padding: 0 30px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 20px rgba(99, 102, 241, .3);
	transition: all .2s;
}

.f_submit:hover { transform: translateY(-1px); filter: brightness(1.06); }

.tipinfo .text { background: #6366f1 !important; border-radius: 8px; }
.tipinfo .r1, .tipinfo .r2, .tipinfo .l1, .tipinfo .l2 { background: #6366f1 !important; border-color: #6366f1 !important; }

.article_title { font-size: 20px !important; color: #1f2937; }

/* 旧顶部导航（其他模板若仍使用） */
.top_nav td { color: #fff !important; }
.top_nav td.current { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; border-bottom: 0 !important; }

/* 旧子页面的简易页脚 */
.footer {
	background: #1e1b4b !important;
	color: rgba(255, 255, 255, .55) !important;
	text-align: center;
	font-size: 12px;
	padding: 22px 0 !important;
	margin-top: 40px;
}

.footer a { color: rgba(255, 255, 255, .7); }

/* 旧页面 960 宽表格统一放大到 1200，与新版头尾对齐 */
table[width="960"] {
	width: 1200px !important;
	max-width: 94% !important;
}

/* 旧页面顶部大图 banner 圆角处理 */
table[width="960"] td[height="150"] img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

/* ============ 平板 ============ */
@media screen and (max-width: 980px) {
	.yy-header .yy-wrap {
		height: auto;
		flex-wrap: wrap;
		gap: 10px;
		padding: 10px 16px;
	}

	.yy-brand { font-size: 16px; }
	.yy-brand img { height: 34px; }
	.yy-auth { margin-left: auto; }

	/* 导航改成可横向滑动的一行，而不是直接隐藏 */
	.yy-nav {
		order: 3;
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.yy-nav::-webkit-scrollbar { display: none; }
	.yy-nav a { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

	.yy-hero { padding: 40px 0 46px; }
	.yy-hero .yy-wrap { flex-direction: column; gap: 26px; }
	.yy-hero h1 { font-size: 28px; }
	.yy-hero p.yy-desc { font-size: 14px; margin-bottom: 22px; }
	.yy-hero-actions { gap: 10px; }
	.yy-btn { padding: 12px 22px; font-size: 14px; }
	.yy-hero-stats { gap: 22px; flex-wrap: wrap; margin-top: 26px; }
	.yy-hero-stats b { font-size: 20px; }

	.yy-loginbox { flex: none; width: 100%; padding: 22px 20px 18px; border-radius: 16px; }

	.yy-section { padding: 40px 0; }
	.yy-sec-head { margin-bottom: 26px; }
	.yy-sec-head h2 { font-size: 23px; }
	.yy-steps { gap: 12px; }
	.yy-step { flex: 1 1 100%; padding: 22px 20px; }
	.yy-cards { grid-template-columns: 1fr; }
	.yy-card .thumb { height: 170px; }
	.yy-notice { padding: 12px 16px; }
	.yy-notice li { font-size: 13px; }

	/* 首页「计费方式 + 公告」两列改为纵向 */
	div[style*="grid-template-columns"] { display: block !important; }
	div[style*="grid-template-columns"] > div + div { margin-top: 22px; }

	.yy-footer { padding: 36px 0 20px; }
	.yy-footer .grid { grid-template-columns: 1fr 1fr; gap: 22px; }

	.left_list, .right_login { float: none; width: 100%; margin-bottom: 16px; }
	table[width="960"] { width: 100% !important; }
	table[width="960"] td[height="150"] img { height: 130px; }
}

/* ============ 手机 ============ */
@media screen and (max-width: 560px) {
	.yy-wrap { padding: 0 14px; }
	.yy-hero { padding: 30px 0 36px; }
	.yy-hero h1 { font-size: 24px; line-height: 1.35; }
	.yy-hero-tag { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
	.yy-hero-actions .yy-btn { width: 100%; text-align: center; }
	.yy-auth a.yy-btn-line { display: none; }
	.yy-loginbox { padding: 18px 16px 14px; }
	.yy-section { padding: 32px 0; }
	.yy-sec-head h2 { font-size: 20px; }
	.yy-notice li span { display: none; }
	.yy-footer .grid { grid-template-columns: 1fr; gap: 16px; }
	.yy-copy { font-size: 11px; line-height: 1.8; }
	.form_list li { display: block; }
	.form_list label { display: block; width: auto; margin-bottom: 6px; }
	.form_list .input_text { width: 100% !important; }
	.form_list .tip { padding-left: 0; }
	.btn_css { width: 100%; }
}
