/* ==========================================================================
   jsscapp.com — 基础层
   仅含：重置 / 变量 / 顶部导航 / 页脚 / 通用按钮 / 通用排版 / 通用区块
   九个关键词内页各自拥有独立骨架 CSS，互不共用同一模板。
   ========================================================================== */

:root {
  --ink: #0f1315;
  --ink-2: #242b2e;
  --muted: #5d676b;
  --muted-2: #96a0a3;
  --line: rgba(15, 19, 21, .13);
  --line-2: rgba(15, 19, 21, .06);
  --paper: #f5f6f3;
  --paper-2: #ffffff;
  --paper-3: #eceee9;
  --accent: #e8380d;
  --accent-2: #ff5a2c;
  --accent-ink: #ffffff;
  --teal: #0f8f83;
  --lime: #d7ef4b;
  --gold: #d9a02a;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 2px 10px rgba(15, 19, 21, .05);
  --shadow-m: 0 24px 54px -22px rgba(15, 19, 21, .28);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans-num: "Rajdhani", "SFMono-Regular", Consolas, monospace;
  --container: 1180px;
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.26; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: rgba(232, 56, 13, .16); }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- 跳过导航 ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245, 246, 243, .93);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(15, 19, 21, .6); background: rgba(245, 246, 243, .99); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ink); color: #fff; border-radius: 9px;
  font-family: var(--sans-num); font-weight: 700; font-size: 15px; letter-spacing: -.02em;
  transform: skewX(-6deg);
}
.brand-mark > * { transform: skewX(6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: -.01em; }
.brand-text small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2);
  transition: background .16s, color .16s; white-space: nowrap;
}
.nav a:hover { background: rgba(15, 19, 21, .055); }
.nav a[aria-current="page"] { color: var(--accent); background: rgba(232, 56, 13, .08); font-weight: 600; }

.header-cta {
  flex-shrink: 0; margin-left: 10px; padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 700;
  transition: transform .18s, box-shadow .18s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(232, 56, 13, .7); }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px; margin-left: 0;
    display: none; box-shadow: 0 20px 40px -30px rgba(15, 19, 21, .6);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ---------- 通用按钮 ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  line-height: 1.2; border: 1px solid transparent; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 30px -18px rgba(232, 56, 13, .85); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgba(232, 56, 13, .9); }
.btn-ghost { background: transparent; border-color: rgba(15, 19, 21, .2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-room { font-weight: 600; cursor: default; }
.btn-room strong { font-family: var(--sans-num); font-size: 17px; letter-spacing: .04em; }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); }

/* ---------- 通用区块 ---------- */
.sec { padding: 84px 0; }
.sec.tight { padding: 56px 0; }
.sec.alt { background: var(--paper-3); border-block: 1px solid var(--line-2); }

.sec-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sec-head .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
}
.sec-head h2 { margin-top: 12px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; }
.sec-head p { margin-top: 14px; font-size: 15px; line-height: 2; color: var(--muted); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper-2); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.tbl th, table.tbl td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl thead th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; background: #f0f2ec; }
table.tbl tbody th { font-weight: 700; color: var(--ink); }
table.tbl tr:last-child td, table.tbl tr:last-child th { border-bottom: 0; }
table.tbl td.num { font-family: var(--sans-num); font-size: 15px; letter-spacing: .02em; }

.tag { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; letter-spacing: .03em; }
.tag.now { background: rgba(15, 143, 131, .12); color: #0a6b62; }
.tag.keep { background: rgba(217, 160, 42, .16); color: #8a6410; }
.tag.stop { background: rgba(15, 19, 21, .07); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-size: 15.5px; font-weight: 600; cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--muted-2); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 22px; font-size: 14.5px; line-height: 2; color: var(--muted); }
.faq .a a { color: var(--accent); border-bottom: 1px solid rgba(232, 56, 13, .3); }

/* ---------- 结尾 CTA ---------- */
.site-cta { padding: 76px 0; background: var(--ink); color: #fff; text-align: center; }
.site-cta h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; }
.site-cta p { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.site-cta .hero-actions { margin-top: 28px; justify-content: center; }
.site-cta .btn-primary { background: var(--accent); }
.site-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .26); }
.site-cta .btn-ghost:hover { border-color: #fff; }
.site-cta .note { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.site-cta .note a { color: var(--lime); font-family: var(--mono); }

/* ---------- 页脚 ---------- */
.site-footer { background: #090c0d; color: rgba(255, 255, 255, .7); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.95; color: rgba(255, 255, 255, .45); max-width: 34ch; }
.footer-col h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .38); font-weight: 600; }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col li a { font-size: 14px; color: rgba(255, 255, 255, .68); transition: color .16s; }
.footer-col li a:hover { color: #fff; }
.footer-tg { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 14px; color: #fff; }
.footer-tg svg { width: 18px; height: 18px; color: #4fc3f7; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 12.5px; color: rgba(255, 255, 255, .35);
}

/* ---------- 滚动出现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 680px) {
  .sec { padding: 58px 0; }
  .sec.tight { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .btn { padding: 13px 20px; font-size: 14px; }
}