/* ===================================================================
   庚书 · App 介绍站
   占位示例样式。可自由修改配色、间距与排版。
   =================================================================== */

:root {
  --paper: #f8f5ee;      /* 纸色背景 */
  --paper-2: #f1ebdf;    /* 次级背景 */
  --ink: #221c16;        /* 主墨色文字 */
  --ink-soft: #443a2e;   /* 次级文字 */
  --muted: #7a7065;      /* 弱化文字 */
  --line: #e3dccd;       /* 分隔线 */
  --accent: #b6402a;     /* 主强调色（朱砂红） */
  --accent-dark: #98331f;
  --bronze: #8a5a2b;     /* 辅强调（古铜） */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(34, 28, 22, 0.10);
  --shadow-sm: 0 8px 22px rgba(34, 28, 22, 0.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.15rem; font-family: "Songti SC", "SimSun", serif;
}
.brand-name { letter-spacing: .02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; margin-block: 0; }
.nav-links a { color: var(--ink-soft); font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    padding: 8px 24px 18px; margin: 0; transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 70px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .06em;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin: 18px 0 18px; letter-spacing: -.01em; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: 34px; list-style: none; margin: 36px 0 0; padding: 0; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.2rem; color: var(--ink); }
.hero-meta span { font-size: .86rem; color: var(--muted); }

/* 手机模拟 */
.phone {
  width: 288px; margin: 0 auto; border-radius: 40px; padding: 14px;
  background: #221c16; box-shadow: var(--shadow); position: relative;
}
.phone-notch { width: 110px; height: 22px; background: #221c16; border-radius: 0 0 14px 14px; margin: 0 auto 12px; }
.phone-screen { background: var(--paper-2); border-radius: 30px; padding: 20px 16px; overflow: hidden; }
.app-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.app-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: serif; font-weight: 700; }
.app-title { font-weight: 700; font-size: .95rem; }
.app-hero-tile { background: var(--accent); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.tile-label { display: block; font-size: .72rem; opacity: .85; margin-bottom: 6px; letter-spacing: .04em; }
.tile-title { font-size: 1rem; line-height: 1.45; font-weight: 600; display: block; }
.app-cards { display: flex; flex-direction: column; gap: 10px; }
.app-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.app-card strong { font-size: .9rem; display: block; }
.card-sub { font-size: .78rem; color: var(--muted); }
.card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.card-dot.alt { background: var(--bronze); }

/* ---------- 数据条 ---------- */
.stats { padding: 20px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--paper-2); }
.stat strong { display: block; font-size: 1.9rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- 通用节 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 14px 0 12px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 34px 28px; border: 1px solid var(--line); }
.step-num { display: inline-block; font-size: 2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- 屏幕展示 ---------- */
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.screen-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.mock-list { display: flex; flex-direction: column; gap: 14px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.m-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.m-dot.alt { background: var(--bronze); }
.m-line { height: 10px; border-radius: 6px; background: var(--line); }
.w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; }
.mock-read { display: flex; flex-direction: column; gap: 14px; }
.m-badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: .8rem; font-weight: 700; }
.mock-chip { display: flex; flex-wrap: wrap; gap: 10px; }
.m-chip { padding: 8px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-size: .88rem; }
.screen-caption { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- 评价 ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 28px; margin: 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote p { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink-soft); }
.quote footer { display: flex; align-items: baseline; gap: 10px; }
.quote footer strong { font-size: .96rem; }
.quote footer span { color: var(--muted); font-size: .84rem; }

/* ---------- CTA ---------- */
.cta { padding: 0; }
.cta-inner {
  background: radial-gradient(120% 120% at 50% 0%, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 28px; padding: 64px 32px; text-align: center;
  margin: 40px auto; max-width: var(--maxw);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.cta-inner p { opacity: .9; margin: 0 0 28px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cfc6ba; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-name { font-size: 1.3rem; color: #fff; }
.footer-note { color: #9b9184; max-width: 30ch; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer-links a { display: block; padding: 5px 0; color: #b6ac9e; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8f8578; }

/* ---------- 应用市场 ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.market-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.market-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.market-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--accent); font-size: 1.4rem; font-weight: 700; font-family: "Songti SC", "SimSun", serif;
}
.market-card h3 { margin: 0; font-size: 1.18rem; }
.market-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.market-tag {
  align-self: flex-start; margin-top: 6px; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent);
  font-size: .8rem; font-weight: 600;
}

/* ---------- 下载 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.download-icon {
  width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent);
}
.download-icon svg { width: 28px; height: 28px; }
.download-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.download-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.download-arrow { margin-left: auto; font-size: .86rem; font-weight: 700; color: var(--accent); white-space: nowrap; }


@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .feature-grid, .screen-grid, .quotes, .steps, .market-grid, .download-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-grid, .screen-grid, .quotes, .steps, .stats-grid, .market-grid, .download-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .section { padding: 64px 0; }
}

/* ---------- 入场动画 ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
