/* ===== DESIGN.md tokens ================================================
   配色、圆角、字阶、间距均严格取自根目录 DESIGN.md，勿在本文件内新增
   规范外的色值、圆角或字号。三款专有字体（WiredDisplay / BreveText /
   Apercu）按 DESIGN.md 系统字体栈承担三个角色：
   - display: 高对比衬线
   - serif: 人文叙事衬线正文
   - sans: 无衬线导航与元信息
   ===================================================================== */
:root {
    /* colors */
    --wd-primary: #000000;
    --wd-on-primary: #ffffff;
    --wd-ink: #000000;
    --wd-ink-soft: #1a1a1a;
    --wd-body: #757575;
    --wd-hairline: #e0e0e0;
    --wd-canvas: #ffffff;
    --wd-canvas-soft: #f5f5f5;
    --wd-link: #057dbc;
    /* spacing — 4px 基数 */
    --wd-xxs: 2px;
    --wd-xs: 4px;
    --wd-sm: 8px;
    --wd-md: 12px;
    --wd-lg: 16px;
    --wd-xl: 20px;
    --wd-2xl: 24px;
    --wd-3xl: 32px;
    --wd-4xl: 48px;
    /* rounded */
    --wd-r-none: 0px;
    --wd-r-full: 9999px;
    /* type roles */
    --wd-display: "Times New Roman", Times, Georgia, serif;
    --wd-serif: Georgia, "Times New Roman", Times, serif;
    --wd-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== 页面底与基础排版 ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

.theme-hearth {
    margin: 0;
    background: var(--wd-canvas);
    color: var(--wd-ink);
    font-family: var(--wd-sans);
    font-size: 17px;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hl-main {
    min-height: 80vh;
}

/* ===== masthead-band / nav-bar ===== */
.hl-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--wd-canvas);
    border-bottom: 1px solid var(--wd-hairline);
}

.hl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--wd-md) var(--wd-xl);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hl-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font-family: var(--wd-display);
    font-weight: 400;
    color: var(--wd-ink);
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.hl-brand small {
    color: var(--wd-body);
    text-transform: uppercase;
    margin-top: 2px;
    font-family: var(--wd-sans);
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.5px;
}

.hl-brand:hover {
    opacity: 0.85;
}

.hl-nav {
    display: flex;
    align-items: center;
    gap: var(--wd-xl);
}

.hl-nav a {
    color: var(--wd-ink);
    text-decoration: none;
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: var(--wd-xs) 0;
    transition: color 0.15s ease;
}

.hl-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hl-menu-toggle, #hl-menu {
    display: none;
}

/* ===== category-eyebrow ===== */
.hl-kicker {
    color: var(--wd-ink);
    text-transform: uppercase;
    margin-bottom: var(--wd-sm);
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
}

/* ===== 广告位 ===== */
.hl-ad {
    margin: var(--wd-3xl) 0;
    padding: var(--wd-2xl) 0;
    border-top: 1px solid var(--wd-hairline);
    border-bottom: 1px solid var(--wd-hairline);
    text-align: center;
    background: var(--wd-canvas);
}

/* ===== 通用页头 ===== */
.hl-page-head {
    padding-bottom: var(--wd-lg);
    margin-bottom: var(--wd-3xl);
    border-bottom: 1px solid var(--wd-hairline);
}

.hl-page-head h1 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: var(--wd-sm) 0;
    overflow-wrap: break-word;
    font-size: 48px;
    line-height: 50.4px;
    letter-spacing: -0.4px;
}

.hl-page-head p {
    color: var(--wd-body);
    margin: 0;
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-page-head a {
    color: var(--wd-ink);
    font-weight: 700;
    text-decoration: underline;
}

/* ===== 列表 / 卡片 ===== */
.hl-wrap {
    max-width: 1120px;
    margin: auto;
    padding: var(--wd-4xl) var(--wd-xl);
}

.hl-with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--wd-4xl);
}

.hl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--wd-3xl) var(--wd-2xl);
}

.hl-card {
    display: flex;
    flex-direction: column;
    background: var(--wd-canvas);
    color: var(--wd-ink);
    border-radius: var(--wd-r-none);
    text-decoration: none;
    padding: 0 0 var(--wd-md);
}

.hl-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    margin-bottom: var(--wd-md);
    border-radius: var(--wd-r-none);
    background: var(--wd-canvas-soft);
}

.hl-card h2 {
    font-family: var(--wd-sans);
    font-weight: 700;
    margin: 0 0 var(--wd-sm);
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.28px;
}

.hl-card:hover h2 {
    text-decoration: underline;
}

