/* Chirography 营销门户 · 宣纸 + 朱砂 + 墨色主题 */
:root {
  --ink: #23201d;
  --ink-soft: #5c574f;
  --paper: #faf7f0;
  --paper-2: #f2ece0;
  --cinnabar: #8c2f24;
  --cinnabar-deep: #6e2119;
  --gold: #b08d4f;
  --line: #e7dfd0;
  --shadow: 0 12px 40px rgba(60, 40, 20, .10);
  --radius: 16px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--cinnabar); color: #fff; font-family: var(--serif);
  font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--cinnabar); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 20px; padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--cinnabar); color: #fff; box-shadow: 0 8px 22px rgba(140,47,36,.28); }
.btn-primary:hover { background: var(--cinnabar-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 110px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(176,141,79,.14), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(140,47,36,.08), transparent 60%),
    var(--paper);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker { color: var(--cinnabar); font-size: 14px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px; }
.hero-title { margin: 0 0 20px; font-family: var(--serif); line-height: 1.15; }
.hero-title .title-cn { display: block; font-size: clamp(48px, 7vw, 82px); letter-spacing: 10px; color: var(--ink); }
.hero-title .title-en { display: block; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: 6px; color: var(--gold); margin-top: 8px; text-transform: uppercase; }
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 26px; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badges .dot { color: var(--gold); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 300px; height: 600px; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e);
  box-shadow: 0 30px 70px rgba(0,0,0,.28), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--paper); padding: 22px 18px; display: flex; flex-direction: column; }
.screen-paper {
  position: relative; flex: 1; border: 1px solid var(--line); border-radius: 10px;
  background: #fffdf8; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.screen-grid {
  position: absolute; inset: 12%;
  background-image: linear-gradient(to right, rgba(140,47,36,.18) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(140,47,36,.18) 1px, transparent 1px),
                    linear-gradient(45deg, transparent 49.7%, rgba(140,47,36,.16) 50%, transparent 50.3%),
                    linear-gradient(-45deg, transparent 49.7%, rgba(140,47,36,.16) 50%, transparent 50.3%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
.screen-char { position: relative; font-family: var(--serif); font-size: 150px; color: var(--ink); z-index: 2; text-shadow: 0 2px 6px rgba(0,0,0,.06); }
.screen-caption { position: absolute; bottom: 14px; font-size: 12px; color: var(--cinnabar); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 12px; z-index: 3; }
.screen-toolbar { display: flex; gap: 10px; justify-content: center; padding-top: 16px; }
.tool-dot { width: 26px; height: 26px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); }
.tool-dot.active { background: var(--cinnabar); border-color: var(--cinnabar); }
.floating-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
.card-stroke { top: 90px; left: -20px; }
.card-ink { bottom: 90px; right: -20px; }
.fc-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--cinnabar); }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--paper-2); clip-path: ellipse(75% 100% at 50% 100%); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow { display: inline-block; color: var(--cinnabar); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; 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: 28px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.feature-card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.feature-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Styles row */
.style-row { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.style-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.style-glyph {
  width: 96px; height: 96px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 52px; color: var(--ink);
  box-shadow: var(--shadow);
}
.style-glyph.xing { font-style: italic; }
.style-glyph.li { font-weight: 700; letter-spacing: -2px; }
.style-glyph.cao { color: var(--cinnabar); transform: rotate(-4deg); }
.style-glyph.zhuan { border-radius: 50%; }
.style-item span { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.style-item small { color: var(--ink-soft); font-size: 12px; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse .col-visual { order: -1; }
.col-copy h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.col-copy > p { color: var(--ink-soft); font-size: 16px; }
.tick-list { list-style: none; padding: 0; margin: 24px 0 0; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 15px; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--cinnabar); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

.mock-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: none; }
.mock-row b { font-family: var(--serif); font-size: 16px; }
.mock-row small { color: var(--ink-soft); margin-left: auto; font-size: 12px; }
.mock-tag { font-size: 11px; padding: 3px 9px; border-radius: 6px; background: rgba(140,47,36,.1); color: var(--cinnabar); }
.mock-tag.alt { background: rgba(176,141,79,.16); color: #8a6d33; }
.mock-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mock-art { aspect-ratio: 3/4; border-radius: 12px; background: #fffdf8; border: 8px solid var(--paper-2); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 74px; color: var(--ink); }
.mock-art.a2 { color: var(--cinnabar); }

/* Download */
.download { padding: 84px 0; text-align: center; background: linear-gradient(160deg, var(--cinnabar-deep), var(--cinnabar)); color: #fff; }
.seal-big { display: inline-flex; width: 64px; height: 64px; border-radius: 12px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.5); align-items: center; justify-content: center; font-family: var(--serif); font-size: 38px; margin-bottom: 20px; }
.download h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.download p { opacity: .9; margin: 0 0 28px; }
.download-actions { display: flex; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; padding: 12px 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); }
.store-btn span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.store-btn small { font-size: 10px; opacity: .8; }
.store-btn b { font-size: 18px; }
.download-note { margin-top: 18px !important; font-size: 13px; opacity: .75; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq-list summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--cinnabar); font-size: 20px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--ink-soft); margin: 0 0 16px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9bf; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand b { color: #fff; font-family: var(--serif); font-size: 18px; }
.footer-brand small { display: block; font-size: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .col-visual { order: 0; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .style-row { gap: 18px; }
  .style-glyph { width: 72px; height: 72px; font-size: 40px; }
  .card-stroke { left: -4px; }
  .card-ink { right: -4px; }
}
