@import url("https://miaoda.feishu.cn/fonts/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

/* ==========================================================================
   环球通讯社 · 前台样式
   版式语言：报头 + 细分栏线 + 衬线标题 + 密集栅格（美联社式严肃新闻排版）
   ========================================================================== */

:root {
    --ink: #101010;
    --ink-soft: #2b2b2b;
    --muted: #6a6a6a;
    --muted-2: #8a8a8a;
    --line: #dcdcdc;
    --line-soft: #ececec;
    --paper: #ffffff;
    --paper-2: #f6f5f2;
    --red: #c8102e;
    --red-dark: #9c0c23;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, "Times New Roman", serif;
    --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --container: 1300px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.skip-link {
    position: absolute;
    left: 0;
    top: -60px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
    transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 26px;
}

/* ---------------------------------------------------------------- 顶部条 */

.topbar {
    background: var(--ink);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: 0.08em;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-mark {
    background: var(--red);
    color: #fff;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 3px 6px;
    line-height: 1.2;
}
.topbar-slogan { color: #d8d8d8; letter-spacing: 0.14em; }
.topbar-right { display: flex; align-items: center; gap: 22px; color: #b9b9b9; }
.topbar-date { font-variant-numeric: tabular-nums; }
.topbar-link { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 1px; }
.topbar-link:hover { color: #fff; border-color: var(--red); }

/* ---------------------------------------------------------------- 报头 */

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-top: 26px;
    padding-bottom: 18px;
}
.wordmark { display: block; }
.wordmark-cn {
    display: block;
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}
.wordmark-en {
    display: block;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--muted);
    margin-top: 8px;
    text-transform: uppercase;
}
.masthead-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 300px;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 5px;
    width: 290px;
}
.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink);
    padding: 4px 0;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form button {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.search-form button:hover { color: var(--red); }
.masthead-tag {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: var(--muted);
}

/* ---------------------------------------------------------------- 导航 */

.mainnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}
.mainnav-inner {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mainnav-inner::-webkit-scrollbar { display: none; }
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13px 14px 12px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    white-space: nowrap;
}
.nav-item:hover { color: var(--red); }
.nav-item.is-active { color: var(--red); }
.nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--red);
}
.nav-spacer { flex: 1; }
.nav-rss { color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: 0.16em; }

/* ---------------------------------------------------------------- 快讯 */

.ticker {
    background: var(--red);
    color: #fff;
    overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; height: 38px; overflow: hidden; }
.ticker-label {
    flex: none;
    background: #fff;
    color: var(--red);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 3px 8px;
    margin-right: 16px;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 55s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    padding-right: 4px;
}
.ticker-item:hover { color: #ffe6ea; }
.ticker-time {
    font-family: var(--mono);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.24);
    padding: 2px 5px;
    letter-spacing: 0.04em;
}
.ticker-text { letter-spacing: 0.01em; }
.ticker-dot { color: rgba(255, 255, 255, 0.6); padding: 0 14px; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- 通用组件 */

.kicker {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--red);
    text-transform: uppercase;
}
.kicker:hover { color: var(--red-dark); }
.kicker-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.flag-breaking {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--red);
    padding: 2px 6px;
}
.flag-featured {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 1px 6px;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}
.meta-row--sm { font-size: 11.5px; }
.meta-sep { color: var(--line); }

.band-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-top: 2px solid var(--ink);
    padding-top: 12px;
    margin-bottom: 20px;
}
.band-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.band-head h2 a:hover { color: var(--red); }
.band-line { flex: 1; height: 1px; background: var(--line); align-self: center; }
.band-more {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}
.band-more:hover { color: var(--red); }
.band-head--tight { border-top-width: 1px; padding-top: 10px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- 首页头条区 */

.site-main { padding: 0 0 60px; }

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 46px;
    padding: 34px 0 36px;
    border-bottom: 1px solid var(--line);
}
.hero-media {
    display: block;
    overflow: hidden;
    background: #111;
}
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.35s ease; }
.hero-media:hover img { opacity: 0.94; }
.media-empty {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    color: #fff;
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.2em;
}
.hero-body { padding-top: 18px; }
.hero-title {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(30px, 3.3vw, 43px);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.hero-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.hero-dek {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 48em;
}
.rail-latest { border-left: 1px solid var(--line-soft); padding-left: 32px; }
.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px;
    margin-bottom: 4px;
}
.rail-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.rail-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--red);
}
.rail-live i {
    width: 6px; height: 6px; background: var(--red); border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}
