:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --line: #dde3ea;
    --primary: #0f766e;
    --primary-dark: #0b5f59;
    --accent: #b45309;
    --soft: #e8f4f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.topbar nav a {
    color: #344054;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    align-items: stretch;
    padding: 42px;
    background: linear-gradient(120deg, #123b3a, #245d56);
    color: #ffffff;
    border-radius: 8px;
}

.hero h1 {
    margin: 8px 0 12px;
    font-size: 42px;
    line-height: 1.16;
    letter-spacing: 0;
}

.hero p {
    color: #e5f3f1;
    max-width: 640px;
}

.eyebrow {
    margin: 0;
    color: #bfe7e2;
    font-size: 13px;
    text-transform: uppercase;
}

.stats {
    display: grid;
    gap: 12px;
}

.stats div,
.metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 108px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.stats strong,
.metric strong {
    font-size: 30px;
}

.stats span,
.metric span,
.hint,
small {
    color: var(--muted);
}

.hero .stats span {
    color: #d7efec;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title h1,
.panel h1,
.panel h2 {
    margin: 0;
}

.page-title p {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

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

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

.panel,
.card,
.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 18px;
}

.narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.card h3 {
    margin-top: 0;
}

.card p,
.panel p {
    color: #475467;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

.button.small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.form {
    display: grid;
    gap: 14px;
}

.form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cfd7df;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 86px;
    resize: vertical;
}

.wide {
    grid-column: 1 / -1;
}

.check {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}

.check input,
.choice input {
    width: auto;
    min-height: auto;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #9bd2ca;
    background: var(--soft);
    border-radius: 6px;
    color: #14534d;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #475467;
    font-size: 13px;
    background: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.choice-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 8px;
}

.wide-inline {
    grid-template-columns: 140px 120px 1fr auto;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline div {
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.timeline span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.footer {
    padding: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 860px) {
    .topbar,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .two,
    .three,
    .four {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 28px;
    }

    .hero h1 {
        font-size: 30px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

