/* 功能：宣传页基础层——语雀式设计令牌 / 全局 / 导航 / 英雄区 / 产品窗口 / 按钮 / 数字带 */
/* 作者：Thorleying */
/* 时间：2026-06-12 01:55 */

/* ── 设计令牌：墨色主义 + 琥珀点缀（呼应应用本体的墨色气质），版式延续语雀式清爽 ── */
:root {
  --brand: #1f2329;          /* 浓墨（品牌主色，按钮/强标题） */
  --brand-hover: #383e46;    /* 悬停提亮 */
  --brand-bg: rgba(31, 35, 41, 0.05);
  --brand-bg-strong: rgba(31, 35, 41, 0.09);
  --accent: #d97a34;         /* 琥珀（小面积强调：进度/勾选/数字/标签） */
  --accent-deep: #c2651f;
  --accent-bg: rgba(217, 122, 52, 0.1);
  --accent-bg-strong: rgba(217, 122, 52, 0.18);
  --text: #262626;           /* 主文字 */
  --text-2: #585a5a;         /* 次级文字 */
  --text-3: #8c8c8c;         /* 弱文字 */
  --border: #e7e9e8;         /* 分隔边框 */
  --bg: #ffffff;
  --bg-soft: #fafafa;        /* 区块交替底 */
  --gold: #c79a3b;           /* AI 痕迹示意（金） */
  --mix: #c4502e;            /* 混合痕迹示意（赭红） */
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(31, 35, 41, 0.04), 0 6px 18px rgba(31, 35, 41, 0.06);
  --shadow-float: 0 12px 32px rgba(31, 35, 41, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: #fff; }

/* ── 顶部阅读进度（品牌绿细线）── */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 100; }
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ── 导航 ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  padding: 9px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
/* 品牌图标：与桌面应用同一枚 icon */
.brand-icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(31, 35, 41, 0.14); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  padding: 7px 18px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.nav-cta:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 35, 41, 0.24); }

/* ── 英雄区：居中主张 ── */
.hero {
  position: relative;
  padding: clamp(120px, 17vh, 180px) clamp(20px, 5vw, 56px) clamp(56px, 8vh, 90px);
  text-align: center;
  background:
    radial-gradient(60% 46% at 50% 0%, var(--accent-bg) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero-kicker {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-title i { font-style: normal; color: var(--accent); }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--text-2);
}
.hero-sub em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(transparent 64%, var(--accent-bg-strong) 64%);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 26px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  list-style: none;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: clamp(44px, 7vh, 70px);
}
.hero-badges li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* 入场动效：整段柔和上浮 */
.reveal-now { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease-out) forwards; }
.hero-kicker.reveal-now { animation-delay: 0.05s; }
.hero-title.reveal-now { animation-delay: 0.16s; }
.hero-sub.reveal-now { animation-delay: 0.28s; }
.hero-actions.reveal-now { animation-delay: 0.4s; }
.hero-badges.reveal-now { animation-delay: 0.5s; }
.mock.reveal-now { animation-delay: 0.62s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 12px 32px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(31, 35, 41, 0.24);
  transition: background 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.btn-primary small { font-size: 11.5px; font-weight: 400; opacity: 0.85; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 35, 41, 0.3); }
.btn-primary.big { padding: 15px 44px; border-radius: 12px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ── 产品窗口演示 ── */
.mock {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: left;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.mock-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #e4e6e5; }
.mock-chrome i:first-child { background: #f1968c; }
.mock-chrome b { flex: 1; text-align: center; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.mock-body { display: grid; grid-template-columns: 1fr 1px 1fr; min-height: 360px; }
.mock-src {
  position: relative;
  padding: 24px 22px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 2;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--bg-soft);
}
.mock-src .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: -0.18em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.mock-divider { background: var(--border); }
.mock-preview { padding: 28px 26px; }
.mock-preview .p-h { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.p-line { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.p-line b { color: var(--text); background: linear-gradient(transparent 62%, var(--accent-bg-strong) 62%); }

/* ── 数字带 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  width: min(1020px, 92%);
  margin: clamp(60px, 9vh, 100px) auto;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(3) strong, .stat:nth-child(4) strong { color: var(--accent-deep); }
.stat span { font-size: 13.5px; color: var(--text-3); }
