/* 与 news.html 一致的站点顶栏、主内容白底槽、preview 页脚（供 news-subpages 引用） */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --secondary: #6366F1;
  --accent: #F97316;
  --neon-cyan: #00F5FF;
  --success: #10B981;
  --warning: #F59E0B;
  --dark-bg: #0A0E1A;
  --dark-card: #111827;
  --dark-border: #1E293B;
  --dark-surface: #0F172A;
  --font-heading: 'Exo', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: #F8FAFC;
  overflow-x: hidden;
}
.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 245, 255, 0.01) 2px, rgba(0, 245, 255, 0.01) 4px);
}
.grid-bg {
  background-image: linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}
.header-line {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.6;
}
.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 10px;
  min-width: 0;
  container-type: inline-size;
  container-name: header-bar;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.logo-icon { width: 140px; height: 40px; display: flex; align-items: center; justify-content: center; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav { display: none; gap: 4px; }
@media (min-width: 1136px) { .nav { display: flex; } }
.nav-item {
  position: relative;
  padding: 8px 16px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.nav-item:hover, .nav-item.active {
  color: var(--neon-cyan);
  background: rgba(14, 165, 233, 0.1);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown-content {
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.dropdown-item:hover {
  color: var(--neon-cyan);
  background: rgba(14, 165, 233, 0.1);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .lang-toggle { padding: 6px 10px; font-size: 12px; line-height: 1.1; border-radius: 6px; }
.header-actions .lang-toggle:hover { transform: translateY(-1px); }
.header-phone { font-size: 13px; color: #CBD5E1; white-space: nowrap; }
.header-phone span { color: var(--neon-cyan); font-weight: 600; }
/* 仅横排顶栏、无汉堡时收电话；≤1295 与汉堡同现时由 ../pages/ciip-agent-dropdown.css 强制展示 */
@media (min-width: 1296px) and (max-width: 1364px) {
  .header-phone { display: none; }
}
@media (max-width: 1135px) {
  .header-content { padding: 0 0.75rem; gap: 6px; min-width: 0; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .header-actions .btn:not(.btn-primary) { padding: 6px 12px; font-size: 12px; }
  .logo { min-width: 0; }
  .logo-icon { width: 140px; height: 40px; display: flex; align-items: center; justify-content: center; }
}
.btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}
.btn-outline {
  color: #CBD5E1;
  border: 1px solid var(--dark-border);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(14, 165, 233, 0.5);
  color: white;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark-bg);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}
.mobile-toggle {
  display: block;
  padding: 8px;
  color: #CBD5E1;
  cursor: pointer;
}
@media (min-width: 1136px) { .mobile-toggle { display: none; } }

@supports (container-type: inline-size) {
  @container header-bar (max-width: 1295px) {
    .header .header-content #mainNav.nav:not(.open),
    .header .header-content nav#mainNav:not(.open) {
      display: none !important;
    }
    .header .header-content .mobile-toggle {
      display: inline-flex !important;
    }
    .header .header-content .header-phone {
      display: inline-flex !important;
      align-items: center;
      flex-shrink: 0;
    }
  }
}

/* Footer（与 preview.html / news.html 一致） */
.footer {
  background: #1e3554;
  border-top: 1px solid var(--dark-border);
  padding: 64px 1rem 32px;
}
.footer-content { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 48px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #94A3B8; line-height: 1.6; margin-bottom: 16px; max-width: 280px; }
.footer-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-stat-value { font-size: 18px; font-weight: 700; color: var(--neon-cyan); font-family: monospace; }
.footer-stat-label { font-size: 11px; color: #64748B; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--neon-cyan); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-copyright { font-size: 14px; color: #64748B; }
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer-links a { font-size: 12px; color: #64748B; text-decoration: none; }
.footer-links a:hover { color: #94A3B8; }

.news-content-shell {
  padding-top: 0;
  padding-bottom: 0;
  background: #ffffff;
  display: flow-root;
}
main.news-content-shell.news-subpage-main {
  padding-top: 64px;
}
main.news-content-shell + footer {
  margin-top: 0;
}

.news-subpage-scope .breadcrumb {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.news-subpage-scope .breadcrumb a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
@media (max-width: 1295px) {
  .news-subpage-scope .page-banner {
    padding-top: 96px !important;
  }
}
@media (max-width: 768px) {
  .news-subpage-scope .page-banner {
    padding-top: 148px !important;
  }
  .news-subpage-scope .breadcrumb {
    padding-right: 56px;
  }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary, var(--dark-bg, #0A0E1A)); }
::-webkit-scrollbar-thumb { background: rgba(212, 168, 67, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 168, 67, 0.5); }
* { scrollbar-width: thin; scrollbar-color: rgba(212, 168, 67, 0.3) var(--bg-primary, var(--dark-bg, #0A0E1A)); }