.latest-time {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--red);
    padding-top: 3px;
    letter-spacing: 0.02em;
}
.latest-kicker {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}
.latest-content h3 {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.45;
}
.rail-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}
.rail-more:hover { color: var(--red); border-color: var(--red); }

/* ---------------------------------------------------------------- 今日要闻 */

.brief-strip { padding: 30px 0 4px; }
.brief-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.brief-item {
    padding: 0 22px;
    border-left: 1px solid var(--line-soft);
}
.brief-item:first-child { padding-left: 0; border-left: 0; }
.brief-item h3 {
    margin: 6px 0 8px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}
.brief-item time { font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- 主体栅格 */

.front-columns {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    gap: 52px;
    padding-top: 40px;
}
.front-main { min-width: 0; }
.front-rail { min-width: 0; }

.band { margin-bottom: 46px; }
.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 34px;
}
.band-lead { min-width: 0; }
.band-lead-media { display: block; overflow: hidden; margin-bottom: 14px; background: var(--paper-2); }
.band-lead-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity 0.3s; }
.band-lead-media:hover img { opacity: 0.94; }
.band-lead h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.34;
}
.band-lead p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}
.band-list { display: flex; flex-direction: column; }
.band-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.band-item:first-child { padding-top: 0; }
.band-item-text h4 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.5;
}
.band-item-text time { font-size: 11px; color: var(--muted); }
.band-item-thumb { display: block; overflow: hidden; }
.band-item-thumb img { width: 92px; height: 64px; object-fit: cover; }

/* ---------------------------------------------------------------- 侧栏盒子 */

.rail-box { margin-bottom: 36px; }
.rail-most .most-list { margin-top: 6px; }
.most-list { list-style: none; margin: 0; padding: 0; }
.most-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}
.most-num {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    padding-top: 2px;
}
.most-list li:nth-child(-n+3) .most-num { color: var(--red); }
.most-list h4 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
}
.most-meta { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.rss-copy, .rail-note p {
    margin: 10px 0 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}
.btn-outline {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.rail-note { border-top: 1px solid var(--line); padding-top: 14px; }
.rail-note .rail-head { border-bottom: 0; padding-bottom: 4px; }

/* ---------------------------------------------------------------- 图片故事 */

.photo-strip { margin: 10px 0 30px; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.photo-card { margin: 0; }
.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity 0.3s;
}
.photo-card img:hover { opacity: 0.94; }
.photo-card figcaption { padding-top: 10px; }
.photo-card h4 {
    margin: 4px 0 6px;
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
}
.photo-card p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------------------------------------------------------------- 栏目页 */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span:last-child { color: var(--ink); }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 3px solid var(--ink);
    padding: 18px 0 16px;
    margin-bottom: 30px;
}
.section-header h1 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.section-header p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 46em; }
.section-header-meta {
    display: flex;
    gap: 18px;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    padding-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.list-columns {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 52px;
    padding-bottom: 30px;
}
.list-main { min-width: 0; }
.list-rail { min-width: 0; }

.row-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    padding: 0 0 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
}
.row-card-media { display: block; overflow: hidden; background: var(--paper-2); }
.row-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.3s; }
.row-card-media:hover img { opacity: 0.94; }
.row-card-body { min-width: 0; }
.row-card h2 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.36;
}
.row-card--lead { grid-template-columns: 1fr; }
.row-card--lead .row-card-media img { aspect-ratio: 16 / 9; }
.row-card--lead h2 { font-size: 32px; }
.row-card-dek { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.row-card:not(.row-card--lead) .row-card-dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13.5px;
}
.cat-list li.is-current a { color: var(--red); font-weight: 600; }
.cat-count { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.empty-state { padding: 40px 0 60px; border-bottom: 1px solid var(--line-soft); }
.empty-state p { margin: 0 0 8px; font-size: 15px; }
.empty-hint { color: var(--muted); font-size: 13px; }
.empty-hint a { color: var(--red); text-decoration: underline; }

.pager {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 40px;
}
.pager-link, .pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink);
}
.pager-num { padding: 0 10px; font-variant-numeric: tabular-nums; }
.pager-link:hover, .pager-num:hover { border-color: var(--ink); color: var(--ink); }
.pager-num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-link.is-disabled { color: var(--muted-2); border-color: var(--line-soft); cursor: default; }

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

