/* ============================================================
   CLEARQ · 2026
   单色 / 网格 / 编辑式排版，液态玻璃只用在顶栏与主按钮
   ============================================================ */

:root {
  --bg: #08090c;
  --panel: #0d0f13;
  --ink: #f0f2f5;
  --dim: rgba(240, 242, 245, .56);
  --faint: rgba(240, 242, 245, .34);
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --accent: #d9b382;
  --ok: #93c9ad;

  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --wrap: 1180px;
  --pad: 40px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(90% 46% at 50% -6%, rgba(255, 255, 255, .05), transparent 72%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure, figcaption { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

::selection { background: rgba(217, 179, 130, .26); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(217, 179, 130, .7);
  outline-offset: 4px;
  border-radius: 4px;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* 颗粒 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- 玻璃（只给顶栏与主按钮） ---------------- */

.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .04);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg,
    rgba(220, 236, 255, .55) 0%,
    rgba(255, 255, 255, .10) 26%,
    rgba(255, 255, 255, .01) 52%,
    rgba(255, 255, 255, .18) 84%,
    rgba(255, 255, 255, .05) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(8, 9, 12, .62);
}

.topbar::before { display: none; }

.topbar.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)),
    rgba(6, 7, 10, .78);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: rgba(240, 242, 245, .92);
}

.mark span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
}

.mark em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(240, 242, 245, .56);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  color: var(--dim);
  transition: color .2s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: rgba(240, 242, 245, .88);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
}

/* ---------------- Hero ---------------- */

main { flex: 1 0 auto; }

.hero { padding: 92px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 84px;
  align-items: start;
}

.hero-copy > * { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(147, 201, 173, .12);
}

h1 {
  margin-top: 30px;
  font-size: clamp(2.9rem, 5.6vw, 4.35rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.035em;
}

.sub {
  margin-top: 26px;
  max-width: 33em;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--dim);
}

.sub-note {
  margin-top: 6px;
  max-width: 33em;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(240, 242, 245, .4);
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

/* 液玻主按钮 */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06));
  border-color: rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    0 18px 44px -22px rgba(0, 0, 0, .95);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.btn-glass svg { opacity: .8; transition: transform .25s var(--ease); }

.btn-glass:hover {
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .09));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(255, 255, 255, .1),
    0 26px 56px -22px rgba(0, 0, 0, 1);
}

.btn-glass:hover svg { transform: translateX(3px); }

.link-underline {
  position: relative;
  font-size: 13.5px;
  color: var(--dim);
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .28;
  transform-origin: left;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.link-underline:hover { color: var(--ink); }
.link-underline:hover::after { opacity: .7; }

.statusline {
  display: flex;
  gap: 44px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.statusline dt {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: rgba(240, 242, 245, .42);
}

.statusline dd {
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(240, 242, 245, .78);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 答题面板（实体，不是玻璃） ---------------- */

.hero-panel { min-width: 0; padding-top: 6px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 50px 110px -60px rgba(0, 0, 0, .95);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(240, 242, 245, .42);
}

.panel-head .mono { letter-spacing: .05em; }

.panel-bar {
  height: 2px;
  margin: 14px 0 24px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.panel-bar i {
  display: block;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, rgba(217, 179, 130, .9), rgba(217, 179, 130, .35));
}

.q {
  font-family: ui-serif, Georgia, "Songti SC", "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(240, 242, 245, .92);
}

.q b {
  font-weight: 400;
  color: var(--accent);
  letter-spacing: .02em;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.opts li {
  display: grid;
  grid-template-columns: 22px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: rgba(240, 242, 245, .82);
  border: 1px solid transparent;
  border-radius: 7px;
}

.opts .k {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
}

.opts em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(240, 242, 245, .45);
}

.opts .is-right {
  border-color: rgba(147, 201, 173, .24);
  background: rgba(147, 201, 173, .045);
  color: #eafff6;
}

.opts .is-right .k {
  color: #06120e;
  background: var(--ok);
  border-color: transparent;
}

.opts .is-right em { color: rgba(147, 201, 173, .6); }

.tick {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: var(--ok);
}

.opts .t { white-space: nowrap; }

.panel-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--faint);
}

.caption {
  margin-top: 12px;
  text-align: right;
  font-size: 11px;
  letter-spacing: .02em;
  color: rgba(240, 242, 245, .28);
}

/* ---------------- 分区 ---------------- */

.section {
  padding: 72px 0 0;
  border-top: 1px solid var(--line-soft);
}

.section:last-of-type { padding-bottom: 88px; }

.sec-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sec-head h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.sec-count {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 科目行 ---------------- */

.rows { margin-top: 0; }

.row {
  display: grid;
  grid-template-columns: 52px minmax(130px, .85fr) 1.7fr 92px 88px 32px;
  align-items: center;
  gap: 24px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}

.row:hover { background: rgba(255, 255, 255, .022); }

.row-idx { color: rgba(240, 242, 245, .28); }

.row-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  letter-spacing: -.012em;
}

.row-name em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(240, 242, 245, .38);
  white-space: nowrap;
}

