/* ============================================================
   中耀寰宇(成都)科技有限公司 · 官网样式
   主题:深空宇宙 / 玻璃拟态 / 霓虹辉光
   ============================================================ */

:root {
  --bg-0: #05060f;
  --bg-1: #0a0e27;
  --bg-2: #0d1330;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.10);
  --text: #e8ecff;
  --text-dim: #9aa3c7;
  --text-mute: #6b73a0;
  --cyan: #00f0ff;
  --blue: #5b8cff;
  --indigo: #6d7bff;
  --violet: #a066ff;
  --magenta: #ff5cc8;
  --grad: linear-gradient(120deg, #00f0ff 0%, #6d7bff 45%, #a066ff 75%, #ff5cc8 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,240,255,.15), rgba(160,102,255,.15));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(109, 123, 255, 0.45);
  --max: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

/* 整页深空底色 + 渐变光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(109, 123, 255, 0.25), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(0, 240, 255, 0.18), transparent 60%),
    radial-gradient(900px 800px at 50% 120%, rgba(160, 102, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===================== 自定义光标辉光 ===================== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10), rgba(160, 102, 255, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity .3s ease;
}

/* ===================== 滚动进度条 ===================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  z-index: 1000;
  transition: width .1s linear;
}

/* ===================== 星空背景 ===================== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ===================== 加载动画 ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg-0);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 1s linear infinite;
  box-shadow: var(--glow);
}
.loader-text {
  font-family: var(--font-mono);
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--text-dim);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 渐变文字 ===================== */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradMove 6s linear infinite;
  position: relative;
}
@keyframes gradMove { to { background-position: 200% center; } }

/* ===================== 导航栏 ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: all .4s var(--ease);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(8, 11, 30, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(109,123,255,.5)); }
.logo-mark svg { animation: orbit 16s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 19px; letter-spacing: 1px; font-weight: 700; }
.logo-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-mute);
}

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 10px;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s var(--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;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(0,240,255,.22), transparent 70%),
    radial-gradient(50% 60% at 80% 20%, rgba(160,102,255,.22), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(255,92,200,.14), transparent 70%);
  filter: blur(30px);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-4%,0) scale(1.08); }
}
.hero-inner { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.hero-title {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(109, 123, 255, 0.25);
}
.hero-title .grad-text { display: inline-block; margin: 0 6px; }
.hero-title .grad-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-fill-color: transparent;
  filter: blur(14px);
  opacity: .5;
  z-index: -1;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-dim);
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-typed {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 2px;
  min-height: 26px;
  margin-bottom: 34px;
}
.caret { animation: blink 1s steps(1) infinite; color: var(--violet); }
@keyframes blink { 50% { opacity: 0; } }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: #021024;
  background: var(--grad);
  background-size: 200% auto;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 14px 40px rgba(160, 102, 255, 0.4);
}
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(0,240,255,.4); box-shadow: var(--glow); }
.btn-block { width: 100%; justify-content: center; }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.scroll-indicator .mouse {
  width: 24px; height: 40px;
  border: 2px solid var(--text-mute);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator .wheel {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-mute);
}

/* ===================== 通用 section ===================== */
.section { padding: 120px 0; position: relative; }
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(13, 19, 48, 0.5), transparent);
  z-index: -1;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.section-desc { color: var(--text-dim); font-size: 16px; }

/* 玻璃卡片基础 */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* ===================== 关于我们 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.about-card {
  padding: 40px 30px;
  text-align: center;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow), var(--glow);
}
.about-icon {
  width: 70px; height: 70px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 20px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid var(--panel-border);
}
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card p { color: var(--text-dim); font-size: 14px; }

/* ===================== 核心业务 ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 36px 30px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(109, 123, 255, 0.5);
  box-shadow: var(--shadow);
}
.service-glow {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,240,255,.18), transparent 60%);
  top: -80px; right: -80px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service-card:hover .service-glow { opacity: 1; }
.service-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid var(--panel-border);
  margin-bottom: 22px;
  transition: color .3s ease, transform .4s var(--ease);
}
.service-card:hover .service-icon { color: var(--text); transform: scale(1.06); }
.service-card h3 { font-size: 21px; margin-bottom: 12px; }
.service-card > p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags li {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
}

/* ===================== 数据 / 技术优势 ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.stat-card { padding: 36px 24px; text-align: center; transition: transform .4s var(--ease); }
.stat-card:hover { transform: translateY(-6px); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-num em { font-style: normal; -webkit-text-fill-color: var(--cyan); margin-left: 4px; }
.stat-label { color: var(--text-dim); font-size: 14px; margin-top: 8px; letter-spacing: 1px; }

.adv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.adv-item {
  display: flex;
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform .4s var(--ease), border-color .4s ease;
}
.adv-item:hover { transform: translateY(-6px); border-color: rgba(160,102,255,.4); }
.adv-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  line-height: 1;
}
.adv-body h3 { font-size: 19px; margin-bottom: 8px; }
.adv-body p { color: var(--text-dim); font-size: 14px; }

/* ===================== 行业方案 ===================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.sol-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.sol-img {
  height: 180px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, hsl(var(--h, 200), 70%, 20%), hsl(var(--h, 200), 60%, 8%));
}
.sol-img::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, hsla(var(--h, 200), 90%, 60%, .55), transparent 60%);
  mix-blend-mode: screen;
}
.sol-img svg { position: relative; z-index: 1; filter: drop-shadow(0 4px 20px rgba(0,0,0,.4)); }
.sol-body { padding: 26px 28px; }
.sol-body h3 { font-size: 20px; margin-bottom: 10px; }
.sol-body p { color: var(--text-dim); font-size: 14px; }

/* ===================== 联系我们 ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 { font-size: 24px; margin-bottom: 6px; }
.contact-en { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--text-mute); margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: var(--grad-soft);
  border: 1px solid var(--panel-border);
}
.contact-list strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.contact-list p { color: var(--text-dim); font-size: 14px; }

.contact-form { padding: 36px 32px; }
.field { position: relative; margin-bottom: 24px; }
.field input, .field textarea {
  width: 100%;
  padding: 16px 16px 14px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-family: inherit;
  resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,240,255,.12);
}
.field label {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 15px;
  color: var(--text-mute);
  pointer-events: none;
  transition: .25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 12px;
  font-size: 11px;
  padding: 0 6px;
  color: var(--cyan);
  background: var(--bg-1);
  border-radius: 4px;
}
.form-note {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--cyan);
  padding: 12px;
  border: 1px solid rgba(0,240,255,.3);
  border-radius: 10px;
  background: rgba(0,240,255,.06);
}

/* ===================== 页脚 ===================== */
.footer {
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(180deg, transparent, rgba(5,6,15,.8));
  padding: 70px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 360px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.footer-cols a { display: block; padding: 6px 0; color: var(--text-dim); font-size: 14px; transition: color .25s ease, padding-left .25s ease; }
.footer-cols a:hover { color: var(--cyan); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-mute); font-size: 13px; }

/* ===================== 滚动揭示动画 ===================== */
/* 仅当 JS 启用时才隐藏内容;无 JS / 脚本异常时内容默认可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 320px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: rgba(8, 11, 30, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--panel-border);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 60px 20px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; padding: 12px 20px; }
  .nav-toggle { display: flex; z-index: 950; }
  .section { padding: 80px 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .adv-list { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
