/* ===================================================
   预见能源 - 全站通用样式
   主色：深绿 #1a6b3a  辅色：#2d9b5a  暗色：#0d3d21
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a6b3a;
  --primary-dark:  #0d3d21;
  --primary-light: #2d9b5a;
  --primary-pale:  #e8f5ee;
  --accent:        #f0a500;
  --accent-red:    #e53935;
  --text-main:     #1a1a1a;
  --text-sub:      #555;
  --text-light:    #888;
  --border:        #e8e8e8;
  --bg:            #f4f6f4;
  --bg-card:       #ffffff;
  --header-h:      116px;
  --container-w:   1280px;
  --radius:        6px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:  0 4px 20px rgba(26,107,58,.18);
  --transition:    all .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Serif SC'), local('Source Han Serif SC'), local('思源宋体 SC'),
       url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Noto Sans SC'), local('Source Han Sans SC'), local('思源黑体 SC'),
       url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
}

/* 全局字体 —— 学习强国风格：标题用宋体，正文用黑体 */
body {
  font-family: "Noto Sans SC", "Source Han Sans SC", "思源黑体 SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 所有标题统一用宋体 */
h1, h2, h3, h4, h5, h6,
.logo-cn,
.section-title,
.widget-header h3,
.slide-content h2,
.news-card.featured .news-body h3,
.news-item-body h4,
.cni-right h4,
.report-info h4,
.video-card h4,
.event-name,
.channel-name,
.slide-tag,
.slide-content .slide-meta {
  font-family: "Noto Serif SC", "Source Han Serif SC", "思源宋体 SC", "STSong", "SimSun", "Songti SC", serif;
}

/* Logo英文和等宽数字用黑体 */
.logo-en,
.dc-value,
.qn-time,
.ed-day,
.hot-num {
  font-family: "Noto Sans SC", "Source Han Sans SC", "思源黑体 SC", "PingFang SC", sans-serif;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* JS 会为所有页面注入移动导航抽屉；默认必须隐藏，避免样式缓存时裸露成正文。 */
.mobile-menu-btn {
  display: none;
}

.mobile-nav-overlay,
.mobile-nav-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2001;
  transform: translateX(100%);
}

/* =========================================
   深色科技风导航栏 (替代旧 top-bar + header)
   ========================================= */

/* -- 全局变量补充 -- */
:root {
  --header-h-tech: 108px;
  --dark-1: #0a0f14;
  --dark-2: #111920;
  --dark-3: #19232e;
  --green-glow: rgba(45, 155, 90, 0.35);
}

/* -- 整体容器 -- */
.header-tech {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-1);
  /* 不覆盖旧 --header-h，其他页面仍用旧值 */
}

/* -- 顶部热点滚动条 -- */
.ht-topbar {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: 34px;
  line-height: 34px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.ht-topbar .container { height: 100%; }
.ht-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.ht-hot-news {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.ht-badge-hot {
  background: linear-gradient(135deg, #e53935, #ff6b35);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
  flex-shrink: 0;
  animation: ht-pulse 2s ease-in-out infinite;
}
@keyframes ht-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.ht-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ht-ticker-track {
  display: inline-block;
  animation: ht-scroll 35s linear infinite;
}
.ht-ticker-track:hover { animation-play-state: paused; }
@keyframes ht-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ht-ticker-item { color: rgba(255,255,255,.72); }
.ht-ticker-sep { color: rgba(255,255,255,.2); margin: 0 6px; }
.ht-topbar-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ht-action-link {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  transition: var(--transition);
}
.ht-action-link:hover { color: rgba(255,255,255,1); }
.ht-app-link {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(45, 155, 90, .15);
  color: #2d9b5a !important;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px !important;
}
.ht-app-link:hover { background: rgba(45, 155, 90, .25); }

/* -- 主导航区 -- */
.ht-main {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-1) 100%);
  position: relative;
}
.ht-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45,155,90,.3) 15%,
    rgba(45,155,90,.5) 50%,
    rgba(45,155,90,.3) 85%,
    transparent 100%
  );
}
.ht-main-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

/* -- Logo -- */
.ht-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ht-logo-icon { flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(45,155,90,.4)); }
.ht-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.ht-logo-cn {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(45,155,90,.3);
}
.ht-logo-en {
  font-size: 9px;
  color: rgba(255,255,255,.4);
  letter-spacing: 2.5px;
  font-weight: 500;
  margin-top: 1px;
}

