/* =========================================================================
   AI 视频工坊 · 官网页面样式
   pages.css —— 首页 / 功能 / 下载 / 文档 / 定价 / 关于 的分区布局
   ========================================================================= */

/* ============================================================ A. 首页 Hero */
.hero {
  position: relative;
  padding: clamp(58px, 7vw, 96px) 0 clamp(56px, 6vw, 88px);
}

.hero-grid {
  display: grid;
  /* 文案列略宽，保证"H1 第二行"整句不折行 */
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

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

.hero h1 {
  margin: 22px 0 0;
  /* 上限 46px：保证「变成能直接发的视频片段」11 个字能在文案列里排成一行 */
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(15.6px, 1.45vw, 17.6px);
  color: var(--text-dim);
  line-height: 1.8;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 13.4px;
  color: var(--text-mute);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta .ico {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.hero-stats {
  margin-top: 34px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat b {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-stat span {
  display: block;
  font-size: 12.8px;
  color: var(--text-mute);
}

/* 视觉区 */
.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-visual .app-mock {
  position: relative;
  z-index: 2;
}

.mock-glow {
  position: absolute;
  inset: 8% -6% -10% 6%;
  background: radial-gradient(50% 50% at 55% 45%, rgba(124, 92, 255, 0.42), transparent 70%),
    radial-gradient(46% 46% at 26% 76%, rgba(34, 211, 238, 0.28), transparent 72%);
  filter: blur(34px);
  z-index: 1;
}

/* ============================================================ B. 应用界面模拟（纯 CSS 截图） */
.app-mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #0e111c, #0a0c14);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  font-size: 12px;
}

.mock-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock-dots i:first-child {
  background: rgba(255, 107, 129, 0.65);
}
.mock-dots i:nth-child(2) {
  background: rgba(251, 191, 76, 0.6);
}
.mock-dots i:last-child {
  background: rgba(53, 214, 164, 0.6);
}

.mock-title {
  font-size: 11.6px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.mock-bar-right {
  margin-left: auto;
  font-size: 10.6px;
  color: var(--text-mute);
  font-family: var(--mono);
}

.mock-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 320px;
}

.mock-side {
  padding: 14px 12px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.014);
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 14px;
}

.mock-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
}

.mock-logo b {
  font-size: 12.4px;
  font-weight: 600;
}

.mock-group {
  padding: 12px 8px 6px;
  font-size: 9.8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 12.2px;
}

.mock-nav-item i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.4px solid currentColor;
  opacity: 0.75;
}

.mock-nav-item.active {
  background: rgba(124, 92, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.36);
}

.mock-count {
  margin-left: auto;
  font-size: 10.4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: var(--mono);
}

.mock-main {
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.mock-head b {
  font-size: 14px;
}

.mock-head span {
  display: block;
  margin-top: 3px;
  font-size: 11.4px;
  color: var(--text-mute);
}

.mock-toolbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.mock-chip {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
  font-size: 10.8px;
}

.mock-chip--accent {
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.18);
  color: #ded4ff;
}

.mock-shots {
  display: grid;
  gap: 8px;
}

.mock-shot {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.028);
}

