/* ==========================================
       1. 公共样式 (可提取为 common.css)
       包含：全局变量、重置、导航栏(含移动端)、页脚、通用标题、通用按钮
    ========================================== */
:root {
	--primary: #3A3A3A;
	--gold: #D2A669;
	--gold-bright: #C49030;
	--gold-pale: rgba(210, 166, 105, .12);
	--white: #FFFFFF;
	--bg: #F6F5F1;
	--bg-card: #FFFFFF;
	--text: #3A3A3A;
	--text-mid: #6B655A;
	--text-muted: #9A9488;
	--border: #E0DBD0;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 2px 8px rgba(58, 58, 58, .05);
	--shadow-md: 0 8px 28px rgba(58, 58, 58, .07);
	--shadow-lg: 0 16px 44px rgba(58, 58, 58, .10);
	--nav-height: 80px;
	/* 公共导航高度变量 */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

/* -- 公共导航栏 -- */
header {
	background: rgba(58, 58, 58, .93);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(210, 166, 105, .10);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .10);
}

nav {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--nav-height);
	position: relative;
	/* 为移动端Logo居中提供定位基准 */
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	z-index: 10;
	/* 确保logo在展开菜单时不被遮挡 */
}

.logo img {
	height: 34px;
	width: auto;
}

.logo span {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	letter-spacing: .3px;
	text-transform: uppercase;
}

/* 桌面端菜单 */
.nav-menu {
	display: flex;
	gap: 3px;
	list-style: none;
}

.nav-menu a {
	color: rgba(255, 255, 255, .66);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 7px;
	transition: all .22s;
}

.nav-menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, .06);
}

.nav-menu a.active {
	color: var(--gold);
	background: rgba(210, 166, 105, .12);
}

.auth-buttons {
	display: flex;
	gap: 10px;
	z-index: 10;
}

.container {
	max-width: 1280px;
	margin: 0 auto;
}

.btn {
	padding: 8px 22px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: all .22s;
	letter-spacing: .2px;
}

.btn-login {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, .25);
	color: #fff;
}

.btn-login:hover {
	border-color: rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .05);
}

.btn-register {
	background: linear-gradient(135deg, var(--gold), var(--gold-bright));
	color: var(--primary);
	box-shadow: 0 2px 10px rgba(210, 166, 105, .25);
	font-weight: 700;
}

.btn-register:hover {
	box-shadow: 0 4px 16px rgba(210, 166, 105, .38);
	transform: translateY(-1px);
}

/* -- 公共移动端导航 (默认隐藏) -- */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 24px;
	height: 18px;
	cursor: pointer;
	z-index: 10;
	background: transparent;
	border: none;
	padding: 0;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* 汉堡按钮激活状态(变成X) */
.hamburger.active span:nth-child(1) {
	transform: translateY(4px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
	position: absolute;
	top: 60px;
	left: 0;
	width: 100%;
	background: rgba(45, 43, 40, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 10px 0 20px;
	transform: translateY(-10px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(.25, .46, .45, .94);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	height: 100vh;
}

.mobile-menu.active {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.mobile-menu a {
	display: block;
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	padding: 16px 30px;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, .05);
	transition: all 0.2s;
}

.mobile-menu a:last-child {
	border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
	color: var(--gold);
	background: rgba(210, 166, 105, .08);
	/* padding-left: 40px; */
}

/* -- 公共大标题样式 -- */
.sec-head {
	text-align: center;
	margin-bottom: 48px;
}

.sec-head h2 {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.4px;
	margin-bottom: 8px;
	color: var(--primary);
}

.sec-head .underline {
	display: block;
	width: 50px;
	height: 3px;
	background: var(--gold);
	margin: 0 auto 12px auto;
	border-radius: 2px;
}

.sec-head p {
	color: var(--text-muted);
	font-size: 15px;
}

/* -- 公共页脚 -- */
footer {
	background: #2D2B28;
	color: rgba(255, 255, 255, .52);
	padding: 72px 0 28px;
	position: relative;
}

footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-inner {
	max-width: 1280px;
	margin: 0 auto;
}

.footer-top {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
	gap: 44px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ft-col h4 {
	color: #fff;
	margin-bottom: 16px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .3px;
}

.ft-col.about p {
	font-size: 15px;
	line-height: 1.8;
}

.ft-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
}

.ft-nav a {
	color: rgba(255, 255, 255, .44);
	text-decoration: none;
	font-size: 15px;
	padding: 4px 0;
	display: block;
	transition: all .2s;
}

.ft-nav a:hover {
	color: var(--gold);
}

.ft-col.contact p {
	font-size: 15px;
	line-height: 2;
}

.ft-col.qr {
	text-align: center;
}

.qr-box {
	background: var(--bg-card);
	border-radius: 10px;
	display: inline-block;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.qr-box img {
	border-radius: 6px;
	display: block;
}

.ft-bottom {
	text-align: center;
	padding-top: 22px;
	color: rgba(255, 255, 255, .25);
	font-size: 12px;
}

/* ═══ 通用弹窗遮罩 ═══ */
.modal-overlay {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .5);
	flex-direction: column;
	justify-content: center;
	display: none;

}
.modal-overlay.Active{
	display: flex;
	opacity: 1;
}
.modal {
	width: 480px;
	max-width: 94vw;
	
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .13), 0 2px 8px rgba(0, 0, 0, .04);
	overflow: hidden;
	margin: 0 auto;
	
}

/* 弹窗头部 */
.modal-header {
	padding: 28px 30px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-header h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: .01em
}

.modal-close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	border: none;
	background: transparent;
	transition: all .2s;
	background: #f0f0f0;
	color: #333
}

.modal-close:hover {
	background: #fff;
	color: #999;
}

.modal-sub {
	color: #999;
	font-size: 13.5px;
	padding: 6px 30px 0
}

/* 表单主体 */
.modal-body {
	padding: 28px 30px 30px;
	max-height: 40vh;
	overflow-y: auto;
	/* scrollbar-width: none; */
}
.modal-bodys {
	padding: 0 30px 8px 30px;
}

/* 输入组 */
.form-group {
	margin-bottom: 18px
}

.form-group:last-child {
	margin-bottom: 0
}

.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 550;
	color: #333;
	margin-bottom: 7px;
}

