/* ==========================================================================
   Quiet v2 — 轻快的白色简约主题
   改版要点：保留「主稿 + 编号索引 + 窄栏正文 + 粘性信息栏」骨架，
   把成熟杂志风调轻：跳跃字号、珊瑚到玫红的渐变强调色、圆角卡片、
   胶囊标签、轻投影、悬停与滚动微动效。无外部字体/CDN/构建步骤。
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ink: #111114;
    --ink-2: #4f4f5a;
    --ink-3: #8d8d99;
    --line: #ecedf1;
    --paper: #fbfbfa;
    --card: #ffffff;
    --tint: #f4f4f7;
    --accent: #ff5a3c;
    --accent-strong: #d9401f;
    /* 单一强调色：沿用旧变量名指代同一个纯色，避免任何渐变与撞色 */
    --grad: #ff5a3c;
    --grad-soft: #fff1ed;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", STSong, serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --shell: 1180px;
    --gutter: 40px;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 20, 0.04), 0 8px 24px -18px rgba(17, 17, 20, 0.22);
    --shadow-md: 0 2px 6px rgba(17, 17, 20, 0.05), 0 22px 44px -26px rgba(17, 17, 20, 0.32);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 0 0 12px 0;
    background: var(--ink);
    color: #fff;
    font-size: 0.8rem;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 251, 250, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(17, 17, 20, 0.06);
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.06rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.12);
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.835rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-2);
}

.nav a {
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: var(--tint);
    color: var(--ink);
}

.nav a.is-current {
    background: var(--ink);
    color: #fff;
}

.masthead-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.search input {
    width: 168px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.8rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
    color: var(--ink-3);
}

.search input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(255, 90, 60, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.10);
}

.search-toggle {
    display: none;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink-2);
    font-size: 0.74rem;
    font-weight: 600;
}

main.shell {
    padding-top: 64px;
    padding-bottom: 104px;
    min-height: 62vh;
}

/* --------------------------------------------------------------------------
   通用小字
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: var(--grad-soft);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad);
    flex: none;
    animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(255, 90, 60, 0); }
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--ink-3);
}

.meta a {
    padding-bottom: 1px;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.meta a:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
}

.meta-sep {
    color: #d8d8e0;
}

.empty {
    padding: 64px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   首页：主稿 + 右栏
   -------------------------------------------------------------------------- */

.lead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 56px;
    align-items: start;
    padding-bottom: 52px;
}

.lead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(17, 17, 20, 0.10), rgba(17, 17, 20, 0.02) 60%, transparent);
}

.lead-title {
    margin: 0 0 22px;
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.lead-title a {
    background-image: linear-gradient(transparent 88%, rgba(255, 90, 60, 0.32) 88%);
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.lead-title a:hover {
    background-size: 100% 100%;
}

.lead-dek {
    max-width: 44ch;
    margin: 0 0 24px;
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--ink-2);
}

.lead-rail {
    position: sticky;
    top: 104px;
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.rail-label {
    margin: 0 0 12px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.rail-list li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.rail-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--accent-strong);
}

.rail-count {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--ink-3);
}

.rail-note {
    margin: 0 0 18px;
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--ink-3);
}

.rail-rss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px -12px rgba(255, 90, 60, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rail-rss:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(255, 90, 60, 0.55);
}

/* --------------------------------------------------------------------------
   编号索引列表
   -------------------------------------------------------------------------- */

.ledger-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 38px 0 14px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.ledger {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 0 22px;
    align-items: start;
    padding: 24px 26px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.row-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--tint);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--ink-3);
    transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.row:hover .row-num {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(255, 90, 60, 0.55);
}

.row-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--tint);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.row-title {
    margin: 0 0 8px;
    font-size: clamp(1.24rem, 2.1vw, 1.62rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.row-title a {
    transition: color 0.2s ease;
}

.row-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 62ch;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.76;
    color: var(--ink-2);
}

.row-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 0.8rem;
    transition: background 0.24s ease, color 0.24s ease, transform 0.26s ease;
}

