/* Catppuccin Mocha - Minimal */
:root {
    --bg: #1e1e2e;
    --bg2: #181825;
    --card: #313244;
    --card-h: #45475a;
    --pri: #89b4fa;
    --pri2: #b4befe;
    --ok: #a6e3a1;
    --warn: #fab387;
    --err: #f38ba8;
    --t1: #cdd6f4;
    --t2: #a6adc8;
    --t3: #6c7086;
    --brd: #585b70;
    --r: 12px;
    --font: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --mono: 'Fira Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: var(--font); background: var(--bg); color: var(--t1); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--pri); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--r); font-size: 1rem; font-weight: 600;
    border: none; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--pri); color: var(--bg); }
.btn-primary:hover { background: var(--pri2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(137,180,250,.25); }
.btn-ghost { background: transparent; color: var(--t2); border: 1.5px solid var(--brd); }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri); }
.btn-xl { padding: 16px 36px; font-size: 1.1rem; border-radius: 14px; }

/* Nav */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 100;
    transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(30,30,46,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 12px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { color: var(--t1); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--t2); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--t1); }
.nav-btn { padding: 6px 16px; background: var(--pri); color: var(--bg) !important; border-radius: 8px; font-weight: 600; }
.nav-btn:hover { background: var(--pri2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--t1); border-radius: 2px; transition: .3s; }

/* Hero */
.hero {
    min-height: 90vh; display: flex; align-items: center; padding: 100px 0 60px;
}
.hero-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: .8rem;
    background: rgba(137,180,250,.08); border: 1px solid rgba(137,180,250,.15); color: var(--pri);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--t1), var(--pri));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: var(--t2); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; justify-content: center; gap: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.sec-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 40px; }

/* Author Story */
.story-card {
    max-width: 720px; margin: 0 auto; position: relative;
    background: var(--card); border: 1px solid var(--brd); border-radius: var(--r);
    padding: 40px 36px 32px;
}
.story-mark {
    position: absolute; top: -8px; left: 28px;
    font-size: 5rem; line-height: 1; color: var(--pri); opacity: .25; font-family: Georgia, serif;
}
.story-body p {
    font-size: .92rem; color: var(--t2); line-height: 1.85; margin-bottom: 14px;
}
.story-body p:last-child { margin-bottom: 0; }
.story-highlight {
    color: var(--t1) !important; font-weight: 600; font-style: italic;
    border-left: 3px solid var(--pri); padding-left: 14px; margin-top: 18px !important;
}
.story-footer {
    display: flex; align-items: center; gap: 12px;
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--brd);
}
.story-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pri), var(--pri2));
    color: var(--bg); font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.story-info { display: flex; flex-direction: column; }
.story-name { font-size: .9rem; font-weight: 600; color: var(--t1); }
.story-role { font-size: .75rem; color: var(--t3); }

/* Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Cards */
.card {
    background: var(--card); border: 1px solid var(--brd); border-radius: var(--r);
    padding: 28px 20px; text-align: center; transition: all .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--pri); box-shadow: 0 8px 28px rgba(137,180,250,.1); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { font-size: .85rem; color: var(--t2); line-height: 1.5; }

/* Model Cards */
.card-model { text-align: left; padding: 22px 18px; }
.model-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.model-tag { padding: 2px 8px; border-radius: 10px; font-size: .6rem; font-weight: 700; background: rgba(166,227,161,.12); color: var(--ok); }
.tag-pre { background: rgba(250,179,135,.12); color: var(--warn); }
.card-model h3 { font-size: .95rem; margin-bottom: 4px; }
.model-by { font-size: .75rem; color: var(--t3); }

/* Highlights */
.highlights { display: flex; justify-content: center; align-items: center; gap: 40px; }
.hl { text-align: center; }
.hl-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--pri); }
.hl-label { font-size: .85rem; color: var(--t2); }
.hl-sep { width: 1px; height: 40px; background: var(--brd); }

/* Steps */
.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.step { text-align: center; padding: 0 24px; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--pri); color: var(--bg);
    font-weight: 700; font-size: 1rem; margin-bottom: 8px;
}
.step span:last-child { display: block; font-size: .9rem; color: var(--t2); }
.step-line { width: 60px; height: 2px; background: linear-gradient(90deg, var(--pri), var(--pri2)); margin-bottom: 16px; }

/* Code Block */
.code-block {
    max-width: 520px; margin: 0 auto; border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--brd); background: var(--card);
}
.code-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; background: var(--bg2); border-bottom: 1px solid var(--brd);
}
.code-file { font-size: .8rem; color: var(--t3); font-family: var(--mono); }
.code-copy {
    background: none; border: 1px solid var(--brd); color: var(--t2); padding: 3px 10px;
    border-radius: 6px; font-size: .75rem; cursor: pointer; transition: all .2s;
}
.code-copy:hover { border-color: var(--pri); color: var(--pri); }
.code-copy.ok { border-color: var(--ok); color: var(--ok); }
.code-body {
    padding: 16px; margin: 0; font-family: var(--mono); font-size: .85rem;
    line-height: 1.6; color: var(--t1); overflow-x: auto; white-space: pre;
}

/* Download */
#download { padding: 80px 0; }
.dl-meta { margin-top: 16px; font-size: .82rem; color: var(--t3); }

/* Tutorial */
.tutorial-desc { color: var(--t2); font-size: 1rem; margin-bottom: 28px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--brd); }
.footer p { font-size: .85rem; color: var(--t2); }
.footer-copy { font-size: .75rem; color: var(--t3); margin-top: 8px; }

/* Animations */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
[data-aos].show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.2rem; }
    .highlights { gap: 24px; }
    .hl-num { font-size: 1.6rem; }
}
@media (max-width: 600px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: rgba(30,30,46,.98); flex-direction: column; padding: 16px; gap: 0; border-bottom: 1px solid var(--brd); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; width: 100%; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .grid-4 { grid-template-columns: 1fr; }
    .highlights { flex-wrap: wrap; gap: 16px; }
    .hl-sep { display: none; }
    .steps { flex-direction: column; gap: 0; }
    .step-line { width: 2px; height: 24px; margin: 4px auto; }
}