.mock-thumb {
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(34, 211, 238, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-shot-title {
  display: block;
  font-size: 11.6px;
  color: var(--text);
}

.mock-shot-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.2px;
  color: var(--text-mute);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-bar-track {
  display: block;
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.mock-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.mock-shot--done .mock-bar-fill {
  animation: none;
}

.mock-shot--run .mock-bar-fill {
  animation: mockFill 2.6s var(--ease) infinite;
}

@keyframes mockFill {
  0% {
    width: 12%;
  }
  70% {
    width: 88%;
  }
  100% {
    width: 94%;
  }
}

/* Hero 上的浮层卡片 */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(16, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 12.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatY 6s ease-in-out infinite;
}

.float-card .ico {
  width: 17px;
  height: 17px;
  color: var(--success);
}

.float-card--a {
  top: -16px;
  right: -14px;
}

.float-card--b {
  bottom: -18px;
  left: -18px;
  animation-delay: -3s;
}

.float-card--b .ico {
  color: var(--accent-2);
}

.float-card b {
  font-size: 12.4px;
  font-weight: 600;
}

.float-card small {
  display: block;
  font-size: 10.6px;
  color: var(--text-mute);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ============================================================ C. 三步流水线 */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.flow-step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-glow);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.95), rgba(34, 211, 238, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.flow-step h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.flow-step p {
  color: var(--text-dim);
  font-size: 14.6px;
}

.flow-tags {
  margin-top: 16px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.flow-arrow {
  position: absolute;
  top: 50%;
  right: -21px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--text-mute);
  z-index: 2;
}

/* ============================================================ D. 分栏区块 */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

/* 代码块是 pre 不换行，必须让栅格子项可以收缩，否则窄屏会被它撑破 */
.split > * {
  min-width: 0;
}

.code {
  max-width: 100%;
}

.split--reverse .split-visual {
  order: 2;
}

.split-copy h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  margin-bottom: 14px;
}

.split-copy p {
  color: var(--text-dim);
  font-size: 15.4px;
}

/* 通用表格 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.4px;
}

.tbl th,
.tbl td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.tbl thead th {
  font-size: 12.6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
}

.tbl tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tbl td:first-child {
  color: var(--text);
}

.tbl .tbl-dim {
  color: var(--text-dim);
}

.tbl-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

/* ============================================================ E. CTA 区块 */
.cta-band {
  position: relative;
  padding: clamp(38px, 5vw, 60px) clamp(26px, 4vw, 58px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 12% 0%, rgba(124, 92, 255, 0.3), transparent 58%),
    radial-gradient(110% 130% at 92% 100%, rgba(34, 211, 238, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(16, 19, 32, 0.92), rgba(11, 13, 20, 0.92));
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(24px, 3.2vw, 36px);
}

.cta-band p {
  margin-top: 14px;
  max-width: 620px;
  color: var(--text-dim);
}

.cta-band .row {
  margin-top: 28px;
}

.cta-note {
  margin-top: 18px;
  font-size: 13.2px;
  color: var(--text-mute);
}

/* ============================================================ F. 内页页头 */
.page-hero {
  padding: clamp(46px, 6vw, 78px) 0 clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(28px, 3.8vw, 46px);
  letter-spacing: -0.028em;
}

.page-hero .lead {
  margin-top: 18px;
  max-width: 680px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-mute);
}

.crumb a:hover {
  color: var(--text);
}

.crumb .ico {
  width: 14px;
  height: 14px;
}

/* ============================================================ G. 下载页 */
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 34px;
}

.dl-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 120% at 8% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.dl-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-card-top .card-icon {
  margin: 0;
}

.dl-filename {
  font-family: var(--mono);
  font-size: 12.6px;
  color: var(--text-dim);
  word-break: break-all;
}

.dl-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  font-size: 13.6px;
}

.dl-meta dt {
  color: var(--text-mute);
  font-size: 12.6px;
}

.dl-meta dd {
  margin: 2px 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.8px;
  word-break: break-all;
}

.side-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 14px;
  align-content: start;
}

.install-steps {
  counter-reset: inst;
  display: grid;
  gap: 14px;
}

.install-steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: inst;
  color: var(--text-dim);
  font-size: 14.6px;
}

.install-steps li::before {
  content: counter(inst);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #d9cfff;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.install-steps li b {
  color: var(--text);
  font-weight: 600;
}

.release-list {
  display: grid;
  gap: 12px;
}

.release-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.release-item b {
  font-family: var(--mono);
  font-size: 14px;
}

.release-item p {
  color: var(--text-dim);
  font-size: 14.2px;
}

.release-item .small {
  color: var(--text-mute);
}

/* ============================================================ H. 文档页 */
.docs-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 44px;
  padding: clamp(30px, 4vw, 50px) 0 80px;
  align-items: start;
}

.docs-aside {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - var(--header-h) - 44px);
  overflow-y: auto;
  padding-right: 4px;
}

.docs-search {
  position: relative;
}

.docs-search .ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-mute);
}

.docs-search input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(9, 11, 18, 0.72);
  font-size: 13.8px;
}

.docs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.docs-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-mute);
}

.docs-search button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.docs-search button .ico {
  position: static;
  transform: none;
  width: 14px;
  height: 14px;
}

.docs-toc {
  display: grid;
  gap: 3px;
}

.docs-toc .toc-group {
  padding: 12px 12px 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.docs-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.docs-toc a:hover {
  color: var(--text);
  background: var(--surface);
}

.docs-toc a.active {
  color: #d9cfff;
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.docs-nav-toggle {
  display: none;
}

.docs-article {
  min-width: 0;
}

.docs-article > section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.docs-article > section:last-child {
  border-bottom: 0;
}

.docs-article h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 16px;
}

.docs-article h3 {
  font-size: 17.6px;
  margin: 30px 0 12px;
}

.docs-article h4 {
  font-size: 15.4px;
  margin: 22px 0 10px;
  color: var(--text);
}

.docs-article p {
  color: var(--text-dim);
  font-size: 15.2px;
  margin-bottom: 14px;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 16px;
  display: grid;
  gap: 9px;
}

.docs-article ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15px;
}

.docs-article ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.docs-article ol {
  counter-reset: doc-li;
}

.docs-article ol li {
  position: relative;
  padding-left: 30px;
  counter-increment: doc-li;
  color: var(--text-dim);
  font-size: 15px;
}

