﻿/* ===========================================================================
   烯烃复分解 · 学术展示站
   视觉语言沿用研讨 PPT：深靛蓝 #000098 标题 / 紫蓝 #492076 双线 /
   浅蓝 #E5F0FF 卡片 / 浅红 #FBEAEA 关键卡 / 页底结论条
   =========================================================================== */

:root {
  /* —— 与 deck_kit.py 一致的配色 —— */
  --navy: #000098;
  --navy-deep: #000a5e;
  --navy-2: #12197e;
  --violet: #492076;
  --ink: #14161a;
  --ink-2: #2b303a;
  --gray: #595959;
  --muted: #6b7385;
  --faint: #98a0b3;
  --card: #e5f0ff;
  --card-2: #f2f7ff;
  --card-key: #fbeaea;
  --edge: #e8e8e8;
  --edge-key: #e8c8c8;
  --red: #c00000;
  --green: #006600;

  --page: #edf1fa;
  --white: #ffffff;

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

  --r: 16px;
  --sh-1: 0 1px 2px rgba(0, 10, 94, .06), 0 2px 8px rgba(0, 10, 94, .05);
  --sh-2: 0 10px 28px rgba(0, 10, 94, .10), 0 2px 8px rgba(0, 10, 94, .06);
  --sh-3: 0 24px 64px rgba(0, 10, 94, .22);
  --header-h: 70px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 26px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
::selection { background: #c9d8ff; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ 双线（PPT 招牌） */
.rule-double { position: relative; height: 6px; margin: 14px 0 0; }
.rule-double::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--violet);
}
.rule-double::after {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1.4px; background: var(--violet);
}

/* ------------------------------------------------------------------ 进度与顶栏 */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--navy));
  z-index: 120;
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 1px 0 var(--card), 0 6px 20px rgba(0, 10, 94, .05);
  z-index: 100;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  pointer-events: none; background: var(--violet); opacity: .9;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 152, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.brand-text em { font-style: normal; font-size: 10.5px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; gap: 2px; margin-left: 6px; flex: 1 1 auto; overflow: hidden; }
.nav a {
  padding: 8px 11px; border-radius: 8px; color: var(--gray);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  text-decoration: none; transition: background .16s, color .16s;
}
.nav a:hover { background: var(--card-2); color: var(--navy); text-decoration: none; }
.nav a.active { color: var(--navy); background: var(--card); font-weight: 700; }

/* ------------------------------------------------------------------ 搜索 */
.search { position: relative; flex: 0 1 226px; }
.search input {
  width: 100%; height: 38px; padding: 0 34px 0 13px;
  border: 1.5px solid var(--edge); border-radius: 10px;
  background: #fbfcff; color: var(--ink); font: inherit; font-size: 13.5px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus {
  outline: none; background: #fff; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 0, 152, .10);
}
.search .kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  border: 1px solid var(--edge); border-radius: 5px; padding: 1px 6px; background: #fff;
  pointer-events: none;
}
.results {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(470px, 92vw);
  max-height: min(64vh, 540px); overflow: auto; background: #fff;
  border: 1px solid var(--edge); border-top: 3px solid var(--violet);
  border-radius: 14px; box-shadow: var(--sh-2); padding: 8px; display: none; z-index: 110;
}
.results.open { display: block; }
.results .empty { padding: 20px 12px; color: var(--gray); font-size: 13.5px; text-align: center; }
.results .group {
  padding: 9px 10px 5px; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy); font-weight: 700;
}
.result {
  display: block; padding: 9px 10px; border-radius: 9px; color: var(--ink);
  text-decoration: none; border-left: 3px solid transparent;
}
.result:hover, .result.sel { background: var(--card); text-decoration: none; border-left-color: var(--navy); }
.result b { font-weight: 700; font-size: 13.5px; display: block; color: var(--ink); }
.result span {
  font-size: 12.5px; color: var(--gray); display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.result mark { background: #ffe27a; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ------------------------------------------------------------------ AI 入口：顶栏 */
.ai-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--violet));
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 152, .30);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.ai-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 152, .32); }
.ai-btn .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fffb2;
  box-shadow: 0 0 0 3px rgba(127, 255, 178, .22); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