.hl-card p {
    color: var(--wd-body);
    margin: 0;
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-card-plain {
    padding: var(--wd-lg);
    border: 1px solid var(--wd-hairline);
    transition: border-color 0.15s ease;
}

.hl-card-plain:hover {
    border-color: var(--wd-ink);
}

.hl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--wd-4xl) 0;
    color: var(--wd-body);
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-pager {
    margin-top: var(--wd-3xl);
    padding-top: var(--wd-2xl);
    border-top: 1px solid var(--wd-hairline);
}

.hl-pager nav {
    display: flex;
    justify-content: center;
    gap: var(--wd-sm);
}

/* ===== 骨架：左右交替之字形条目长流 ===== */
.hl-stream {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hl-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--wd-3xl);
    align-items: center;
    padding: var(--wd-4xl) 0;
    border-bottom: 1px solid var(--wd-hairline);
    text-decoration: none;
    color: var(--wd-ink);
}

.hl-stream > .hl-entry:first-child {
    padding-top: 0;
}

.hl-entry.is-flipped .hl-entry-media {
    order: 2;
}

.hl-entry-media {
    position: relative;
}

.hl-entry-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: var(--wd-r-none);
    background: var(--wd-canvas-soft);
    transition: opacity 0.2s ease;
}

.hl-entry:hover .hl-entry-media img {
    opacity: 0.92;
}

/* 条目编号 */
.hl-no {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--wd-primary);
    color: var(--wd-on-primary);
    padding: var(--wd-xs) var(--wd-sm);
    border-radius: var(--wd-r-none);
    font-family: var(--wd-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-entry-copy h2 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: 0 0 var(--wd-md);
    font-size: 32px;
    line-height: 35.2px;
    letter-spacing: -0.3px;
}

.hl-entry:hover .hl-entry-copy h2 {
    text-decoration: underline;
}

