:root {
    --bg: #eef3f4;
    --surface: #ffffff;
    --surface-2: #f7fafb;
    --line: #d9e3e6;
    --text: #18252b;
    --muted: #6a7d86;
    --accent: #1f6f76;
    --accent-2: #2f8f97;
    --accent-soft: #e5f4f5;
    --danger: #b42318;
    --ok: #147a46;
    --warn: #9a6700;
    --shadow: 0 14px 36px rgba(24, 43, 52, 0.08);
    --radius: 14px;
    --sidebar: 248px;
    --font-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-display: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--text);
    background: var(--bg);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.error {
    color: var(--danger);
}

.ok {
    color: var(--ok);
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: #3d535c;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c8d5da;
    border-radius: 10px;
    padding: 11px 14px;
    background: #fff;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* 隐藏 number 上下箭头，避免权重等小数被步进 +1 */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(47, 143, 151, 0.16);
}

input::placeholder {
    color: #8fa3ab;
    font-weight: 400;
}

textarea {
    min-height: 280px;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.45;
    resize: vertical;
}

button.primary,
.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
}

button.secondary,
.btn.secondary {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #e7eef1;
    color: #284048;
}

button.info {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
}

button.danger {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #e0352b;
    color: #fff;
}

button.warn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #d97706;
    color: #fff;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.card.flat {
    box-shadow: none;
    background: var(--surface-2);
}