/* ------------------------------------------------------------------ AI 入口：悬浮 */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--violet));
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 10, 94, .36), 0 2px 6px rgba(0, 10, 94, .22),
              inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: fabin .55s var(--ease) .8s both;
}
@keyframes fabin { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(0, 10, 94, .40); }
.fab .spark { font-size: 18px; line-height: 1; }
.fab .tail {
  font-size: 12px; font-weight: 500; opacity: .85;
  border-left: 1px solid rgba(255, 255, 255, .4); padding-left: 10px;
}

/* ------------------------------------------------------------------ 布局 */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { scroll-margin-top: calc(var(--header-h) + 14px); }

.sec { padding: clamp(56px, 7vw, 92px) 0; }
.sec-panel { background: var(--white); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.phases-wrap { background: var(--white); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }

/* ------------------------------------------------------------------ 区块标题（照 PPT） */
.sec-head { margin-bottom: 38px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--violet);
}
.sec-kicker::before { content: ""; width: 22px; height: 3px; background: var(--violet); border-radius: 2px; }
.sec-title {
  margin: 12px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.28;
}
.sec-claim {
  margin: 16px 0 0; font-size: clamp(15px, 1.6vw, 17px); font-weight: 700;
  color: var(--navy); line-height: 1.7;
}

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 5.6vw, 66px)) 0 clamp(34px, 4vw, 48px);
  background: var(--white);
  color: var(--ink);
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(var(--violet) 0 3px, transparent 3px 3.9px, var(--violet) 3.9px 5.2px, transparent 5.2px);
}
.hero-inner { position: relative; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--navy); padding: 6px 14px; border-radius: 6px;
  background: var(--card); border: 1px solid #cfe0ff;
}
.hero h1 {
  margin: 24px 0 0; font-size: clamp(38px, 5.6vw, 62px); font-weight: 800;
  line-height: 1.18; letter-spacing: -.01em; color: var(--navy);
}
.hero h1 .thin {
  display: block; margin-top: 14px;
  font-size: .38em; font-weight: 600; color: var(--ink-2); letter-spacing: .02em;
}
/* 照 PPT 封面：标题下一条细黑线 */
.hero-rule { width: min(560px, 78%); height: 1.5px; background: var(--ink); margin: 26px auto 0; opacity: .85; }
.hero-en {
  margin: 22px 0 0; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint);
}
.hero-lede {
  margin: 22px auto 0; max-width: 62ch;
  font-size: clamp(15px, 1.55vw, 17px); line-height: 1.95; color: var(--gray);
}
.hero-lede .hl { background: linear-gradient(transparent 58%, #dbe6ff 58%); padding: 0 2px; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(30px, 4vw, 44px); }
.stat {
  padding: 18px 16px 16px; border-radius: 12px; text-align: center;
  background: var(--card); border: 1px solid #d3e2ff;
}
.stat b { display: block; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stat em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--gray); }

/* ------------------------------------------------------------------ 时间线 */
.timeline { margin-top: 10px; }
.tl-rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.tl-rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--navy) 68%, #c9d3ee);
}
.tl-node {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 0 14px 18px 0; background: none; border: 0; text-align: left; color: inherit;
}
.tl-node:last-child { padding-right: 0; }
.tl-dot {
  position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--navy); margin: 23px 0 12px;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.tl-node:hover .tl-dot, .tl-node.on .tl-dot {
  background: var(--navy); transform: scale(1.2); box-shadow: 0 0 0 5px rgba(0, 0, 152, .12);
}
.tl-period { font-family: var(--mono); font-size: 12px; color: var(--violet); font-weight: 700; }
.tl-name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.tl-tag { font-size: 12.5px; color: var(--gray); line-height: 1.6; }
.tl-node.on .tl-name { color: var(--navy); }

/* ------------------------------------------------------------------ 阶段 */
.phase { padding: clamp(52px, 6.5vw, 84px) 0; }
.phase + .phase { border-top: 1px solid var(--edge); }

