/* ==========================================================================
   星衍网络 STARNET · 官网样式
   深空蓝紫主题 · 玻璃拟态 · 全响应式
   ========================================================================== */

:root {
  --bg: #050816;
  --bg-2: #0a0f2c;
  --bg-3: #10163a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf8;
  --text-dim: #a9b2d0;
  --text-faint: #6b7696;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --accent: #a78bfa;
  --grad: linear-gradient(120deg, #6366f1 0%, #22d3ee 60%, #a78bfa 100%);
  --grad-text: linear-gradient(90deg, #8b95ff 0%, #22d3ee 55%, #a78bfa 100%);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  --glow: 0 0 40px rgba(99, 102, 241, 0.35);
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(99, 102, 241, 0.5); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; }

/* ---------- 视频背景 ---------- */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  /* iOS 兼容:强制 GPU 合成,避免视频不铺满/错位 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.bg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(5, 8, 22, 0.18) 0%, rgba(5, 8, 22, 0.62) 80%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.5) 0%, rgba(5, 8, 22, 0.28) 45%, rgba(5, 8, 22, 0.62) 100%);
}

/* ---------- 星空画布 ---------- */
#starfield {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---------- 渐变文字 ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(5, 8, 22, 0.88);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.5);
}
.nav-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6)); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-faint);
  font-weight: 500;
}
.menu { display: flex; gap: 6px; }
.menu-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}
.menu-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu-link.active { color: var(--primary-2); }
.menu-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 880px;
}
.hero-badge {
  display: inline-block;
  padding: 7px 20px;
  margin-bottom: 26px;
  font-size: 13.5px;
  letter-spacing: 1px;
  color: var(--primary-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(99, 102, 241, 0.35);
}
.hero-sub {
  max-width: 660px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-dim);
}
.hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
  padding: 26px 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric strong {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric span { font-size: 13px; color: var(--text-faint); letter-spacing: 1px; }

/* Hero 标签 */
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-tags span {
  padding: 8px 20px;
  font-size: 13.5px;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-tags span:hover {
  color: var(--primary-2);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
}
.mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.wheel {
  display: block;
  width: 4px; height: 8px;
  margin: 7px auto 0;
  border-radius: 3px;
  background: var(--primary-2);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 通用 Section ---------- */
.section {
  position: relative;
  z-index: 3;
  padding: 110px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(5, 8, 22, 0) 60%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--primary-2);
  margin-bottom: 14px;
  opacity: 0.85;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: 2px; margin-bottom: 14px; }
.section-desc { color: var(--text-dim); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 15.5px; }
.about-text strong { color: var(--text); }
.about-points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
}
.about-points svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--primary-2);
}