.row-desc {
  font-size: 12.5px;
  color: var(--dim);
}

.row-meta {
  font-size: 11px;
  letter-spacing: .02em;
  color: rgba(240, 242, 245, .42);
  text-align: right;
}

.row-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--faint);
}

.row-state i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ok);
}

.row.is-live .row-state { color: rgba(147, 201, 173, .85); }

.row-arrow {
  display: grid;
  place-items: center;
  color: rgba(240, 242, 245, .3);
  transition: transform .25s var(--ease), color .25s var(--ease);
}

.row:hover .row-arrow {
  transform: translateX(4px);
  color: var(--ink);
}

.row.is-soon { opacity: .62; }
.row.is-soon:hover { opacity: .78; }

/* ---------------- 功能 ---------------- */

.feature-list { margin-top: 0; }

.f-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.f-row h3 {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.f-row p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--dim);
  max-width: 74ch;
}

/* ---------------- 页脚 ---------------- */

.site-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(240, 242, 245, .7);
}

.foot-inner p { font-size: 11.5px; color: var(--faint); }

.foot-inner > .mono {
  margin-left: auto;
  font-size: 9.5px;
  color: rgba(240, 242, 245, .26);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 90;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  font-size: 12.5px;
  color: rgba(240, 242, 245, .92);
  border-radius: 6px;
  background: rgba(16, 18, 23, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 入场 ---------------- */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------------- 内页（英语占位 / 404） ---------------- */

.inner-page { min-height: 100vh; display: flex; flex-direction: column; }

.inner-head { border-bottom: 1px solid var(--line); }

.inner-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.inner-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
}

.inner-card {
  max-width: 620px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.inner-card h1 {
  margin-top: 26px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
}

.inner-card .sub { max-width: 34em; margin-top: 20px; }

.soon-list {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
}

.soon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.soon-row .name { color: rgba(240, 242, 245, .82); }

.soon-row .state {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--faint);
}

.soon-row .state.done { color: rgba(147, 201, 173, .8); }

.soon-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.soon-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(240, 242, 245, .28);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1020px) {
  :root { --pad: 28px; }

  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { max-width: 460px; }

  .row {
    grid-template-columns: 44px minmax(120px, 1fr) 1.4fr 84px 84px 28px;
    gap: 18px;
  }

}

@media (max-width: 820px) {
  :root { --pad: 22px; }

  .topbar-inner { gap: 16px; height: 52px; }
  .nav-links { display: none; }
  .topbar-inner .nav-cta { margin-left: auto; }

  .hero { padding: 44px 0 48px; }
  .hero-grid { gap: 36px; }

  h1 { font-size: clamp(2.15rem, 8.4vw, 3rem); letter-spacing: -.028em; }

  .sub, .sub-note { font-size: 14.5px; line-height: 1.8; }

  .statusline {
    gap: 26px;
    flex-wrap: wrap;
    row-gap: 16px;
    margin-top: 36px;
    padding-top: 16px;
  }

  .row {
    grid-template-columns: 34px 1fr auto;
    gap: 4px 14px;
    padding: 20px 2px;
  }

  .row-idx { grid-row: 1; }
  .row-name { grid-column: 2; grid-row: 1; font-size: 16.5px; }
  .row-state { grid-column: 3; grid-row: 1; font-size: 11px; }
  .row-desc { grid-column: 2 / 4; grid-row: 2; font-size: 12px; }
  .row-meta, .row-arrow { display: none; }

  .row-name em { display: none; }

  .f-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }

  .foot-inner { gap: 12px 20px; }
  .foot-inner > .mono { margin-left: 0; width: 100%; }

  .section { padding-top: 64px; }
  .section:last-of-type { padding-bottom: 72px; }

  .inner-main { padding: 56px 0 72px; }
}

@media (max-width: 520px) {
  .actions { flex-direction: row; align-items: center; gap: 18px; margin-top: 30px; }
  .btn-glass { width: auto; padding: 12px 20px; }
  .panel { padding: 20px 18px 16px; }
  .mark em { display: none; }
  .section-head, .sec-head { padding-bottom: 14px; }
  .opts em { display: none; }
  .soon-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}

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

.btn-bare {
  background: none;
  border: 0;
  padding: 0 0 3px;
  font: inherit;
  color: var(--dim);
  cursor: pointer;
  position: relative;
}

.btn-bare::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .28;
  transition: opacity .25s var(--ease);
}

.btn-bare:hover { color: var(--ink); }
.btn-bare:hover::after { opacity: .7; }