.article { max-width: 860px; margin: 0 auto; padding: 26px 0 10px; }
.article-head { margin-bottom: 26px; }
.article-title {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -0.012em;
}
.article-dek {
    margin: 0 0 22px;
    font-size: 18.5px;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
}
.article-byline {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.byline-author { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.byline-label { color: var(--muted); letter-spacing: 0.1em; font-size: 11px; }
.byline-author strong { font-weight: 600; letter-spacing: 0.04em; }
.byline-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.byline-actions { margin-left: auto; display: flex; gap: 14px; }
.link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.06em;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}
.link-btn:hover { color: var(--red); border-color: var(--red); }

.article-cover { margin: 26px 0 30px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    padding: 8px 0 0;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 10px;
}

.article-body {
    font-family: var(--serif);
    font-size: 18.5px;
    line-height: 2;
    color: #1b1b1b;
    letter-spacing: 0.01em;
}
.article-body > p { margin: 0 0 24px; }
.article-body > p:first-of-type {
    font-size: 20px;
    line-height: 1.95;
    color: #101010;
}
.article-body h2 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    margin: 42px 0 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    letter-spacing: 0.01em;
}
.article-body h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.article-body blockquote {
    margin: 34px 0;
    padding: 2px 0 2px 24px;
    border-left: 3px solid var(--red);
    font-size: 21px;
    line-height: 1.8;
    color: var(--ink);
}
.article-body blockquote p { margin: 0; }
.article-body img { width: 100%; height: auto; margin: 28px 0; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 1.4em; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; margin: 24px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.article-body th { background: var(--paper-2); font-weight: 600; }

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 34px 0 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.tags-label { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.tag {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 5px 11px;
    font-size: 11.5px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}
.tag:hover { border-color: var(--red); color: var(--red); }

.article-footnote {
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
}
.article-footnote p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

.related, .rail-inline { padding: 26px 0 10px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.related-card { min-width: 0; }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.related-card h3 {
    margin: 4px 0 6px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}
.related-card time { font-size: 11px; color: var(--muted); }
.most-list--wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; }

/* ---------------------------------------------------------------- 搜索 */

.search-page-form {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    max-width: 700px;
}
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-right: 0;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
}
.search-page-form input:focus { border-color: var(--ink); }
.search-page-form button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    padding: 0 26px;
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* ---------------------------------------------------------------- 404 */

.error-page {
    border-bottom: 1px solid var(--line);
    padding: 70px 0 60px;
    max-width: 640px;
}
.error-code {
    font-family: var(--serif);
    font-size: 92px;
    line-height: 1;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 12px;
}
.error-page h1 {
    font-family: var(--serif);
    font-size: 32px;
    margin: 0 0 12px;
    font-weight: 700;
}
.error-page p { color: var(--muted); font-size: 14.5px; line-height: 1.9; margin: 0 0 26px; }
.error-actions { display: flex; gap: 12px; }
.btn-solid { background: var(--ink); color: #fff; padding: 11px 20px; font-size: 13px; letter-spacing: 0.08em; }
.btn-solid:hover { background: var(--red); color: #fff; }
.btn-line { border: 1px solid var(--ink); padding: 10px 20px; font-size: 13px; letter-spacing: 0.08em; }
.btn-line:hover { border-color: var(--red); color: var(--red); }

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

.site-footer {
    border-top: 3px solid var(--ink);
    background: var(--paper-2);
    margin-top: 20px;
}
.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 34px 0 26px;
    border-bottom: 1px solid var(--line);
}
.footer-wordmark { flex: none; }
.fw-cn { display: block; font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }
.fw-en { display: block; font-size: 9.5px; letter-spacing: 0.34em; color: var(--muted); margin-top: 6px; }
.footer-about { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--muted); max-width: 560px; }
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.4fr;
    gap: 32px;
    padding: 28px 0 30px;
}
.footer-col h4 {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.footer-col li a:hover { color: var(--red); }
.footer-col-note p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 16px 0 22px;
    font-size: 11.5px;
    color: var(--muted);
}

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

