/* ==========================================================================
   中阳國際 CMS — 前台主题样式
   设计基线：保留织梦 zy 模板的布局骨架与类名体系（container / page-main /
   wrap-box / item-box / view-more / news-d-* 等），视觉全面升级为橙色现代风格，
   移动优先 + 断点渐进增强，适配手机 / 平板 / 桌面 / 大屏。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌橙 */
  --brand-50: #fff6ee;
  --brand-100: #ffead6;
  --brand-200: #ffd3a8;
  --brand-300: #ffb571;
  --brand-400: #ff943d;
  --brand-500: #ff7a00;
  --brand-600: #ef6500;
  --brand-700: #cc5200;
  --brand-800: #a33f00;

  /* 中性色 */
  --ink-900: #14181f;
  --ink-800: #1f2530;
  --ink-700: #333b48;
  --ink-600: #4c5566;
  --ink-500: #6b7484;
  --ink-400: #9aa3b2;
  --ink-300: #c7cdd8;
  --ink-200: #e4e8ef;
  --ink-100: #f1f3f7;
  --ink-50: #f8f9fb;
  --white: #ffffff;

  /* 深底色（页脚 / 深色区块） */
  --navy-900: #0d1420;
  --navy-800: #131c2b;
  --navy-700: #1c2739;

  /* 语义色 */
  --success: #18a058;
  --warning: #f0a020;
  --danger: #e03c3c;

  /* 排版 */
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  --font-number: "Bahnschrift", "DIN Alternate", "Inter", sans-serif;

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 1240px;
  --header-h: 72px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(20, 24, 31, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 24, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 24, 31, 0.12);
  --shadow-brand: 0 12px 28px rgba(255, 122, 0, 0.24);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.36s;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.32; color: var(--ink-900); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* 键盘可达性 */
:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 字号体系（随设备缩放） */
.font52 { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.18; }
.font40 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.22; }
.font38 { font-size: clamp(24px, 3.2vw, 38px); }
.font32 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; }
.font28 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.34; }
.font24 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; }
.font20 { font-size: clamp(17px, 1.6vw, 20px); }
.font18 { font-size: clamp(16px, 1.35vw, 18px); }
.font16 { font-size: 15px; }
.font15 { font-size: 14px; }
.font12 { font-size: 12px; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--brand-500);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 通用按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 122, 0, 0.32); }
.btn-ghost { border-color: var(--ink-200); color: var(--ink-700); background: var(--white); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* ---------- 4. 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
/* 横版组合标（703x180，宽高比约 3.9:1）：按宽定高，避免撑破 header */
.logo img {
  height: auto;
  width: clamp(140px, 15vw, 196px);
  object-fit: contain;
  display: block;
}
/* 图片加载失败时才显示文字兜底，避免出现「方块 + 真图」叠加 */
.logo .logo-fallback { display: none; }
.logo.logo--img-error img { display: none; }
.logo.logo--img-error .logo-fallback { display: inline-flex; }
.logo-fallback {
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-brand);
}

.nav { margin-left: auto; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
}
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 2px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-800);
  position: relative;
}
.nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 22px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
  transition: right var(--dur) var(--ease);
}
.nav > ul > li > a:hover { color: var(--brand-600); }
.nav > ul > li > a:hover::after,
.nav > ul > li.is-active > a::after { right: 0; }
.nav > ul > li.is-active > a { color: var(--brand-600); }

/* 二级下拉 */
.nav .sub-menu {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 190px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav .sub-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-600);
}
.nav .sub-menu a:hover { background: var(--brand-50); color: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.search-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-700);
  transition: all var(--dur) var(--ease);
}
.search-toggle:hover { border-color: var(--brand-400); color: var(--brand-600); }

/* 搜索抽屉 */
.search-drawer {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  padding: 24px 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease);
}
.search-drawer.is-open { transform: translateY(0); }
.search-drawer form { display: flex; gap: 12px; }
.search-drawer input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  background: var(--ink-50);
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search-drawer input:focus { border-color: var(--brand-400); background: #fff; }
.search-drawer .btn { height: 52px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-500); }
.search-tags a {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  color: var(--ink-600);
}
.search-tags a:hover { background: var(--brand-50); color: var(--brand-600); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 移动端抽屉导航 */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 110;
  background: var(--white);
  padding: 20px 20px 60px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  display: none;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav .m-group { border-bottom: 1px solid var(--ink-100); }
.mobile-nav .m-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  background: none;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: left;
}
.mobile-nav .m-parent .arrow { transition: transform var(--dur) var(--ease); color: var(--brand-500); }
.mobile-nav .m-group.is-open .m-parent .arrow { transform: rotate(90deg); }
.mobile-nav .m-children { display: none; padding: 0 0 12px 12px; }
.mobile-nav .m-group.is-open .m-children { display: block; }
.mobile-nav .m-children a {
  display: block;
  padding: 11px 4px;
  font-size: 15.5px;
  color: var(--ink-600);
  border-left: 2px solid var(--ink-100);
  padding-left: 14px;
}
.mobile-nav .m-children a:hover,
.mobile-nav .m-children a.is-active { border-left-color: var(--brand-500); color: var(--brand-600); }

