/* ============================================================
   21 CNS News - SEO / GEO enhancement + layout polish (v6)
   ASCII-only comments for legacy-IE safety. No CSS variables,
   no :has(), no modern grid dependency (inline-block fallback).
   ============================================================ */
:root { --site-w: 1200px; }

/* ---------- base / a11y ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", Arial, sans-serif; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
img { max-width: 100%; height: auto; border: 0; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #ff8a00; outline-offset: 2px; }
a:focus, button:focus, input:focus { outline: 2px solid #ff8a00; outline-offset: 2px; }
::selection { background: #0879c9; color: #fff; }

/* ---------- unified site width (literal px, IE-safe) ---------- */
table[width="1067"] { width: 1200px !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 30; }
.topdh { background: linear-gradient(180deg, #f3f6f9 0%, #e6ecf2 100%); border-bottom: 1px solid #dbe3ea; }
.topdh ul li { font-size: 13px; letter-spacing: .3px; }
.header-main { background: #fff; }
.header-main a[aria-label="return home"] img { display: block; max-height: 88px; }
.input_text { border: 1px solid #cdd9e5; border-radius: 3px 0 0 3px; height: 30px; padding-left: 8px; outline: none; transition: border-color .18s; }
.input_text:focus { border-color: #0879c9; }
.input_submit { border: 0; cursor: pointer; transition: opacity .18s; }
.input_submit:hover { opacity: .85; }

/* ---------- primary nav ---------- */
.primary-nav { background: #0879c9; }
.nav-wrap { position: relative; display: block; width: 1200px; max-width: 100%; margin: 0 auto; height: 50px; }
.nav-main { white-space: nowrap; }
.nav-item { position: relative; display: inline-block; vertical-align: top; }
.nav-main a, .nav-main button.nav-more {
  position: relative; display: block; padding: 10px 25px; font-size: 16px;
  color: #fff; line-height: 30px; text-align: center; text-decoration: none;
  background: transparent; border: 0; font-family: inherit; cursor: pointer;
  transition: background-color .18s ease;
}
.nav-main a:hover, .nav-main a.cur, .nav-main a.hover, .nav-more-item:hover > .nav-more,
.nav-more-item.is-open > .nav-more { background-color: #025aac; text-decoration: none; }
.nav-item > a::after { content: " "; position: absolute; right: 0; top: 19px; width: 1px; height: 12px; background-color: rgba(255,255,255,.35); }
.nav-item:hover > a::after, .nav-item > a.cur::after, .nav-more-item > .nav-more::after { content: none; }
.nav-more-item { float: right; }
.nav-main button.nav-more { padding: 10px 22px 10px 20px; background-image: none; }
.nav-more-arrow {
  display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: middle;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff;
  transition: transform .2s ease;
}
.nav-more-item:hover .nav-more-arrow, .nav-more-item.is-open .nav-more-arrow { transform: rotate(180deg); }

/* ---------- sub nav (JS removes empty ones, so no :has() needed) ---------- */
.subnav {
  display: none; position: absolute; top: 50px; left: 0; z-index: 998;
  min-width: 150px; background: #fff; padding: 6px 0; border-top: 3px solid #025aac;
  box-shadow: 0 12px 28px rgba(8, 42, 78, .2); border-radius: 0 0 6px 6px;
}
.nav-item:hover > .subnav { display: block; animation: navPanelIn .16s ease-out; }
.nav-item:focus-within > .subnav { display: block; animation: navPanelIn .16s ease-out; }
.subnav a {
  display: block; padding: 9px 20px; font-size: 14px; line-height: 1.4; color: #26405c;
  text-decoration: none; white-space: nowrap; transition: background-color .16s, color .16s;
}
.subnav a::after { content: none !important; }
.subnav a:hover, .subnav a:focus { background: #f0f6fc; color: #0879c9; text-decoration: none; }

/* ---------- all-categories panel ---------- */
.nav-list {
  display: none; position: absolute; top: 50px; right: 0; left: auto; z-index: 999;
  width: 1200px; max-width: 100vw; box-sizing: border-box; background: #fff; padding: 0;
  border-top: 3px solid #025aac; box-shadow: 0 16px 40px rgba(8, 42, 78, .22);
}
.nav-more-item:hover > .nav-list,
.nav-more-item.is-open > .nav-list,
.nav-wrap.is-open .nav-list { display: block; animation: navPanelIn .18s ease-out; }
.nav-wrap.nav-user-closed .nav-list { display: none !important; }
@keyframes navPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
#navWrap .nav-grid a, #navWrap .subnav a { color: #26405c; }
#navWrap .nav-grid a:hover, #navWrap .subnav a:hover { color: #fff; }
#navWrap .nav-grid a:hover .nav-dot { background: #fff; }
#navWrap .nav-panel-foot { color: #8a97a5; }
#navWrap .nav-panel-foot a { color: #0879c9; }
#navWrap .nav-panel-title span { color: #8a97a5; }
.nav-panel { width: 100% !important; box-sizing: border-box; padding: 18px 24px 14px; }
.nav-panel-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9eef4; padding-bottom: 11px; margin-bottom: 15px; }
.nav-panel-title strong { font-size: 18px; color: #075aa2; letter-spacing: .5px; }
.nav-panel-title span { margin-left: 14px; font-size: 13px; color: #8a97a5; }
.nav-panel-close { width: 30px; height: 30px; line-height: 26px; font-size: 22px; color: #8a97a5; background: #f4f7fa; border: 0; border-radius: 50%; cursor: pointer; transition: all .18s; }
.nav-panel-close:hover { background: #0879c9; color: #fff; transform: rotate(90deg); }
.nav-group { margin-bottom: 14px; }
.nav-group h2 { font-size: 14px; color: #33465c; margin: 0 0 10px; padding-left: 10px; border-left: 3px solid #0879c9; line-height: 18px; }
/* inline-block grid w/ modern grid enhancement - IE falls back to inline-block */
.nav-grid { list-style: none; margin: 0; padding: 0; font-size: 0; }
.nav-grid li { display: inline-block; vertical-align: top; width: 14.28%; margin: 0; padding: 4px 4px; box-sizing: border-box; font-size: 15px; }
.nav-grid a {
  display: block; padding: 9px 10px; font-size: 15px; color: #26405c; text-decoration: none;
  background: #f6f9fd; border: 1px solid #e7eef6; border-radius: 6px;
  transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.nav-grid a:hover { background: #0879c9; color: #fff; border-color: #0879c9; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(8, 121, 201, .28); text-decoration: none; }
.nav-dot { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #6aa8dc; vertical-align: middle; }
.nav-grid a:hover .nav-dot { background: #fff; }
.nav-panel-foot { text-align: right; font-size: 13px; color: #8a97a5; border-top: 1px dashed #e3eaf1; padding-top: 10px; }
.nav-panel-foot a { color: #0879c9; text-decoration: none; }
.nav-panel-foot a:hover { text-decoration: underline; }
@supports (display: grid) {
  .nav-grid { display: grid; font-size: 15px; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .nav-grid li { display: block; width: auto; padding: 0; }
}
@media (max-width: 1240px) {
  .nav-grid li { width: 16.66%; }
}
@media (max-width: 1090px) {
  .nav-grid li { width: 25%; }
}
@supports (display: grid) {
  @media (max-width: 1240px) { .nav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
  @media (max-width: 1090px) { .nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- semantic blocks ---------- */
main { display: block; }
.channel-section, .article-section { position: relative; }
.block-title h2, .section-title h2 { font-size: 18px; line-height: 33px; }
.kd405 li, .kdbx li, .kdbxv li, .kdbfb li, .kd100 li { list-style: none; }
.kd405 a, .kdbx a, .kdbxv a, .kdbfb a, .kd100 a { transition: color .16s ease; }
.kd405 a:hover, .kdbx a:hover, .kdbxv a:hover, .kdbfb a:hover, .kd100 a:hover { color: #0879c9; }
.css16 { transition: color .16s ease; }
.css16:hover { color: #0879c9 !important; }
.focusBox { border-radius: 6px; overflow: hidden; }
.focusBox .pic img { border-radius: 6px; }
.adkd img { display: block; }

/* ---------- breadcrumb ---------- */
.breadcrumb { background: #f7fafd; border: 1px solid #e5edf5; border-radius: 5px; padding: 9px 14px; font-size: 14px; color: #6b7a8b; }
.breadcrumb a { color: #0879c9; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb img { vertical-align: middle; margin-right: 6px; }

/* ---------- article page ---------- */
.article-page { background: #fff; }
.article-page h1.cssbiaoti { font-size: 26px; line-height: 1.5; color: #123c6b; padding: 4px 0; }
.article-meta { font-size: 14px; color: #7a8794; }
.article-meta a { color: #0879c9; }
.article-body { font-size: 16px; line-height: 1.95; color: #2b2b2b; word-break: break-word; }
.article-body p { margin: 0 0 1.05em; }
.article-body img { display: block; margin: 14px auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.article-body a { color: #0879c9; }
.article-nav { font-size: 14px; line-height: 2; color: #666; border-top: 1px dashed #dfe7ef; padding-top: 12px; }
.article-nav a { color: #0879c9; }
time { font-style: normal; }

/* ---------- list & paging ---------- */
.article-list a.css10 { transition: color .16s ease; }
.article-list a.css10:hover { color: #0879c9; }
.pages a, .pages span { border-radius: 4px; transition: all .16s; }

/* ---------- footer ---------- */
.site-footer { background: #f7f9fb; border-top: 2px solid #0879c9; margin-top: 10px; padding: 22px 0 18px; }
.footer-inner { width: 1200px; max-width: 96%; margin: 0 auto; text-align: center; color: #5a6875; font-size: 13px; line-height: 2; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: #3c556e; margin: 0 7px; text-decoration: none; }
.footer-links a:hover { color: #0879c9; text-decoration: underline; }
.footer-entity { margin: 0; color: #6a7887; }
.footer-entity strong { color: #33465c; }
.footer-copy, .footer-note { margin: 2px 0; }
.footer-badges { margin-top: 12px; }
.footer-badges img { margin: 0 12px; vertical-align: middle; }
.go-top { transition: transform .2s ease; }
.go-top:hover { transform: translateY(-3px); }

/* ============================================================
   Layout polish
   ============================================================ */
/* ad slots follow site width */
.adkd, .ad1067 { width: 1200px !important; max-width: 100% !important; }
.adkd img, .ad1067 img { width: 100% !important; min-width: 0 !important; }

/* inner content table fills area; sidebar widened to 320px */
table[width="1045"] { width: 100% !important; }
td[role="complementary"][width="265"] { width: 320px !important; }

/* sidebar column heading no wrap */
[role="complementary"] td[width="29%"] { width: auto !important; }
[role="complementary"] h2 { white-space: nowrap; }

/* tighten list left padding */
.article-list td { padding-left: 5px !important; padding-right: 5px !important; }

/* article title: single line + ellipsis + full name in title/alt
   (list / article / search pages only; div truncates, link inline) */
body.page-list .article-list td.css14 > div,
body.page-article .article-list td.css14 > div,
body.page-search .article-list td.css14 > div,
[role="complementary"] td.css14 > div {
  white-space: nowrap !important; overflow: hidden !important;
  text-overflow: ellipsis !important; display: block !important; max-width: 100%;
}
body.page-list .article-list td.css14 > div a.css10,
body.page-article .article-list td.css14 > div a.css10,
body.page-search .article-list td.css14 > div a.css10,
[role="complementary"] td.css14 > div a.css10 {
  display: inline !important; max-width: none !important; vertical-align: baseline !important;
}

/* article body: override inline nowrap to prevent page break */
.article-body span[style*="nowrap"], .article-body [style*="text-wrap-mode"] {
  white-space: normal !important; text-wrap-mode: wrap !important;
}
.article-body { overflow-wrap: break-word; word-wrap: break-word; }

/* all-categories panel: no leading dot / trailing separator */
.nav-grid a::after { content: none !important; }
.nav-grid .nav-dot { display: none !important; }

/* stable list columns / sidebar bullet alignment - JS adds .has-sidebar (IE-safe, no :has()) */
.has-sidebar { table-layout: fixed !important; }
td[role="complementary"] { width: 320px !important; }

/* homepage focus area: left col fills cell, lower blocks fill width */
table[height="278"] div[style*="width:405px"] { width: 100% !important; box-sizing: border-box !important; }
table[width="798"] { width: 100% !important; }
td[colspan="2"][width="405"] { width: auto !important; }

/* focus area widths: right col 700 / left 500 (Round-5) */
table[height="278"] > tbody > tr > td:first-child { width: 500px !important; }
table[height="278"] > tbody > tr > td[width="656"] { width: 700px !important; }
table[height="278"] .focusBox { width: 100% !important; }
table[height="278"] td[width="275"] { width: 300px !important; }

/* Round-6 (critical fix): slideshow image & caption width aligned to container */
table[height="278"] .focusBox .pic { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; width: 100% !important; }
table[height="278"] .focusBox .pic li { width: 100% !important; left: 0 !important; }
table[height="278"] .focusBox .pic img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block !important; }
table[height="278"] .focusBox .txt,
table[height="278"] .focusBox .txt-bg { width: 100% !important; left: 0 !important; }

/* sidebar inner padding (Round-5 B) */
[role="complementary"] table[cellpadding="6"] td { padding: 3px !important; }

/* FIX-V7: list inner table fixed columns - prevent long titles from pushing cells */
.article-list { table-layout: fixed !important; width: 100% !important; }
.article-list td.css14[width="85%"] { width: 721px !important; max-width: 721px !important; }
.article-list td.css14[width="15%"] { width: 127px !important; max-width: 127px !important; }
.article-list td.css14 > div { max-width: 100% !important; overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; }
.article-list td.css14 > div a.css10 { display: inline !important; }

/* ============================================================
   Sidebar bottom-stick (V8): right column follows scroll until its
   bottom is visible, then sticks to viewport bottom while the left
   column keeps scrolling. ASCII-only for legacy-IE safety.
   ============================================================ */
td[role="complementary"] { vertical-align: top !important; }
.side-sticky { position: -webkit-sticky; position: sticky; top: 0; width: 100%; }
