/* ==========================================================================
   润天教育网络安全培训网站 - 共享样式
   主题色：深蓝 + 红蓝渐变
   设计原则：加载快、移动端适配、SEO友好
   ========================================================================== */

/* ============== 基础重置 ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1e5fae; text-decoration: none; transition: all 0.2s; }
a:hover { color: #0d2c54; }
ul, ol { list-style: none; }

/* ============== 主题色变量 ============== */
:root {
  --primary: #1e5fae;        /* 主蓝 */
  --primary-dark: #0d2c54;   /* 深蓝 */
  --primary-light: #3498db;  /* 浅蓝 */
  --accent: #e74c3c;         /* 强调红 */
  --accent-2: #ff6b35;       /* 橙 */
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --border: #e3e8ef;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --success: #27ae60;
  --warning: #f39c12;
  --shadow-sm: 0 2px 8px rgba(13,44,84,0.06);
  --shadow-md: 0 4px 16px rgba(13,44,84,0.1);
  --shadow-lg: 0 8px 32px rgba(13,44,84,0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-width: 1200px;
}

/* ============== 通用容器 ============== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============== 顶部通栏 ============== */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #fff; }
.top-bar .hotline { font-weight: 600; }
.top-bar .links a { margin-left: 16px; }

/* ============== 头部导航 ============== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-text strong {
  font-size: 18px;
  color: var(--primary-dark);
}
.site-logo .logo-text span {
  font-size: 12px;
  color: var(--text-light);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: rgba(30,95,174,0.08);
}
.main-nav a.active { background: rgba(30,95,174,0.12); }

/* 导航下拉菜单 */
.nav-dropdown {
  position: relative;
}
.nav-caret {
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.6;
  transition: transform 0.3s;
}
.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(30,95,174,0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============== 主按钮 ============== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 0;
}
.btn-primary {
  background: linear-gradient(135deg, #1e5fae 0%, #3498db 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30,95,174,0.3);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,95,174,0.4);
}
.btn-accent {
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b35 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}
.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231,76,60,0.4);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ============== Hero首屏 ============== */
.hero {
  background: linear-gradient(135deg, #0d2c54 0%, #1e5fae 60%, #3498db 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(231,76,60,0.2) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero h1 span { color: #ffd54f; }
.hero .sub {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 760px;
}
.hero .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 40px;
}
.hero-stat {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  min-width: 140px;
}
.hero-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffd54f;
}
.hero-stat span {
  font-size: 14px;
  opacity: 0.9;
}
.hero .cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============== 区块通用 ============== */
.section {
  padding: 64px 0;
}
.section-light { background: #fff; }
.section-gray { background: var(--bg-light); }
.section-dark {
  background: linear-gradient(135deg, #0d2c54 0%, #1e5fae 100%);
  color: #fff;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30,95,174,0.1);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.section-dark .section-tag {
  color: #ffd54f;
  background: rgba(255,213,79,0.15);
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.85); }

/* ============== 数据条 ============== */
.stats-bar {
  background: linear-gradient(90deg, #1e5fae 0%, #3498db 100%);
  padding: 32px 0;
  color: #fff;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.stats-bar-grid .item strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffd54f;
}

/* ============== 卡片 ============== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.card p { color: var(--text-light); font-size: 15px; }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e5fae, #3498db);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============== 标签 / 徽章 ============== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  background: rgba(30,95,174,0.1);
  color: var(--primary);
}
.tag-orange { background: rgba(231,76,60,0.1); color: var(--accent); }
.tag-green { background: rgba(39,174,96,0.1); color: var(--success); }
.tag-purple { background: rgba(155,89,182,0.1); color: #9b59b6; }

/* ============== 时间轴 ============== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  padding: 16px 0;
  width: 50%;
}
.timeline-item:nth-child(odd) { padding-right: 40px; text-align: right; }
.timeline-item:nth-child(even) { margin-left: 50%; padding-left: 40px; }
.timeline-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 4px solid #fff;
  border-radius: 50%;
  top: 24px;
  box-shadow: 0 0 0 4px rgba(30,95,174,0.2);
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

/* ============== 表格 ============== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.data-table th {
  background: var(--primary-dark);
  color: #fff;
  font-weight: 600;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(30,95,174,0.04); }

/* ============== CTA 区 ============== */
.cta-section {
  background: linear-gradient(135deg, #0d2c54 0%, #1e5fae 50%, #3498db 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(231,76,60,0.3) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 17px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* ============== 表单 ============== */
.form-group { margin-bottom: 16px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,95,174,0.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============== Footer ============== */
.site-footer {
  background: #0d2c54;
  color: #c9d4e3;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-col a { color: #c9d4e3; }
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #8fa3c0;
}
.footer-bottom a { color: #c9d4e3; margin: 0 8px; }

/* ============== 面包屑 ============== */
.breadcrumb {
  background: #fff;
  padding: 16px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb .sep { margin: 0 8px; color: #c0c8d2; }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

/* ============== 内页标题区 ============== */
.page-header {
  background: linear-gradient(135deg, #0d2c54 0%, #1e5fae 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 760px;
  margin: 0 auto;
}

/* ============== 浮动按钮 ============== */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e5fae, #3498db);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  border: 0;
  cursor: pointer;
}
.float-btn:hover {
  transform: scale(1.1);
  color: #fff;
}
.float-btn.accent {
  background: linear-gradient(135deg, #e74c3c, #ff6b35);
}
.float-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* ============== FAQ 折叠 ============== */
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: 0.3s;
}
.faq-item.open .faq-q::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 24px 18px;
  color: var(--text-light);
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ============== 互动组件 ============== */
.radar-chart {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.bar-progress {
  background: #e3e8ef;
  border-radius: 30px;
  height: 12px;
  overflow: hidden;
}
.bar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 30px;
  transition: width 0.6s;
}

.calc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}
.calc-result {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  text-align: center;
}
.calc-result strong {
  font-size: 32px;
  color: #ffd54f;
  display: block;
  margin: 8px 0;
}

.tab-group {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-size: 15px;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-group button {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: 0.2s;
}
.btn-group button.active,
.btn-group button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============== 数字滚动效果预备 ============== */
.metric-card {
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ============== 步骤图 ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  line-height: 40px;
  font-weight: 700;
  font-size: 18px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.step p { font-size: 13px; color: var(--text-light); }

/* ============== 列表样式 ============== */
.feature-list { padding-left: 0; }
.feature-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.feature-list li strong { color: var(--primary-dark); }

.check-list li::before { content: "✓"; color: var(--success); }
.cross-list li::before { content: "✗"; color: var(--accent); }

/* ============== 提示框 ============== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-size: 14px;
  border-left: 4px solid var(--primary);
  background: rgba(30,95,174,0.06);
}
.alert-warning {
  border-color: var(--warning);
  background: rgba(243,156,18,0.06);
  color: #8a5a00;
}
.alert-success {
  border-color: var(--success);
  background: rgba(39,174,96,0.06);
  color: #1d6e3f;
}

/* ============== 移动端适配 ============== */
@media (max-width: 1200px) {
  .container { max-width: 100%; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stats-bar-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
  .hero h1 { font-size: 36px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 30px; }
  .page-header { padding: 48px 0; }
  .page-header h1 { font-size: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    width: 100%;
    padding-left: 56px;
    padding-right: 0;
    text-align: left;
    margin-left: 0;
  }
  .timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
    left: 16px;
    right: auto;
  }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .top-bar { font-size: 12px; }
  .site-header .container { height: 60px; }
  .site-logo img { height: 36px; }
  .site-logo .logo-text strong { font-size: 16px; }
  .site-logo .logo-text span { font-size: 11px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; border-radius: 0; }
  /* 移动端下拉菜单内联展开 */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(30,95,174,0.04);
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a {
    padding: 12px 16px 12px 36px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav-dropdown-menu a:last-child { border-bottom: 0; }
  .nav-caret { float: right; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 26px; }
  .hero .sub { font-size: 15px; }
  .hero-stat { min-width: 0; flex: 1 1 calc(50% - 12px); padding: 12px 16px; }
  .hero-stat strong { font-size: 24px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .page-header { padding: 36px 0; }
  .page-header h1 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .cta-section h2 { font-size: 24px; }
  .cta-section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .float-actions { right: 12px; bottom: 60px; }
  .float-btn { width: 48px; height: 48px; }
  .calc-card { padding: 20px; }
  .calc-result strong { font-size: 24px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 8px; }
}
@media (max-width: 480px) {
  .hero-stat { flex: 1 1 100%; }
  .stats-bar-grid .item strong { font-size: 24px; }
  .hero .cta-group .btn { width: 100%; }
}

/* ============== 工具类 ============== */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ============== 打印 ============== */
@media print {
  .site-header, .site-footer, .float-actions, .top-bar { display: none; }
}

/* ============== 大屏轮播（projects.html 模块1） ============== */
.dash-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13, 44, 84, 0.18);
  background: linear-gradient(135deg, #0d2c54, #1e5fae);
  user-select: none;
}
.dash-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.dash-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.dash-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 左右箭头 */
.dash-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 44, 84, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.dash-carousel-arrow:hover {
  background: rgba(231, 76, 60, 0.85);
  transform: translateY(-50%) scale(1.08);
}
.dash-carousel-arrow.prev { left: 12px; }
.dash-carousel-arrow.next { right: 12px; }
/* 圆点指示器 */
.dash-carousel-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dash-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}
.dash-carousel-dot.is-active {
  background: #fff;
  border-color: #e74c3c;
  width: 28px;
  border-radius: 5px;
}
.dash-carousel-dot:hover { background: rgba(255, 255, 255, 0.5); }
/* 底部标题 */
.dash-carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(13, 44, 84, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
  z-index: 2;
}
/* 进度条（自动播放指示） */
.dash-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #e74c3c, #ff6b35);
  z-index: 4;
  animation: dashProgress 4s linear infinite;
  animation-play-state: paused;
}
.dash-carousel.is-playing::after { animation-play-state: running; }

@keyframes dashProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .dash-carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .dash-carousel-arrow.prev { left: 6px; }
  .dash-carousel-arrow.next { right: 6px; }
  .dash-carousel-dots { bottom: 40px; gap: 6px; }
  .dash-carousel-dot { width: 8px; height: 8px; }
  .dash-carousel-dot.is-active { width: 22px; }
  .dash-carousel-caption {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ============== 文章列表 & 详情页 ============== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.article-main { min-width: 0; }
.article-sidebar { flex-shrink: 0; }

/* 文章卡片 */
.article-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(13, 44, 84, 0.08);
  margin-bottom: 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.article-card:hover {
  box-shadow: 0 6px 28px rgba(13, 44, 84, 0.14);
  transform: translateY(-2px);
}
.article-card-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  overflow: hidden;
  position: relative;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.article-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.article-card-body h3 a {
  color: #0d2c54;
  text-decoration: none;
}
.article-card-body h3 a:hover { color: var(--primary); }
.article-card-excerpt {
  color: #5a6c7d;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #8b9bb0;
  flex-wrap: wrap;
}
.article-card-meta .tag { font-size: 12px; padding: 2px 10px; }

/* 翻页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #e0e8f0;
  color: #5a6c7d;
  background: #fff;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .current {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.pagination .ellipsis { border: none; background: transparent; }

/* 侧栏 */
.sidebar-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(13, 44, 84, 0.08);
}
.sidebar-block h3 {
  font-size: 16px;
  color: #0d2c54;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}
.hot-article-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e8eef5;
}
.hot-article-item:last-child { border-bottom: none; }
.hot-article-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c5d4e6;
}
.hot-article-item:nth-child(1) .hot-article-num { background: var(--accent); }
.hot-article-item:nth-child(2) .hot-article-num { background: #ff8c42; }
.hot-article-item:nth-child(3) .hot-article-num { background: #f0ad4e; }
.hot-article-title {
  font-size: 14px;
  color: #3a4a5d;
  line-height: 1.6;
  text-decoration: none;
}
.hot-article-title:hover { color: var(--primary); }

.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag-cloud a {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 16px;
  text-decoration: none;
  background: #f0f5fa;
  color: #5a6c7d;
  transition: all 0.2s;
}
.sidebar-tag-cloud a:hover {
  background: var(--primary);
  color: #fff;
}

/* 文章详情 */
.article-detail-header {
  margin-bottom: 24px;
}
.article-detail-header h1 {
  font-size: 26px;
  line-height: 1.5;
  color: #0d2c54;
  margin-bottom: 16px;
}
.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #8b9bb0;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eef5;
}
.article-detail-meta .source { color: var(--primary); }

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #3a4a5d;
}
.article-content h2 {
  font-size: 22px;
  color: #0d2c54;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.article-content h3 {
  font-size: 18px;
  color: #0d2c54;
  margin: 24px 0 12px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  margin: 0 0 16px 20px;
}
.article-content li { margin-bottom: 8px; line-height: 1.8; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  background: #fdf6f5;
  border-radius: 0 8px 8px 0;
  color: #5a6c7d;
}
.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.article-content strong { color: #0d2c54; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.article-content table th,
.article-content table td {
  border: 1px solid #e0e8f0;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.article-content table th {
  background: #f0f5fa;
  color: #0d2c54;
  font-weight: 600;
}

/* 文章tag */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #e8eef5;
}
.article-tags-label {
  font-size: 14px;
  color: #8b9bb0;
  flex-shrink: 0;
}
.article-tags a {
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 16px;
  text-decoration: none;
  background: #f0f5fa;
  color: var(--primary);
  transition: all 0.2s;
}
.article-tags a:hover {
  background: var(--primary);
  color: #fff;
}

/* 上一篇/下一篇 */
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.prev-next-item {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e8eef5;
  transition: all 0.2s;
}
.prev-next-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(30, 95, 174, 0.1);
}
.prev-next-item .pn-label {
  font-size: 13px;
  color: #8b9bb0;
  margin-bottom: 6px;
}
.prev-next-item .pn-title {
  font-size: 15px;
  color: #0d2c54;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.prev-next-item.next { text-align: right; }

/* 相关推荐 */
.related-articles {
  margin: 32px 0;
}
.related-articles h3 {
  font-size: 18px;
  color: #0d2c54;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e8eef5;
  transition: all 0.2s;
}
.related-card:hover {
  box-shadow: 0 4px 20px rgba(13, 44, 84, 0.12);
  transform: translateY(-2px);
}
.related-card-thumb {
  width: 100%;
  height: 100px;
  overflow: hidden;
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body {
  padding: 12px 14px;
}
.related-card-body h4 {
  font-size: 14px;
  color: #0d2c54;
  line-height: 1.5;
  margin-bottom: 6px;
}
.related-card-body span {
  font-size: 12px;
  color: #8b9bb0;
}

/* 文章列表筛选条 */
.article-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(13, 44, 84, 0.06);
}
.article-filter a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #5a6c7d;
  background: #f0f5fa;
  transition: all 0.2s;
}
.article-filter a.active,
.article-filter a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .article-card {
    flex-direction: column;
  }
  .article-card-thumb {
    width: 100%;
    height: 160px;
  }
  .prev-next {
    grid-template-columns: 1fr;
  }
  .prev-next-item.next { text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
  .article-detail-header h1 { font-size: 20px; }
  .article-content { font-size: 15px; }
  .article-content h2 { font-size: 18px; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-card { flex-direction: row; }
  .qa-card-num { width: 56px; height: 56px; font-size: 22px; }
}

/* ============== 行业问答 ============== */
.qa-title-bar {
  width: 60px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 50%, var(--accent) 50%, var(--accent) 100%);
}
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 36px;
}
.qa-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(13,44,84,0.04);
  transition: all 0.25s ease;
}
.qa-card:hover {
  border-color: #c9d6e8;
  box-shadow: 0 6px 18px rgba(13,44,84,0.10);
  transform: translateY(-2px);
}
.qa-card-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(13,44,84,0.18);
}
.qa-num-blue {
  background: linear-gradient(135deg, #1e5fae, #0d2c54);
}
.qa-num-red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 10px rgba(231,76,60,0.25);
}
.qa-card-body { flex: 1; min-width: 0; }
.qa-card-body h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin: 0 0 8px;
  line-height: 1.5;
  font-weight: 700;
}
.qa-card-body p {
  font-size: 13.5px;
  color: #5a6c7d;
  line-height: 1.75;
  margin: 0;
}