.docs-article ol li::before {
  content: counter(doc-li) ".";
  position: absolute;
  left: 0;
  color: #b9a9ff;
  font-family: var(--mono);
  font-size: 13.6px;
}

.docs-article strong {
  color: var(--text);
  font-weight: 620;
}

.docs-article a:not(.btn) {
  color: #a99bff;
  border-bottom: 1px solid rgba(169, 155, 255, 0.35);
}

.docs-article a:not(.btn):hover {
  color: #cabfff;
  border-bottom-color: #cabfff;
}

.code {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(6, 7, 12, 0.86);
  font-family: var(--mono);
  font-size: 13.2px;
  line-height: 1.75;
  color: #cfd6ea;
  overflow-x: auto;
  white-space: pre;
}

.code .cm {
  color: var(--text-mute);
}

.code .k {
  color: #8fe8f7;
}

code:not(.code) {
  font-family: var(--mono);
  font-size: 13.2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbbfff;
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 14.4px;
  color: #d7d0f4;
}

.callout .ico {
  width: 19px;
  height: 19px;
  color: #b9a9ff;
  margin-top: 2px;
}

.callout--warn {
  border-color: rgba(251, 191, 76, 0.34);
  background: rgba(251, 191, 76, 0.1);
  color: #f4e2bd;
}

.callout--warn .ico {
  color: var(--warning);
}

.callout b {
  color: #fff;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 12.4px;
  color: var(--text);
}

.docs-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-mute);
}

/* ============================================================ I. 定价页 */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.price-card--featured {
  border-color: var(--accent-line);
  background: radial-gradient(120% 120% at 50% 0%, rgba(124, 92, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 22px -10px rgba(124, 92, 255, 0.95);
}

.price-card h3 {
  font-size: 19px;
}

.price-desc {
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 14.2px;
  min-height: 46px;
}

.price-amount {
  margin: 20px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount b {
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.price-unit {
  font-size: 13px;
  color: var(--text-mute);
}

.price-card .check-list {
  margin: 22px 0 26px;
}

.price-card .btn {
  margin-top: auto;
}

.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.2px;
}

.compare-tbl th,
.compare-tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare-tbl th:first-child,
.compare-tbl td:first-child {
  text-align: left;
  color: var(--text);
}

.compare-tbl thead th {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.compare-tbl tbody td {
  color: var(--text-dim);
}

.compare-tbl tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================ J. 关于页 */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16.4px;
  line-height: 1.8;
}

.quote .ico {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.4), transparent);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.timeline-item.done::before {
  background: var(--grad);
  border-color: transparent;
}

.timeline-item h4 {
  font-size: 16.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-item p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14.6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-card .ico {
  width: 22px;
  height: 22px;
  color: #b9a9ff;
}

.contact-card b {
  font-size: 15.6px;
}

.contact-card p {
  color: var(--text-dim);
  font-size: 14px;
  word-break: break-all;
}

.qr-box {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  min-height: 160px;
}

/* ============================================================ K. 404 */
.err-page {
  min-height: calc(100vh - var(--header-h) - 260px);
  display: grid;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.err-code {
  font-family: var(--mono);
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================ L. 响应式 */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
    margin-top: 12px;
  }
  /* 单列布局下光晕不再向外扩，避免在 620–1080px 区间产生横向溢出 */
  .mock-glow {
    inset: 6% 0 -8% 0;
  }
  .float-card--a {
    right: 6px;
    top: -14px;
  }
  .float-card--b {
    left: 6px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .docs-aside {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .docs-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 14px;
  }
  .docs-nav-toggle .ico {
    width: 16px;
    height: 16px;
  }
  .docs-toc {
    display: none;
  }
  html.docs-nav-open .docs-toc {
    display: grid;
  }
  .dl-hero {
    grid-template-columns: 1fr;
  }
  .price-grid,
  .value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .price-card--featured {
    order: -1;
  }
  .price-desc {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-visual {
    order: 0;
  }
  .release-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .mock-side {
    display: none;
  }
  .mock-body {
    grid-template-columns: 1fr;
  }
  .float-card--b {
    display: none;
  }
  /* 装饰性光晕不向外扩，避免窄屏产生多余的横向溢出 */
  .mock-glow {
    inset: 6% 0 -8% 0;
  }
  .hero-stats {
    gap: 20px;
  }
  .dl-card {
    padding: 22px 19px;
  }
  .dl-meta {
    grid-template-columns: 1fr;
  }
  .tbl th,
  .tbl td {
    padding: 11px 12px;
    font-size: 13.4px;
  }
  .compare-tbl th,
  .compare-tbl td {
    padding: 11px 9px;
    font-size: 13px;
  }
  .install-steps li {
    padding-left: 38px;
  }
}
