* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 26%),
        linear-gradient(180deg, #f7f3ea 0%, #eef4f7 100%);
    color: #182028;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: #0f5f9a; text-decoration: none; }
pre, .mono { font-family: Consolas, "Courier New", monospace; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(24, 32, 40, 0.08);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand { color: #111827; font-size: 18px; font-weight: 800; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: #334155; font-size: 14px; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 28px; }
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}
.hero-copy, .hero-card, .panel, .info-card, .stats div, .code-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(24, 32, 40, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.hero-copy {
    padding: 28px;
}
.hero-copy h1 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.08;
    max-width: 11ch;
}
.hero-copy p, .section-head p, .info-card p, .panel p {
    color: #526072;
    line-height: 1.75;
}
.eyebrow {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3c4;
    color: #7c4a03;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.button, button {
    border: 0;
    border-radius: 7px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.button { display: inline-flex; align-items: center; justify-content: center; }
.primary, button { background: #c2541a; color: #fff; }
.secondary, .ghost {
    background: #edf4f7;
    color: #23404b;
}
.hero-card {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.metric {
    min-height: 120px;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid rgba(194, 84, 26, 0.12);
}
.metric span, .stats span, dt {
    display: block;
    color: #64748b;
    font-size: 13px;
}
.metric strong, .stats strong {
    display: block;
    margin-top: 8px;
    font-size: 32px;
}
.band { margin-top: 24px; }
.section-head { margin-bottom: 14px; }
.section-head h2, .panel h1, .panel h2, .info-card h3 {
    margin: 0 0 8px;
}
.code-panel, .panel, .info-card {
    padding: 22px;
}
.code-panel pre, .code-block {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #d7f9ff;
    background: #10212b;
    border-radius: 8px;
    padding: 16px;
    line-height: 1.7;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}
.info-card dl {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}
.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(24, 32, 40, 0.08);
}
.panel { padding: 22px; }
.narrow { max-width: 560px; margin: 40px auto; }
.split {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 18px;
}
.split-wide {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
}
.form {
    display: grid;
    gap: 14px;
}
.form label {
    display: grid;
    gap: 8px;
    color: #344256;
    font-weight: 700;
}
.form input, .form textarea, .form select {
    width: 100%;
    border: 1px solid #d7dee6;
    border-radius: 7px;
    padding: 11px 12px;
    background: #fff;
    color: #16202b;
    font: inherit;
}
.form textarea { resize: vertical; }
.check {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.check input {
    width: auto;
    margin: 0;
}
.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #b6e2c4;
    background: #edfdf2;
    color: #166534;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
.stats div {
    padding: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
th, td {
    padding: 11px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(24, 32, 40, 0.08);
}
th {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 860px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 18px;
    }
    .wrap {
        padding: 18px;
    }
    .hero, .split, .split-wide, .stats {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 30px;
        max-width: none;
    }
    .hero-card {
        grid-template-columns: repeat(2, 1fr);
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
