:root {
    --bg: #f5f7f8;
    --card: #ffffff;
    --text: #1d2a33;
    --muted: #5e6b75;
    --line: #d8e0e5;
    --primary: #229ed9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-row,
.footer-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

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

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

.nav a[aria-current="page"] {
    color: var(--primary);
    font-weight: 700;
}

.hero,
.block {
    padding: 40px 0;
}

.label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 16px;
}

h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.lead,
.item p,
.note p,
.footer-row p {
    color: var(--muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

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

.item,
.note {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .header-row,
    .footer-row {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
