/* ==========================================================================
   全站样式表（科技感深色主题）
   设计基调：深空蓝黑底 + 霓虹青蓝渐变 + 网格线条 + 微发光
   ========================================================================== */

/* ---------- CSS 变量（改配色只需调整此处） ---------- */
:root {
  --bg-deep: #060a1a; /* 页面最深层背景色 */
  --bg-section: #0a1024; /* 普通区块背景色 */
  --bg-alt: #0c1230; /* 交替区块背景色（略亮） */
  --bg-card: rgba(255, 255, 255, 0.04); /* 卡片背景（半透明白） */
  --border-card: rgba(255, 255, 255, 0.08); /* 卡片边框 */
  --primary: #00e5ff; /* 主色：霓虹青 */
  --primary-dark: #00b0d8; /* 主色加深（悬停态） */
  --accent: #7c5cff; /* 点缀色：科技紫 */
  --text-main: #eaf0ff; /* 主要文字色 */
  --text-sub: #93a0c4; /* 次要文字色 */
  --text-dim: #5a6690; /* 弱化文字色 */
  --gradient: linear-gradient(120deg, #00e5ff 0%, #7c5cff 100%); /* 品牌渐变 */
  --radius: 14px; /* 卡片圆角 */
  --header-h: 72px; /* 顶部导航高度 */
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.25); /* 发光阴影 */
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 锚点平滑滚动 */
  scroll-padding-top: var(--header-h); /* 锚点跳转避开固定导航 */
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 通用容器：限制最大宽度并居中 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 10, 26, 0.72);
  backdrop-filter: blur(14px); /* 毛玻璃效果 */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

/* 页面滚动后导航加深并显示底部分隔线 */
.site-header.scrolled {
  background: rgba(6, 10, 26, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* LOGO 样式 */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo .logo-name {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* 渐变文字 */
}

.logo .logo-en {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* 桌面端导航菜单 */
.nav-desktop {
  display: flex;
  gap: 6px;
}

.nav-desktop a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

/* 导航右侧电话 */
.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* 移动端汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* 移动端抽屉菜单（默认隐藏） */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(6, 10, 26, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px 20px;
}

.nav-mobile a {
  padding: 12px 0;
  color: var(--text-sub);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.nav-mobile.open {
  display: flex;
}

/* ==========================================================================
   首屏 Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 92, 255, 0.14), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 229, 255, 0.1), transparent 50%),
    var(--bg-deep);
}

/* 粒子画布铺满 Hero */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 漂浮的柔光斑，增加层次 */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(0, 229, 255, 0.18);
  top: 10%;
  left: -120px;
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  background: rgba(124, 92, 255, 0.2);
  bottom: 5%;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* 顶部徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* 主标题 */
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 4px;
}

/* 主标题中的渐变高亮行 */
.hero-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 副标题描述 */
.hero-desc {
  max-width: 720px;
  margin: 26px auto 40px;
  color: var(--text-sub);
  font-size: 17px;
}

.hero-desc .hl {
  color: var(--primary);
  font-weight: 600;
}

/* 按钮通用样式 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* 主按钮：渐变填充 + 发光 */
.btn-primary {
  background: var(--gradient);
  color: #06121f;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.4);
}

/* 次按钮：描边 */
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  margin-left: 16px;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 向下滚动引导线 */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   数据指标条
   ========================================================================== */
.stats {
  background: var(--bg-section);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums; /* 数字等宽，滚动动画不抖动 */
}

.stat-label {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 4px;
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section {
  padding: 96px 0;
  background: var(--bg-section);
}

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

/* 板块头部（标题 + 英文副标 + 描述） */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-sub {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* 标题下方渐变装饰条 */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--gradient);
}

.section-desc {
  color: var(--text-sub);
  margin-top: 16px;
  font-size: 15px;
}

/* ==========================================================================
   业务方向卡片
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* 卡片悬停：上浮 + 边框点亮 + 发光 */
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.12);
}

/* 卡片左上角装饰光 */
.service-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.service-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 255, 0.35);
  margin-bottom: 16px;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 18px;
}

/* 业务亮点标签列表 */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-features li {
  font-size: 13px;
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ==========================================================================
   核心优势
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  text-align: center;
  padding: 36px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}

.adv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
}

.adv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--primary);
}

.adv-icon svg {
  width: 28px;
  height: 28px;
}

.adv-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.adv-desc {
  color: var(--text-sub);
  font-size: 13.5px;
}

/* ==========================================================================
   服务流程（横向步骤线）
   ========================================================================== */
.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

/* 步骤之间的连接线 */
.process-line::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 229, 255, 0.4), transparent);
}

.process-item {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* 步骤序号圆点 */
.process-step {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.process-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* ==========================================================================
   成功案例
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* 案例配图容器（悬停时图片轻微放大） */
.case-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.case-card:hover .case-img img {
  transform: scale(1.06);
}

.case-body {
  padding: 22px 24px 26px;
}

.case-category {
  font-size: 12px;
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
}

.case-title {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.case-desc {
  color: var(--text-sub);
  font-size: 13.5px;
}

/* ==========================================================================
   新闻动态
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.news-category {
  color: var(--accent);
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  /* 标题超出两行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  color: var(--text-sub);
  font-size: 13.5px;
  /* 摘要超出三行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text .section-sub,
.about-text .section-title {
  text-align: left;
}

.about-text .section-title::after {
  margin-left: 0;
}

.about-text p {
  color: var(--text-sub);
  margin-top: 18px;
  font-size: 15px;
}


/* 关于我们配图（带渐变边框装饰） */
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info .section-sub {
  margin-bottom: 24px;
}

/* 联系信息条目 */
.contact-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: 14.5px;
}

.contact-item .ci-label {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
  width: 72px;
}

/* 表单卡片 */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form-card h3 {
  font-size: 20px;
  margin-bottom: 22px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* 表单提交提示文字 */
.form-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: #05081a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-col p,
.footer-col a {
  display: block;
  color: var(--text-sub);
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--primary);
}

/* 页脚公司简述 */
.footer-brand .logo {
  margin-bottom: 16px;
}

/* 底部版权条 */
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* ==========================================================================
   回到顶部按钮
   ========================================================================== */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(6, 10, 26, 0.85);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   滚动进场动画（元素进入视口时淡入上移）
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process-line::before { display: none; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .services-grid, .cases-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 14px; }
  .hero-desc { font-size: 15px; }
}

/* ==========================================================================
   页脚备案号可点击
   ========================================================================== */
.footer-beian-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s;
}

.footer-beian-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
