/* =========================================================
   中国发展网 · 新版视觉系统
   ========================================================= */
:root {
  --brand: #b5121b;
  --brand-dark: #8d0e15;
  --brand-soft: #fbeded;
  --ink: #1d2430;
  --ink-2: #3d4756;
  --muted: #87909e;
  --line: #e9e9ec;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --gold: #c69b4a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(25, 30, 40, .05);
  --shadow-md: 0 12px 40px rgba(25, 30, 40, .12);
  --header-h: 108px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 顶部区域 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  max-width: 1120px;
  height: 66px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 34px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; white-space: nowrap; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; margin-top: 3px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { position: relative; }
.menu-toggle span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.search-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  max-width: 1120px;
  margin: 0 auto;
}
.search-bar.is-open { display: flex; animation: slideDown .22s ease; }
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input[type="search"] {
  flex: 1; min-width: 0; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: var(--bg); color: var(--ink);
  outline: none;
}
.search-bar input[type="search"]:focus { border-color: var(--brand); background: #fff; }
.search-bar button {
  height: 38px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600;
}

.channel-bar {
  border-top: 1px solid var(--line);
  height: 42px;
  display: flex;
  align-items: stretch;
}
.channel-scroll {
  flex: 1; min-width: 0;
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 10px;
  scroll-snap-type: x proximity;
}
.channel-scroll::-webkit-scrollbar { display: none; }
.channel-link {
  position: relative; flex: none;
  display: flex; align-items: center;
  padding: 0 12px; font-size: 14px; color: var(--ink-2);
  scroll-snap-align: start; white-space: nowrap;
}
.channel-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: var(--brand); transform: scaleX(0);
  transition: transform .2s;
}
.channel-link:hover, .channel-link.is-active { color: var(--brand); font-weight: 600; }
.channel-link:hover::after, .channel-link.is-active::after { transform: scaleX(1); }
.channel-more {
  flex: none; display: flex; align-items: center; gap: 4px;
  padding: 0 12px 0 8px; border: 0; border-left: 1px solid var(--line);
  background: #fff; color: var(--brand); font-size: 13px; font-weight: 600;
}
.channel-more svg { width: 14px; height: 14px; transition: transform .2s; }
.channel-more[aria-expanded="true"] svg, .channel-more.is-open svg { transform: rotate(180deg); }

/* ---------- 下拉导航面板 ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(18, 22, 30, .42);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(90vw, 420px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.22, .8, .25, 1);
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.nav-panel.is-open { transform: translateX(0); }
.nav-panel__head {
  flex: none;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-panel__head .eyebrow { display: block; color: var(--brand); font-size: 10px; letter-spacing: 2px; font-weight: 700; }
.nav-panel__head strong { display: block; font-size: 21px; margin-top: 4px; font-family: var(--serif); }
.nav-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink-2); font-size: 24px; line-height: 1;
}
.nav-panel__body { flex: 1; overflow-y: auto; padding: 8px 12px 24px; }
.nav-group { border-bottom: 1px solid var(--line); }
.nav-group__title {
  width: 100%; border: 0; background: transparent;
  display: flex; align-items: center; gap: 10px;
  padding: 15px 8px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-align: left;
}
.nav-group__title svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform .25s; }
.nav-group.is-open .nav-group__title svg { transform: rotate(180deg); }
.nav-group__icon {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--brand-soft); position: relative;
}
.nav-group__icon::after {
  content: ''; position: absolute; inset: 6px;
  border: 2px solid var(--brand); border-radius: 3px;
}
.nav-group__icon--insight::after { border-radius: 50%; }
.nav-group__icon--region::after { transform: rotate(45deg); border-radius: 2px; }
.nav-group__icon--service::after { border-style: dotted; }
.nav-group__items { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.nav-group.is-open .nav-group__items { max-height: 620px; }
.nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 4px 14px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 9px 10px; border-radius: 8px;
  background: var(--bg); color: var(--ink-2); font-size: 13px;
  transition: background .2s, color .2s;
}
.nav-item svg { width: 12px; height: 12px; color: var(--muted); flex: none; }
.nav-item:hover { background: var(--brand-soft); color: var(--brand); }
.nav-panel__foot {
  flex: none; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}

/* ---------- 页面容器 ---------- */
.site-main { min-height: 60vh; }
.page-home, .page-cat, .page-search, .article-page {
  max-width: 1120px; margin: 0 auto;
  padding: 16px 16px 48px;
}
.section { margin-top: 26px; }
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section__title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 700; font-family: var(--serif); }
.section__bar { width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.section__more { color: var(--muted); font-size: 13px; }
.section__more span { color: var(--brand); font-size: 18px; line-height: 0; }
.section__hint { color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--brand); font-size: 11px; letter-spacing: 2px; font-weight: 700; }

