:root {
    color-scheme: dark;
    --bg: #101114;
    --ink: #f3efe6;
    --muted: #a39c90;
    --line: rgba(243, 239, 230, 0.12);
    --acg: #ff8a62;
    --real: #8eb7ff;
    --card: #181a1f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(255, 138, 98, 0.18), transparent 55%),
        radial-gradient(800px 480px at 100% 0%, rgba(142, 183, 255, 0.16), transparent 50%),
        var(--bg);
    font-family: Outfit, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 380;
}

a { color: inherit; text-decoration: none; }

.top, main, footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0 8px;
}

.brand {
    font-family: "Instrument Serif", "Songti SC", serif;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.top nav { display: flex; gap: 22px; color: var(--muted); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: end;
    padding: 54px 0 28px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--acg);
    letter-spacing: 0.16em;
    font-size: 13px;
}

h1 {
    margin: 0;
    font-family: "Instrument Serif", "Songti SC", serif;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.96;
}

h1 em { font-style: italic; color: #fff; }

.lede {
    max-width: 36rem;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 520;
}

.btn-acg { background: var(--acg); color: #2a120c; }
.btn-real { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin: 0;
}

.stats div {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.stats dt { color: var(--muted); font-size: 13px; }
.stats dd {
    margin: 4px 0 0;
    font-family: "Instrument Serif", serif;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.stats .date { font-size: 22px; }

.wall {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    padding-bottom: 18px;
}

.frame {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: #22252c;
}

.frame-real { min-height: 300px; margin-top: 48px; }

.frame img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.frame span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: grid;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(16, 17, 20, 0.72);
}

.frame small { color: var(--muted); letter-spacing: 0.14em; font-size: 11px; }
.frame strong { font-size: 18px; font-weight: 520; }

.api { padding: 42px 0 20px; }

.api-head h2 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: 40px;
    font-weight: 400;
}

.api-head p { margin: 8px 0 0; color: var(--muted); }
.api-head code, .call code { color: var(--ink); }

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.call {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(24, 26, 31, 0.86);
}

.call header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.call header b { color: var(--muted); font-weight: 520; }
.call h3 { margin: 0; font-size: 18px; font-weight: 520; }

.call button {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #101114;
    color: #efe7da;
    font: 13px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace;
    text-align: left;
    cursor: pointer;
    word-break: break-all;
}

.call button.is-copied { color: var(--acg); }

.call pre {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 10px;
    background: #101114;
    color: #d9d0c3;
    font: 12px/1.55 ui-monospace, Consolas, monospace;
    overflow: auto;
}

.hint { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.try { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.try a { color: var(--real); }

footer {
    display: flex;
    justify-content: space-between;
    padding: 22px 0 32px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero, .wall, .api-grid { grid-template-columns: 1fr; }
    .frame, .frame-real { min-height: 240px; margin-top: 0; }
    .top, main, footer { width: min(1120px, calc(100% - 28px)); }
    h1 { font-size: 46px; }
}