.phase-head { display: flex; align-items: flex-start; gap: 20px; }
.phase-no {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 16px;
  display: grid; place-items: center; background: var(--card); color: var(--navy);
  font-size: 30px; font-weight: 800; letter-spacing: -.03em; border: 1px solid #d3e2ff;
}
.phase-meta { flex: 1 1 auto; min-width: 0; }
.phase-period { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--violet); }
.phase-name {
  margin: 6px 0 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.3;
}
.phase-tag { margin: 8px 0 0; font-size: 14.5px; color: var(--gray); line-height: 1.7; }

.phase-claim {
  margin: 20px 0 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--navy);
  font-size: clamp(16px, 1.7vw, 18px); font-weight: 700; color: var(--navy); line-height: 1.7;
}

.phase-body { margin-top: 26px; }
.phase-body .lede { margin: 0; font-size: 16px; line-height: 1.95; color: var(--ink-2); max-width: 72ch; }

/* 要点：浅蓝卡片 */
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.point {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid #d6e4ff;
}
.point:nth-child(even) { background: var(--card-2); border-color: #e0eaff; }
.point h4 { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--navy); line-height: 1.7; }
.point p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* 结论条（照 PPT 页底） */
.takeaway {
  margin: 30px 0 0; padding: 16px 22px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 152, .06), rgba(73, 32, 118, .05));
  border: 1px solid #dbe4f7; border-left: 4px solid var(--navy);
  font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.7;
  display: flex; align-items: baseline; gap: 12px;
}
.takeaway .k {
  flex: 0 0 auto; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); font-weight: 800;
}

