:root {
    --ink: #333333;
    --muted: #999999;
    --line: #e4e7eb;
    --paper: #ffffff;
    --soft: #f1f3f7;
    --accent: #63d0bd;
    --accent-dark: #48b8a4;
    --shell: 1100px;
    --reading: 760px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font: 15px/1.8 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
figure { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow-shell { width: min(calc(100% - 40px), var(--reading)); margin: 32px auto 64px; padding: 34px 38px 48px; background: var(--paper); border: 1px solid var(--line); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 8px 12px; background: #fff; }

.site-header { position: relative; z-index: 10; color: #fff; background: var(--accent); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 60px; gap: 28px; }
.site-brand { text-decoration: none; }
.site-brand { display: flex; align-items: center; min-width: 220px; color: #fff; }
.site-title { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.site-description { display: none; }
.primary-nav { display: flex; align-items: stretch; margin-right: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-nav li { display: flex; align-items: stretch; }
.primary-nav a { display: flex; align-items: center; padding: 0 18px; color: #fff; text-decoration: none; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; background: rgba(0,0,0,.72); }
.header-search { display: flex; align-items: center; width: 250px; }
.header-search .search-form { width: 100%; }
.header-search .search-form input { min-height: 32px; border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.header-search .search-form input::placeholder { color: rgba(255,255,255,.9); }
.header-search .search-form button { min-height: 32px; padding-inline: 12px; color: var(--accent-dark); background: #fff; }

.home-main { padding-bottom: 64px; }
.home-stage { color: #fff; background: #111; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(290px, .9fr); min-height: 430px; }
.lead-story { position: relative; min-height: 430px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #153b40, #191919); text-decoration: none; }
.lead-media { position: absolute; inset: 0; background-color: #173d42; background-position: center; background-size: cover; transition: transform .35s ease; }
.lead-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.86)); }
.lead-story:hover .lead-media { transform: scale(1.015); }
.lead-overlay { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 26px 28px; }
.lead-overlay strong { max-width: 31em; font-size: clamp(21px, 2.6vw, 31px); font-weight: 600; line-height: 1.35; }
.lead-overlay small { flex: 0 0 auto; color: rgba(255,255,255,.72); }
.focus-panel { min-width: 0; padding: 22px 26px 20px; background: #151515; }
.focus-panel header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333; }
.focus-panel h2 { margin: 0; padding: 0 0 9px; border-bottom: 2px solid var(--accent); font-size: 21px; font-weight: 500; }
.focus-panel ol { margin: 8px 0 0; padding: 0; list-style: none; }
.focus-panel li { border-bottom: 1px solid #292929; }
.focus-panel a { display: block; overflow: hidden; padding: 10px 0; color: #eee; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.focus-panel a:hover { color: var(--accent); }

.home-content-grid { display: grid; grid-template-columns: minmax(0, 730px) 350px; gap: 20px; margin-top: 20px; }
.editorial-column { min-width: 0; padding: 0 20px 34px; background: var(--paper); border: 1px solid var(--line); }
.section-heading { margin: -1px 0 18px -21px; border-bottom: 2px solid var(--accent); }
.section-heading h1 { display: inline-block; margin: 0; padding: 9px 16px; color: #fff; background: var(--accent); font-size: 20px; font-weight: 500; }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.editorial-card { min-width: 0; border: 1px solid var(--line); background: #fff; }
.editorial-media { display: block; min-height: 180px; background-color: #dce9e7; background-image: linear-gradient(135deg, #dce9e7, #a9d8d0); background-position: center; background-size: cover; text-decoration: none; }
.editorial-copy { padding: 13px 15px 15px; }
.editorial-copy h2 { margin: 4px 0 9px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.editorial-copy h2 a { text-decoration: none; }
.editorial-copy time { color: var(--muted); font-size: 12px; }
.card-kicker { display: inline-block; margin: 0; padding: 1px 7px; color: #fff; background: var(--accent); font-size: 12px; }
.home-latest-list { margin-top: 22px; border-top: 2px solid var(--accent); }

.page-shell { display: grid; grid-template-columns: minmax(0, 730px) 350px; gap: 20px; padding-block: 20px 64px; }
.content-column { min-width: 0; padding: 24px 20px 34px; background: var(--paper); border: 1px solid var(--line); }
.page-heading { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 2px solid var(--accent); }
.page-heading h1 { margin: 0; color: var(--accent-dark); font-size: 22px; font-weight: 500; letter-spacing: 0; }
.archive-description { max-width: 62ch; margin-top: 8px; color: var(--muted); }
.archive-description > :last-child { margin-bottom: 0; }
.post-list { border-top: 0; }
.post-card { padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.card-copy h2 { max-width: 31em; margin: 0 0 8px; color: #333; font-size: clamp(19px, 2vw, 23px); font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.card-copy h2 a { text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 12px; }
.post-meta a { text-decoration: none; }

.sidebar { padding: 0; border: 0; }
.sidebar-block { margin: 0 0 20px; padding: 0 20px 14px; background: var(--paper); border: 1px solid var(--line); }
.sidebar-block h2 { display: inline-block; margin: -1px 0 8px -21px; padding: 8px 14px; color: #fff; background: var(--accent); font-size: 17px; font-weight: 500; }
.sidebar-block ul { margin: 0; padding: 0; list-style: none; }
.sidebar-block li { padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-block a { text-decoration: none; }

.article { min-width: 0; }
.article-header { margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 24em; margin: 0 0 12px; color: #222; font-size: clamp(28px, 4vw, 34px); font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.article-hero { margin: 0 0 26px; }
.article-body { color: #555; font-size: 16px; overflow-wrap: anywhere; word-break: normal; }
.article-body > * { max-width: 100%; }
.article-body p { margin: 0 0 1.45em; }
.article-body h2, .article-body h3 { margin: 1.8em 0 .65em; line-height: 1.3; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: #555; }
.article-body img { margin-inline: auto; }
.article-body figure { margin: 1.5em auto; }
.article-body figcaption, .wp-caption-text { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.article-body iframe, .article-body video, .article-body embed, .article-body object { max-width: 100%; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--soft); font-size: 14px; }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px; border: 1px solid var(--line); }
.article-body .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.article-body .alignright { float: right; margin: .4em 0 1em 1.5em; }
.article-body::after { display: table; clear: both; content: ""; }

.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation a { display: flex; flex-direction: column; text-decoration: none; }
.nav-next { text-align: right; }
.nav-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 38px; padding: 6px 10px; border: 1px solid var(--line); text-align: center; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--accent); border-color: var(--accent); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid #d6dbe0; border-radius: 0; font: inherit; }
.search-form button, .button-link { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border: 0; border-radius: 0; color: #fff; background: var(--accent-dark); font: inherit; text-decoration: none; cursor: pointer; }
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 24px; }
.error-page { min-height: 52vh; }
.eyebrow { color: var(--accent-dark); font-weight: 750; letter-spacing: .12em; }
.site-footer { color: #d7d7d7; border-top: 0; background: #333; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px; color: var(--muted); font-size: 13px; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }

/* v0.4 desktop portal — preserves the old site's proportions without its runtime. */
:root {
    --accent: #0fd7ba;
    --accent-dark: #08bfa5;
}
.site-header { height: 60px; background: var(--accent); }
.header-inner { min-height: 60px; gap: 0; }
.site-brand { flex: 0 0 230px; min-width: 230px; }
.brand-mark { position: relative; display: block; width: 42px; height: 42px; margin-right: 8px; border-radius: 50%; background: rgba(255,255,255,.88); }
.brand-mark::before, .brand-mark::after { position: absolute; top: 8px; width: 10px; height: 10px; border: 3px solid var(--accent); border-radius: 50%; content: ""; }
.brand-mark::before { left: 8px; }
.brand-mark::after { right: 8px; }
.brand-mark i { position: absolute; right: 9px; bottom: 9px; left: 9px; height: 9px; border: 3px solid var(--accent); border-top: 0; border-radius: 0 0 12px 12px; }
.site-title { font-size: 27px; font-weight: 500; letter-spacing: -.05em; white-space: nowrap; }
.primary-nav { height: 60px; }
.primary-nav a { min-width: 70px; justify-content: center; padding: 0 15px; font-size: 15px; font-weight: 500; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .home .primary-nav li:first-child > a { background: #111; }
.header-search { width: 280px; margin-left: auto; }
.header-search .search-form { gap: 0; }
.header-search .search-form input { height: 32px; padding-left: 15px; border: 1px solid rgba(255,255,255,.65); border-right: 0; border-radius: 17px 0 0 17px; }
.header-search .search-form button { height: 32px; min-height: 32px; padding: 0 14px; border-radius: 0 17px 17px 0; }

.portal-home { padding-bottom: 60px; }
.portal-home .home-stage { position: relative; height: 662px; overflow: clip; background: #111; }
.portal-stage-backdrop { position: absolute; inset: -25px; opacity: .36; background-color: #111; background-position: center; background-size: cover; filter: blur(16px) brightness(.55); transform: scale(1.08); }
.portal-home .stage-grid { position: relative; z-index: 1; grid-template-columns: 750px 350px; min-height: 662px; }
.lead-column { position: relative; height: 413px; background: #111; }
.portal-home .lead-story { display: block; min-height: 0; height: 413px; background: linear-gradient(135deg, #153b40, #111); }
.portal-home .lead-media { bottom: 60px; background-color: #173d42; background-size: cover; }
.portal-home .lead-media::after { background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.18)); }
.portal-home .lead-overlay { height: 60px; padding: 0 20px; background: rgba(0,0,0,.55); }
.portal-home .lead-overlay strong { display: block; overflow: hidden; max-width: 620px; font-size: 16px; font-weight: 400; line-height: 60px; text-overflow: ellipsis; white-space: nowrap; }
.lead-thumbnails { position: absolute; z-index: 3; right: 18px; bottom: 16px; display: flex; gap: 5px; }
.lead-thumbnail { width: 48px; height: 28px; padding: 0; border: 2px solid rgba(255,255,255,.72); border-radius: 0; appearance: none; background-color: #24464a; background-position: center; background-size: cover; cursor: pointer; }
.lead-thumbnail.is-current, .lead-thumbnail:hover { border-color: var(--accent); }
.lead-thumbnail:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.portal-home .focus-panel { height: 662px; padding: 20px 26px 12px; background: #111; }
.portal-home .focus-panel header > a { color: #999; font-size: 12px; text-decoration: none; }
.portal-home .focus-panel h2 { font-size: 20px; }
.portal-home .focus-panel ol { margin-top: 5px; overflow: hidden; }
.portal-home .focus-panel a { padding: 0; line-height: 40px; }
.portal-home .focus-panel li > a { height: 40px; font-size: 13px; }
.portal-home .focus-panel li:last-child { border-bottom: 0; }

.portal-briefs { position: absolute; z-index: 2; top: 413px; left: calc(50% - 550px); display: grid; grid-template-columns: 750px; width: 750px; min-height: 249px; margin-top: 0; background: #fff; border: 1px solid #2f3337; border-top: 0; }
.portal-feature-row { grid-column: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; height: 120px; padding: 16px 20px 10px; }
.portal-feature-card { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 10px; min-width: 0; }
.portal-feature-image { display: block; height: 88px; background: linear-gradient(135deg,#dce9e7,#a9d8d0); background-position: center; background-size: cover; }
.portal-feature-card h2 { overflow: hidden; max-height: 76px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.55; }
.portal-feature-card h2 a { color: var(--ink); text-decoration: none; }
.portal-feature-card h2 a:hover, .portal-feature-card h2 a:focus-visible { color: var(--accent-dark); }
.portal-brief-list { grid-column: 1; align-self: start; margin: 0; padding: 0 20px 14px; list-style: none; }
.portal-brief-list li { display: flex; align-items: center; min-width: 0; height: 25px; }
.portal-brief-list span, .portal-headline-list span { flex: 0 0 auto; margin-right: 8px; padding: 0 6px; color: #fff; background: var(--accent); font-size: 12px; line-height: 18px; }
.portal-brief-list a { overflow: hidden; color: var(--ink); font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.portal-brief-list a:hover, .portal-brief-list a:focus-visible { color: var(--accent-dark); }
.portal-briefs::after { display: none; }

.portal-modules { display: grid; grid-template-columns: 730px 350px; gap: 20px; margin-top: 20px; align-items: start; }
.portal-primary-module, .portal-side-module { background: #fff; border: 1px solid var(--line); }
.portal-primary-module { padding: 0 20px 24px; }
.portal-module-heading { display: flex; align-items: center; justify-content: space-between; height: 42px; margin: -1px -1px 14px; border-bottom: 2px solid var(--accent); }
.portal-primary-module > .portal-module-heading { margin-inline: -21px; }
.portal-module-heading h1, .portal-module-heading h2 { align-self: stretch; margin: 0; padding: 7px 17px; color: #fff; background: var(--accent); font-size: 18px; font-weight: 500; }
.portal-module-heading > a { margin-right: 12px; color: #aaa; font-size: 12px; text-decoration: none; }
.portal-module-lead { margin: 0 0 14px; }
.portal-module-image { display: block; height: 290px; background: linear-gradient(135deg,#dce9e7,#a9d8d0); background-position: center; background-size: cover; }
.portal-module-lead h2 { margin: 10px 0 0; font-size: 20px; font-weight: 500; line-height: 1.45; }
.portal-module-lead h2 a { text-decoration: none; }
.portal-headline-list article { display: flex; align-items: center; min-width: 0; height: 31px; border-bottom: 1px solid #edf0f2; }
.portal-headline-list h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.portal-headline-list h2 a { text-decoration: none; }
.portal-primary-module .navigation.pagination { margin-top: 20px; }
.portal-side-module { padding: 0 20px 18px; }
.portal-side-module > .portal-module-heading { margin-inline: -21px; }
.portal-side-module ul { margin: 0; padding: 0; list-style: none; }
.portal-side-module li { border-bottom: 1px solid var(--line); }
.portal-side-module li a { display: block; overflow: hidden; height: 42px; font-size: 13px; line-height: 42px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 820px) {
    .site-header { height: auto; }
    .header-inner { align-items: stretch; flex-direction: column; gap: 0; padding-top: 14px; }
    .site-brand { flex: 0 0 auto; min-width: 0; min-height: 46px; }
    .primary-nav { margin: 0 -20px; overflow-x: auto; }
    .primary-nav ul { flex-wrap: nowrap; min-width: max-content; }
    .primary-nav a { min-height: 44px; padding-inline: 16px; }
    .header-search { width: 100%; padding: 10px 0 14px; }
    .stage-grid, .home-content-grid { grid-template-columns: 1fr; }
    .portal-home .home-stage { height: auto; overflow: visible; }
    .portal-stage-backdrop { inset: 0; transform: none; }
    .portal-home .stage-grid { grid-template-columns: 1fr; min-height: 0; }
    .lead-column, .portal-home .lead-story { height: min(72vw, 430px); }
    .portal-home .lead-media { bottom: 54px; }
    .portal-home .lead-overlay { height: 54px; }
    .portal-home .lead-overlay strong { line-height: 54px; }
    .portal-home .focus-panel { height: auto; }
    .portal-briefs { position: static; grid-template-columns: 1fr; width: 100%; }
    .portal-briefs::after { display: none; }
    .portal-feature-row { height: auto; }
    .portal-modules { grid-template-columns: 1fr; }
    .stage-grid { width: 100%; min-height: 0; }
    .lead-story { min-height: 54vw; }
    .focus-panel { padding-inline: max(20px, calc((100vw - min(calc(100vw - 40px), var(--shell))) / 2)); }
    .home-content-grid { gap: 40px; }
    .page-shell { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
    .sidebar { padding: 0; }
}

@media (max-width: 560px) {
    .shell, .narrow-shell { width: min(calc(100% - 28px), var(--shell)); }
    .primary-nav { margin-inline: -14px; }
    .header-search { padding-bottom: 12px; }
    .lead-story { min-height: 72vw; }
    .portal-home .lead-story { min-height: 0; }
    .lead-overlay { align-items: start; flex-direction: column; gap: 6px; padding: 20px; }
    .portal-home .lead-overlay { justify-content: center; padding: 0 14px; }
    .lead-overlay strong { font-size: 21px; }
    .portal-home .lead-overlay strong { font-size: 15px; line-height: 1.35; white-space: normal; }
    .lead-thumbnails { display: none; }
    .focus-panel { padding: 18px 20px; }
    .portal-feature-row { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
    .portal-feature-card { grid-template-columns: 112px minmax(0,1fr); }
    .portal-brief-list { padding-inline: 14px; }
    .portal-modules { width: 100%; margin-top: 14px; }
    .portal-primary-module { padding-inline: 14px; }
    .portal-primary-module > .portal-module-heading { margin-inline: -15px; }
    .portal-module-image { height: 54vw; }
    .editorial-column { padding: 0 14px 28px; }
    .section-heading { margin-left: -15px; }
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-media { min-height: 52vw; }
    .narrow-shell { padding: 26px 20px 36px; }
    .page-shell { padding-top: 14px; padding-bottom: 56px; }
    .content-column { padding: 20px 16px 28px; }
    .post-card { padding-block: 20px; }
    .card-copy h2 { font-size: 20px; }
    .article-header h1 { font-size: 27px; }
    .article-body { font-size: 16px; }
    .article-body .alignleft, .article-body .alignright { float: none; margin: 1.25em auto; }
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
    .footer-inner { flex-direction: column; }
    .search-form { flex-wrap: wrap; }
    .search-form button { width: 100%; justify-content: center; }
}

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

@media print {
    .site-header, .site-footer, .sidebar, .post-navigation, .comments-area { display: none; }
    .page-shell { display: block; }
    .content-column { width: 100%; }
}