/* ---------- 5. 首页轮播 Banner ---------- */
.index-banner { position: relative; background: var(--navy-900); }
.index-swiper { position: relative; overflow: hidden; height: clamp(420px, 62vh, 680px); }
.swiper-wrapper { display: flex; height: 100%; transition: transform 0.7s var(--ease); }
.swiper-slide { position: relative; flex: 0 0 100%; height: 100%; }
.swiper-slide .bg { position: absolute; inset: 0; }
.swiper-slide .bg img { width: 100%; height: 100%; object-fit: cover; }
.swiper-slide .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(9, 14, 22, 0.82) 0%, rgba(9, 14, 22, 0.5) 45%, rgba(9, 14, 22, 0.18) 100%);
}
.swiper-slide .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.swiper-slide .ani { max-width: 760px; color: #fff; }
.swiper-slide .title { font-weight: 800; letter-spacing: 0.01em; }
.swiper-slide .title span { display: block; }
.swiper-slide .title span:last-child {
  color: var(--brand-300);
}
.swiper-slide .text-body { margin-top: 18px; color: rgba(255, 255, 255, 0.86); max-width: 620px; }
.swiper-slide .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.swiper-pagination {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.swiper-pagination .dot {
  width: 28px; height: 4px;
  border: 0; padding: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.swiper-pagination .dot.is-active { background: var(--brand-500); width: 46px; }

.swiper-down {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 56px;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.slide-num { font-family: var(--font-number); letter-spacing: 0.08em; }

/* ---------- 6. 首页通用 section ---------- */
section { position: relative; }
.index-page1, .index-page2, .index-page3, .index-page4, .index-page5, .index-page6 {
  padding: clamp(48px, 7vw, 96px) 0;
}
.index-page2, .index-page3, .index-page5 { background: var(--ink-50); }
.index-page6 { background: var(--white); }

.page-img-box { position: relative; overflow: hidden; color: #fff; }
.page-img { position: absolute; inset: 0; }
.page-img img { width: 100%; height: 100%; object-fit: cover; }
.page-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 20, 32, 0.9) 0%, rgba(13, 20, 32, 0.62) 55%, rgba(13, 20, 32, 0.3) 100%);
}
.page-img-box > .container { position: relative; z-index: 2; }

.page-main { position: relative; }
.wrap-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.wrap-left { min-width: 0; }
.wrap-right { min-width: 0; }

.page-title { position: relative; }
.page-title .slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-500);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.page-title .slogan::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}
.page-title .title { margin-top: 12px; font-weight: 800; }
.page-title .text-body { margin-top: 16px; color: var(--ink-500); }
.page-title.color-white, .page-img-box .page-title .title { color: #fff; }
.page-img-box .page-title .text-body { color: rgba(255, 255, 255, 0.78); }
.page-main > .page-title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.page-main > .page-title .slogan { justify-content: center; }

/* 了解更多 */
.l-morebox { margin-top: 22px; }
.view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-600);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brand-200);
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.view-more:hover { gap: 16px; border-color: var(--brand-500); color: var(--brand-700); }
.view-more.color-white { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.view-more .icon { display: inline-flex; width: 18px; height: 18px; }
.view-more .icon img, .view-more .icon svg { width: 100%; height: 100%; }

/* ---------- 7. 卡片列表（首页模块） ---------- */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.item-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.item-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
.public-img { position: relative; overflow: hidden; background: var(--ink-100); }
.public-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.public-img-plus { aspect-ratio: 16 / 10; }
.item-box:hover .public-img img { transform: scale(1.06); }

.text-box { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.text-box .title { font-weight: 700; }
.text-box .text-body { color: var(--ink-500); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.text-box .date { color: var(--ink-400); font-size: 13px; font-family: var(--font-number); }
.text-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-600); font-weight: 600; font-size: 14.5px;
}
.public-img .type {
  position: absolute;
  left: 14px; top: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 122, 0, 0.92);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 首页模块 4：标签切换 */
.tab-title-box { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.tab-title {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.tab-title:hover { border-color: var(--brand-400); color: #fff; }
.tab-title.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.tab-panels .tab-panel { display: none; }
.tab-panels .tab-panel.is-active { display: block; animation: fadeUp 0.5s var(--ease); }
.tab-panel-inner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

/* 合作伙伴 */
.index-swiper6 .swiper-wrapper { gap: 0; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.partner-grid a {
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  filter: grayscale(100%);
  opacity: 0.85;
}
.partner-grid a:hover { filter: none; opacity: 1; border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.partner-grid img { max-height: 46px; object-fit: contain; }

/* ---------- 8. 内页 Banner ---------- */
.page-content { position: relative; }
.page-ban {
  position: relative;
  min-height: clamp(220px, 32vw, 380px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.page-ban .img { position: absolute; inset: 0; }
.page-ban .img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-ban .container { position: relative; z-index: 2; }
.page-ban .slogan { color: #fff; }
.page-ban .title { font-weight: 800; position: relative; padding-left: 18px; }
.page-ban .title::before {
  content: "";
  position: absolute; left: 0; top: 0.16em; bottom: 0.16em;
  width: 6px;
  border-radius: 3px;
  background: var(--brand-500);
}
.page-ban .text-body { margin-top: 12px; color: var(--brand-200); letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--ink-500);
}
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb .current { color: var(--ink-800); font-weight: 600; }

/* ---------- 9. 栏目列表页 ---------- */
.news-page { padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.news-page .tab-title-box { justify-content: flex-start; margin-bottom: 24px; }
.news-page .tab-title {
  border-color: var(--ink-200);
  color: var(--ink-600);
  background: var(--white);
}
.news-page .tab-title:hover { border-color: var(--brand-400); color: var(--brand-600); }
.news-page .tab-title.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

.news-list { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-list .item-box .public-img { aspect-ratio: 16 / 10; }

/* 单页栏目（公司简介等） */
.single-page { padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.single-page .content-box {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 48px);
  box-shadow: var(--shadow-xs);
}

/* ---------- 10. 文章详情 ---------- */
.news-d-page-full { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 7vw, 96px); }
.news-d-page-full .wrap-box { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.news-d-up { padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); }
.news-title { font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.news-title .type {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}
.type-box { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: 13.5px; color: var(--ink-500); }
.type-box .type { display: inline-flex; align-items: center; gap: 6px; }
.type-box .icon { width: 16px; height: 16px; display: inline-flex; }
.type-box .icon img, .type-box .icon svg { width: 100%; height: 100%; opacity: 0.7; }

.news-detail-content {
  padding: clamp(20px, 3vw, 36px) 0;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-700);
}
/* 正文排版（Markdown 渲染后的语义样式） */
.news-detail-content h1, .news-detail-content h2, .news-detail-content h3,
.news-detail-content h4 {
  margin: 1.6em 0 0.7em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.news-detail-content h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  padding-left: 14px;
  border-left: 4px solid var(--brand-500);
}
.news-detail-content h3 { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-800); }
.news-detail-content p { margin: 0 0 1.1em; }
.news-detail-content ul, .news-detail-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.news-detail-content ul { list-style: disc; }
.news-detail-content ol { list-style: decimal; }
.news-detail-content li { margin: 0.35em 0; }
.news-detail-content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.news-detail-content a:hover { color: var(--brand-700); }
.news-detail-content img { border-radius: var(--radius); margin: 1.2em 0; }
.news-detail-content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--brand-50);
  border-left: 4px solid var(--brand-400);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-600);
}
.news-detail-content pre {
  background: var(--navy-900);
  color: #e6edf6;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.news-detail-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.news-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.news-detail-content th, .news-detail-content td {
  border: 1px solid var(--ink-200);
  padding: 10px 12px;
  text-align: left;
}
.news-detail-content th { background: var(--ink-50); font-weight: 700; color: var(--ink-800); }

/* 侧栏 */
.side-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.side-card .side-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--brand-500);
}
.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--ink-100); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; font-size: 14.5px; color: var(--ink-700); }
.side-list a:hover { color: var(--brand-600); }
.side-list .meta { font-size: 12px; color: var(--ink-400); margin-top: 4px; }

/* 上下篇 */
.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
  font-size: 14.5px;
}
.post-nav a { color: var(--ink-600); }
.post-nav a:hover { color: var(--brand-600); }
.post-nav .label { display: block; color: var(--ink-400); font-size: 12.5px; margin-bottom: 4px; }