.about-visual { display: flex; justify-content: center; }
.orb {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
}
.orb-ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  animation: spin 26s linear infinite;
}
.ring-2 { inset: 14%; border-color: rgba(34, 211, 238, 0.35); animation-duration: 20s; animation-direction: reverse; }
.ring-3 { inset: 28%; border-color: rgba(167, 139, 250, 0.35); animation-duration: 15s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core {
  position: absolute;
  inset: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(5, 8, 22, 0) 70%);
  box-shadow: var(--glow);
  animation: pulse 3.2s ease-in-out infinite;
}
.orb-core svg { width: 56%; height: 56%; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 70px rgba(34, 211, 238, 0.55); }
}
.orb-node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 14px var(--primary-2);
  animation: twinkle 2.6s ease-in-out infinite;
}
.orb-node.n1 { top: 4%; left: 50%; }
.orb-node.n2 { top: 30%; right: 2%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation-delay: 0.4s; }
.orb-node.n3 { bottom: 26%; right: 10%; animation-delay: 0.8s; }
.orb-node.n4 { bottom: 10%; left: 42%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation-delay: 1.2s; }
.orb-node.n5 { top: 34%; left: 4%; animation-delay: 1.6s; }
.orb-node.n6 { top: 14%; left: 26%; background: #fff; box-shadow: 0 0 10px #fff; animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* ---------- 核心业务卡片 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 34px 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow), var(--glow);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--primary-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: 1px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 18px; }
.card-more {
  font-size: 14px;
  color: var(--primary-2);
  transition: letter-spacing 0.25s ease;
}
.card:hover .card-more { letter-spacing: 1px; }

/* ---------- 数据统计 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 40px 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow);
}
.stat-card strong {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-card p { color: var(--text-dim); font-size: 15px; letter-spacing: 1px; }

/* ---------- 技术优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: adv;
}
.adv-item {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.adv-item:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, 0.45); }
.adv-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.adv-item h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: 1px; }
.adv-item p { font-size: 14px; color: var(--text-dim); }

/* ---------- 服务分组标题 ---------- */
.service-group { margin: 56px 0 28px; }
.service-group:first-of-type { margin-top: 0; }
.service-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.service-group-title svg {
  width: 26px; height: 26px;
  color: var(--primary-2);
  flex-shrink: 0;
}
.service-group-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--text-faint);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* ---------- 作品展示 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.works-grid-single {
  grid-template-columns: minmax(0, 300px);
  justify-content: center;
}
.works-grid-narrow {
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
}
.work-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow), var(--glow);
}
.work-cover {
  position: relative;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.35), transparent 55%),
    linear-gradient(135deg, var(--cover-a), var(--cover-b));
}
/* 像素网格纹理 */
.work-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* 悬浮光斑 */
.work-cover::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  transition: transform 0.5s ease;
}
.work-card:hover .work-cover::after { transform: scale(1.25) translate(-10%, 8%); }
.cover-web-1 { --cover-a: #4338ca; --cover-b: #7c3aed; }
.cover-web-2 { --cover-a: #0e7490; --cover-b: #2563eb; }
.cover-web-3 { --cover-a: #334155; --cover-b: #4f46e5; }
.cover-mini-1 { --cover-a: #92400e; --cover-b: #b45309; }
.cover-mini-2 { --cover-a: #6d28d9; --cover-b: #db2777; }
.cover-mini-3 { --cover-a: #155e75; --cover-b: #0891b2; }
.work-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(5, 8, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.work-preview {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.work-info { padding: 12px 14px 14px; }
.work-info h3 { font-size: 14.5px; margin-bottom: 4px; transition: color 0.25s ease; }
.work-card:hover .work-info h3 { color: var(--primary-2); }
.work-info p { font-size: 12px; color: var(--text-faint); }

/* 枪战网页链接卡片 */
.work-link { cursor: pointer; display: block; }
.work-link:hover .work-preview { color: var(--primary-2); }

/* 地图卡片 */
.map-card { cursor: pointer; }
.map-card:hover .work-info h3 { color: var(--primary-2); }
.cover-map { position: relative; overflow: hidden; }
/* 图片封面干净显示:去掉网格纹理与光斑干扰 */
.cover-map::before,
.cover-map::after { display: none; }
.map-cover-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.map-card:hover .map-cover-img { transform: scale(1.06); }
.work-badge.badge-online {
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(52, 211, 153, 0.5);
}
.work-badge.badge-offline {
  color: var(--text-dim);
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.45);
}
.map-offline .work-cover {
  filter: grayscale(0.55);
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #1e293b, #334155);
}
.map-offline .work-cover::after { display: none; }
.map-offline:hover .work-info h3 { color: var(--text-dim); }

/* ---------- 地图详情弹窗(液态玻璃) ---------- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 10, 28, 0.32);
}
.modal-box {
  position: relative;
  width: min(430px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 26px 28px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 60px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.open .modal-box { transform: translateY(0) scale(1); }
.modal-box::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.modal-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}
.modal-cover {
  width: 100%;
  height: 150px;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 2px;
}
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.modal-meta div {
  padding: 11px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.modal-meta dt { font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-bottom: 5px; letter-spacing: 1px; }
.modal-meta dd { font-size: 14px; font-weight: 600; color: #fff; word-break: break-all; }
.modal-log-title {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}
.modal-log { list-style: none; display: grid; gap: 8px; }
.modal-log li {
  position: relative;
  padding: 9px 12px 9px 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.modal-log li::before {
  content: "";
  position: absolute;
  left: 13px; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.modal-log li.log-empty {
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 16px 12px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
}
.modal-log li.log-empty::before { display: none; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: grid; gap: 26px; }
.contact-info-center {
  max-width: 680px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-note {
  margin-top: 44px;
  text-align: center;
  color: var(--text-faint);
  font-size: 15px;
  letter-spacing: 1px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-item:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateX(4px); }
.contact-item svg {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--primary-2);
  margin-top: 2px;
}
.contact-item h4 { font-size: 15px; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 3;
  background: rgba(4, 6, 18, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 56px;
  padding: 64px 0 48px;
}
.footer-brand p { margin-top: 16px; color: var(--text-faint); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 15px; letter-spacing: 1px; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: var(--text-faint); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--primary-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}
.footer-bottom p { text-align: center; font-size: 12.5px; color: var(--text-faint); }

/* ---------- 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cards-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 5%;
    background: rgba(5, 8, 22, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transform: translateY(-130%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .menu.open { transform: translateY(0); }
  .menu-link { padding: 14px 16px; font-size: 16px; }
  .menu-link.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-metrics { padding: 22px 26px; gap: 26px; }
  .cards-grid, .adv-grid, .stats-grid, .works-grid { grid-template-columns: 1fr; }
  .contact-info-center { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 36px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- 手机端(≤480px) ---------- */
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--nav-h) + 28px) 18px 64px; }
  .hero-title { letter-spacing: 2px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; }
  .hero-btns .btn { padding: 12px 22px; font-size: 14px; }
  .hero-tags span { padding: 7px 14px; font-size: 12.5px; }
  .section-desc { font-size: 14.5px; }
  .work-cover { height: 110px; }
  .works-grid-single,
  .works-grid-narrow { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-box {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 24px 20px 32px;
  }
  .modal-meta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .contact-note { font-size: 13.5px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- 无障碍:减弱动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-ring, .wheel, .orb-node, .orb-core { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
