/* ============================================================
 * 数智蓉装大数据综合服务平台 —— 深色科技风样式
 * ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
  --bg-deep: #030714;
  --bg-panel: rgba(12, 24, 48, 0.66);
  --panel-border: rgba(64, 156, 255, 0.16);
  --cyan: #3ee6ff;
  --blue: #2b6bff;
  --gold: #f2c66d;
  --text: #e9f2ff;
  --text-dim: #93a7c9;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Consolas", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

.container { width: min(1240px, 92%); margin-inline: auto; }

section[id] { scroll-margin-top: 84px; }

main, .footer { position: relative; z-index: 2; }

/* ---------- 全局背景层 ---------- */

/* 粒子画布 */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 科技网格叠加层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(62, 230, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 230, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 38%, #000 28%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 38%, #000 28%, transparent 74%);
}

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(5, 10, 24, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(64, 156, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(62, 230, 255, 0.4));
}

.logo-text { display: flex; flex-direction: column; line-height: 1.3; }

.logo-text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #f0f7ff;
}

.logo-text em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  position: relative;
  padding: 10px 18px;
  font-size: 14.5px;
  letter-spacing: 0.15em;
  color: #c9d8f2;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(62, 230, 255, 0.55);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 56%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #c9d8f2;
  display: block;
  transition: 0.3s;
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

/* 光晕色块 */
.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -120px;
  left: -140px;
  background: radial-gradient(circle, rgba(43, 107, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  bottom: -80px;
  right: -120px;
  background: radial-gradient(circle, rgba(242, 198, 109, 0.13), transparent 65%);
  pointer-events: none;
}

/* 旋转轨道环 */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vmin, 660px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-rings i {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(62, 230, 255, 0.16);
  border-radius: 50%;
  animation: spin 46s linear infinite;
}

.hero-rings i:nth-child(2) {
  inset: 12%;
  border-color: rgba(242, 198, 109, 0.14);
  animation-duration: 64s;
  animation-direction: reverse;
}

.hero-rings i:nth-child(3) {
  inset: 24%;
  border-style: solid;
  border-color: rgba(62, 230, 255, 0.07);
  animation-duration: 84s;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 24px;
  border: 1px solid rgba(62, 230, 255, 0.35);
  border-radius: 999px;
  background: rgba(62, 230, 255, 0.06);
  color: #9fe8ff;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.hero-badge::before,
.hero-badge::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-title { margin-top: 34px; }

.hero-title .line1 {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: #fff;
  text-shadow: 0 0 34px rgba(62, 230, 255, 0.45);
}

.hero-title .line2 {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  background: linear-gradient(90deg, #3ee6ff, #7aa8ff 42%, #f2c66d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glowPulse 3.6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(62, 230, 255, 0.3)); }
  50%      { filter: drop-shadow(0 0 26px rgba(62, 230, 255, 0.6)); }
}

.hero-sub {
  margin: 30px auto 0;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  border: 1px solid rgba(62, 230, 255, 0.5);
  background: linear-gradient(135deg, rgba(62, 230, 255, 0.18), rgba(43, 107, 255, 0.25));
  color: #dff6ff;
  box-shadow: 0 0 22px rgba(62, 230, 255, 0.22), inset 0 0 18px rgba(62, 230, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 230, 255, 0.9);
  box-shadow: 0 0 36px rgba(62, 230, 255, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(147, 167, 201, 0.35);
  color: #c6d4ee;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 230, 255, 0.6);
  color: #eaffff;
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(147, 167, 201, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-hint i {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 区块通用标题 ---------- */
.section-header { text-align: center; margin-bottom: 52px; }

.section-tag {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--cyan);
  opacity: 0.85;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: #f0f6ff;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(62, 230, 255, 0.6);
}

.section-desc {
  margin-top: 18px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 数据概览 ---------- */
.stats { padding: 100px 0 30px; }

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(13, 26, 50, 0.65), rgba(8, 16, 34, 0.5));
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* 顶部流光线 */
.stats-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 230, 255, 0.85), transparent);
}

.stat-item {
  position: relative;
  padding: 42px 26px 38px;
  text-align: center;
}

/* 列分隔线（每行非末列右侧） */
.stat-item:not(:nth-child(3n))::before {
  content: "";
  position: absolute;
  right: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(62, 230, 255, 0.25), transparent);
}

/* 行分隔线（首行底部） */
.stat-item:nth-child(-n+3)::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 230, 255, 0.2), transparent);
}