@media (max-width: 1120px) {
    .front-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .front-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
    .rail-note { grid-column: span 2; }
    .lead-grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; }
    .wordmark-cn { font-size: 38px; }
}

@media (max-width: 900px) {
    .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .rail-latest { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
    .latest-list li { padding: 11px 0; }
    .brief-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
    .brief-item:nth-child(3) { padding-left: 0; border-left: 0; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .list-columns { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .row-card { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
    .row-card--lead { grid-template-columns: 1fr; }
    .section-header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .masthead-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .masthead-tools { align-items: flex-start; width: 100%; }
    .search-form { width: 100%; }
    .most-list--wide { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .wordmark-cn { font-size: 30px; }
    .wordmark-en { letter-spacing: 0.28em; }
    .topbar-slogan { display: none; }
    .topbar-right { gap: 12px; }
    .hero-title { font-size: 27px; }
    .hero-dek { font-size: 14.5px; }
    .brief-grid { grid-template-columns: 1fr; }
    .brief-item { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
    .brief-item:first-child { border-top: 0; padding-top: 0; }
    .band-grid { grid-template-columns: 1fr; gap: 22px; }
    .band-lead h3 { font-size: 21px; }
    .band-item { grid-template-columns: minmax(0, 1fr) 78px; }
    .band-item-thumb img { width: 78px; height: 56px; }
    .front-rail { grid-template-columns: 1fr; }
    .rail-note { grid-column: auto; }
    .photo-grid { grid-template-columns: 1fr; }
    .row-card { grid-template-columns: 1fr; }
    .row-card h2 { font-size: 20px; }
    .row-card--lead h2 { font-size: 24px; }
    .section-header h1 { font-size: 30px; }
    .article-title { font-size: 29px; }
    .article-dek { font-size: 16px; }
    .article-body { font-size: 17px; line-height: 1.95; }
    .article-body > p:first-of-type { font-size: 18px; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 20px; }
    .footer-top { flex-direction: column; gap: 16px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .byline-actions { margin-left: 0; width: 100%; }
}

@media print {
    .topbar, .mainnav, .ticker, .site-footer, .related, .rail-inline, .article-tags, .byline-actions, .breadcrumb, .masthead-tools { display: none !important; }
    .article { max-width: none; }
    .article-title { font-size: 30px; }
    .article-body { font-size: 12pt; line-height: 1.8; }
}

/* ==========================================================================
   读者体系：登录 / 注册 / 账号中心 / 报料 / 评论
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #000; color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--block { display: block; width: 100%; text-align: center; }

.field { margin-bottom: 16px; }
.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
}
.field-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0;
}
.field-input:focus { outline: none; border-color: var(--ink); }
textarea.field-input { resize: vertical; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.field-hint--center { text-align: center; margin-top: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.form-alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-left: 3px solid var(--ink);
    background: var(--paper-2);
    font-size: 13px;
    color: var(--ink-soft);
}
.form-alert--error { border-left-color: var(--red); color: var(--red-dark); background: #fdf3f4; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 登录 / 注册 ------------------------------------------------------------ */

.auth-shell {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 0;
    margin: 48px 0 64px;
    border-top: 2px solid var(--ink);
}
.auth-intro { padding: 40px 48px 40px 0; border-right: 1px solid var(--line); }
.auth-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--red);
    text-transform: uppercase;
}
.auth-intro h1 {
    margin: 14px 0 16px;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
}
.auth-intro > p { max-width: 520px; margin: 0 0 24px; color: var(--ink-soft); }
.auth-points { margin: 0; padding: 0; list-style: none; max-width: 520px; }
.auth-points li {
    padding: 10px 0 10px 18px;
    border-top: 1px solid var(--line-soft);
    position: relative;
    font-size: 13px;
    color: var(--muted);
}
.auth-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 19px;
    width: 6px; height: 1px;
    background: var(--red);
}
.auth-panel { padding: 40px 0 40px 48px; }
.auth-form { margin: 0; }
.auth-switch {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--muted);
}
.auth-switch a { color: var(--red); border-bottom: 1px solid currentColor; }
.auth-switch--muted { color: var(--muted-2); }
.auth-switch--muted a { color: var(--muted-2); }

/* 读者账号中心 ------------------------------------------------------------ */

.member-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 44px 0 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
}
.member-head h1 { margin: 10px 0 6px; font-family: var(--serif); font-size: 32px; font-weight: 700; }
.member-meta { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.member-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.member-tabs a {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.member-tabs a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.member-tabs em { font-style: normal; color: var(--muted-2); font-size: 12px; margin-left: 4px; }

.member-panel { padding: 0 0 48px; }
.member-panel h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 18px; }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.member-panel + .member-panel { border-left: 1px solid var(--line); padding-left: 48px; }

.my-comments, .my-subs { list-style: none; margin: 0; padding: 0; }
.my-comments > li, .my-subs > li { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.my-comments > li:first-child, .my-subs > li:first-child { border-top: 1px solid var(--line); }
.my-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.my-comment-head time { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.my-comment-body { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.my-comment-article { margin: 0; font-size: 12px; color: var(--muted); }
.my-comment-article a { color: var(--red); }
.my-subs h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; }

.state-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    color: var(--muted);
}
.state-tag--approved { color: #1d6b3a; border-color: #bcd8c4; background: #f4faf6; }
.state-tag--pending { color: #8a5a00; border-color: #e3cfa6; background: #fdf8ee; }
.state-tag--spam { color: var(--muted-2); border-color: var(--line); background: var(--paper-2); }
.state-tag--sub { color: var(--red-dark); border-color: #e8c3c9; background: #fdf3f4; }

.editor-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--paper-2);
    border-left: 3px solid var(--red);
}
.editor-reply strong { display: block; font-size: 11px; letter-spacing: .14em; color: var(--red); margin-bottom: 4px; }
.editor-reply p { margin: 0; font-size: 13px; color: var(--ink-soft); }

.empty-note {
    padding: 28px 0;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line-soft);
}
.empty-note a { color: var(--red); border-bottom: 1px solid currentColor; }

/* 报料与投稿 -------------------------------------------------------------- */

.submit-shell {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 0 56px;
    margin: 48px 0 64px;
    padding-top: 36px;
    border-top: 2px solid var(--ink);
}
.submit-intro h1 { margin: 14px 0 16px; font-family: var(--serif); font-size: 36px; line-height: 1.3; }
.submit-intro > p { max-width: 480px; color: var(--ink-soft); }
.submit-rules { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.submit-rules h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.submit-rules ul { margin: 0; padding-left: 18px; }
.submit-rules li { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.submit-user { margin-top: 22px; font-size: 13px; color: var(--muted); }
.submit-user a { color: var(--red); border-bottom: 1px solid currentColor; }

.submit-panel { padding: 0 0 24px; }

.done-box { padding: 28px 0 8px; }
.done-mark {
    display: inline-block;
    padding: 3px 10px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    letter-spacing: .16em;
}
.done-box h2 { margin: 16px 0 12px; font-family: var(--serif); font-size: 28px; }
.done-box p { color: var(--ink-soft); font-size: 14px; max-width: 520px; }
.done-actions { display: flex; gap: 12px; margin-top: 22px; }

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

.comments { margin: 56px 0 0; padding-top: 8px; }
.comment-total {
    display: inline-block;
    min-width: 22px;
    margin-left: 6px;
    padding: 0 6px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-family: var(--sans);
    font-weight: 400;
    vertical-align: middle;
}
.comments .band-note { font-size: 12px; color: var(--muted-2); margin-left: auto; }

.comment-gate {
    padding: 18px 20px;
    background: var(--paper-2);
    border-left: 3px solid var(--red);
    font-size: 14px;
    color: var(--ink-soft);
}
.comment-gate a { color: var(--red); border-bottom: 1px solid currentColor; }

.comment-form {
    margin: 20px 0 8px;
    padding: 20px 22px;
    border: 1px solid var(--line);
}
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.comment-form-foot .field-hint { max-width: 460px; margin: 0; }

.comment-list { list-style: none; margin: 18px 0 0; padding: 0; }
.comment-item { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink);
    color: #fff;
    font-family: var(--serif);
    font-size: 13px;
}
.comment-author { font-size: 13px; font-weight: 500; }
.comment-head time { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.comment-body { margin: 0; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 900px) {
    .auth-shell,
    .submit-shell,
    .member-grid { grid-template-columns: 1fr; gap: 0; }
    .auth-intro, .submit-intro { padding-right: 0; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
    .auth-panel, .submit-panel { padding-left: 0; padding-top: 28px; }
    .member-panel + .member-panel { border-left: none; padding-left: 0; }
    .member-head { flex-direction: column; align-items: flex-start; }
    .field-row { grid-template-columns: 1fr; }
    .comment-form-foot { flex-direction: column; align-items: flex-start; }
    .comment-form-foot .btn { width: 100%; }
}

/* ==========================================================================
   文章分享：微信扫码 / 微博
   ========================================================================== */

.share-label {
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--muted-2);
    margin-right: 2px;
}
.link-btn--wechat,
.link-btn--weibo { letter-spacing: .04em; }

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}
.share-modal.is-open { display: flex; }
.share-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 16, .58);
}
.share-modal-panel {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    padding: 0 26px 24px;
    border-top: 3px solid var(--red);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
.share-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--line);
}
.share-modal-head span {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
}
.share-modal-close {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 2px;
}
.share-modal-close:hover { color: var(--red); }
.share-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 18px 0 10px;
}
.share-qr svg { width: 208px; height: 208px; display: block; }
.share-qr-loading { font-size: 12px; color: var(--muted-2); }
.share-hint {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .04em;
}
.share-link {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted-2);
    word-break: break-all;
}