/* 分享 */
.share-bar { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--ink-500); }
.share-bar .btn { padding: 8px 18px; font-size: 14px; }

/* ---------- 11. 分页 ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-600);
  background: var(--white);
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pagination .is-current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: 0.45; }

/* ---------- 12. 页脚 ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); margin-top: auto; }
.footer-up { padding: clamp(40px, 5vw, 72px) 0; }
.footer .wrap-box { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.foot-nav .dt {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 15.5px;
  margin-bottom: 12px;
}
.foot-nav .dt .icon { width: 14px; height: 14px; opacity: 0.6; }
.foot-nav .dd { display: block; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.foot-nav .dd:hover { color: var(--brand-300); }

.footer .wrap-right .title { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer .wrap-right dl { margin-bottom: 16px; }
.footer .wrap-right dt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.footer .wrap-right dt .icon { width: 16px; height: 16px; }
.footer .wrap-right dd { margin: 4px 0 0; font-family: var(--font-number); }
.footer .wrap-right dd a { color: var(--brand-300); font-weight: 700; }
.footer .wrap-right dd a:hover { color: var(--brand-200); }

.socials-wrap { display: flex; gap: 10px; margin-top: 18px; }
.socials-wrap a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--dur) var(--ease);
}
.socials-wrap a:hover { background: var(--brand-500); border-color: var(--brand-500); transform: translateY(-3px); }
.socials-wrap img { width: 20px; height: 20px; object-fit: contain; }

.footer-down { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 13.5px; }
.footer-down .wrap-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-down a { color: rgba(255, 255, 255, 0.6); }
.footer-down a:hover { color: var(--brand-300); }

/* ---------- 13. 搜索结果页 ---------- */
.search-page { padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); min-height: 50vh; }
.search-summary { margin-bottom: 24px; color: var(--ink-500); font-size: 15px; }
.search-summary strong { color: var(--brand-600); }
.result-list { display: grid; gap: 18px; }
.result-item {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.result-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.result-item h3 { font-size: 18px; margin-bottom: 8px; }
.result-item h3 a:hover { color: var(--brand-600); }
.result-item .excerpt { font-size: 14.5px; color: var(--ink-500); }
.result-item .meta { font-size: 12.5px; color: var(--ink-400); margin-top: 10px; display: flex; gap: 14px; }
mark { background: var(--brand-100); color: var(--brand-700); padding: 0 2px; border-radius: 2px; }

/* ---------- 14. 空状态与错误页 ---------- */
.empty-state {
  padding: 72px 20px;
  text-align: center;
  color: var(--ink-500);
}
.empty-state .icon { font-size: 44px; margin-bottom: 12px; }

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page .code {
  font-family: var(--font-number);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 800;
  color: var(--brand-500);
  line-height: 1;
}
.error-page .msg { margin: 12px 0 24px; color: var(--ink-500); }

/* ---------- 15. 滚动动画 ---------- */
.scroll-animate { opacity: 0; transform: translateY(26px); }
.scroll-animate.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-animate { opacity: 1; transform: none; }
  .swiper-wrapper { transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 16. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 17. 响应式断点（移动优先，向下覆盖） ---------- */
@media (max-width: 1200px) {
  :root { --container: 1120px; }
  .news-d-page-full .wrap-box { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 992px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: block; }
  .wrap-box { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .news-d-page-full .wrap-box { grid-template-columns: minmax(0, 1fr); }
  .sidebar { order: 2; }
  .index-swiper { height: clamp(380px, 56vh, 520px); }
  .footer .wrap-box { grid-template-columns: minmax(0, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 28px); }
  .index-page1, .index-page2, .index-page3, .index-page4, .index-page5, .index-page6 {
    padding: 44px 0;
  }
  .index-swiper { height: clamp(340px, 60vh, 460px); }
  .swiper-slide .text-body { font-size: 15px; }
  .list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .news-list { grid-template-columns: minmax(0, 1fr); }
  .page-ban { min-height: 190px; }
  .page-ban .title { padding-left: 14px; }
  .type-box { gap: 14px; }
  .footer-down .wrap-box { flex-direction: column; text-align: center; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .search-drawer form { flex-direction: column; }
  .to-top { right: 14px; bottom: 16px; }
}

@media (max-width: 480px) {
  .logo img { width: clamp(124px, 34vw, 150px); }
  .logo-fallback { font-size: 17px; }
  .logo-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
  .btn { padding: 11px 20px; font-size: 14.5px; }
  .text-box { padding: 16px; }
  .result-item { padding: 16px; }
  .side-card { padding: 18px; }
  .swiper-pagination { bottom: 18px; }
}

/* 打印样式 */
@media print {
  .header, .footer, .to-top, .search-drawer, .mobile-nav { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 11px; color: #666; }
}