.hl-entry-copy p {
    color: var(--wd-body);
    margin: 0 0 var(--wd-lg);
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-more {
    color: var(--wd-ink);
    text-transform: uppercase;
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.hl-entry:hover .hl-more {
    border-bottom-color: var(--wd-ink);
}

/* ===== 侧栏 ===== */
.hl-side {
    display: flex;
    flex-direction: column;
    gap: var(--wd-3xl);
    min-width: 0;
}

.hl-side-box {
    display: flex;
    flex-direction: column;
    background: var(--wd-canvas);
    border-radius: var(--wd-r-none);
}

.hl-side-box h3 {
    margin: 0 0 var(--wd-sm);
    padding-bottom: var(--wd-sm);
    border-bottom: 1px solid var(--wd-ink);
    text-transform: uppercase;
    color: var(--wd-ink);
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-side-box a {
    display: block;
    color: var(--wd-ink);
    text-decoration: none;
    padding: var(--wd-lg) 0;
    border-bottom: 1px solid var(--wd-hairline);
    font-family: var(--wd-sans);
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.144px;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.hl-side-box a:hover {
    text-decoration: underline;
    background: var(--wd-canvas-soft);
    padding-left: var(--wd-xs);
}

/* ===== 长文型页面（about / contact） ===== */
.hl-prose-wrap {
    max-width: 760px;
    margin: auto;
}

.hl-panel {
    background: var(--wd-canvas);
    border-radius: var(--wd-r-none);
}

.hl-panel h2 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: var(--wd-3xl) 0 var(--wd-md);
    font-size: 26px;
    line-height: 28.08px;
}

.hl-panel h2:first-child {
    margin-top: 0;
}

.hl-panel p {
    color: var(--wd-ink);
    margin: 0 0 var(--wd-lg);
    font-family: var(--wd-serif);
    font-size: 19px;
    line-height: 27.93px;
    letter-spacing: 0.108px;
}

.hl-source-list {
    list-style: none;
    padding: 0;
    margin: var(--wd-lg) 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0;
}

.hl-source-list li {
    padding: var(--wd-md) 0;
    border-bottom: 1px solid var(--wd-hairline);
    color: var(--wd-body);
    font-family: var(--wd-sans);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-flash {
    padding: var(--wd-md) var(--wd-lg);
    margin-bottom: var(--wd-2xl);
    border: 1px solid var(--wd-ink);
    border-radius: var(--wd-r-none);
    color: var(--wd-ink);
    font-family: var(--wd-sans);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.4px;
}

/* ===== 表单：text-input + button-primary ===== */
.hl-form {
    display: flex;
    flex-direction: column;
    gap: var(--wd-2xl);
}

.hl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wd-2xl);
}

.hl-form label {
    display: flex;
    flex-direction: column;
    gap: var(--wd-sm);
}

.hl-form span {
    color: var(--wd-ink);
    text-transform: uppercase;
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-form input, .hl-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--wd-canvas);
    color: var(--wd-ink);
    border: 1px solid var(--wd-ink);
    border-radius: var(--wd-r-none);
    padding: var(--wd-md) var(--wd-lg);
    font-family: var(--wd-sans);
    font-size: 17px;
    line-height: 20px;
}

.hl-form input:focus, .hl-form textarea:focus {
    outline: 2px solid var(--wd-ink);
    outline-offset: 1px;
}

.hl-form button {
    align-self: flex-start;
    background: var(--wd-primary);
    color: var(--wd-on-primary);
    border: none;
    border-radius: var(--wd-r-none);
    padding: var(--wd-md) var(--wd-xl);
    cursor: pointer;
    font-family: var(--wd-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.3px;
    min-height: 44px;
    transition: opacity 0.15s ease;
}

.hl-form button:hover {
    opacity: 0.88;
}

/* ===== footer：纯黑通栏 ===== */
.hl-footer {
    background: var(--wd-primary);
    color: var(--wd-on-primary);
    padding: var(--wd-4xl) var(--wd-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wd-2xl);
    font-family: var(--wd-sans);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-footer nav {
    display: flex;
    gap: var(--wd-2xl);
}

.hl-footer a {
    color: var(--wd-on-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.hl-footer a:hover {
    text-decoration: underline;
}

/* ===== 合规页（privacy / terms） ===== */
.hl-breadcrumb {
    color: var(--wd-body);
    margin-bottom: var(--wd-2xl);
    font-family: var(--wd-sans);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.4px;
}

.hl-breadcrumb a {
    color: var(--wd-body);
    text-decoration: none;
    display: inline-block;
    padding: var(--wd-sm) 0;
}

.hl-breadcrumb a:hover {
    color: var(--wd-ink);
    text-decoration: underline;
}

.hl-breadcrumb .is-current {
    color: var(--wd-ink);
}

.hl-legal {
    max-width: 760px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hl-legal h1 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: 0 0 var(--wd-2xl);
    padding-bottom: var(--wd-lg);
    border-bottom: 1px solid var(--wd-ink);
    font-size: 48px;
    line-height: 50.4px;
    letter-spacing: -0.4px;
}

.hl-legal h2 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: var(--wd-4xl) 0 var(--wd-lg);
    font-size: 26px;
    line-height: 28.08px;
}

.hl-legal h3 {
    font-family: var(--wd-sans);
    font-weight: 700;
    margin: var(--wd-3xl) 0 var(--wd-md);
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.28px;
}

.hl-legal h4 {
    font-family: var(--wd-sans);
    font-weight: 700;
    margin: var(--wd-2xl) 0 var(--wd-sm);
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.144px;
}

.hl-legal p {
    color: var(--wd-ink);
    margin: var(--wd-lg) 0;
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-legal p.is-strong {
    font-weight: 700;
}

.hl-legal a {
    color: var(--wd-link);
    text-decoration: underline;
}

.hl-legal ul {
    margin: var(--wd-lg) 0;
    padding-left: var(--wd-xl);
    font-family: var(--wd-serif);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.09px;
}

.hl-legal li {
    margin: var(--wd-sm) 0;
}

.hl-legal-updated {
    margin-top: var(--wd-4xl);
    padding-top: var(--wd-2xl);
    border-top: 1px solid var(--wd-hairline);
}

.hl-legal-updated p {
    color: var(--wd-body);
    font-family: var(--wd-sans);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.4px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1023px) {
    .hl-with-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .hl-entry {
        grid-template-columns: 1fr;
        gap: var(--wd-lg);
    }
    .hl-entry.is-flipped .hl-entry-media {
        order: 0;
    }
    .hl-entry-copy h2 {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: 0;
    }
    .hl-page-head h1 {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.3px;
    }
}

@media (max-width: 767px) {
    .hl-form-row {
        grid-template-columns: 1fr;
    }
    .hl-page-head h1 {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: 0;
    }
    .hl-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        cursor: pointer;
        font-family: var(--wd-sans);
        font-size: 22px;
        line-height: 24px;
        color: var(--wd-ink);
        user-select: none;
    }
    .hl-nav {
        display: none;
        flex-direction: column;
        gap: var(--wd-xs);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--wd-canvas);
        border-bottom: 1px solid var(--wd-ink);
        padding: var(--wd-md) var(--wd-xl);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
        z-index: 50;
    }
    .hl-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-size: 15px;
        border-bottom: 1px solid var(--wd-hairline);
    }
    .hl-nav a:last-child {
        border-bottom: none;
    }
    .hl-bar input:checked ~ .hl-nav {
        display: flex;
    }
    .hl-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--wd-xl);
    }
    .hl-footer nav {
        flex-wrap: wrap;
        gap: var(--wd-lg);
    }
    .hl-entry {
        padding: var(--wd-2xl) 0;
    }
    .hl-entry-copy h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .hl-wrap {
        padding: var(--wd-xl) var(--wd-lg) var(--wd-3xl);
    }
}