.row:hover .row-title a,
.row:hover .row-kicker {
    color: var(--accent-strong);
}

.row:hover .row-arrow {
    background: var(--grad);
    color: #fff;
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   首页：错落卡片网格（非等宽 6 列 + 纵向错位）
   -------------------------------------------------------------------------- */

.mosaic {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 22px;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* 4/2 与 2/4 交替，形成非等宽的错落节奏 */
.mosaic > .card:nth-child(4n + 1) {
    grid-column: span 4;
}

.mosaic > .card:nth-child(4n + 2) {
    grid-column: span 2;
    margin-top: 34px;
}

.mosaic > .card:nth-child(4n + 3) {
    grid-column: span 2;
}

.mosaic > .card:nth-child(4n + 4) {
    grid-column: span 4;
    margin-top: 34px;
}

.card-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--mono);
    font-size: 3.2rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
    /* 不支持文字的描边时退回极浅实色，保证可见 */
    color: #e9e9f0;
    pointer-events: none;
    transition: color 0.28s ease;
}

.card:hover .card-num {
    color: rgba(255, 90, 60, 0.35);
}

/* 空心细描边：字重降到 300，描边 1px 减到 0.6px，避免高倍屏发虚又保留轻盈感 */
@supports (-webkit-text-stroke: 1px currentColor) {
    .card-num {
        color: transparent;
        -webkit-text-stroke: 0.6px #d7d7e0;
    }

    .card:hover .card-num {
        color: transparent;
        -webkit-text-stroke-color: rgba(255, 90, 60, 0.55);
    }
}

.card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-right: 64px;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.card-kicker a {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink-2);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.card-kicker a:hover {
    background: var(--accent);
    color: #fff;
}

.card-title {
    margin: 0 0 10px;
    font-size: clamp(1.28rem, 2.1vw, 1.7rem);
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.mosaic > .card:nth-child(4n + 1) .card-title,
.mosaic > .card:nth-child(4n + 4) .card-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.24;
}

.card-title a {
    transition: color 0.2s ease;
}

.card:hover .card-title a {
    color: var(--accent-strong);
}

.card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 22px;
    font-size: 0.9rem;
    line-height: 1.78;
    color: var(--ink-2);
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    transition: color 0.2s ease, gap 0.2s ease;
}

.card:hover .card-more {
    gap: 12px;
    color: var(--accent-strong);
}

/* 年份分组 */
.year-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 52px 0 12px;
}

