/* ===== 全局重置与变量 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #F59E0B;
  --brand-dark: #D97706;
  --brand-light: #FBBF24;
  --dark-bg: #0F1115;
  --dark-bg-2: #1A1D24;
  --dark-bg-3: #252830;
  --dark-text: #F9FAFB;
  --dark-text-2: #9CA3AF;
  --light-bg: #F5F1EB;
  --light-bg-2: #EDE8DF;
  --light-bg-3: #E5DFD3;
  --light-text: #1A1A1A;
  --light-text-2: #6B7280;
  --light-border: #D6CFC2;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --nav-h: 96px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--light-text);
  background: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 14px; }

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 96px;
  background: #1A1D24;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.nav-logo .logo-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 900;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 900; font-size: 22px; color: var(--dark-text); }
.logo-domain { font-size: 13px; color: var(--dark-text-2); letter-spacing: 0.05em; margin-top: 2px; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--dark-text); opacity: 0.85; transition: opacity 0.2s; position: relative; }
.nav-links a:hover { opacity: 1; }
.nav-links a .nav-badge {
  position: absolute; top: -8px; right: -24px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.nav-cta {
  padding: 8px 20px; border-radius: 6px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 13px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; color: var(--dark-text); }
.nav-mobile-toggle span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

/* 移动端菜单 */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: #fff; padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--light-bg-3); }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== 视图切换 ===== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--dark-bg-2); color: var(--dark-text-2);
  padding: 48px 24px 24px;
  border-top: 1px solid var(--dark-bg-3);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: var(--dark-text); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--dark-text); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--dark-bg-3);
  text-align: center; font-size: 13px;
}

/* ===== 内页通用（米白杂志风） ===== */
.view-inner { padding-top: var(--nav-h); background: var(--light-bg); min-height: 100vh; }

.page-header {
  background: var(--light-bg);
  border-bottom: 1px solid var(--light-border);
  padding: 100px 24px 40px;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header .eyebrow {
  font-size: 12px; letter-spacing: 0.15em; color: var(--light-text-2);
  text-transform: uppercase; margin-bottom: 16px; font-weight: 500;
}
.page-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 12px;
  line-height: 1.2; color: var(--light-text);
}
.page-header p { color: var(--light-text-2); font-size: 16px; max-width: 600px; }

.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 40px;
  max-width: 400px; width: 100%; text-align: center;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-text-2); font-size: 20px;
}
.modal-close:hover { background: var(--light-bg-3); }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.modal p { color: var(--light-text-2); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.wechat-qr {
  width: 200px; height: 200px; margin: 0 auto 20px;
  background: var(--light-bg-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--light-text-2); font-size: 14px;
}
.wechat-id {
  padding: 12px 20px; background: var(--light-bg-3); border-radius: 8px;
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
}

/* ===== 响应式基础 ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; color: var(--dark-text); }
  .nav .nav-mobile-toggle { color: var(--dark-text); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .container { padding: 24px 16px; }
  .page-header { padding: 80px 16px 24px; }
  .page-header h1 { font-size: 24px; }
}
