/* ============================================================
   企明星官网 - 全局样式
   主色调：深蓝 / 科技蓝，符合政企客户专业稳重审美
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #0d2b5c;        /* 深蓝主色 */
  --color-primary-dark: #081d40;   /* 更深蓝 */
  --color-accent: #2563eb;         /* 科技蓝点缀 */
  --color-accent-light: #3b82f6;   /* 亮蓝 */
  --color-gold: #c9a227;            /* 金色辅助（资质/荣誉） */
  --color-bg: #ffffff;             /* 页面背景 */
  --color-bg-soft: #f1f5f9;        /* 浅灰蓝背景 */
  --color-bg-card: #ffffff;        /* 卡片背景 */
  --color-text: #1e293b;           /* 正文深色 */
  --color-text-light: #64748b;     /* 辅助文字 */
  --color-border: #e2e8f0;         /* 边框色 */
  --color-success: #16a34a;       /* 成功反馈 */
  --color-danger: #dc2626;         /* 错误反馈 */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(13, 43, 92, 0.1);
  --shadow-lg: 0 12px 32px rgba(13, 43, 92, 0.15);

  --container-w: 1200px;
  --header-h: 72px;

  --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 48px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--color-bg-soft);
  padding: 16px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--color-text-light);
}

.breadcrumb .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- 页头导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

/* QMX 文字Logo */
.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-qmx {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-primary);
  font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
  font-style: italic;
}

.logo-cn {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 4px;
  margin-top: 4px;
}

/* 页脚反色 */
.footer-logo .logo-qmx { color: #fff; }
.footer-logo .logo-cn { color: var(--color-gold); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.logo-text {
  letter-spacing: 1px;
}

.logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.06);
}

.main-nav > li > a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* 下拉菜单 */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-text);
  transition: all 0.2s;
}

.dropdown li a:hover {
  background: var(--color-bg-soft);
  color: var(--color-accent);
  padding-left: 26px;
}

/* 导航右侧操作 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--color-bg-soft);
  border-radius: 20px;
  padding: 6px 16px;
  transition: all 0.3s;
  width: 200px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  flex: 1;
  color: var(--color-text);
}

.search-box .search-icon {
  color: var(--color-text-light);
  cursor: pointer;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--color-bg-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 首页 Hero Banner ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
}

/* Hero 科技感光点动画 */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, rgba(59, 130, 246, 0.6), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(147, 197, 253, 0.5), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 35% 80%, rgba(59, 130, 246, 0.5), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(147, 197, 253, 0.4), transparent);
  animation: techFloat 8s ease-in-out infinite alternate;
}

@keyframes techFloat {
  0% { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  color: #fff;
}

.hero-stat .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-gold);
}

.hero-stat .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* Hero 轮播指示器 */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots .dot {
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dots .dot.active {
  background: #fff;
  width: 50px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 网格布局 ---------- */
.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); }

/* ---------- 产品模块图标卡 ---------- */
.feature-card {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 行业方案卡 ---------- */
.industry-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  background: var(--color-primary);
  cursor: pointer;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s;
}

.industry-card:hover img {
  transform: scale(1.08);
}

.industry-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 43, 92, 0.9) 0%, rgba(13, 43, 92, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.industry-card .overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.industry-card .overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 标杆客户 Logo 墙 ---------- */
.client-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.client-logo {
  height: 70px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 600;
  transition: all 0.3s;
}

.client-logo:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- 数据统计区 ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 60px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .num {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.stat-item .suffix {
  font-size: 20px;
  font-weight: 600;
}

.stat-item .label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 12px;
}

/* ---------- 资质荣誉卡 ---------- */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qual-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.qual-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold);
}

.qual-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.qual-desc {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---------- 新闻列表 ---------- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--color-border);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.news-body {
  padding: 20px;
}

.news-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 13px;
  color: var(--color-text-light);
  display: flex;
  gap: 16px;
}

/* ---------- CTA 区 ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* ---------- 表单 ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.error {
  border-color: var(--color-danger);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.form-error {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.form-success h3 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--color-text-light);
}

.form-inline-msg {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  transition: opacity .5s ease;
}
.form-inline-warn {
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #d46b08;
}
.form-inline-error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  color: var(--color-accent-light);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  min-width: 28px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-icp {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 悬浮咨询按钮 ---------- */
.float-consult {
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  z-index: 999;
  transition: all 0.3s;
}

.float-consult:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.float-consult .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.float-consult:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---------- 页面通用 Banner（内页顶部） ---------- */
.page-banner {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-accent) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.page-banner h1 {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  z-index: 1;
}

.page-banner p {
  position: relative;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

/* ---------- 时间轴（发展历程） ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
}

.timeline-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---------- 服务流程步骤 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.process-step .step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.process-step .step-desc {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--color-bg-soft);
}

.faq-question .arrow {
  transition: transform 0.3s;
  color: var(--color-text-light);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ---------- 筛选标签 ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tag {
  padding: 8px 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.filter-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-tag.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination a.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 404 页面 ---------- */
.error-page {
  margin-top: var(--header-h);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page .code {
  font-size: 120px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.error-page h2 {
  font-size: 24px;
  color: var(--color-text);
  margin: 20px 0 12px;
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .client-logos {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }

  /* 移动端导航 */
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 0;
    gap: 0;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open {
    max-height: 500px;
  }
  .main-nav > li {
    width: 100%;
  }
  .main-nav > li > a {
    padding: 14px 24px;
    border-radius: 0;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 24px;
    display: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
  }
  .nav-actions .search-box { display: none; }

  /* 网格变单列 */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .news-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { min-height: 500px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 28px; }

  .page-banner h1 { font-size: 28px; }
  .form-wrap { padding: 24px; }
  .timeline { padding-left: 30px; }

  /* 内联双列布局移动端变单列 */
  .sol-detail,
  .about-intro,
  .case-detail-grid,
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 信创安全专区 ---------- */
.xinchuang-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #081d40 0%, #0d2b5c 50%, #1e3a6e 100%);
  color: #fff;
  overflow: hidden;
}

/* 信创背景网格 */
.xinchuang-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* 信创流光边框 */
.xinchuang-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.xinchuang-title {
  color: #fff;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.xinchuang-subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 16px;
  margin-bottom: 48px;
}

.xinchuang-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.xinchuang-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.xinchuang-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.xinchuang-card:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.xinchuang-card:hover::before {
  opacity: 1;
}

.xinchuang-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.xinchuang-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.xinchuang-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.xinchuang-partners {
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

.xinchuang-partners-title {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.xinchuang-partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.xinchuang-partner {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s;
}

.xinchuang-partner:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
}

/* 信创专区响应式 */
@media (max-width: 768px) {
  .xinchuang-grid { grid-template-columns: repeat(2, 1fr); }
  .xinchuang-title { font-size: 26px; }
}
