:root {
  --bg: #fafafa;
  --text: #202124;
  --secondary: #45484d;
  --muted: #666b73;
  --faint: #767c85;
  --border: #e1e4e8;
  --strong-border: #30343b;
  --gold: #b68235;
  --accent: #7d5820;
  --selected: #f0f2f5;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; -webkit-font-smoothing: antialiased; line-height: 1.65; }
button, input { font: inherit; color: inherit; }
button { background: transparent; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { color: var(--accent); }
button:disabled { opacity: .45; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: #dde5ee; color: #202124; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--bg); padding: 12px; }
.skip-link:focus { top: 10px; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.site-header { padding-top: 36px; }
.edition-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0 20px; border-bottom: 1px solid var(--strong-border); }
.brand { display: flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.brand > span { font-size: 44px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.brand em, .footer-bottom em { font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", serif; font-size: 22px; color: var(--gold); font-weight: 400; }
.categories { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.category-button { font-size: 15px; border-bottom: 1px solid transparent; padding: 6px 10px; white-space: nowrap; }
.category-button.active { color: var(--accent); border-bottom-color: var(--gold); }
.brand-filter { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.filter-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; white-space: nowrap; }
#brands { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-button, .detail-tag { font-size: 13px; border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; line-height: 1.5; }
.brand-button.active { border-color: var(--gold); color: var(--accent); background: var(--selected); }
.brand-button:hover, .detail-tag:hover { border-color: var(--gold); }
.reader-tools { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); }
.view-nav { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.nav-item { white-space: nowrap; }
.nav-item.active { color: var(--accent); }
.saved-count { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
#search-form { display: flex; align-items: center; gap: 8px; margin-left: auto; border-bottom: 1px solid var(--border); max-width: 230px; }
#search { min-width: 0; width: 170px; background: transparent; border: 0; padding: 3px 0; font-size: 12px; outline-offset: 0; }
#search-form button { font-size: 11px; color: var(--muted); white-space: nowrap; }
.theme-button { font-size: 12px; color: var(--muted); white-space: nowrap; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 36px 0 64px; align-items: start; }
.main-column, .feed { min-width: 0; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); }
.feed-heading h1 { font-size: 20px; font-weight: 600; }
#result-count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 11px; color: var(--faint); }
.filter-controls { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
input[type=date] { width: 117px; background: transparent; border: 0; font-size: 11px; color: var(--muted); }
.text-button { font-size: 11px; color: var(--accent); }
.news-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.news-time { padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-time time { display: block; font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", serif; font-size: 19px; color: var(--secondary); line-height: 1.2; }
.news-time .news-day { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.news-copy { min-width: 0; }
.news-meta { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--accent); margin-bottom: 6px; letter-spacing: .08em; }
.news-meta .divider { color: var(--faint); }
.news-meta .source { color: var(--muted); overflow-wrap: anywhere; }
.news-meta .category { flex-shrink: 0; }
.news-item h3 { font-size: 19px; font-weight: 600; line-height: 1.5; text-wrap: pretty; }
.title-button { text-align: left; font: inherit; line-height: inherit; overflow-wrap: anywhere; }
.news-item p { margin-top: 8px; font-size: 16px; line-height: 1.9; color: var(--secondary); text-align: start; }
.news-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 11px; font-size: 11px; color: var(--faint); }
.news-actions a { color: var(--muted); }
.heat-label { font-variant-numeric: tabular-nums; }
.save-button { font-size: 11px; margin-left: auto; color: var(--muted); }
.save-button.saved { color: var(--accent); }
.right-column { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--strong-border); }
.panel-heading h2 { font-size: 18px; font-weight: 600; }
.panel-heading em { font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", serif; font-size: 16px; color: var(--muted); }
.hot-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.hot-rank { font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", serif; font-size: 24px; line-height: 1; color: var(--faint); font-variant-numeric: tabular-nums; }
.hot-item:nth-child(-n+3) .hot-rank { color: var(--gold); }
.hot-item h3 { font-size: 14.5px; font-weight: 400; line-height: 1.65; text-wrap: pretty; }
.hot-item small { display: none; }
.panel-link { display: inline-block; color: var(--accent); border-bottom: 1px solid var(--gold); padding-bottom: 1px; margin-top: 14px; font-size: 13.5px; }
.panel-subtitle, .schedule-empty { font-size: 13px; color: var(--muted); padding-top: 18px; line-height: 1.85; }
.schedule-empty small { display: block; margin-top: 6px; font-size: 11px; color: var(--faint); }
.event-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.event-date { text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 5px 0 4px; align-self: start; }
.event-date span { display: block; font-size: 11px; color: var(--muted); }
.event-date strong { font-family: "Baskerville", "Times New Roman", serif; font-size: 24px; line-height: 1.05; font-weight: 600; }
.event-item h3 { font-size: 15px; line-height: 1.5; font-weight: 600; }
.event-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.event-item a { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--accent); border-bottom: 1px solid var(--gold); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 32px; color: var(--muted); font-size: 13px; }
.pagination button { border: 1px solid var(--gold); color: var(--accent); border-radius: 4px; padding: 9px 20px; font-size: 14px; }
.pagination button:hover { background: var(--selected); }
.empty-state { padding: 32px 0; color: var(--muted); font-size: 15px; }
.empty-state p { font-size: 13px; margin: 10px 0 16px; }
.outline-button { border: 1px solid var(--gold); border-radius: 4px; color: var(--accent); font-size: 13px; padding: 7px 16px; }
.skeleton { height: 14px; background: var(--border); border-radius: 2px; margin-bottom: 12px; animation: pulse 1.5s infinite; }
.skeleton.title { height: 22px; width: 85%; }
.skeleton.short { width: 40%; }
.news-item.loading { display: block; }
.back-button { color: var(--muted); font-size: 13.5px; }
#detail-content { max-width: 680px; }
.detail-meta { margin: 28px 0 12px; }
#detail-content h2 { font-size: 32px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.detail-date { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--gold); font-variant-numeric: tabular-nums; }
.detail-summary { font-size: var(--article-font-size, 18px); line-height: 1.9; text-align: start; margin-top: 24px; white-space: pre-line; }
.detail-footnote { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.9; }
.detail-footnote button { margin-left: 8px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; }
#detail-content .news-actions { margin-top: 25px; }
.news-actions .primary-link { color: var(--accent); font-size: 14px; border-bottom: 1px solid var(--gold); }
.related-news { margin-top: 48px; }
.related-news h3 { font-size: 16px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--strong-border); }
.related-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border); width: 100%; font-size: 15px; line-height: 1.6; text-align: left; }
.related-item time { font-family: "Baskerville", "Times New Roman", serif; font-size: 17px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--strong-border); }
.footer-main { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-top: 40px; padding-bottom: 36px; }
.footer-about { flex: 1 1 260px; max-width: 380px; }
.footer-brand { font-size: 22px; font-weight: 600; letter-spacing: .08em; }
.footer-about p { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--secondary); text-align: justify; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; font-size: 13.5px; line-height: 2.1; }
.footer-column h2 { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.footer-bottom em { font-size: 16px; color: var(--muted); }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 20px; border-radius: 4px; font-size: 13px; z-index: 20; }
body.dark { --bg: #1b1d21; --text: #eceef1; --secondary: #c6cbd2; --muted: #a4abb5; --faint: #929ba7; --border: #383d45; --strong-border: #aeb6c2; --gold: #c99b59; --accent: #dbb275; --selected: #282d35; color-scheme: dark; }
@keyframes pulse { 50% { opacity: .4; } }
@media (max-width: 1000px) {
  .masthead { flex-wrap: wrap; gap: 18px; }
  .categories { justify-content: flex-start; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
  .brand > span { font-size: 40px; }
  .footer-main { gap: 32px; }
}
@media (max-width: 740px) {
  .page-shell { padding-inline: 20px; }
  .site-header { padding-top: 24px; }
  .edition-line { font-size: 11px; }
  .brand { gap: 12px; }
  .brand > span { font-size: 36px; }
  .brand em { font-size: 18px; }
  .masthead { padding: 22px 0 14px; }
  .category-button { font-size: 14px; padding: 5px 9px; }
  .brand-filter { gap: 10px; align-items: flex-start; }
  .filter-label { padding-top: 4px; }
  .brand-button { font-size: 12px; padding: 3px 8px; }
  .reader-tools { flex-wrap: wrap; gap: 13px; }
  .view-nav { gap: 20px; flex: 1 1 calc(100% - 70px); order: 0; }
  .theme-button { order: 1; }
  #search-form { max-width: none; width: 100%; order: 2; margin: 0; }
  #search { width: 100%; }
  .content-layout { grid-template-columns: 1fr; padding: 27px 0 44px; gap: 42px; }
  .filter-row { flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
  .filter-controls { margin-left: auto; }
  .news-item { grid-template-columns: 45px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .news-time time { font-size: 17px; }
  .news-time .news-day { font-size: 10px; }
  .news-meta { font-size: 11px; gap: 7px; letter-spacing: .02em; }
  .news-item h3 { font-size: 18px; line-height: 1.65; }
  .news-item p { font-size: 16px; }
  .news-actions { gap: 10px; }
  .right-column { gap: 36px; }
  #detail-content h2 { font-size: 26px; }
  .detail-summary { font-size: var(--article-font-size, 18px); }
  .footer-main { gap: 28px; padding-top: 30px; padding-bottom: 28px; }
  .footer-about { max-width: none; flex-basis: 100%; }
  .footer-column { font-size: 12px; }
  .footer-bottom { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

.standalone-detail { max-width: 840px; }
.standalone-detail main { padding: 32px 0 48px; }
.standalone-detail #detail-content { max-width: none; }
#detail-content h1 { font-size: 36px; line-height: 1.4; margin-top: 16px; }
.markdown-body { margin-top: 32px; font-size: var(--article-font-size, 18px); line-height: 1.95; overflow-wrap: anywhere; }
.markdown-body > * { margin: 18px 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 32px; line-height: 1.5; }
#detail-content .markdown-body h1 { font-size: 28px; }
#detail-content .markdown-body h2 { font-size: 25px; }
.markdown-body h3 { font-size: 21px; }
.markdown-body ul, .markdown-body ol { padding-left: 1.6em; }
.markdown-body blockquote { border-left: 3px solid var(--gold); padding: 8px 20px; color: var(--muted); }
.markdown-body a { color: var(--accent); text-decoration: underline; }
.markdown-body img { max-width: 100%; height: auto; }
.markdown-body pre { overflow-x: auto; padding: 16px; background: var(--selected); font-size: 14px; }
.markdown-body code { font-family: monospace; background: var(--selected); padding: 2px 4px; }
.markdown-body pre code { padding: 0; }
.markdown-body hr { border: 0; border-top: 1px solid var(--border); }
.markdown-table { max-width: 100%; overflow-x: auto; }
.markdown-body table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.7; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 10px 12px; min-width: 90px; }
.markdown-body th { background: var(--selected); text-align: left; }
@media (max-width: 740px) {
  #detail-content h1 { font-size: 27px; }
  .markdown-body { font-size: var(--article-font-size, 18px); }
}

/* Reading layout and touch controls. */
:root { --article-font-size: 18px; }
:root[data-reading-size="large"] { --article-font-size: 20px; }
:root[data-reading-size="largest"] { --article-font-size: 22px; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
button, input, .news-meta, .detail-date, .article-toolbar, .article-toc, .back-button,
.news-actions, .edition-line, .filter-row { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.title-button { font-family: inherit; }
#detail-content { overflow-wrap: anywhere; }
.detail-summary { padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--selected); color: var(--secondary); }
.markdown-body p + p { margin-top: 1.25em; }
.markdown-body li { margin-block: .45em; }
.markdown-body li > p { margin-block: .5em; }
.markdown-body img { display: block; margin: 24px auto; border-radius: 6px; }
.markdown-body h2, .markdown-body h3 { scroll-margin-top: 24px; }
.markdown-body pre { border-radius: 6px; line-height: 1.7; }
.markdown-body td { vertical-align: top; min-width: 110px; }
.markdown-body tr:nth-child(even) { background: var(--selected); }
.markdown-table { overscroll-behavior-x: contain; border-radius: 4px; }
.markdown-table:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.table-hint { font: 12px/1.6 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); margin-bottom: -10px; }
.article-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 12px; color: var(--muted); font-size: 13px; }
.font-controls { display: flex; align-items: center; gap: 8px; }
.font-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; }
.font-label { min-width: 28px; text-align: center; }
.article-toc { border-block: 1px solid var(--border); margin-top: 28px; font-size: 14px; }
.article-toc summary { cursor: pointer; padding-block: 14px; color: var(--accent); }
.article-toc nav { display: grid; padding-bottom: 12px; }
.article-toc a { padding: 10px 4px; line-height: 1.6; }
.article-toc .toc-subheading { padding-left: 20px; color: var(--muted); }
.back-button { display: inline-flex; align-items: center; min-height: 44px; }
.standalone-detail .masthead { align-items: center; }
.reading-article .content-layout { display: block; max-width: 784px; margin-inline: auto; }
.reading-article #detail-content { max-width: none; }
.reading-article .right-column, .reading-article .brand-filter, .reading-article .categories { display: none; }
.news-actions a, .save-button, .theme-button, .nav-item, .text-button, .footer-column button, .footer-column a { min-height: 44px; display: inline-flex; align-items: center; }
.about-content { max-width: 760px; margin: 36px auto 64px; }
.about-content h1 { font-size: 30px; margin-bottom: 24px; }
.about-content h2 { font-size: 20px; margin: 32px 0 12px; }
.about-content p { margin-bottom: 16px; line-height: 1.9; }
.about-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.news-actions { font-size: 12px; gap: 8px 18px; }
.save-button, .theme-button, .nav-item, .text-button { font-size: 13px; }
#search { font-size: 16px; min-height: 44px; }
#search-form button { min-height: 44px; padding-inline: 8px; font-size: 13px; }
input[type=date] { min-height: 44px; font-size: 14px; width: 140px; }
.standalone-detail > footer { border-top: 1px solid var(--border); padding-block: 24px; }
@media (max-width: 740px) {
  .page-shell { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .site-header { padding-top: 18px; }
  .masthead { gap: 12px; padding-block: 18px 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand > span { font-size: 32px; }
  .brand em { font-size: 15px; }
  .categories { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .category-button { min-height: 44px; flex-shrink: 0; }
  .brand-filter { align-items: center; padding-block: 6px; }
  .filter-label { padding: 0; }
  #brands { flex-wrap: nowrap; overflow-x: auto; padding-block: 4px; min-width: 0; }
  .brand-button { flex-shrink: 0; min-height: 40px; padding-inline: 12px; font-size: 13px; }
  .reader-tools { gap: 6px 10px; padding-block: 6px 12px; }
  .view-nav { justify-content: space-between; gap: 6px; }
  #search-form { background: var(--selected); border: 1px solid var(--border); border-radius: 7px; padding-inline: 12px 4px; }
  .content-layout { padding-top: 24px; }
  .filter-row { align-items: flex-start; padding-block: 8px; }
  .filter-controls { flex-wrap: wrap; gap: 4px 12px; margin: 0; width: 100%; }
  input[type=date] { font-size: 16px; width: 150px; }
  .news-item { display: block; padding-block: 22px; }
  .news-time { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; padding: 0; }
  .news-time time { font-size: 15px; }
  .news-time .news-day { font-size: 12px; margin: 0; }
  .news-meta { font-size: 12px; }
  .news-item h3 { font-size: 21px; line-height: 1.55; }
  .news-item p { margin-top: 10px; line-height: 1.85; }
  .news-actions { margin-top: 10px; gap: 6px 14px; }
  .right-column { padding-top: 12px; }
  .hot-item h3 { font-size: 16px; }
  .hot-item .title-button { min-height: 44px; }
  .detail-meta { margin-top: 22px; flex-wrap: wrap; }
  #detail-content h1, #detail-content > h2 { font-size: 28px; line-height: 1.5; }
  .detail-date { margin-top: 18px; line-height: 1.8; }
  .detail-summary { margin-top: 12px; padding: 16px; }
  .markdown-body { margin-top: 28px; }
  .markdown-body table { min-width: 840px; }
  #detail-content .markdown-body h2 { font-size: 24px; }
  .standalone-detail main { padding-block: 16px 36px; }
  .standalone-detail .brand em { display: none; }
  .reading-article .reader-tools { display: none; }
  .reading-article .content-layout { padding-top: 12px; }
  .footer-bottom { flex-wrap: wrap; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .toast { max-width: calc(100% - 32px); width: max-content; bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .brand em { font-size: 13px; }
  .brand > span { font-size: 30px; }
  .view-nav { gap: 4px; }
  .nav-item, .theme-button { font-size: 12px; }
  .news-actions { gap: 4px 10px; }
}