/* ------------------------------------------------------------------ 图 */
.figs { margin-top: 30px; display: grid; gap: 22px; }
.figs.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig {
  margin: 0; border: 1px solid var(--edge); border-radius: 14px; background: #fff;
  overflow: hidden; box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.fig:hover { box-shadow: var(--sh-2); border-color: #cdd9ee; transform: translateY(-2px); }
.fig-img {
  position: relative; display: block; width: 100%; border: 0;
  padding: clamp(14px, 2vw, 24px); background: #fff; cursor: zoom-in;
}
.fig-img img { margin: 0 auto; max-height: 330px; object-fit: contain; }
.fig-lead .fig-img img { max-height: 450px; }
.fig-img .zoom {
  position: absolute; right: 12px; bottom: 12px; font-size: 11px; font-weight: 700;
  color: var(--navy); background: rgba(255, 255, 255, .96); border: 1px solid #d6e4ff;
  border-radius: 7px; padding: 3px 9px; opacity: 0; transition: opacity .18s;
}
.fig:hover .fig-img .zoom { opacity: 1; }
figcaption { padding: 13px 18px 16px; border-top: 1px solid var(--edge); background: #fcfdff; }
.fig-no {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  color: #fff; background: var(--navy); border-radius: 5px; padding: 1px 7px;
}
.fig-cap { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin-top: 8px; }
.fig-src { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.fig-src i { font-style: italic; }

/* ------------------------------------------------------------------ 催化剂谱系 */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat {
  border: 1px solid #d6e4ff; border-radius: 14px; background: var(--card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.cat:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.cat .fig-img { flex: 1 1 auto; background: #fff; }
.cat .fig-img img { max-height: 210px; }
.cat h4 { margin: 0; padding: 14px 16px 0; font-size: 14.5px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.cat p { margin: 6px 16px 16px; font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ------------------------------------------------------------------ 缺口 */
.gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gap {
  border: 1px solid var(--edge-key); border-radius: 14px; background: var(--card-key);
  padding: 22px 22px 20px; position: relative; overflow: hidden;
}
.gap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.gap .n {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--red); border-radius: 5px; padding: 1px 8px;
}
.gap h4 { margin: 10px 0 0; font-size: 17.5px; font-weight: 800; color: #7f1512; }
.gap p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #5c3532; }
.gap .fix {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e7bdb9;
  font-size: 13px; color: #7f1512; font-weight: 600;
}

/* ------------------------------------------------------------------ 文献表 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.chip {
  border: 1.5px solid var(--edge); background: #fff; color: var(--gray);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600;
  transition: all .16s;
}
.chip:hover { border-color: #b9c8e8; color: var(--navy); }
.chip.on { background: var(--card); border-color: var(--navy); color: var(--navy); font-weight: 800; box-shadow: inset 0 0 0 1px var(--navy); }
.filters .count { margin-left: auto; font-size: 12.5px; color: var(--faint); font-weight: 600; }

.table-wrap {
  border: 1px solid var(--edge); border-radius: 14px; background: #fff;
  overflow: visible; box-shadow: var(--sh-1);
}
table.papers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.papers thead th {
  text-align: left; font-weight: 700; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); background: var(--card);
  padding: 13px 14px; position: sticky; top: var(--header-h); z-index: 3; white-space: nowrap;
  border-bottom: 2px solid var(--violet);
}
table.papers thead th:first-child { border-top-left-radius: 13px; }
table.papers thead th:last-child { border-top-right-radius: 13px; }
table.papers td { padding: 11px 14px; border-bottom: 1px solid #eef1f7; vertical-align: top; }
table.papers tr:last-child td { border-bottom: 0; }
table.papers tbody tr { cursor: pointer; transition: background .12s; }
table.papers tbody tr:hover { background: var(--card-2); }
table.papers tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tag.r { background: var(--card); color: var(--navy); }
.tag.p { background: #e4f4ea; color: #0d5c2f; }
.tag.doc { background: #fff1cf; color: #7c5a00; margin-left: 4px; }
td.t-authors { color: var(--ink-2); }
td.t-title { color: var(--ink); font-weight: 500; }
td.t-journal { color: var(--gray); white-space: nowrap; font-style: italic; }
td.t-year { font-family: var(--mono); font-size: 12.5px; color: var(--gray); white-space: nowrap; font-weight: 600; }
td.t-phase { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ------------------------------------------------------------------ 图片档案 */
.arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ------------------------------------------------------------------ AI CTA 横幅（白底浅蓝卡） */
.ai-cta { padding: clamp(42px, 5.5vw, 66px) 0; }
.ai-cta-inner {
  position: relative; overflow: hidden; border-radius: 16px; padding: clamp(28px, 4vw, 44px);
  background: var(--card); border: 1px solid #cfe0ff;
  color: var(--ink); display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
}
.ai-cta-inner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(var(--violet) 0 3px, transparent 3px 3.9px, var(--violet) 3.9px 5.2px, transparent 5.2px);
}
.ai-cta-txt { flex: 1 1 380px; min-width: 0; }
.ai-cta-txt h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.ai-cta-txt p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--gray); }
.ai-cta-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border: 0; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 15.5px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 152, .24);
  transition: transform .16s, box-shadow .16s, background .16s;
}
.ai-cta-btn:hover { transform: translateY(-2px); background: var(--navy-2); box-shadow: 0 14px 28px rgba(0, 0, 152, .3); }

/* ------------------------------------------------------------------ 方法 */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 56px); }
.method p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 18px; }
.method .limits { background: var(--card); border: 1px solid #d6e4ff; border-radius: 14px; padding: 20px 22px; }
.method .limits h4 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); font-weight: 800;
}
.method .limits ul { margin: 0; padding-left: 18px; }
.method .limits li { font-size: 13.5px; color: var(--gray); margin-bottom: 9px; line-height: 1.7; }