.stat-value {
  font-family: var(--font-num);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 22px rgba(62, 230, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  margin-left: 3px;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--cyan);
}

.stat-label {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.stat-sub {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: rgba(147, 167, 201, 0.72);
}

/* ---------- 四大平台卡片 ---------- */
.platforms { padding: 90px 0 30px; position: relative; }

.platforms::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 720px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(43, 107, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.platform-grid > .reveal { display: flex; min-width: 0; }

.platform-card {
  --accent: var(--cyan);
  --accent-soft: rgba(62, 230, 255, 0.28);
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 24, 48, 0.7), rgba(6, 13, 28, 0.85));
  border: 1px solid rgba(64, 156, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

/* 四色主题 */
.accent-gold  { --accent: #f2c66d; --accent-soft: rgba(242, 198, 109, 0.28); }
.accent-green { --accent: #52e0a0; --accent-soft: rgba(82, 224, 160, 0.26); }
.accent-amber { --accent: #ffb45e; --accent-soft: rgba(255, 180, 94, 0.28); }
.accent-teal  { --accent: #4dd8e6; --accent-soft: rgba(77, 216, 230, 0.28); }

.platform-card:hover,
.platform-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 34px var(--accent-soft);
}

/* 卡片配图 */
.card-media {
  position: relative;
  height: 185px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(1.05);
}

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.08) 30%, rgba(6, 13, 28, 0.92));
}

.card-number {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  background: rgba(4, 8, 20, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* 卡片内容 */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 22px 20px;
}

.card-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-tag-cn {
  padding: 4px 11px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: rgba(4, 8, 20, 0.4);
}

.card-tag-en {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(147, 167, 201, 0.5);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eef4ff;
}

.card-desc {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed rgba(64, 156, 255, 0.18);
}

.card-enter {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.card-arrow {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

.platform-card:hover .card-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* HUD 角标与扫描光 */
.card-corners,
.card-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.card-corners::before,
.card-corners::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  transition: 0.35s ease;
}

.card-corners::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.card-corners::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.platform-card:hover .card-corners::before { top: 4px; left: 4px; opacity: 1; }
.platform-card:hover .card-corners::after  { bottom: 4px; right: 4px; opacity: 1; }

.card-scan {
  top: -40%;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09) 50%, transparent);
  opacity: 0;
}

.platform-card:hover .card-scan { animation: cardScan 1.5s ease-in-out infinite; }

@keyframes cardScan {
  0%   { top: -40%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 130%; opacity: 0; }
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 100px;
  padding: 56px 0 34px;
  text-align: center;
  border-top: 1px solid rgba(64, 156, 255, 0.15);
  background: linear-gradient(180deg, transparent, rgba(6, 13, 28, 0.85));
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #eaf3ff;
  text-shadow: 0 0 18px rgba(62, 230, 255, 0.3);
}

.footer-slogan {
  margin-top: 14px;
  font-size: 13.5px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.footer-copy {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(147, 167, 201, 0.45);
}

.footer-note {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(147, 167, 201, 0.3);
}

/* ---------- 滚动渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 18px;
    background: rgba(5, 10, 24, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(64, 156, 255, 0.2);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .stats-panel { grid-template-columns: repeat(2, 1fr); }

  .stat-item {
    padding: 30px 16px 26px;
    border-top: 1px solid rgba(64, 156, 255, 0.12);
    border-right: 1px solid rgba(64, 156, 255, 0.12);
  }

  .stat-item::before,
  .stat-item::after { display: none; }

  .stat-item:nth-child(-n+2) { border-top: 0; }

  .stat-item:nth-child(2n) { border-right: 0; }

  .hero-sub { font-size: 14px; }
}

@media (max-width: 640px) {
  .platform-grid { grid-template-columns: 1fr; }

  .card-media { height: 200px; }

  .hero-actions { flex-direction: column; align-items: center; }

  .btn { width: min(280px, 100%); justify-content: center; }
}

/* ---------- 减少动态效果偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-rings i,
  .hero-title .line2,
  .scroll-hint i { animation: none; }
}