.form-group label .required {
	color: #D2A669;
	margin-left: 2px
}

.input-box {
	position: relative
}

.input-box input,
.input-box textarea {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #e0ded8;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	font-family: inherit;
	outline: none;
	transition: all .25s;
	background: #fafaf9;
}

.input-box textarea {
	height: 90px;
	padding: 12px 14px;
	resize: vertical
}

.input-box input:focus,
.input-box textarea:focus {
	border-color: #D2A669;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(210, 166, 105, .08)
}

.input-box input::placeholder,
.input-box textarea::placeholder {
	color: #bbb
}

/* 手机号 + 验证码 并排 */
.form-row {
	display: flex;
	gap: 12px
}

.form-row .form-group {
	flex: 1;
	margin-bottom: 0
}

.form-row .form-group.code {
	flex: 0 0 130px;
	min-width: 110px
}

/* 发送验证码按钮 */
.btn-sms {
	width: 100%;
	height: 46px;
	border-radius: 8px;
	border: 1px solid #D2A669;
	color: #D2A669;
	background: #fffbf7;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all .25s;
	white-space: nowrap;
}

.btn-sms:hover {
	background: #D2A669;
	color: #fff
}

.btn-sms[disabled] {
	border-color: #ddd;
	color: #bbb;
	background: #f5f5f5;
	cursor: not-allowed
}

/* 协议 */
.agreement {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 22px 0;
	font-size: 13px;
	color: #888;
	line-height: 1.6
}

.agreement input[type=checkbox] {
	margin-top: 2px;
	accent-color: #D2A669;
	width: 15px;
	height: 15px;
	flex-shrink: 0
}

.agreement a {
	color: #D2A669;
	text-decoration: none;
	font-weight: 500
}

.agreement a:hover {
	text-decoration: underline
}

/* 主按钮 */
.btn-submit {
	width: 100%;
	height: 48px;
	border-radius: 10px;
	border: none;
	background: linear-gradient(135deg, #D2A669, #c4954f);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .04em;
	transition: all .3s;
	box-shadow: 0 4px 16px rgba(210, 166, 105, .25)
}

.btn-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(210, 166, 105, .35)
}

.btn-submit:active {
	transform: scale(.98)
}

/* 底部切换链接 */
.modal-footer-link {
	text-align: center;
	margin-top: 16px;
	font-size: 13.5px;
	color: #999
}

.modal-footer-link a {
	color: #D2A669;
	text-decoration: none;
	font-weight: 600
}

.modal-footer-link a:hover {
	text-decoration: underline
}

/* 分隔虚线 */
.divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 20px 0;
	color: #bbb;
	font-size: 12.5px
}

.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #ddd, transparent)
}

/* ═══ 会员弹窗特有 ═══ */
.select-box {
	position: relative
}

.select-box select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #e0ded8;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	font-family: inherit;
	outline: none;
	background: #fafaf9;
	appearance: none;
	cursor: pointer;
	transition: all .25s
}

.select-box select:focus {
	border-color: #D2A669;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(210, 166, 105, .08)
}

.select-box::after {
	content: '▾';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	font-size: 13px
}

.select-box select:invalid {
	color: #bbb
}

/* 会员等级卡片 */
.tier-cards {
	display: flex;
	gap: 10px;
	margin-top: 6px
}

.tier-card {
	flex: 1;
	border: 1.5px solid #e8e6e0;
	border-radius: 10px;
	padding: 14px 12px;
	text-align: center;
	cursor: pointer;
	transition: all .25s;
	background: #fafaf9
}

.tier-card:hover {
	border-color: #d2cbb8
}

.tier-card.selected {
	border-color: #D2A669;
	background: #fffbf7;
	box-shadow: 0 0 0 3px rgba(210, 166, 105, .08)
}

.tier-name {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 2px
}

.tier-desc {
	font-size: 11.5px;
	color: #999
}

.tier-card.selected .tier-name {
	color: #c4954f
}

.tier-card.selected .tier-desc {
	color: #b8a88a
}

/* 两个弹窗并排 demo */
.section-label {
	font-size: 13px;
	color: #aaa;
	text-align: center;
	margin-bottom: 14px;
	letter-spacing: .06em;
	text-transform: uppercase
}

/* ═══ 响应式 ═══ */
@media(max-width:520px) {
	body {
		flex-direction: column;
		gap: 50px;
	}

	.modal-overlay {
		width: 100%
	}

	.tier-cards {
		flex-direction: column
	}
}

/* -- 公共响应式 (基础+移动端导航控制) -- */
@media (max-width: 768px) {
	.nav-menu {
		display: none;
	}

	footer {
		padding: 1rem;
	}

	nav {
		height: 60px;
		padding: 0 10px;
	}

	/* 隐藏桌面菜单 */
	.logo span {
		display: none;
	}

	/* 隐藏Logo文字 */
	.hamburger {
		display: flex;
	}

	/* 显示三条线 */


	/* 利用 order 调整左右位置 */
	.hamburger {
		order: 1;
	}

	.footer-top {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.ft-col.qr {
		grid-column: span 2;
	}
}

@media (max-width: 480px) {
	.footer-top {
		grid-template-columns: 1fr;
	}

	.ft-col.qr {
		grid-column: span 1;
	}
}