/* ---------- 首页焦点图 ---------- */
.ad-strip { margin: 0 -16px 14px; }
.ad-strip img { width: 100%; height: auto; }
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: #20242c;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}
.hero--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #1b2230);
}
.hero--empty strong { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 2px; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ''; position: absolute; inset: 40% 0 0;
  background: linear-gradient(to top, rgba(12, 16, 24, .88), rgba(12, 16, 24, 0));
}
.hero__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  color: #fff;
}
.hero__tag {
  display: inline-block; padding: 2px 8px; margin-bottom: 8px;
  border-radius: 4px; background: var(--brand); font-size: 11px; letter-spacing: 1px;
}
.hero__caption strong { display: block; font-size: 17px; line-height: 1.45; font-weight: 600; }
.hero__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 24px; line-height: 1;
}
.hero__arrow--prev { left: 10px; }
.hero__arrow--next { right: 10px; }
.hero__dots { position: absolute; z-index: 3; right: 16px; bottom: 20px; display: flex; gap: 5px; }
.hero__dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .55); transition: width .25s, background .25s;
}
.hero__dots button.is-active { width: 18px; background: #fff; }

/* ---------- 要闻卡片 / 列表 ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-card {
  display: block; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-card:hover .feature-card__img img { transform: scale(1.04); }
.feature-card__body { padding: 14px; }
.feature-card__body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.feature-card__meta { color: var(--muted); font-size: 12px; }

.news-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.news-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #fcfcfd; }
.news-item__body { flex: 1; min-width: 0; }
.news-item__body h3 {
  margin: 0 0 8px; font-size: 15px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.news-item:hover h3 { color: var(--brand); }
.news-item__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.news-item__thumb { width: 100px; height: 68px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item--compact { padding: 12px 14px; }
.news-item--compact .news-item__thumb { width: 84px; height: 58px; }
.news-item--compact h3 { font-size: 14px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; line-height: 1.6; }
.tag--outline { color: var(--brand); border: 1px solid rgba(181, 18, 27, .35); }
.tag--muted { background: var(--bg); color: var(--muted); }
.tag--solid { background: var(--brand); color: #fff; padding: 3px 10px; font-size: 12px; }
.ad-inline { padding: 10px 14px 16px; border-bottom: 1px solid var(--line); }
.ad-inline img { width: 100%; border-radius: 8px; }
.load-more {
  display: block; width: 100%; margin-top: 14px;
  padding: 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink-2); font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
}
.load-more:hover { border-color: var(--brand); color: var(--brand); }
.load-more:disabled { opacity: .6; cursor: default; }

/* ---------- 详情页 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__current { color: var(--ink-2); }
.article-head {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.article-head h1 {
  margin: 14px 0 10px; font-family: var(--serif);
  font-size: 25px; line-height: 1.4; font-weight: 700; letter-spacing: .3px;
}
.article-subtitle { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.article-meta__source { color: var(--brand); }
.article-cover { margin: 14px 0 0; border-radius: var(--radius-lg); overflow: hidden; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article-content {
  margin-top: 14px; padding: 24px 20px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 16px; line-height: 1.95; color: #2b3240;
  overflow-wrap: break-word;
}
.article-content p { margin: 0 0 1.25em; text-indent: 2em; }
.article-content p:last-child { margin-bottom: 0; }
.article-content h2, .article-content h3 {
  margin: 1.6em 0 .8em; font-family: var(--serif); font-size: 19px; line-height: 1.5;
  padding-left: 10px; border-left: 3px solid var(--brand);
}
.article-content img { width: 100%; height: auto; margin: 1.4em auto; border-radius: 8px; }
.article-content p:has(img) { text-indent: 0; text-align: center; }
.article-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  margin: 1.5em 0; padding: 12px 16px;
  border-left: 3px solid var(--gold); background: #faf8f4;
  color: var(--ink-2); text-indent: 0;
}
.video-embed { margin-top: 14px; background: #000; border-radius: var(--radius-lg); overflow: hidden; text-align: center; }
.article-editor { margin-top: 12px; text-align: right; color: var(--muted); font-size: 12px; }
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 18px; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.share-bar__label { color: var(--muted); font-size: 12px; margin-right: 4px; }
.share-bar button, .share-bar a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--ink-2); font-size: 12px;
  transition: border-color .2s, color .2s;
}
.share-bar button:hover, .share-bar a:hover { border-color: var(--brand); color: var(--brand); }
.share-bar svg { width: 14px; height: 14px; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.article-pager__item {
  padding: 12px 14px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.article-pager__item span { display: block; color: var(--brand); font-size: 11px; margin-bottom: 5px; }
.article-pager__item strong {
  display: block; font-size: 13px; font-weight: 500; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-pager__item--next { text-align: right; }
.article-pager__item.is-empty { background: transparent; box-shadow: none; }
.pic-gallery { margin-top: 14px; display: grid; gap: 14px; }
.pic-gallery__item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pic-gallery__item img { width: 100%; }
.pic-gallery__item figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- 栏目 / 搜索页 ---------- */
.cat-head {
  padding: 26px 22px; border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #b5121b 60%, #d0393f 100%);
  box-shadow: var(--shadow-sm);
}
.cat-head .eyebrow { color: rgba(255, 255, 255, .7); }
.cat-head h1 { margin: 8px 0 6px; font-family: var(--serif); font-size: 27px; font-weight: 700; }
.cat-head p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .78); }
.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-form input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff;
}
.search-form input:focus { border-color: var(--brand); }
.search-form button { padding: 0 20px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 16px calc(24px + env(safe-area-inset-bottom));
  background: #20242c; color: rgba(255, 255, 255, .7);
}
.footer-bottom {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  font-size: 11px; color: rgba(255, 255, 255, .45);
}
.site-footer--simple { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
.site-footer--simple .footer-bottom { margin-top: 0; }

/* ---------- 悬浮控件 ---------- */
.back-top {
  position: fixed; z-index: 40; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--brand);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top svg { width: 20px; height: 20px; }
.read-progress {
  position: fixed; z-index: 80; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width .1s linear;
}

/* ---------- 动效 ---------- */
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 手机端专用（本版本仅面向手机访问） ---------- */
body { max-width: 480px; margin: 0 auto; background: var(--surface); }
.site-footer { max-width: 480px; margin: 0 auto; }
.nav-overlay { left: 0; right: 0; width: 100%; max-width: 480px; margin: 0 auto; }
.nav-panel { left: 0; right: 0; width: 92%; max-width: 440px; margin: 0 auto; }
.back-top { right: max(16px, calc(50% - 222px)); }

.page-home, .page-cat, .page-search, .article-page { padding: 14px 14px 42px; }
.header-main { height: 60px; padding: 0 14px; }
.brand img { height: 30px; }
.brand-text strong { font-size: 16px; }
.brand-text small { font-size: 9px; }
.feature-grid { grid-template-columns: 1fr; }
.hero { aspect-ratio: 16 / 10; }
.hero__caption { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.hero__caption strong { font-size: 16px; }
.article-head h1 { font-size: 23px; }
.article-head, .article-content { padding: 20px 18px; }
.news-item { padding: 12px 14px; }
.news-item__body h3 { font-size: 15px; }
.news-item__thumb { width: 96px; height: 66px; }
.nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-bottom { justify-content: center; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