/* -- 导航菜单 -- */
.ht-nav { flex: 1; min-width: 0; }
.ht-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.ht-nav ul li { position: relative; height: 100%; display: flex; align-items: center; }
.ht-nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
}
.ht-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: #2d9b5a;
  border-radius: 1px;
  transition: transform .25s ease;
  box-shadow: 0 0 8px rgba(45,155,90,.5);
}
.ht-nav ul li a:hover {
  color: #fff;
}
.ht-nav ul li a:hover::after,
.ht-nav ul li.active > a::after {
  transform: translateX(-50%) scaleX(1);
}
.ht-nav ul li.active > a { color: #fff; font-weight: 700; }
.ht-nav .arrow { font-size: 9px; opacity: .4; margin-left: 2px; }
.ht-nav .nav-hot {
  background: linear-gradient(90deg, #ff6b35, #e53935);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 13px;
}

/* -- 下拉子菜单（深色版） -- */
.header-tech .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid #2d9b5a;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 1px rgba(45,155,90,.3);
  padding: 20px 24px;
  min-width: 400px;
  gap: 28px;
  z-index: 1001;
  backdrop-filter: blur(16px);
}
.header-tech .has-sub:hover .sub-menu { display: flex; }
.header-tech .sub-menu-group h4 {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: 1.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.header-tech .sub-menu-group a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  height: auto;
}
.header-tech .sub-menu-group a:hover {
  color: #2d9b5a;
  padding-left: 6px;
}
.header-tech .sub-menu-group a::after { display: none; }

/* -- 右侧功能区 -- */
.ht-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 搜索框 */
.ht-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  transition: var(--transition);
  gap: 6px;
}
.ht-search-box:focus-within {
  background: rgba(255,255,255,.1);
  border-color: rgba(45,155,90,.4);
  box-shadow: 0 0 0 3px rgba(45,155,90,.08);
}
.ht-search-icon { color: rgba(255,255,255,.35); flex-shrink: 0; }
.ht-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  width: 140px;
}
.ht-search-box input::placeholder { color: rgba(255,255,255,.3); }
.ht-search-kbd {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.3);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  font-family: inherit;
}

/* VIP 按钮 */
.ht-btn-vip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f0a500, #e87800);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(240,165,0,.3);
  transition: var(--transition);
}
.ht-btn-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240,165,0,.4);
  color: #fff;
}

/* 投稿按钮 */
.ht-btn-write {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.ht-btn-write:hover {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

/* 用户按钮 */
.ht-user-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.ht-user-btn:hover {
  border-color: #2d9b5a;
  color: #2d9b5a;
  box-shadow: 0 0 12px rgba(45,155,90,.15);
}

/* -- 底部发光线条 -- */
.ht-glow-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45,155,90,0) 10%,
    rgba(45,155,90,.6) 30%,
    #2d9b5a 50%,
    rgba(45,155,90,.6) 70%,
    rgba(45,155,90,0) 90%,
    transparent 100%
  );
  position: relative;
}
.ht-glow-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 10%,
    rgba(45,155,90,.12) 30%,
    rgba(45,155,90,.18) 50%,
    rgba(45,155,90,.12) 70%,
    transparent 90%,
    transparent 100%
  );
  filter: blur(4px);
}

/* -- 兼容旧 .header 选择器（其他子页面仍用旧头部） -- */
.header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0 12px;
}
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-icon svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-cn {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo-en {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: 500;
}
.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,58,.1);
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-main);
  background: transparent;
}
.header-search input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 7px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-subscribe {
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--primary-dark); color: white; }
.btn-write {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-write:hover { background: var(--primary-pale); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-sub);
  transition: var(--transition);
}
.user-avatar:hover { border-color: var(--primary); color: var(--primary); }