.year-head span {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.year-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* --------------------------------------------------------------------------
   归档 / 分类 / 搜索 页头
   -------------------------------------------------------------------------- */

.archive-head {
    padding-bottom: 26px;
}

.archive-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.archive-count {
    display: inline-block;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tint);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */

.single {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 52px;
    max-width: 960px;
}

.single-rail {
    position: sticky;
    top: 104px;
    align-self: start;
    font-size: 0.82rem;
    color: var(--ink-2);
}

.rail-item {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.rail-label {
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.single-title {
    margin: 0 0 36px;
    font-size: clamp(2.05rem, 4.6vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    word-break: break-word;
}

.article-body {
    font-size: 1.035rem;
    line-height: 1.9;
    color: #22222a;
    word-break: break-word;
}

.article-body > p {
    margin: 0 0 1.4em;
}

.article-body > p:first-of-type::first-letter {
    float: left;
    margin: 0.02em 0.1em 0 0;
    font-size: 3.5em;
    font-weight: 800;
    line-height: 0.82;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-body h2 {
    margin: 2.4em 0 0.85em;
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.42;
    letter-spacing: -0.015em;
}

.article-body h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--grad);
}

.article-body h3 {
    margin: 2em 0 0.6em;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.5;
}

.article-body h4 {
    margin: 1.8em 0 0.5em;
    font-size: 1rem;
    font-weight: 700;
}

.article-body a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: rgba(255, 90, 60, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.article-body figure {
    margin: 2em 0;
}

.article-body figcaption {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-3);
    text-align: center;
}

.article-body blockquote {
    position: relative;
    margin: 2em 0;
    padding: 22px 24px 22px 50px;
    border: 0;
    border-radius: 16px;
    background: var(--grad-soft);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.article-body blockquote::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 4px;
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body code {
    padding: 0.16em 0.42em;
    border-radius: 7px;
    background: var(--tint);
    font-family: var(--mono);
    font-size: 0.85em;
}

.article-body pre {
    margin: 2em 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 14px;
    background: #f6f6f9;
    border: 1px solid var(--line);
    font-size: 0.83rem;
    line-height: 1.7;
}

.article-body pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.3em;
}

.article-body li {
    margin: 0.4em 0;
}

.article-body li::marker {
    color: var(--accent);
}

.article-body hr {
    margin: 3em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.article-body table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.article-body th,
.article-body td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.article-body th {
    font-weight: 700;
    border-bottom-color: #dfe0e6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 52px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-tags a {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.article-tags a:hover {
    background: var(--grad);
    color: #fff;
    transform: translateY(-2px);
}

/* 上一篇 / 下一篇 */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
    margin: 52px 0 0;
}

.post-nav-item {
    display: block;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.post-nav-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.post-nav-item:hover .post-nav-title {
    color: var(--accent-strong);
}

.post-nav-item.next {
    text-align: right;
}

/* --------------------------------------------------------------------------
   评论
   -------------------------------------------------------------------------- */

.comments {
    max-width: 760px;
    margin-top: 68px;
}

.comments-title {
    margin: 0 0 18px;
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-body {
    margin-bottom: 10px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-author {
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-by-author .comment-author::after {
    content: "作者";
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--grad);
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: #fff;
    vertical-align: 2px;
}

.comment-date {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--ink-3);
}

.comment-content {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--ink-2);
}

.comment-content p {
    margin: 0 0 0.8em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions a {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--ink-3);
    transition: color 0.2s ease;
}

.comment-actions a:hover {
    color: var(--accent-strong);
}

.comment-children {
    margin-top: 10px;
    padding-left: 16px;
    border-left: 2px solid var(--line);
}

.comment-children > .comment-body:last-child {
    margin-bottom: 0;
}

.respond {
    margin-top: 40px;
    padding: 26px 26px 8px;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.respond-title {
    margin: 0 0 18px;
    font-size: 1.1rem;
    font-weight: 750;
}

.respond-cancel {
    margin: 0 0 8px;
    font-size: 0.78rem;
}

.respond-cancel a {
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}

.field {
    margin: 0 0 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--tint);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.94rem;
    line-height: 1.6;
    resize: vertical;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: rgba(255, 90, 60, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.10);
}

.form-note {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: var(--ink-3);
}

.form-note a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.form-submit {
    margin: 4px 0 18px;
}

.form-submit button {
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px -14px rgba(255, 61, 127, 0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.form-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(255, 61, 127, 0.9);
    filter: saturate(1.08);
}

.comments-closed {
    margin: 18px 0 0;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--tint);
    font-size: 0.85rem;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */

.page-navigator {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.74rem;
}

.page-navigator li a,
.page-navigator li span {
    display: block;
    min-width: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    text-align: center;
    color: var(--ink-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.page-navigator li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--accent-strong);
}

.page-navigator li.current a {
    background: var(--ink);
    color: #fff;
}

.comments .page-navigator {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   404 / 搜索页
   -------------------------------------------------------------------------- */

.search-page {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 32px 0 22px;
}

.search-page input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-family: var(--sans);
    font-size: 0.94rem;
    color: var(--ink);
}

.search-page input:focus {
    outline: none;
    border-color: rgba(255, 90, 60, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.10);
}

.search-page button {
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 24px -14px rgba(255, 61, 127, 0.85);
}

.back-home {
    margin: 0;
    font-size: 0.85rem;
}

.back-home a {
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}

.back-home a:hover {
    color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.footer {
    padding: 26px 0 44px;
    border-top: 1px solid rgba(17, 17, 20, 0.06);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--ink-3);
}

.footer-copy,
.footer-meta {
    margin: 0;
}

.footer a:hover {
    color: var(--accent-strong);
}

.sep {
    margin: 0 8px;
    opacity: 0.55;
}

/* --------------------------------------------------------------------------
   滚动微动效（仅在有 JS 时启用，保证无 JS 可见）
   -------------------------------------------------------------------------- */

.js .row,
.js .card {
    opacity: 0;
    transform: translateY(14px);
}

.js .row.is-in,
.js .card.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .row.is-in:hover {
    transform: translateY(-3px);
}

.js .card.is-in:hover {
    transform: translateY(-5px);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .lead {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 34px;
    }

    .single {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .single-rail {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 28px;
    }

    .rail-item {
        margin: 0;
        padding: 10px 14px;
    }
}

@media (max-width: 860px) {
    :root {
        --gutter: 20px;
        --radius: 16px;
    }

    html {
        scroll-behavior: auto;
    }

    .masthead-inner {
        gap: 12px;
        height: 64px;
    }

    .wordmark {
        font-size: 1rem;
    }

    .nav {
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
        font-size: 0.8rem;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 6px 11px;
    }

    .search {
        display: none;
    }

    .search-toggle {
        display: block;
    }

    .masthead.search-open .search {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 10px var(--gutter) 14px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .masthead.search-open .search input {
        width: 100%;
    }

    main.shell {
        padding-top: 40px;
        padding-bottom: 72px;
    }

    .lead {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 36px;
    }

    .lead-title {
        font-size: clamp(2rem, 9.2vw, 2.9rem);
    }

    .lead-dek {
        font-size: 0.96rem;
    }

    .lead-rail {
        position: static;
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    /* 移动端回退为清晰单列 */
    .mosaic {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mosaic > .card:nth-child(4n + 1),
    .mosaic > .card:nth-child(4n + 2),
    .mosaic > .card:nth-child(4n + 3),
    .mosaic > .card:nth-child(4n + 4) {
        grid-column: auto;
        margin-top: 0;
    }

    .card {
        padding: 22px 20px 18px;
        border-radius: 18px;
    }

    .card-num {
        top: 10px;
        right: 16px;
        font-size: 2.6rem;
    }

    .card-kicker {
        padding-right: 50px;
    }

    .card-title,
    .mosaic > .card:nth-child(4n + 1) .card-title,
    .mosaic > .card:nth-child(4n + 4) .card-title {
        font-size: 1.22rem;
        line-height: 1.35;
    }

    .row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0 14px;
        padding: 20px 18px;
    }

    .row-num {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 0.62rem;
    }

    .row-arrow {
        display: none;
    }

    .row-excerpt {
        -webkit-line-clamp: 3;
        font-size: 0.87rem;
    }

    .year-head {
        margin-top: 40px;
    }

    .year-head span {
        font-size: 1.55rem;
    }

    .single-title {
        font-size: clamp(1.8rem, 7.6vw, 2.5rem);
        margin-bottom: 28px;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.86;
    }

    .post-nav {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .post-nav-item.next {
        text-align: left;
    }

    .comments {
        margin-top: 52px;
    }

    .respond {
        padding: 20px 18px 4px;
    }

    .archive-title {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .lead-title {
        font-size: 1.85rem;
    }

    .row {
        padding: 18px 16px;
    }

    .row-title {
        font-size: 1.18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .js .row,
    .js .card {
        opacity: 1;
        transform: none;
    }
}