/* ------------------------------------------------------------------ 页脚（白底 + 双线） */
footer {
  background: var(--white); color: var(--gray);
  padding: 40px 0 120px; font-size: 13px;
  border-top: 1px solid var(--edge);
  position: relative;
}
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(var(--violet) 0 2.6px, transparent 2.6px 3.5px, var(--violet) 3.5px 4.6px, transparent 4.6px);
}
footer b { color: var(--navy); font-weight: 700; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .meta { line-height: 1.95; }
footer a { color: var(--navy); }

/* ------------------------------------------------------------------ 浮层 */
.overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 40, .66);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.overlay.open { display: flex; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.lightbox-panel {
  position: relative; background: #fff; border-radius: 16px;
  max-width: min(1180px, 96vw); max-height: 92vh; overflow: auto;
  box-shadow: var(--sh-3); padding: clamp(16px, 2.5vw, 26px); border-top: 5px solid var(--violet);
}
.lightbox-panel img { margin: 0 auto; max-height: 66vh; object-fit: contain; }
.lb-cap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge); }
.lb-cap .k { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--navy); }
.lb-cap .c { font-size: 14.5px; margin-top: 6px; }
.lb-cap .s { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.lb-cap .u { font-size: 13px; color: var(--gray); margin-top: 8px; line-height: 1.7; }

.x {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--edge); background: #fff; color: var(--gray);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.x:hover { background: var(--card); color: var(--navy); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 58px;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .96); border-radius: 11px;
  display: grid; place-items: center; font-size: 19px; color: var(--gray);
}
.lb-nav:hover { color: var(--navy); background: #fff; }
.lb-prev { left: -58px; } .lb-next { right: -58px; }
@media (max-width: 1320px) { .lb-prev { left: 6px } .lb-next { right: 6px } }

.paper-panel { max-width: 720px; width: 96vw; }
.paper-panel .kicker { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.paper-panel h3 { margin: 10px 0 0; font-size: 23px; font-weight: 700; line-height: 1.45; }
.paper-panel .cite { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
.paper-panel .why {
  margin: 18px 0 0; padding: 15px 17px; background: var(--card);
  border: 1px solid #d6e4ff; border-radius: 12px; font-size: 14px; line-height: 1.8;
}
.paper-panel .doi { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.paper-panel .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--edge); background: #fff; color: var(--ink);
}
.btn:hover { background: var(--card-2); text-decoration: none; border-color: #b9c8e8; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }

/* ------------------------------------------------------------------ AI 抽屉 */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(6, 10, 40, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 150;
}
.drawer-scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(492px, 100vw);
  background: #fff; border-left: 1px solid var(--edge); box-shadow: var(--sh-3);
  transform: translateX(102%); transition: transform .32s var(--ease);
  z-index: 160; display: flex; flex-direction: column;
}
.drawer.on { transform: none; }

.drawer-head {
  flex: 0 0 auto; padding: 13px 16px 12px; color: var(--ink);
  background: #fff; border-bottom: 1px solid var(--edge);
  display: flex; align-items: center; gap: 10px; position: relative;
}
.drawer-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: linear-gradient(var(--violet) 0 1.8px, transparent 1.8px 2.4px, var(--violet) 2.4px 3px, transparent 3px);
}
.drawer-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--navy); }
.drawer-head .badge {
  font-size: 10.5px; font-weight: 800; color: var(--navy); background: var(--card);
  border: 1px solid #cfe0ff; border-radius: 5px; padding: 1px 7px; letter-spacing: .04em;
}
.drawer-head .sp { flex: 1; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--edge);
  background: #fff; color: var(--gray);
  display: grid; place-items: center; font-size: 14px;
}
.icon-btn:hover { background: var(--card); color: var(--navy); border-color: #cfe0ff; }

.drawer-scroll { flex: 1 1 auto; overflow: auto; padding: 16px; background: #fbfcff; }
.qa-intro { font-size: 13px; color: var(--gray); line-height: 1.8; }
.qa-intro p { margin: 0 0 10px; }
.qa-intro .rule {
  margin: 12px 0; padding: 12px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid #d6e4ff;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
}
.sugg { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sugg button {
  border: 1.5px solid #d6e4ff; background: #fff; border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; color: var(--navy); font-weight: 600;
}
.sugg button:hover { background: var(--card); border-color: #b9c8e8; }

.msg { margin-bottom: 16px; }
.msg .who {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 6px; font-weight: 700;
}
.msg .bubble { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.msg.user .bubble {
  background: var(--navy); color: #fff; border-radius: 13px 13px 4px 13px;
  padding: 10px 14px; display: inline-block; max-width: 92%;
}
.msg.bot .bubble {
  background: #fff; border: 1px solid var(--edge); border-left: 3px solid var(--violet);
  border-radius: 4px 13px 13px 13px; padding: 13px 15px; box-shadow: var(--sh-1);
}
.msg.bot .bubble p { margin: 0 0 9px; }
.msg.bot .bubble p:last-child { margin-bottom: 0; }
.msg.bot .bubble strong { color: var(--navy); }
.cite-chip {
  display: inline-block; margin: 0 2px; padding: 0 6px; border-radius: 5px;
  background: var(--card); color: var(--navy); font-size: 11.5px; font-weight: 800;
  cursor: pointer; border: 0; vertical-align: baseline;
}
.cite-chip:hover { background: #cfe0ff; }
.sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.source-btn {
  border: 1px solid #d6e4ff; background: var(--card-2); border-radius: 8px;
  padding: 5px 10px; font-size: 12px; color: var(--navy); font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.source-btn:hover { background: var(--card); border-color: #b9c8e8; }
.miss {
  border-left: 3px solid var(--red); background: var(--card-key);
  padding: 12px 14px; border-radius: 9px; font-size: 13px; color: #7f1512; line-height: 1.75;
}

.drawer-foot { flex: 0 0 auto; border-top: 1px solid var(--edge); padding: 12px 14px 14px; background: #fff; }
.ask-row { display: flex; gap: 8px; align-items: flex-end; }
.ask-row textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 132px;
  border: 1.5px solid var(--edge); border-radius: 11px; padding: 11px 13px;
  font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); background: #fbfcff;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.ask-row textarea:focus {
  outline: none; background: #fff; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 0, 152, .10);
}
.send {
  width: 46px; height: 46px; border-radius: 11px; border: 0;
  background: linear-gradient(135deg, var(--navy), var(--violet));
  color: #fff; font-size: 17px; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 152, .26);
}
.send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.foot-note { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11.5px; color: var(--faint); }
.foot-note a { color: var(--gray); text-decoration: underline; }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 60%, 100% { opacity: .22 } 30% { opacity: 1 } }

.hist-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 13px; }
.hist-item:last-child { border-bottom: 0; }
.hist-item .q { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-item time { color: var(--faint); font-size: 11.5px; font-family: var(--mono); }
.hist-item .del { border: 0; background: none; color: var(--faint); font-size: 13px; padding: 0 2px; }
.hist-item .del:hover { color: var(--red); }

.settings { font-size: 13px; }
.settings label { display: block; font-size: 12px; color: var(--gray); margin: 12px 0 6px; font-weight: 700; }
.settings input, .settings select {
  width: 100%; height: 40px; border: 1.5px solid var(--edge); border-radius: 10px;
  padding: 0 12px; font: inherit; font-size: 13px; background: #fbfcff;
}
.settings input:focus, .settings select:focus { outline: none; background: #fff; border-color: var(--navy); }
.settings .hint { font-size: 11.5px; color: var(--faint); margin-top: 7px; line-height: 1.6; }
.settings .row2 { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 动效与杂项 */
.flash { animation: flash 1.7s var(--ease); }
@keyframes flash {
  0% { background: #fff3bf; box-shadow: 0 0 0 10px #fff3bf; }
  100% { background: transparent; box-shadow: none; }
}

.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 94;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .96);
  color: var(--navy); box-shadow: var(--sh-1);
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); background: var(--card); }

@media (prefers-reduced-motion: reduce) { .fab { animation: none; } }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .nav { display: none; }
  .phase-head { gap: 14px; }
  .phase-no { width: 60px; height: 60px; font-size: 24px; border-radius: 13px; }
  .cats, .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .brand-text em { display: none; }
  .search { flex: 1 1 auto; }
  .ai-btn .lbl { display: none; }
  .ai-btn { padding: 0 13px; }
  .fab { right: 14px; bottom: 14px; height: 50px; padding: 0 16px; font-size: 14px; }
  .fab .tail { display: none; }
  .to-top { bottom: 76px; right: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tl-rail { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .tl-rail::before { display: none; }
  .tl-node {
    padding: 12px 0; border-top: 1px solid var(--edge);
    display: grid; grid-template-columns: 15px 1fr; gap: 0 12px;
  }
  .tl-dot { margin: 7px 0 0; }
  .tl-period, .tl-name, .tl-tag { grid-column: 2; }
  .figs.g2, .gaps, .cats, .arch { grid-template-columns: 1fr; }
  .point { grid-template-columns: 1fr; gap: 4px; padding: 13px 15px; }
  table.papers .t-phase, table.papers .t-journal { display: none; }
  .lb-nav { display: none; }
  .takeaway { flex-direction: column; gap: 4px; }
  footer { padding-bottom: 100px; }
}


