:root {
  --brand: #087fe7;
  --brand-dark: #0566bd;
  --brand-soft: #eaf5ff;
  --green: #168b68;
  --green-soft: #eaf8f3;
  --amber: #b96b08;
  --amber-soft: #fff5e5;
  --ink: #17212b;
  --body: #3e4b57;
  --muted: #73808c;
  --line: #dfe6ec;
  --line-strong: #cbd6df;
  --surface: #ffffff;
  --page: #f5f7f9;
  --shadow: 0 12px 32px rgba(28, 55, 80, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(203, 214, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(var(--container), calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo-link { width: 168px; flex: 0 0 auto; }
.logo-link img { width: 168px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; font-size: 14px; color: #465564; }
.main-nav a { padding: 21px 0 18px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.header-cta:hover { background: var(--brand-dark); }
.reading-progress { position: fixed; z-index: 40; top: 67px; left: 0; width: 0; height: 3px; background: var(--green); }

.page-shell { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.breadcrumb { padding: 18px 0 13px; color: var(--muted); font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 7px; color: #a0abb5; }
.breadcrumb a:hover { color: var(--brand); }

.list-intro {
  padding: 32px 0 27px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.list-intro .page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: end; gap: 48px; }
.section-kicker { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 700; }
.list-intro h1 { margin: 0; font-size: 34px; line-height: 1.35; letter-spacing: 0; }
.intro-copy { max-width: 690px; margin: 12px 0 0; color: var(--body); }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8, 127, 231, 0.12); }
.search-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 19px;
}

.topic-strip { padding: 21px 0; border-bottom: 1px solid var(--line); background: #fff; }
.topic-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic-link {
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.topic-link:hover { border-color: #9bcdf5; background: #f8fcff; }
.topic-link strong { display: block; margin-bottom: 2px; font-size: 15px; }
.topic-link span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 30px; padding: 30px 0 56px; align-items: start; }
.content-grid > section { min-width: 0; }
.stream-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.stream-head h2 { margin: 0; font-size: 21px; }
.stream-count { color: var(--muted); font-size: 13px; }
.article-stream { border-top: 1px solid var(--line-strong); }
.article-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.date-block { padding-top: 2px; color: var(--muted); }
.date-block strong { display: block; color: #3a4855; font-size: 24px; line-height: 1.1; }
.date-block span { font-size: 12px; }
.article-copy h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.article-copy h3 a:hover { color: var(--brand); }
.article-copy p { margin: 8px 0 10px; color: var(--body); font-size: 14px; line-height: 1.7; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: 12px; }
.category-link { color: var(--green); font-weight: 700; }
.read-link { margin-left: auto; color: var(--brand-dark); font-weight: 700; }
.empty-state { display: none; padding: 42px 0; color: var(--muted); text-align: center; }
.pagination-wrap {
  width: 100%;
  margin-top: 30px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: thin;
}
.pagination {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 42px;
  padding: 0 15px;
  margin-left: -1px;
  border: 1px solid #00a9ad;
  color: #17212b;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}
.page-link:first-child { margin-left: 0; }
.page-link:hover { position: relative; z-index: 1; color: #007d82; background: #effbfb; }
.page-link.current { position: relative; z-index: 2; color: #000; font-weight: 700; background: #f5ffff; }
.page-next, .page-last { min-width: 82px; }

.sidebar { position: sticky; top: 94px; }
.side-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.side-title { margin: 0 0 12px; font-size: 15px; }
.side-links { display: grid; gap: 10px; }
.side-links a { color: var(--body); font-size: 13px; line-height: 1.55; }
.side-links a:hover { color: var(--brand); }
.editor-note { padding: 16px; border-left: 3px solid var(--green); background: var(--green-soft); color: #315a4c; font-size: 13px; line-height: 1.65; }

.article-layout { display: grid; grid-template-columns: minmax(0, 820px) 260px; justify-content: center; gap: 30px; padding-bottom: 58px; align-items: start; }
.article-layout-single { grid-template-columns: minmax(0, 820px); }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.article-header { padding: 38px 48px 28px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 0; font-size: 31px; line-height: 1.45; letter-spacing: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.article-meta span { position: relative; }
.article-meta span + span::before { content: ""; position: absolute; top: 10px; left: -10px; width: 3px; height: 3px; border-radius: 50%; background: #a5afb8; }
.article-body { padding: 30px 48px 46px; color: var(--body); }
.article-body p { margin: 0 0 18px; }
.answer-box { margin: 0 0 24px; padding: 20px 22px; border-left: 4px solid var(--brand); background: var(--brand-soft); color: #294c68; }
.answer-box strong { display: block; margin-bottom: 5px; color: var(--brand-dark); }
.answer-box p { margin: 0; }
.key-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 30px; }
.key-point { padding: 14px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.key-point b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; }
.key-point span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.article-body h2 { margin: 39px 0 16px; color: var(--ink); font-size: 23px; line-height: 1.45; scroll-margin-top: 92px; }
.article-body h2::before { content: ""; display: inline-block; width: 5px; height: 23px; margin-right: 10px; border-radius: 2px; vertical-align: -3px; background: var(--brand); }
.article-body h3 { margin: 28px 0 10px; color: #24313d; font-size: 18px; line-height: 1.5; scroll-margin-top: 92px; }
.article-body ul, .article-body ol { padding-left: 23px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.fact-note { margin: 22px 0; padding: 17px 19px; border: 1px solid #f1d4a5; border-radius: 6px; background: var(--amber-soft); color: #6d4a1d; font-size: 14px; }
.fact-note strong { color: var(--amber); }
.table-wrap { margin: 22px 0 27px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 6px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
th, td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { color: #334250; background: #f5f8fa; white-space: nowrap; }
td:first-child { color: var(--ink); font-weight: 700; }
.score { color: var(--amber); font-weight: 700; white-space: nowrap; }
.verdict { margin: 20px 0 27px; padding: 18px 20px; border: 1px solid #b9dfd3; border-radius: 6px; background: var(--green-soft); color: #315a4c; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 17px 34px 17px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 14px; right: 3px; color: var(--brand); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq p { padding: 0 4px 16px; margin: 0; color: var(--body); }
.source-note { margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: 38px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pager a { min-height: 96px; padding: 16px 18px; color: inherit; text-decoration: none; background: #fff; }
.pager a + a { border-left: 1px solid var(--line); }
.pager a:hover { background: #f7fbff; }
.pager-label { display: block; margin-bottom: 5px; color: var(--brand); font-size: 12px; font-weight: 700; }
.pager-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--body); font-size: 13px; line-height: 1.6; }

.toc { position: sticky; top: 94px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.toc-title { margin: 0 0 9px; font-size: 14px; font-weight: 700; }
.toc a { display: block; padding: 7px 0 7px 11px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.toc a:hover, .toc a.active { border-left-color: var(--brand); color: var(--brand); }
.share-button { width: 100%; min-height: 38px; margin-top: 13px; border: 1px solid #9bcdf5; border-radius: 5px; color: var(--brand-dark); background: #fff; cursor: pointer; font-size: 13px; }
.share-button:hover { background: var(--brand-soft); }

.site-footer { padding: 35px 20px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 11px; color: #53616e; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .list-intro .page-shell { grid-template-columns: 1fr; gap: 22px; }
  .topic-list { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .article-layout { grid-template-columns: 1fr; }
  .sidebar, .toc { display: none; }
}

@media (max-width: 640px) {
  .header-inner, .page-shell { width: min(100% - 28px, var(--container)); }
  .header-inner { height: 60px; }
  .logo-link, .logo-link img { width: 150px; }
  .header-cta { min-height: 35px; padding: 0 12px; font-size: 12px; }
  .reading-progress { top: 59px; }
  .breadcrumb { padding-top: 13px; }
  .list-intro { padding: 25px 0 23px; }
  .list-intro h1 { font-size: 27px; }
  .intro-copy { font-size: 14px; }
  .topic-list { grid-template-columns: 1fr 1fr; gap: 9px; }
  .topic-link { min-height: 86px; padding: 11px 12px; }
  .content-grid { padding-top: 23px; }
  .article-item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 21px 0; }
  .date-block strong { font-size: 20px; }
  .article-copy h3 { font-size: 17px; }
  .article-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .read-link { width: 100%; margin-left: 0; }
  .pagination-wrap { margin-top: 23px; }
  .pagination { justify-content: flex-start; }
  .page-link { min-width: 44px; height: 40px; padding: 0 12px; }
  .page-next, .page-last { min-width: 76px; }
  .article-card { margin: 0 -14px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .article-header { padding: 27px 22px 23px; }
  .article-header h1 { font-size: 24px; }
  .article-body { padding: 25px 22px 34px; font-size: 15px; line-height: 1.82; }
  .key-points { grid-template-columns: 1fr; }
  .article-body h2 { margin-top: 34px; font-size: 20px; }
  .article-body h3 { font-size: 17px; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { border-top: 1px solid var(--line); border-left: 0; }
}

@media print {
  .site-header, .reading-progress, .toc, .share-button, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .page-shell, .article-layout { width: 100%; display: block; }
  .article-card { border: 0; box-shadow: none; }
}

/* WordPress integration */
.custom-logo-link { width: 168px; flex: 0 0 auto; }
.custom-logo { width: 168px; height: auto; }
.main-nav .menu-list,
.footer-links .menu-list {
  display: flex;
  align-items: center;
  gap: inherit;
  padding: 0;
  margin: 0;
  list-style: none;
}
.main-nav .menu-item.current-menu-item > a,
.main-nav .menu-item.current-post-ancestor > a { color: var(--brand); border-bottom-color: var(--brand); }
.stream-head h1 { margin: 0; font-size: 21px; line-height: 1.45; }
.article-copy h2 { margin: 0; font-size: 19px; line-height: 1.5; }
.article-copy h2 a:hover { color: var(--brand); }
.empty-state.visible { display: block; }
.section-kicker a:hover { color: var(--brand-dark); }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content img { height: auto; }
.entry-content figure { max-width: 100%; margin: 24px 0; }
.entry-content figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; text-align: center; }
.entry-content .alignwide { width: min(106%, 920px); max-width: 106%; margin-left: -3%; }
.entry-content .alignleft { float: left; margin: 7px 22px 14px 0; }
.entry-content .alignright { float: right; margin: 7px 0 14px 22px; }
.entry-content blockquote { margin: 25px 0; padding: 19px 22px; border-left: 3px solid #b7c3cf; color: #52606d; background: #fafbfc; }
.entry-content .wp-block-table { margin: 22px 0 27px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 6px; }
.entry-content .wp-block-table table { margin: 0; border: 0; }
.entry-content .wp-block-button__link { border-radius: 6px; background: var(--brand); font-size: 14px; }
.entry-content .wp-block-separator { margin: 34px 0; border-color: var(--line); }
.entry-content .wp-block-embed { margin: 26px 0; }
.toc-subitem { padding-left: 20px !important; font-size: 11px !important; }
.pager-empty { min-height: 96px; background: #fff; }
.page-layout { grid-template-columns: minmax(0, 900px); }
.post-page-links { display: flex; gap: 6px; margin-top: 28px; }
.post-page-links .post-page-numbers { min-width: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; text-align: center; text-decoration: none; }
.not-found { min-height: 55vh; padding: 80px 0; text-align: center; }
.not-found h1 { margin: 0 0 10px; font-size: 34px; }
.not-found p { margin-bottom: 24px; color: var(--muted); }
.not-found .header-cta { width: max-content; }
.admin-bar .site-header { top: 32px; }
.admin-bar .reading-progress { top: 99px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .reading-progress { top: 105px; }
}

@media (max-width: 640px) {
  .custom-logo-link, .custom-logo { width: 150px; }
  .stream-head h1 { font-size: 20px; }
  .article-copy h2 { font-size: 17px; }
  .entry-content .alignwide { width: 100%; max-width: 100%; margin-left: 0; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 20px auto; }
}