@media (max-width: 720px) {
    .byline-actions { width: 100%; }
    .share-label { display: none; }
}

/* ==========================================================================
   多语言：语言切换与译文提示
   ========================================================================== */

.lang-switch { display: inline-flex; align-items: center; }
.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #e8e8e8;
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: .04em;
    padding: 3px 22px 3px 8px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}
.lang-switch select:hover { border-color: var(--red); color: #fff; }
.lang-switch select:focus { outline: none; border-color: var(--red); }
.lang-switch option { background: #111; color: #fff; }

.lang-note {
    margin: 18px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--ink);
    background: var(--paper-2);
    font-size: 12.5px;
    color: var(--muted);
}
.lang-note--translated { border-left-color: #1d6b3a; background: #f4faf6; color: #245c3c; }
.lang-note--fallback { border-left-color: var(--red); background: #fdf3f4; color: var(--red-dark); }

@media (max-width: 900px) {
    .lang-switch { order: -1; }
}

/* 阿拉伯语、波斯语、希伯来语、乌尔都语：从右到左 */
html[dir="rtl"] body { direction: rtl; overflow-x: hidden; }
html[dir="rtl"] .ticker-inner, html[dir="rtl"] .ticker-viewport { overflow: hidden; }
html[dir="rtl"] .lang-switch select {
    padding: 3px 8px 3px 22px;
    background-position: 8px 50%, 12px 50%;
}
html[dir="rtl"] .article-byline, html[dir="rtl"] .breadcrumb { text-align: right; }


/* 视频 */
.article-video {
    margin: 22px 0 26px;
    background: #000;
}
.article-video video {
    display: block;
    width: 100%;
    max-height: 68vh;
    background: #000;
}
.article-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}
.video-fallback {
    display: block;
    padding: 28px 20px;
    text-align: center;
    color: #fff;
    text-decoration: underline;
}
.flag-video {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border: 1px solid var(--muted);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    vertical-align: middle;
}
