/* ============================================================
   成都天玩科技有限责任公司 · 企业官网
   风格：简约大气 · 深色游戏科技风
   ============================================================ */

:root {
  /* 颜色 */
  --bg: #0a0a0f;
  --bg-soft: #0f0f17;
  --surface: #15151f;
  --surface-2: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ececf3;
  --text-muted: #9a9aab;
  --text-faint: #6a6a7a;

  --accent: #7c5cff;
  --accent-2: #2de2e6;
  --accent-grad: linear-gradient(120deg, #7c5cff 0%, #2de2e6 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.25), 0 18px 50px -18px rgba(124, 92, 255, 0.45);

  --maxw: 1180px;
  --header-h: 72px;

  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 80% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(600px 500px at 0% 10%, rgba(45, 226, 230, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

.section {
  padding: 110px 0;
  position: relative;
}

.section-sm {
  padding: 72px 0;
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-2);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 17px;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #0a0a0f;
  box-shadow: 0 12px 30px -12px rgba(124, 92, 255, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.9);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #0a0a0f;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.8);
}
.brand .brand-sub {
  color: var(--text-faint);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta { margin-left: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  margin: 18px 0 22px;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stats .num {
  font-size: 30px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .label {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 2px;
}

/* Hero 视觉卡片 */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(45, 226, 230, 0.30), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.hero-visual .ring.r1 { inset: 12%; opacity: 0.6; }
.hero-visual .ring.r2 { inset: 26%; opacity: 0.5; }
.hero-visual .ring.r3 { inset: 40%; opacity: 0.4; }
.hero-visual .core {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 40px;
  box-shadow: 0 0 60px rgba(124, 92, 255, 0.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-visual .tag {
  position: absolute;
  padding: 8px 14px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.hero-visual .tag.t1 { top: 16%; left: -6%; }
.hero-visual .tag.t2 { bottom: 18%; right: -4%; color: var(--accent-2); }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: var(--accent);
  margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s;
}
.card .more:hover { gap: 11px; }

/* 特性列表 */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}
.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- 数据条 ---------- */
.stats-band {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item .num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .label {
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-strong);
}
.tl-item {
  position: relative;
  padding-bottom: 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.tl-item .year {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 15px;
}
.tl-item h4 {
  font-size: 18px;
  margin: 4px 0 6px;
}
.tl-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 联系表单 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: 0; }
.info-item .ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(45, 226, 230, 0.1);
  border: 1px solid rgba(45, 226, 230, 0.25);
  color: var(--accent-2);
}
.info-item .ic svg { width: 22px; height: 22px; }
.info-item .k {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.info-item .v {
  font-size: 17px;
  font-weight: 600;
  margin-top: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err {
  color: #ff6b81;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid textarea {
  border-color: #ff6b81;
}
.field.invalid .err { display: block; }

.form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-faint);
}
.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(45, 226, 230, 0.1);
  border: 1px solid rgba(45, 226, 230, 0.3);
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- CTA 区块 ---------- */
.cta-box {
  text-align: center;
  padding: 70px 30px;
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(124, 92, 255, 0.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.cta-box h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px;
}
.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 17px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--accent-2); }
.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s;
}
.social a:hover {
  color: var(--text);
  border-color: var(--accent);
}
.social svg { width: 18px; height: 18px; }

/* ---------- 滚动揭示动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 380px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 13px 16px; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
