:root {
    color-scheme: light;
    --brand: #ff8904;
    --brand-dark: #d96800;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #fff8ef;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: #b45309;
}

a:hover {
    color: var(--brand-dark);
}

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

.site-header-inner,
.page,
.site-footer-inner {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.download-link {
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.download-link:hover {
    background: var(--brand-dark);
    color: #fff;
}

.page {
    padding: 28px 0 64px;
}

.breadcrumb {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: .92rem;
}

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

.article-card {
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(1.75rem, 5vw, 2.55rem);
    line-height: 1.3;
    letter-spacing: -.02em;
}

h2 {
    margin: 34px 0 12px;
    font-size: 1.35rem;
    line-height: 1.45;
}

p {
    margin: 0 0 18px;
}

ul,
ol {
    margin: 0 0 22px;
    padding-left: 1.35em;
}

li + li {
    margin-top: 8px;
}

.summary {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    background: var(--soft);
    font-size: 1.04rem;
}

.note {
    padding: 16px 18px;
    border: 1px solid #fde3c2;
    border-radius: 10px;
    background: #fffaf4;
}

.related {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.related h2 {
    margin-top: 0;
}

.related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}

.related li + li {
    margin-top: 0;
}

.related a {
    display: block;
    height: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
}

.related a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

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

.site-footer-inner {
    padding: 24px 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

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

    .download-link {
        padding: 8px 11px;
        font-size: .9rem;
    }

    .article-card {
        border-radius: 14px;
    }

    .related ul {
        grid-template-columns: 1fr;
    }
}

.search-phrases {
    margin-top: 34px;
    padding: 20px 22px;
    border-radius: 12px;
    background: #f8fafc;
}

.search-phrases h2 {
    margin-top: 0;
}

.search-phrases ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.search-phrases li {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: .92rem;
}
