/* ===== 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-larder {
    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;
}

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

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

.lm-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;
}

.lm-brand {
    font-family: var(--wd-display);
    font-weight: 400;
    color: var(--wd-ink);
    text-decoration: none;
    font-size: 32px;
    line-height: 35.2px;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
}

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

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

.lm-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;
    position: relative;
    transition: color 0.15s ease;
}

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

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

/* ===== 横向分类滚动条 ===== */
.lm-rail {
    display: flex;
    gap: var(--wd-sm);
    overflow-x: auto;
    padding: 0 var(--wd-xl) var(--wd-md);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 1400px;
    margin: 0 auto;
}

.lm-rail::-webkit-scrollbar {
    display: none;
}

.lm-chip {
    flex: none;
    padding: var(--wd-sm) var(--wd-md);
    border: 1px solid var(--wd-hairline);
    border-radius: var(--wd-r-none);
    background: var(--wd-canvas);
    color: var(--wd-ink);
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: var(--wd-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.4px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lm-chip:hover {
    border-color: var(--wd-ink);
}

.lm-chip.is-current {
    background: var(--wd-primary);
    border-color: var(--wd-primary);
    color: var(--wd-on-primary);
}

/* ===== category-eyebrow ===== */
.lm-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;
}

/* ===== 广告位：靠发丝线分隔 ===== */
.lm-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);
}

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

.lm-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;
}

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

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

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

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

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

.lm-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);
}

.lm-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);
}

.lm-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;
}

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

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

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

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

.lm-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;
}

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

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

/* ===== 通栏头条与瀑布流墙 ===== */
.lm-lead {
    display: block;
    text-decoration: none;
    color: var(--wd-ink);
    margin-bottom: var(--wd-4xl);
    padding-bottom: var(--wd-3xl);
    border-bottom: 1px solid var(--wd-ink);
}

.lm-lead img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: var(--wd-r-none);
    background: var(--wd-canvas-soft);
}

.lm-lead-body {
    padding: var(--wd-lg) 0 0;
    max-width: 900px;
}

.lm-lead h1 {
    font-family: var(--wd-display);
    font-weight: 400;
    margin: var(--wd-sm) 0 var(--wd-md);
    font-size: 64px;
    line-height: 59.52px;
    letter-spacing: -0.5px;
}

.lm-lead:hover h1 {
    text-decoration: underline;
}

.lm-lead p {
    color: var(--wd-body);
    margin: 0;
    font-family: var(--wd-serif);
    font-size: 19px;
    line-height: 27.93px;
    letter-spacing: 0.108px;
}

.lm-masonry {
    column-count: 4;
    column-gap: var(--wd-2xl);
}

.lm-tile {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 var(--wd-3xl);
    background: var(--wd-canvas);
    border-radius: var(--wd-r-none);
    text-decoration: none;
    color: var(--wd-ink);
    vertical-align: top;
}

.lm-tile img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--wd-r-none);
    background: var(--wd-canvas-soft);
}

.lm-tile-body {
    padding: var(--wd-md) 0 0;
}

.lm-tile 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;
}

.lm-tile:hover h2 {
    text-decoration: underline;
}

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

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

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

.lm-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;
}

.lm-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;
}

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

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

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

.lm-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;
}

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

.lm-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;
}

.lm-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;
}

.lm-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;
}

.lm-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 ===== */
.lm-form {
    display: flex;
    flex-direction: column;
    gap: var(--wd-2xl);
}

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

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

.lm-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;
}

.lm-form input, .lm-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;
}

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

.lm-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;
}

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

/* ===== footer：纯黑通栏 ===== */
.lm-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;
}

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

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

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

/* ===== 合规页（privacy / terms） ===== */
.lm-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;
}

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

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

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

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

.lm-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;
}

.lm-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;
}

.lm-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;
}

.lm-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;
}

.lm-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;
}

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

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

.lm-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;
}

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

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

.lm-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: 1279px) {
    .lm-masonry {
        column-count: 3;
    }
}

@media (max-width: 1023px) {
    .lm-with-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .lm-masonry {
        column-count: 2;
    }
    .lm-page-head h1 {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.3px;
    }
    .lm-lead h1 {
        font-size: 48px;
        line-height: 50.4px;
        letter-spacing: -0.4px;
    }
}

@media (max-width: 767px) {
    .lm-form-row {
        grid-template-columns: 1fr;
    }
    .lm-page-head h1 {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: 0;
    }
    .lm-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;
    }
    .lm-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;
    }
    .lm-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-size: 15px;
        border-bottom: 1px solid var(--wd-hairline);
    }
    .lm-nav a:last-child {
        border-bottom: none;
    }
    .lm-bar input:checked ~ .lm-nav {
        display: flex;
    }
    .lm-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--wd-xl);
    }
    .lm-footer nav {
        flex-wrap: wrap;
        gap: var(--wd-lg);
    }
    .lm-masonry {
        column-count: 1;
    }
    .lm-lead h1 {
        font-size: 34px;
        line-height: 38px;
        letter-spacing: -0.3px;
    }
    .lm-wrap {
        padding: var(--wd-xl) var(--wd-lg) var(--wd-3xl);
    }
}

