/* ============================================
   武汉市酷码创客科技有限公司 · 官方站点样式
   纯手写，无外部依赖
   ============================================ */

:root {
  --bg: #06070c;
  --bg-soft: #0a0c14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #e9ecf5;
  --text-2: #b6bccd;
  --muted: #868ca0;
  --accent: #6c8cff;
  --accent-2: #a06bff;
  --accent-3: #35d2c4;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- 背景 ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 480px at 18% -8%, rgba(108, 140, 255, 0.26), transparent 68%),
    radial-gradient(700px 440px at 82% 0%, rgba(160, 107, 255, 0.20), transparent 70%),
    radial-gradient(620px 560px at 50% 110%, rgba(53, 210, 196, 0.08), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 7, 12, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-mark { width: 30px; height: 30px; border-radius: 9px; }

.brand-text {
  font-size: 16.5px;
  background: linear-gradient(100deg, #ffffff, #c9d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  font-size: 14.5px;
  color: var(--text-2);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.28s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 550;
  padding: 8px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease);
}

.nav-cta:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 11vh, 132px) 0 clamp(52px, 8vh, 84px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c3ccff;
  background: rgba(108, 140, 255, 0.09);
  border: 1px solid rgba(108, 140, 255, 0.26);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 auto 22px;
  max-width: 100%;
  font-size: clamp(22px, 6vw, 54px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
  background: linear-gradient(168deg, #ffffff 12%, #b9c4ee 58%, #8f9ad6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 中文词组不被拆行 */
.nw { white-space: nowrap; }

.hero .lead {
  margin: 0 auto;
  max-width: 580px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: var(--text-2);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

.actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 580;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s, border-color 0.22s;
  will-change: transform;
}

.btn-primary {
  color: #07080e;
  background: linear-gradient(102deg, #8fa6ff, #c4a6ff 58%, #9fe8e0);
  box-shadow: 0 10px 30px -12px rgba(120, 140, 255, 0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(140, 150, 255, 0.95);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface);
}

.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

/* ---------- 数据条 ---------- */

.stats {
  padding: 8px 0 clamp(48px, 7vh, 76px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  padding: 26px 20px;
  text-align: center;
  transition: background 0.3s;
}

.stat:hover { background: rgba(255, 255, 255, 0.055); }

.stat-num {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #dfe6ff, #9fb3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 区块 ---------- */

.section {
  padding: clamp(64px, 10vh, 112px) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 18%, rgba(255, 255, 255, 0.018) 82%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.section-head {
  max-width: 720px;
  margin-bottom: 54px;
}

.section-head h2,
.about-text h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 680;
  color: #f2f4fb;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---------- 业务卡 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 0 0, rgba(108, 140, 255, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 11px;
  color: #bcc9ff;
  background: rgba(108, 140, 255, 0.12);
  border: 1px solid rgba(108, 140, 255, 0.22);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.005em;
  color: #eef1fa;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-2);
}

/* ---------- 应用卡 ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.9);
}

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-title {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f0f2fa;
}

.app-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  flex: 1;
}

.app-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #b9c2dc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-pro {
  color: #ffdca8;
  background: rgba(255, 196, 106, 0.1);
  border-color: rgba(255, 196, 106, 0.24);
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 550;
  color: #a9bbff;
  transition: gap 0.22s var(--ease), color 0.2s;
}

.app-link:hover { gap: 10px; color: #cfdaff; }

.apps-foot {
  margin-top: 44px;
  text-align: center;
}

/* ---------- 关于 ---------- */

.about {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.88;
  color: var(--text-2);
}

.about-text .eyebrow { margin-bottom: 16px; }

.stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 28px 0 0;
}

.stack li {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 8px;
  color: #c5cde8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.about-panel {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  position: sticky;
  top: 96px;
}

.facts { margin: 0; }

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts > div:first-child { padding-top: 0; }

.facts dt {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  text-align: right;
  line-height: 1.6;
}

.facts dd a { color: #a9bbff; }
.facts dd a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  padding: 52px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.footer-links a:hover,
.footer-contact a:hover { color: #cfd8ff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6f7488;
}

.footer-bottom p { margin: 0; }

/* ---------- 隐私页 ---------- */

.doc {
  padding: clamp(56px, 9vh, 96px) 0 100px;
}

.doc-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}

.doc .updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  color: #eef1fa;
}

.doc h3 {
  font-size: 15.5px;
  margin: 26px 0 8px;
  color: #dde3f2;
  font-weight: 600;
}

.doc p, .doc li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}

.doc ul { padding-left: 22px; margin: 12px 0 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #a9bbff; }
.doc a:hover { text-decoration: underline; }

.doc strong { color: var(--text); font-weight: 600; }

/* ---------- 404 页：撑满视口，页脚贴底 ---------- */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-panel { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-inner { gap: 14px; padding: 13px 18px; }
  .nav-links { display: none; }
  .nav-cta { padding: 7px 13px; font-size: 12.5px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 48px; }
  .app-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .hero h1 { max-width: none; }
}

@media (max-width: 420px) {
  .stat { padding: 20px 12px; }
  .stat-num { font-size: 21px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
