
:root {
    --paper: #f8f8f6;
    --surface: #fff;
    --ink: #202825;
    --subtle: #555f59;
    --line: #dce2dd;
    --heading: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
    --max: 1160px;
    --radius: 6px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--heading); overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus, button:focus, input:focus, textarea:focus { outline: 2px solid currentColor; outline-offset: 3px; }
button, input, textarea { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.32; }
h1 { font-size: 36px; font-size: clamp(29px, 4vw, 46px); }
h2 { font-size: 23px; }
h3 { font-size: 20px; }
.frame { width: calc(100% - 64px); max-width: var(--max); margin: 0 auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }
.skip:focus { z-index: 2; top: 8px; left: 8px; width: auto; height: auto; padding: 8px; clip: auto; background: #fff; color: #111; }
.preview { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 7px 14px; color: #202221; background: #fff0c8; font-size: 13px; }
.preview a { text-decoration: underline; }
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { min-height: 74px; display: flex; align-items: center; column-gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 700; line-height: 1.4; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand-mark { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; background: var(--accent); }
.site-nav { display: flex; flex: 1; min-width: 0; gap: 22px; align-items: center; overflow-x: auto; white-space: nowrap; }
.site-nav a, .header-search { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.site-nav a { border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .header-search[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.header-search { margin-left: auto; gap: 8px; white-space: nowrap; }
.search-icon { display: inline-block; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.hero-tagline { color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 11px; }
.hero-description { color: var(--subtle); font-size: 18px; line-height: 1.75; margin-top: 16px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 15px; margin-top: 25px; }
.portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.portrait-label { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; background: var(--surface); color: var(--ink); line-height: 1.25; overflow: hidden; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 19px; border: 1px solid transparent; border-radius: var(--radius); background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 700; }
.button:hover { color: var(--surface); text-decoration: underline; }
.button:focus { outline-color: var(--accent); }
.button:disabled { cursor: not-allowed; opacity: .55; }
button.button:not(:disabled) { cursor: pointer; }
.button.secondary { border-color: currentColor; background: transparent; color: inherit; }
.arrow-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--accent); font-size: 15px; font-weight: 700; }
.arrow-link:hover { text-decoration: underline; }
.shell { display: flex; align-items: flex-start; gap: 36px; padding-top: 46px; padding-bottom: 64px; min-height: 48vh; }
.content { min-width: 0; flex: 1 1 0%; }
.side { min-width: 0; flex: 0 0 260px; }
.panel + .panel, .notice + .panel { margin-top: 22px; }
.readable { max-width: 820px; }
.readable h1 { margin-bottom: 18px; }
.readable > p + p, .readable > p + .button, .readable > .prose + .button, .readable > .prose + .arrow-link { margin-top: 16px; }
.home-note, .side-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-note h2, .side-card h2 { font-size: 17px; margin-bottom: 10px; }
.side-card p { color: var(--subtle); font-size: 15px; }
.side-card ul { padding: 0; margin: 0; list-style: none; }
.side-card li + li { border-top: 1px solid var(--line); }
.side-card li a { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; font-size: 15px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.layout-choice { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--subtle); }
.layout-choice a { display: flex; align-items: center; min-height: 34px; }
.layout-choice [aria-current="true"] { color: var(--accent); font-weight: 700; text-decoration: underline; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); }
.feed--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.feed-item { min-width: 0; display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feed--grid .feed-item { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.feed--compact .feed-item { padding: 12px 0; }
.feed--compact .feed-cover, .feed--compact .feed-copy p { display: none; }
.feed-cover { display: block; width: 126px; flex: 0 0 126px; overflow: hidden; background: var(--line); }
.feed-cover img { width: 100%; height: 88px; object-fit: cover; }
.feed--grid .feed-cover { width: 100%; flex: none; }
.feed--grid .feed-cover img { height: 150px; }
.feed-copy { flex: 1 1 auto; min-width: 0; }
.feed--grid .feed-copy { padding: 16px; }
.feed-copy h2, .feed-copy h3 { font-size: 20px; }
.feed-copy p { color: var(--subtle); margin-top: 6px; font-size: 15px; }
.meta, .breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; color: var(--subtle); font-size: 13px; }
.meta { margin-bottom: 6px; }
.breadcrumb { margin-bottom: 17px; }
.breadcrumb a { text-decoration: underline; }
.feed-arrow { color: var(--accent); }
.feed--grid .feed-arrow { display: none; }
.article-summary { border-left: 3px solid var(--accent); padding: 8px 14px; margin: 20px 0; color: var(--subtle); font-size: 17px; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; margin: 22px 0; border-radius: var(--radius); }
.profile-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.profile-heading h1, .profile-heading .article-summary { margin-bottom: 0; }
.prose { line-height: 1.9; }
.readable > .prose { font-size: 17px; margin-top: 18px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.65em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 0 0 0 16px; border-left: 3px solid var(--line); color: var(--subtle); }
.prose pre, .prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre { padding: 12px; background: var(--paper); }
.prose table { border-collapse: collapse; }
.prose td, .prose th { padding: 5px 10px; border: 1px solid var(--line); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose figure { margin-inline: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; }
.pagination a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 12px; border: 1px solid var(--line); }
.empty, .section-description { padding: 16px 0; color: var(--subtle); }
.notice, .form-error { padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); }
.form-error { color: #8a2820; }
.contact-form, .search-large { margin: 18px 0; }
.contact-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-width: 600px; }
.contact-form label { font-weight: 700; margin-top: 8px; }
.contact-form .button { align-self: flex-start; margin-top: 10px; }
.contact-form input, .contact-form textarea, .search-large input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; }
.search-large { display: flex; gap: 10px; }
.search-large .button { flex: 0 0 auto; }
.error-number { font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.footer { padding: 33px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 32px; }
.footer-inner > * { min-width: 0; max-width: 100%; }
.footer-brand { font-size: 19px; font-weight: 700; }
.footer-inner nav, .footer-social { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.footer-inner section a { display: block; }
.footer-inner h2 { font-size: 16px; margin-bottom: 8px; }
.footer-inner p, .footer-legal { color: var(--subtle); margin-top: 7px; font-size: 14px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 12px; }
.wechat { object-fit: contain; }
@media (max-width: 850px) {
    .top-inner { flex-wrap: wrap; min-height: 0; padding-top: 9px; }
    .brand { min-height: 44px; flex: 1 1 0%; }
    .site-nav { order: 3; flex: 1 0 100%; gap: 20px; }
    .shell { flex-direction: column; gap: 30px; padding-top: 32px; }
    .content, .side { width: 100%; flex: auto; }
    .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
    .side .panel + .panel { margin-top: 0; }
}
@media (max-width: 540px) {
    .frame { width: calc(100% - 36px); }
    .shell { padding-bottom: 42px; }
    .top-inner { column-gap: 14px; }
    .site-nav { gap: 15px; }
    .feed--grid { grid-template-columns: minmax(0, 1fr); }
    .feed-item { gap: 12px; }
    .feed-cover { width: 76px; flex-basis: 76px; }
    .feed-cover img { height: 65px; }
    .feed--grid .feed-cover img { height: 170px; }
    .feed-arrow { display: none; }
    .hero-description { font-size: 16px; }
    .profile-heading .portrait { width: 65px; height: 65px; }
}
