:root {
    --bg: #f6f1e8;
    --panel: #fffdf8;
    --line: #dfd0b8;
    --text: #231c13;
    --muted: #74685a;
    --accent: #1f6f57;
    --accent-strong: #154d3c;
    --accent-soft: #dff0ea;
    --warning: #a6431d;
    --shadow: 0 18px 50px rgba(35, 28, 19, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 111, 87, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(166, 67, 29, 0.16), transparent 20%),
        linear-gradient(180deg, #f7f4ee 0%, #efe7d8 100%);
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 56px;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.hero h1,
.card h2,
.notice h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.hero-copy {
    max-width: 680px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
    border: 1px solid rgba(31, 111, 87, 0.16);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--warning);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.notice,
.card {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(223, 208, 184, 0.8);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.notice {
    padding: 24px;
    margin-bottom: 24px;
}

.card {
    padding: 26px;
}

.dashboard {
    display: grid;
    gap: 22px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.small-muted {
    color: var(--muted);
    font-size: 13px;
}

.stack-form,
.grid-form {
    display: grid;
    gap: 16px;
}

.grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form .wide,
.grid-form .form-actions {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 13px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(31, 111, 87, 0.12);
    transform: translateY(-1px);
}

button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent) 0%, #2b8668 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(31, 111, 87, 0.24);
}

.secondary-button {
    background: #f3ecdf;
    color: var(--accent-strong);
    border: 1px solid rgba(31, 111, 87, 0.18);
}

.ghost-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(35, 28, 19, 0.16);
}

.result-box,
.code-block {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: #1f1d18;
    color: #f6f1e8;
    min-height: 120px;
    overflow: auto;
    line-height: 1.55;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .hero,
    .section-head {
        flex-direction: column;
    }

    .hero-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }
}
