* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
}

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

.header h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.subtle {
    color: #6b7280;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav a,
.link-button {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.welcome {
    font-size: 14px;
    color: #111827;
}

.inline-form {
    display: inline;
}

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

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card.compact h2 {
    margin: 8px 0 0;
    font-size: 32px;
}

.card h2 {
    margin-top: 0;
}

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

.stack-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

input,
button,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

button {
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.notice.success {
    background: #dcfce7;
    color: #166534;
}

.notice.error {
    background: #fee2e2;
    color: #991b1b;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.metric-list {
    display: grid;
    gap: 12px;
}

.metric-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 8px;
}

.highlight {
    color: #dc2626;
    font-size: 24px;
}

.simple-list {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    vertical-align: top;
}

code {
    font-family: Consolas, monospace;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 720px) {
    .container {
        padding: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}
