:root {
    color-scheme: light;
    font-family: system-ui, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2a37;
    background: #f7faff;
    font-synthesis: none;
    --bg-page: #f7faff;
    --bg-soft: #eef6ff;
    --bg-card: #ffffff;
    --text-primary: #1f2a37;
    --text-secondary: #6b7280;
    --border-soft: #dceaf8;
    --brand-soft: #eef6ff;
    --brand-primary: #58a8ff;
    --brand-strong: #3d8bff;
    --surface-muted: #f5f7fa;
    --status-success: #267252;
    --status-error: #a4403a;
    --status-warning: #8a6018;
    --status-processing: #3f6191;
    --page: var(--bg-page);
    --surface: var(--bg-card);
    --surface-soft: #f5faff;
    --ink: var(--text-primary);
    --muted: var(--text-secondary);
    --muted-light: #8492a4;
    --line: var(--border-soft);
    --line-strong: #c9dff4;
    --primary: var(--brand-strong);
    --primary-hover: #2f76e8;
    --accent: var(--brand-primary);
    --focus: rgba(88, 168, 255, 0.15);
    --success: var(--status-success);
    --success-bg: #f0f8f4;
    --success-line: #bcdccb;
    --info: var(--status-processing);
    --info-bg: #f1f5fa;
    --info-line: #c8d5e7;
    --warning: var(--status-warning);
    --warning-bg: #fff8e8;
    --warning-line: #e8d29a;
    --error: var(--status-error);
    --error-bg: #fdf3f2;
    --error-line: #e8c4c1;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--page);
}

button,
input,
textarea,
summary {
    font: inherit;
    letter-spacing: 0;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.site-header {
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.96);
}

.site-header-inner {
    display: flex;
    width: min(calc(100% - 32px), 960px);
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.header-home-link {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: #5e6f82;
    font-size: 14px;
    font-weight: 560;
    text-decoration: none;
    transition: color 180ms ease;
}

.header-home-link:hover {
    color: var(--brand-strong);
}

.header-home-link span {
    font-size: 17px;
    line-height: 1;
}

.site-footer {
    color: #8492a4;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.site-header a:focus-visible,
.site-header summary:focus-visible {
    border-radius: 4px;
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .site-header-inner {
        min-height: 60px;
    }

    .site-brand {
        font-size: 16px;
        gap: 8px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .header-home-link {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
