/* ═══════════════════════════════════════
   FWQ.AI · Main Stylesheet
   匹配 my.fwq.ai 浅色风格
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ── Variables ── */
:root {
  --blue:      #1B5FD4;
  --blue2:     #3B82F6;
  --blue-light:#EBF2FF;
  --blue-dark: #1347B0;
  --teal:      #0EA575;
  --teal-light:#E6F7F1;
  --orange:    #F59E0B;
  --red:       #EF4444;
  --white:     #FFFFFF;
  --bg:        #F5F7FA;
  --bg2:       #FFFFFF;
  --text:      #1A1D2E;
  --text2:     #4B5563;
  --text3:     #9CA3AF;
  --border:    #E5E7EB;
  --border2:   #D1D5DB;
  --shadow:    0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.10);
  --radius:    10px;
  --radius-lg: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(27,95,212,.25);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,95,212,.35); color: #fff; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: var(--white); color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 8px;
  font-size: 14px; font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all .18s;
}
.btn-secondary:hover { background: var(--blue-light); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 8px;
  font-size: 14px; font-weight: 500;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all .18s; backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: transparent; color: var(--text2);
  border: 1.5px solid var(--border2); border-radius: 8px;
  font-size: 13px; font-weight: 400;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all .18s;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ── HEADER ── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center;
  height: 60px; gap: 8px;
}
.site-logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 1px;
  flex-shrink: 0; margin-right: 16px;
}
.logo-f  { color: #1B5FD4; }
.logo-w  { color: #3B82F6; }
.logo-q  { color: #60A5FA; }
.logo-dt { color: #CBD5E1; }
.logo-ai { color: #0EA575; }

.nav-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex: 1;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 6px 12px;
  font-size: 13px; color: var(--text2);
  border-radius: 6px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--blue); background: var(--blue-light); }

/* Dropdown */
.has-dropdown:hover > .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px; padding: 6px;
  box-shadow: var(--shadow-lg); z-index: 300;
}
.dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: 13px;
  color: var(--text2); border-radius: 6px;
  transition: all .15s;
}
.dropdown a:hover { background: var(--blue-light); color: var(--blue); }

.nav-auth { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-login {
  padding: 7px 18px; font-size: 13px; font-weight: 500;
  color: var(--blue); background: transparent;
  border: 1.5px solid var(--blue); border-radius: 7px;
  transition: all .18s; font-family: 'Noto Sans SC', sans-serif;
  display: inline-block;
}
.nav-login:hover { background: var(--blue-light); color: var(--blue); }
.nav-register {
  padding: 7px 18px; font-size: 13px; font-weight: 500;
  color: #fff; background: var(--blue); border: none; border-radius: 7px;
  transition: background .18s; font-family: 'Noto Sans SC', sans-serif;
  display: inline-block;
}
.nav-register:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 22px; color: var(--text); padding: 4px;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.footer-main {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.8; max-width: 240px; }
.footer-slogan {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--text3); letter-spacing: .14em; margin-top: 14px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 500; color: var(--text);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px; color: var(--text3);
  display: flex; align-items: center; gap: 6px;
  transition: color .18s;
}
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-pay { display: flex; gap: 6px; }
.pay-pill {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 9px;
  font-size: 11px; color: var(--text3);
}

/* ── Utility ── */
.full-divider { border: none; border-top: 1px solid var(--border); }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  color: var(--blue); background: var(--blue-light);
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: 10px; letter-spacing: .04em;
}
.section-title {
  font-size: 28px; font-weight: 500;
  color: var(--text); letter-spacing: -.01em;
  margin-bottom: 8px;
}
.section-sub { font-size: 14px; color: var(--text2); margin-bottom: 32px; }
.page-section { padding: 64px 0; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue2); }

/* ── Badge ── */
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 500; }
.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-green  { background: var(--teal-light); color: var(--teal); }
.badge-orange { background: #FEF3C7; color: #D97706; }
.badge-red    { background: #FEE2E2; color: #DC2626; }
/* ── notice-bar ── */
.notice-bar{background:#1B5FD4;color:#fff;padding:12px 0;font-size:13px}
.notice-in{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.notice-txt{flex:1}
.n-btns{display:flex;gap:8px}
.n-btn{padding:5px 13px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;font-family:'Noto Sans SC',sans-serif;cursor:pointer;display:inline-block;transition:all .15s}
.n-w{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.35)}
.n-w:hover{background:rgba(255,255,255,.28);color:#fff}
.n-o{background:#F59E0B;color:#fff;border:none}
.n-o:hover{background:#D97706;color:#fff}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { width: 100%; }
  .dropdown { position: static; box-shadow: none; border: none; background: var(--bg); margin: 4px 0 4px 12px; }
  .section-title { font-size: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .page-section { padding: 48px 0; }
}