/* 主导航菜单（旧页面兼容） */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  height: 34px;
  line-height: 34px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar-left { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
.tag-hot {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: .5px;
}
.top-bar-left marquee { flex: 1; font-size: 12px; }
.top-bar-right a { color: rgba(255,255,255,.8); font-size: 12px; }
.top-bar-right a:hover { color: #fff; }
.top-bar-right .divider { color: rgba(255,255,255,.3); margin: 0 8px; }

.main-nav { border-top: 1px solid var(--border); }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  transition: var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.active > a { color: var(--primary); }
.main-nav ul li.active > a {
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}
.main-nav .arrow { font-size: 10px; opacity: .5; }
.main-nav .nav-special {
  background: linear-gradient(90deg, #ff6b35, #e53935);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* 下拉子菜单（旧页面兼容 - 白底） */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 16px;
  min-width: 380px;
  display: none;
  gap: 20px;
  z-index: 1000;
}
.has-sub:hover .sub-menu { display: flex; }
.sub-menu-group h4 {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sub-menu-group a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-sub);
}
.sub-menu-group a:hover { color: var(--primary); padding-left: 4px; }

/* =========================================
   底部 Footer
   ========================================= */
.footer {
  background: #111a13;
  color: rgba(255,255,255,.7);
  margin-top: 48px;
}
.footer-top { padding: 48px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-logo span {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.footer-desc {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 12px;
}
.footer-social a:hover { color: white; border-color: var(--primary-light); background: rgba(26,107,58,.3); }
.footer-nav h4 {
  font-size: 13px;
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.footer-nav ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.8;
}
.footer-links a { color: rgba(255,255,255,.35); font-size: 11px; }
.footer-links a:hover { color: var(--primary-light); }

/* =========================================
   悬浮工具栏
   ========================================= */
.float-toolbar {
  position: fixed;
  right: 24px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 998;
}
.ft-item {
  width: 42px; height: 42px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text-sub);
  transition: var(--transition);
}
.ft-item:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* =========================================
   通用工具类
   ========================================= */
.section-title { font-size: 18px; font-weight: 800; color: var(--text-main); }
.section-more { font-size: 13px; color: var(--primary); white-space: nowrap; }
.section-more:hover { opacity: .75; }
.section-dot {
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}
.section-badge {
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header-left { display: flex; align-items: center; gap: 4px; }

/* Tag标签 */
.category-tag, .tag, .ni-tag, .video-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  color: white;
  font-weight: 600;
}
.tag {
  background: var(--primary-pale);
  color: var(--primary);
  margin-right: 4px;
}

/* 分类标签切换 */
.section-tabs { display: flex; gap: 4px; margin-left: 12px; }
.tab {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-sub);
  transition: var(--transition);
  white-space: nowrap;
}
.tab:hover { color: var(--primary); }
.tab.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* =========================================
   侧边栏通用
   ========================================= */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.widget-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.widget-tabs { display: flex; gap: 4px; }
.wtab {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}
.wtab.active { background: var(--primary); color: white; font-weight: 600; }
.widget-more { font-size: 12px; color: var(--primary); }

/* 返回顶部可见控制 */
.float-toolbar { transition: var(--transition); }

/* =========================================
   移动端导航与公共布局修复
   ========================================= */
html,
body {
  max-width: 100%;
}

.mobile-menu-btn {
  display: none;
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  .ht-main-inner {
    justify-content: space-between;
  }

  .ht-nav {
    display: none;
  }

  .ht-actions {
    margin-left: auto;
  }

  .ht-actions .ht-search-box,
  .ht-actions .ht-btn-vip,
  .ht-actions .ht-btn-write,
  .ht-actions .ht-user-btn {
    display: none;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.9);
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2001;
    width: min(86vw, 360px);
    height: 100dvh;
    background: #0a0f14;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -18px 0 40px rgba(0,0,0,.28);
    padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .mobile-nav-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mnp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .mnp-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .mnp-close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.86);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .mnp-search {
    min-height: 44px;
    margin: 14px 18px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
  }

  .mnp-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
  }

  .mnp-search input::placeholder {
    color: rgba(255,255,255,.42);
  }

  .mnp-nav-list {
    margin: 0;
    padding: 0;
  }

  .mnp-item {
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .mnp-link {
    min-height: 48px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 700;
  }

  .mnp-item.active > .mnp-link {
    color: #fff;
    background: rgba(45,155,90,.18);
    box-shadow: inset 3px 0 0 #2d9b5a;
  }

  .mnp-sub {
    padding: 0 18px 12px;
  }

  .mnp-sub-group {
    padding: 4px 0 6px;
  }

  .mnp-sub-title {
    margin: 8px 0 6px;
    color: rgba(255,255,255,.42);
    font-size: 12px;
  }

  .mnp-sub-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    margin: 0 6px 8px 0;
    padding: 7px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.74);
    font-size: 13px;
  }

  .mnp-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .mnp-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(45,155,90,.14);
    color: #dff5e7;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ht-topbar {
    height: 30px;
    line-height: 30px;
    font-size: 11px;
  }

  .ht-topbar-actions {
    display: none;
  }

  .ht-badge-hot {
    padding: 1px 6px;
  }

  .ht-main-inner {
    position: relative;
    height: 54px;
    gap: 10px;
    padding-right: 52px;
  }

  .ht-logo {
    min-width: 0;
    max-width: calc(100vw - 112px);
  }

  .ht-logo a {
    min-width: 0;
  }

  .ht-logo-text {
    min-width: 0;
  }

  .ht-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    display: flex !important;
    transform: translateY(-50%);
    z-index: 5;
  }

  .mobile-menu-btn {
    position: absolute;
    right: 0;
    top: 50%;
    display: inline-flex !important;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    z-index: 10;
  }

  .ht-logo-icon svg {
    width: 30px;
    height: 30px;
  }

  .ht-logo-cn {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .ht-logo-en {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .main-content {
    padding-top: 14px;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .footer {
    margin-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 14px !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-qr {
    display: none;
  }

  .footer-bottom {
    padding: 14px 0;
  }

  .footer-bottom p {
    font-size: 10px;
    line-height: 1.8;
  }

  .float-toolbar {
    right: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  .ft-item {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 374px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   文章体系移动端公共重写层
   ========================================= */
@media (max-width: 768px) {
  :root {
    --mobile-gutter: 14px;
    --mobile-header-main: 58px;
    --mobile-topbar: 28px;
    --mobile-header-h: calc(var(--mobile-topbar) + var(--mobile-header-main));
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
    line-height: 1.68;
  }

  .container {
    width: 100%;
    max-width: none;
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
  }

  .header-tech {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
  }

  .ht-topbar {
    height: var(--mobile-topbar) !important;
    line-height: var(--mobile-topbar) !important;
    font-size: 11px !important;
  }

  .ht-topbar .container,
  .ht-topbar-inner,
  .ht-hot-news,
  .ht-ticker {
    min-width: 0;
  }

  .ht-topbar-actions {
    display: none !important;
  }

  .ht-badge-hot {
    align-self: center;
    padding: 0 7px !important;
    border-radius: 0;
    line-height: var(--mobile-topbar);
  }

  .ht-main-inner {
    position: relative !important;
    height: var(--mobile-header-main) !important;
    min-height: var(--mobile-header-main);
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-right: 58px;
  }

  .ht-nav,
  .ht-actions .ht-search-box,
  .ht-actions .ht-btn-vip,
  .ht-actions .ht-btn-write,
  .ht-actions .ht-user-btn {
    display: none !important;
  }

  .ht-logo {
    min-width: 0;
    max-width: calc(100vw - 112px);
  }

  .ht-logo a {
    min-width: 0;
    gap: 9px;
  }

  .ht-logo-icon svg {
    width: 32px !important;
    height: 32px !important;
  }

  .ht-logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .ht-logo-cn {
    font-size: 18px !important;
    line-height: 1.1;
    letter-spacing: 1px !important;
    white-space: nowrap;
  }

  .ht-logo-en {
    max-width: 126px;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1.15;
    letter-spacing: 1.3px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ht-actions {
    position: absolute !important;
    top: 50%;
    right: var(--mobile-gutter);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: block !important;
    transform: translateY(-50%);
  }

  .mobile-menu-btn {
    position: absolute !important;
    inset: 0 !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.1) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.92) !important;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block !important;
    background: rgba(0,0,0,.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-panel {
    position: fixed !important;
    top: 0;
    right: 0 !important;
    z-index: 2001;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: 16px 0 calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: #fff;
    background: #0a0f14;
    box-shadow: -20px 0 44px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mnp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .mnp-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .mnp-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.06);
    font-size: 22px;
  }

  .mnp-search {
    min-height: 44px;
    margin: 14px 18px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
  }

  .mnp-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 14px;
  }

  .mnp-nav-list {
    margin: 0;
    padding: 0;
  }

  .mnp-item {
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .mnp-link {
    min-height: 50px;
    padding: 12px 18px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.88) !important;
    font-size: 15px;
    font-weight: 700;
  }

  .mnp-item.active > .mnp-link {
    color: #fff !important;
    background: rgba(45,155,90,.2);
    box-shadow: inset 3px 0 0 #2d9b5a;
  }

  .mnp-sub {
    padding: 0 18px 12px;
  }

  .mnp-sub-title {
    margin: 10px 0 7px;
    color: rgba(255,255,255,.42);
    font-size: 12px;
  }

  .mnp-sub-link {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    margin: 0 6px 8px 0;
    padding: 7px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.76) !important;
    background: rgba(255,255,255,.07);
    font-size: 13px;
  }

  .mnp-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 18px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .mnp-action {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #dff5e7 !important;
    background: rgba(45,155,90,.14);
    font-size: 13px;
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .main-content {
    padding-top: 16px !important;
  }

  .breadcrumb {
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .footer {
    margin-top: 30px !important;
  }

  .footer-top {
    padding: 28px 0 18px !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 14px !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-qr {
    display: none !important;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 374px) {
  :root {
    --mobile-gutter: 10px;
  }
}

@media (max-width: 768px) {
  .footer {
    overflow: hidden;
  }

  .footer .container {
    max-width: 100%;
  }

  .footer-grid {
    align-items: start;
  }

  .footer-logo,
  .footer-tagline,
  .footer-desc,
  .footer-social,
  .footer-nav {
    min-width: 0;
  }

  .footer-desc,
  .footer-nav a,
  .footer-bottom p,
  .footer-bottom-left,
  .footer-links {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .footer-social {
    flex-wrap: wrap;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-bottom p {
    width: min(100%, 340px);
    margin: 0 auto;
    font-size: 10px !important;
    line-height: 1.9 !important;
    white-space: normal;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .footer-links a {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .mobile-nav-panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
}
