/* ==========================================================================
   NJFUer 客服中心 / 首页
   ========================================================================== */
:root {
  --g950: #07251e;
  --g900: #0c3d31;
  --g800: #0f5a49;
  --g700: #16705c;
  --mint: #e7f4ee;
  --mint-2: #f1f9f5;
  --paper: #f7f8f3;
  --cream: #fdfbf3;
  --ink: #0b2a22;
  --body: #43594e;
  --muted: #6b7f73;
  --line: rgba(11, 42, 34, .10);
  --line-strong: rgba(11, 42, 34, .16);
  --gold: #98651a;
  --red: #b04a3f;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #2f9e7d; outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--g900); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; text-decoration: none; font-size: 13px; }
.skip:focus { top: 0; }
.eyebrow, .sec-no { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--g700); box-shadow: 0 0 0 4px rgba(22, 112, 92, .12); }

/* ---------- 顶部导航 ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(247, 248, 243, .88); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 10px 30px -26px rgba(7, 37, 30, .5); }
.nav-inner { height: 74px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #16705c, #0c3d31); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgba(7, 37, 30, .55); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-txt b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.brand-txt small { display: block; font-size: 8.5px; letter-spacing: .22em; color: var(--muted); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 10px; }
.nav-links a { font-size: 12.5px; color: var(--body); text-decoration: none; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--g700); transition: right .22s; }
.nav-links a:hover::after { right: 0; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); padding: 5px 10px; border-radius: 999px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #b9c8be; }
.status.on i { background: #22a67c; box-shadow: 0 0 0 3px rgba(34, 166, 124, .14); }
.status.on { color: #176b4f; }
.nav-admin { font-size: 11.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; background: #fff; }
.nav-admin:hover { color: var(--g700); border-color: rgba(22, 112, 92, .3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 76px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 460px at 78% 6%, rgba(200, 231, 214, .75), transparent 62%),
  radial-gradient(700px 420px at 4% 88%, rgba(244, 234, 212, .65), transparent 58%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(11, 42, 34, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 42, 34, .055) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(700px 420px at 70% 30%, #000 10%, transparent 78%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 64px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { font-family: var(--display); font-size: clamp(52px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 24px 0 22px; }
.hero-copy h1 em { font-style: normal; color: var(--g700); position: relative; }
.hero-copy h1 em::after { content: ""; position: absolute; left: 2%; right: 0; bottom: 6px; height: 12px; background: linear-gradient(90deg, rgba(200, 231, 214, .9), rgba(200, 231, 214, 0)); z-index: -1; border-radius: 6px; }
.lede { font-size: 15.5px; line-height: 1.9; color: var(--body); max-width: 470px; }
.hero-facts { display: flex; gap: 0; margin: 30px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts > div { flex: 1; padding: 16px 18px 15px 0; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts > div:not(:first-child) { padding-left: 18px; }
.hero-facts b { display: block; white-space: nowrap; font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-facts b .unit { display: inline; font-size: 11px; font-weight: 600; margin-left: 2px; color: var(--muted); }
.hero-facts span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: .03em; }
.hero-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; padding: 11px 19px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: .18s; }
.btn-primary { background: var(--g900); color: #fff; box-shadow: 0 14px 26px -16px rgba(7, 37, 30, .7); }
.btn-primary:hover { background: var(--g800); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--g700); color: var(--g700); background: #fff; }
.btn-light { background: #f7f8f3; color: var(--g900); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.hero-note { font-size: 10.5px; color: var(--muted); margin-top: 14px; }

.hero-chat { position: relative; min-width: 0; }
.chat-card { position: relative; z-index: 2; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; padding: 10px; box-shadow: 0 50px 100px -52px rgba(7, 37, 30, .55), 0 18px 40px -30px rgba(7, 37, 30, .35); backdrop-filter: blur(10px); }
.chat-card-top { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px 9px; font-size: 9px; letter-spacing: .12em; color: var(--muted); font-family: var(--mono); }
.chat-live { display: inline-flex; align-items: center; gap: 5px; color: #176b4f; }
.chat-live i { width: 5px; height: 5px; border-radius: 50%; background: #22a67c; box-shadow: 0 0 0 3px rgba(34, 166, 124, .14); }
.chat-frame { height: 596px; border-radius: 18px; overflow: hidden; background: #fbfcf8; }
.chat-frame > div { height: 100%; }
.chat-shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 60px; background: radial-gradient(ellipse at center, rgba(7, 37, 30, .24), transparent 70%); filter: blur(12px); z-index: 1; }

/* ---------- 区块标题 ---------- */
.sec-head { max-width: 520px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.16; letter-spacing: -.03em; font-weight: 700; margin: 18px 0 14px; }
.sec-head p { font-size: 13px; color: var(--muted); line-height: 1.85; }
.sec-head p a { color: var(--g700); text-decoration: none; font-weight: 600; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-head.row > p { max-width: 300px; padding-bottom: 6px; }

/* ---------- 怎么帮你 ---------- */
.how { padding: 84px 0 88px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fbfcf8, var(--paper)); }
.how .sec-head { margin-bottom: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 26px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.how-card:hover { transform: translateY(-3px); border-color: rgba(22, 112, 92, .26); box-shadow: 0 26px 50px -38px rgba(7, 37, 30, .45); }
.how-no { position: absolute; right: 18px; top: 14px; font-family: var(--mono); font-size: 11px; color: rgba(11, 42, 34, .18); letter-spacing: .1em; }
.how-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--mint); color: var(--g700); display: grid; place-items: center; margin-bottom: 22px; }
.how-ico svg { width: 22px; height: 22px; }
.how-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.how-card p { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-sec { padding: 88px 0; background: #f2f5ee; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 22px; height: 22px; position: relative; flex: none; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--g700); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.faq-item summary i::before { width: 12px; height: 1.6px; }
.faq-item summary i::after { width: 1.6px; height: 12px; }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 2px 22px; max-width: 620px; }
.faq-a p { font-size: 13px; line-height: 1.9; color: var(--body); }

/* ---------- 站点 ---------- */
.sites-sec { padding: 88px 0 92px; }
.sites-sec .sec-head.row { margin-bottom: 36px; }
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-chip { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; text-decoration: none; transition: .16s; min-width: 0; }
.site-chip:hover { border-color: rgba(22, 112, 92, .3); background: #fbfdf9; transform: translateY(-1px); }
.site-ini { width: 32px; height: 32px; border-radius: 9px; background: var(--mint); color: var(--g800); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.site-txt { min-width: 0; flex: 1; }
.site-txt b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-txt small { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-arrow { font-size: 11px; color: #a8b5ad; flex: none; }
.site-chip:hover .site-arrow { color: var(--g700); }

/* ---------- CTA ---------- */
.cta { background: var(--g900); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 300px at 85% 0%, rgba(126, 224, 180, .16), transparent 65%), radial-gradient(500px 260px at 0% 100%, rgba(214, 180, 116, .12), transparent 65%); }
.cta-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta .sec-no { color: rgba(232, 243, 237, .45); }
.cta h2 { font-family: var(--display); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.16; letter-spacing: -.03em; margin-top: 14px; font-weight: 700; }
.cta-side { max-width: 360px; }
.cta-side p { font-size: 12.5px; line-height: 1.9; color: rgba(232, 243, 237, .68); margin-bottom: 18px; }

/* ---------- 页脚 ---------- */
.foot { background: #082a22; color: rgba(232, 243, 237, .72); padding: 48px 0 22px; }
.foot .brand-mark { background: rgba(255, 255, 255, .1); box-shadow: none; }
.foot .brand-txt b { color: #fff; }
.foot .brand-txt small { color: rgba(232, 243, 237, .4); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-brand p { font-size: 10.5px; color: rgba(232, 243, 237, .42); margin-top: 14px; }
.foot-links { display: flex; gap: 64px; }
.foot-links > div { display: flex; flex-direction: column; gap: 7px; }
.foot-links b { font-size: 9px; letter-spacing: .18em; color: rgba(232, 243, 237, .38); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.foot-links a { font-size: 11.5px; color: rgba(232, 243, 237, .7); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 9.5px; color: rgba(232, 243, 237, .34); font-family: var(--mono); letter-spacing: .02em; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .3, 1) both; }
  .hero-copy h1 { animation-delay: .06s; }
  .hero-copy .lede { animation-delay: .12s; }
  .hero-facts { animation-delay: .18s; }
  .hero-actions { animation-delay: .24s; }
  .hero-note { animation-delay: .28s; }
  .hero-chat { animation: rise .7s cubic-bezier(.2, .7, .3, 1) .16s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .site-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 112px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-chat { max-width: 560px; width: 100%; }
  .chat-frame { height: 540px; }
  .how-grid { grid-template-columns: 1fr; gap: 12px; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .foot-grid { flex-direction: column; gap: 30px; }
  .foot-links { gap: 44px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .status { display: none; }
  .nav-admin { padding: 5px 9px; }
  .hero { padding: 96px 0 44px; }
  .hero-copy h1 { font-size: 52px; margin: 18px 0 18px; }
  .lede { font-size: 14px; }
  .hero-facts { margin: 24px 0 22px; }
  .hero-facts > div { padding: 13px 10px 12px 0; }
  .hero-facts > div:not(:first-child) { padding-left: 10px; }
  .hero-facts b { font-size: 16px; }
  .hero-facts span { font-size: 9px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .chat-frame { height: 560px; }
  .chat-card { padding: 7px; border-radius: 20px; }
  .how, .faq-sec, .sites-sec { padding: 60px 0; }
  .how-card { padding: 20px; }
  .faq-item summary { font-size: 13.5px; gap: 12px; }
  .site-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 0; }
  .foot { padding-top: 38px; }
  .foot-links { gap: 34px; flex-wrap: wrap; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.flash-card { animation: cardFlash .7s ease; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 0 rgba(22,112,92,.35), 0 50px 100px -52px rgba(7,37,30,.55); } 45% { box-shadow: 0 0 0 8px rgba(22,112,92,.12), 0 50px 100px -52px rgba(7,37,30,.55); } 100% { box-shadow: 0 0 0 0 rgba(22,112,92,0), 0 50px 100px -52px rgba(7,37,30,.55); } }
