/* ========================================
   拓浪科技 — 深空蓝黑科技风（OJO 风格）
   近黑底色 / 点阵网格 / 玻璃拟态卡片 / 蓝色主色
   ======================================== */

/* --- Variables --- */
:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.05);
  --text: #eef2f9;
  --text-secondary: #93a1bb;
  --text-muted: #5b6780;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-sky: #38bdf8;
  --accent-bg: rgba(59, 130, 246, 0.10);
  --border: rgba(148, 163, 184, 0.14);
  --border-bright: rgba(96, 165, 250, 0.38);
  --max-width: 1200px;
  --header-h: 72px;
  --radius: 18px;
  --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局点阵网格背景（OJO 画布感） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, 0.35); }

/* --- Typography --- */
.font-display {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.font-mono {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* --- Section spacing --- */
.section { padding: 110px 0; position: relative; z-index: 1; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* --- Rule line --- */
.rule { height: 1px; background: rgba(148, 163, 184, 0.08); width: 100%; position: relative; z-index: 1; }
.rule-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  width: 48px;
  border-radius: 2px;
}

/* --- Section label --- */
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.section-label .num {
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
}
.section-label .line { flex: 1; height: 1px; background: var(--border); max-width: 80px; }
.section-label .text {
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.header.scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-img { height: 34px; width: auto; display: block; flex-shrink: 0; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* --- Cursor glow（首页鼠标光晕，JS 驱动） --- */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.045) 38%, transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 600;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
}
/* 顶部极光晕 */
.hero::before {
  content: '';
  position: absolute;
  top: -320px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 640px;
  background:
    radial-gradient(ellipse 55% 60% at 45% 45%, rgba(59, 130, 246, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 50% at 65% 55%, rgba(56, 189, 248, 0.10), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero .container { z-index: 1; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: 44px; }
.hero-left { position: relative; will-change: transform; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
}
.hero-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
  box-shadow: 0 0 8px var(--accent-sky);
}
.hero-title {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent-light) 10%, var(--accent-sky) 55%, #818cf8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 38px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(115deg, var(--accent) 0%, #2563eb 100%);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform;
}
.hero-cta:hover {
  box-shadow: 0 12px 42px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.hero-cta-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.hero-cta-ghost:hover {
  border-color: var(--border-bright);
  background: var(--accent-bg);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}
.hero-right { display: flex; flex-direction: column; gap: 32px; }
.hero-meta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
}
.hero-meta-label {
  font-family: 'SF Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero-meta-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* 滚动提示 */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'SF Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  z-index: 1;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--accent-light), transparent);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- Content blocks --- */
.content-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}
.content-split .left h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.content-split .right { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .content-split .left h2 { position: static; }
  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(4, 6, 12, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 40px;
    gap: 28px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
}

/* --- 玻璃拟态卡片通用 --- */
.index-item, .feature-cell, .data-cell, .contact-cell, .p-item, .case-study {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s, background-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.index-item:hover, .feature-cell:hover, .data-cell:hover, .contact-cell:hover, .p-item:hover {
  border-color: var(--border-bright);
  /* 鼠标聚光灯：--sx/--sy 由 JS 写入 */
  background-image: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 50%), rgba(59, 130, 246, 0.10), transparent 65%);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.10);
}

/* --- Index list（核心业务） --- */
.index-list { display: flex; flex-direction: column; gap: 14px; }
.index-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 30px 32px;
  text-decoration: none;
  color: inherit;
}
.index-item:hover { transform: translateY(-2px); }
.index-item:hover .index-arrow { color: var(--accent-light); transform: translateX(4px); }
.index-num {
  font-family: 'SF Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-light);
  padding-top: 5px;
}
.index-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.index-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}
.index-arrow {
  font-family: 'SF Mono', monospace;
  font-size: 1rem;
  color: var(--text-muted);
  padding-top: 4px;
  transition: color 0.3s, transform 0.3s;
}
@media (max-width: 768px) {
  .index-item { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .index-arrow { display: none; }
}

/* --- Data row --- */
.data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 64px;
}
.data-cell { padding: 40px 28px; text-align: center; }
.data-cell .num {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1;
  background: linear-gradient(115deg, var(--accent-light), var(--accent-sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.data-cell .label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; }
@media (max-width: 768px) { .data-row { grid-template-columns: 1fr 1fr; } }

/* --- Quote block --- */
.quote-block {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 64px 0;
  position: relative;
}
.quote-block p {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.75;
  color: var(--text);
  max-width: 760px;
}
.quote-block .source {
  margin-top: 24px;
  font-family: 'SF Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
}

/* --- Feature grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-cell { padding: 36px 30px; }
.feature-cell:hover { transform: translateY(-3px); }
.feature-cell .cell-num {
  font-family: 'SF Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.feature-cell .cell-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.feature-cell .cell-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.75; }
@media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; } }

/* --- Partner row --- */
.partner-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-row .p-item {
  padding: 16px 28px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.partner-row .p-item:hover { color: var(--text); }

/* --- Case study --- */
.case-study { padding: 44px 40px; }
.case-study:hover { border-color: var(--border-bright); }
.case-header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.case-tag {
  font-family: 'SF Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  text-transform: uppercase;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: var(--accent-bg);
  padding: 5px 14px;
  border-radius: 999px;
}
.case-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.case-body { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.case-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; }
.case-meta-side { border-left: 1px solid var(--border); padding-left: 32px; }
.case-meta-side dt {
  font-family: 'SF Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.case-meta-side dd { font-size: 0.85rem; color: var(--text); margin-bottom: 20px; }
@media (max-width: 768px) {
  .case-study { padding: 28px 22px; }
  .case-body { grid-template-columns: 1fr; }
  .case-meta-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
}

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-cell { padding: 36px 30px; }
.contact-cell dt {
  font-family: 'SF Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-cell dd { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.contact-cell dd a { color: var(--accent-light); text-decoration: none; }
.contact-cell dd a:hover { text-decoration: underline; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* 内联边框容器 → 玻璃面板 / 胶囊标签 */
div[style*="border:1px solid var(--border)"] {
  background: var(--card);
  border-radius: var(--radius);
}
span[style*="border:1px solid var(--border)"] { border-radius: 999px; }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-family: 'SF Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent-light); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.preloader-bar {
  width: 96px; height: 2px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 30%;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  animation: preloaderSlide 1s ease-in-out infinite;
}
@keyframes preloaderSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .animate.visible { animation: none; opacity: 1; }
  .hero-scroll::after { animation: none; }
  .cursor-glow, .hero-canvas { display: none; }
}

/* --- Page header --- */
.page-header {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 90px) 0 70px;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 520px;
  background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(59, 130, 246, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}
.page-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  position: relative;
}
