/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC","Microsoft YaHei",sans-serif;line-height:1.7;color:#1a1a2e;background:#fafafa;-webkit-font-smoothing:antialiased}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f1f5f9;padding:.15em .4em;border-radius:4px;font-size:.9em}
pre{background:#0f172a;color:#e2e8f0;padding:1rem;border-radius:8px;overflow-x:auto;line-height:1.6}
pre code{background:none;padding:0;font-size:.9em}
ul,ol{padding-left:1.2rem}
li{margin:.3rem 0}
.container{max-width:960px;margin:0 auto;padding:0 1.5rem}
h1,h2,h3{line-height:1.3;font-weight:700;color:#0f172a}
h1{font-size:clamp(2rem,5vw,3rem)}
h2{font-size:clamp(1.5rem,3vw,2rem);margin-top:3rem;border-bottom:1px solid #e2e8f0;padding-bottom:.5rem}
h3{font-size:1.2rem;margin-top:2rem}
p{margin:1rem 0}
.subtitle{color:#475569;font-size:1.1rem;margin-top:.5rem}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:.2s;border:none;text-decoration:none}
.btn-primary{background:#2563eb;color:#fff}
.btn-primary:hover{background:#1d4ed8;text-decoration:none}
.btn-secondary{background:#fff;color:#2563eb;border:2px solid #2563eb}
.btn-secondary:hover{background:#eff6ff;text-decoration:none}
.btn-block{width:100%}

/* ===== Badges ===== */
.badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.badge{display:inline-block;padding:.35rem .75rem;background:#f1f5f9;color:#475569;border-radius:999px;font-size:.8rem;font-weight:500}

/* ===== Hero ===== */
.hero{background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);padding:clamp(3rem,8vw,5rem) 0;text-align:center}
.hero-sm{padding:3rem 0;text-align:left}
.logo{display:inline-block;width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:800;font-size:1.5rem;line-height:64px;text-align:center;margin-bottom:1rem;box-shadow:0 8px 24px rgba(37,99,235,.3)}
.version{font-size:.5em;color:#2563eb;font-weight:700;margin-left:.5rem;vertical-align:super}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;margin-top:2rem}
.back-link{display:inline-flex;align-items:center;gap:.5rem;color:#475569;font-weight:500;margin-bottom:1rem}
.back-link:hover{color:#2563eb;text-decoration:none}

/* ===== Sections ===== */
.section{padding:4rem 0}
.download-section{background:#fff}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:2rem}
.card{background:#fafafa;border:1px solid #e2e8f0;border-radius:16px;padding:2rem;transition:.2s}
.card:hover{box-shadow:0 12px 32px rgba(15,23,42,.08);transform:translateY(-2px)}
.card-icon{font-size:3rem;margin-bottom:1rem}
.card h3{margin-top:0}
.meta{color:#64748b;font-size:.9rem;margin:.5rem 0 1rem}
.features{list-style:none;padding:0;margin:1rem 0}
.features li{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;color:#334155}
.features li::before{content:"✓";color:#22c55e;font-weight:bold}
.hint{font-size:.85rem;color:#64748b;margin-top:.75rem}
.purchase-cta{text-align:center;margin-top:3rem;padding-top:2rem;border-top:1px solid #e2e8f0}
.purchase-cta a{font-weight:600;font-size:1.1rem}

/* ===== Tutorial ===== */
.tutorial-content{max-width:800px}
.tutorial-content h2{scroll-margin-top:100px}
.tutorial-content pre{margin:1.5rem 0}
.tutorial-content .faq{margin:1.5rem 0}
.tutorial-content .faq dt{font-weight:600;color:#0f172a;margin-top:1.5rem}
.tutorial-content .faq dd{margin:.5rem 0 0;padding-left:1rem;border-left:3px solid #2563eb;color:#334155}

/* ===== Footer ===== */
.footer{background:#0f172a;color:#94a3b8;padding:2rem 0;text-align:center;font-size:.9rem}
.footer a{color:#94a3b8}
.footer a:hover{color:#fff}

/* ===== Responsive ===== */
@media (max-width:600px){
  .hero-actions{flex-direction:column;align-items:center}
  .btn{width:100%}
  .cards{grid-template-columns:1fr}
}
