/* ============================================================
   元想创驿 OPC 社区官网 — 首页 TOONHUB 风格设计系统
   Dark Tech + 3D Figurine Carousel
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Anton-Regular.woff2') format('woff2');
  unicode-range: U+0000-007F, U+0080-00FF;
}

@font-face {
  font-family: 'BrandRound';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ZCOOLKuaiLe-subset.woff2') format('woff2');
}

:root {
  /* TOONHUB 四色主题 */
  --c1: #F4845F; --c1-panel: #F79B7F;
  --c2: #6BBF7A; --c2-panel: #85CC92;
  --c3: #E882B4; --c3-panel: #ED9DC4;
  --c4: #6EB5FF; --c4-panel: #8DC4FF;

  /* 内容区深色背景 */
  --bg: #0a1428;
  --bg-2: #0e1b35;
  --bg-3: #122142;
  --card: #14264a;
  --card-2: #182c55;
  --line: rgba(255,255,255,0.08);
  --cyan: #2ec4b6;
  --cyan-soft: rgba(46,196,182,0.14);
  --gold: #ffb84d;
  --gold-soft: rgba(255,184,77,0.14);
  --text: #eaf0fb;
  --text-2: #a9b7d0;
  --text-3: #6b7a99;

  /* 动画 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 650ms;

  /* 字体栈 */
  --font-display: 'Anton', Impact, 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ---------- 导航（与子页 .nav 保持一致） ---------- */
.home-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 4vw;
  backdrop-filter: blur(16px);
  background: rgba(10,20,40,0.72);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: #fff;
}
.nav-brand img { height: 38px; width: auto; }
.nav-brand span { opacity: 0.92; font-weight: 400; font-family: 'BrandRound', var(--font-body); font-size: 15px; letter-spacing: 2px; }
.nav-links {
  display: flex; gap: 22px; font-size: 13px; color: var(--text-2);
}
.nav-links a {
  color: var(--text-2); transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--cyan); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-ghost { color: var(--text-2); font-size: 13px; padding: 8px 6px; white-space: nowrap; transition: color 0.2s; }
.nav-ghost:hover { color: #fff; }
.nav-cta {
  color: #04201c; background: var(--cyan); font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(46,196,182,0.3);
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-menu-btn {
  display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer;
}

/* ---------- Hero 外层 ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--c1);
  transition: background-color var(--dur) var(--ease);
  font-family: var(--font-body);
}

/* Grain overlay */
.grain {
  position: absolute; inset: 0; z-index: 50;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* 巨大 ghost text */
.ghost-text {
  position: absolute;
  inset: 0;
  top: 6%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  pointer-events: none; user-select: none;
  font-family: var(--font-display);
  font-size: clamp(72px, 22vw, 300px);
  font-weight: 900;
  color: #fff;
  opacity: 0.12;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

/* 品牌标签 top-left（导航已覆盖） */
.brand-label {
  position: absolute; top: 24px; left: 4vw; z-index: 60;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: #fff; opacity: 0.9; letter-spacing: 0.18em;
}

/* ---------- Carousel ---------- */
.carousel {
  position: absolute; inset: 0; z-index: 3;
}

.carousel-item {
  position: absolute;
  aspect-ratio: 0.6 / 1;
  left: 50%;
  transform: translateX(-50%);
  will-change: transform, filter, opacity, left, bottom, height;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease),
    opacity var(--dur) var(--ease),
    left var(--dur) var(--ease),
    bottom var(--dur) var(--ease),
    height var(--dur) var(--ease);
}

.carousel-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* 角色位置：桌面端 */
.carousel-item.role-center {
  z-index: 20;
  left: 50%;
  height: 92%;
  bottom: 0;
  transform: translateX(-50%) scale(1.68);
  filter: blur(0);
  opacity: 1;
}
.carousel-item.role-left,
.carousel-item.role-right {
  z-index: 10;
  height: 28%;
  bottom: 12%;
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
}
.carousel-item.role-left { left: 30%; }
.carousel-item.role-right { left: 70%; }
.carousel-item.role-back {
  z-index: 5;
  left: 50%;
  height: 22%;
  bottom: 12%;
  transform: translateX(-50%) scale(1);
  filter: blur(4px);
  opacity: 1;
}

/* ---------- 前景内容层 ---------- */
.hero-foreground {
  position: absolute; inset: 0; z-index: 60;
  pointer-events: none;
}
.hero-foreground > * { pointer-events: auto; }

/* 左下角文案 + 按钮 */
.hero-copy {
  position: absolute;
  bottom: 6vh; left: 4vw;
  max-width: min(520px, 34vw);
  color: #fff;
}
.hero-copy .eyebrow {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
  display: block; margin-bottom: 10px;
}
.hero-copy .title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease);
}
.hero-copy .desc {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 24px;
  transition: opacity var(--dur) var(--ease);
}
.hero-nav-btns {
  display: flex; gap: 14px;
}
.hero-nav-btns button {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.hero-nav-btns button:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.12);
}
.hero-nav-btns svg {
  width: 24px; height: 24px;
  stroke-width: 2.25;
}

/* 右下角链接 */
.hero-cta {
  position: absolute;
  bottom: 6vh; right: 4vw;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 56px);
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.95;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 1; }
.hero-cta svg {
  width: 28px; height: 28px;
  stroke-width: 2.25;
}

/* 轮播指示点 */
.carousel-dots {
  position: absolute;
  bottom: 6vh; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 60;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active {
  background: #fff; transform: scale(1.4);
}

/* 切换时文案淡入 */
.hero-copy .title.fade,
.hero-copy .desc.fade { opacity: 0; }

/* ---------- 响应式 Hero ---------- */
@media (max-width: 980px) {
  .home-nav { flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-menu-btn { display: block; }
  .ghost-text { font-size: clamp(56px, 18vw, 180px); top: 10%; opacity: 0.1; }
  .carousel-item.role-center {
    height: 60%; bottom: 22%;
    transform: translateX(-50%) scale(1.25);
  }
  .carousel-item.role-left,
  .carousel-item.role-right {
    height: 16%; bottom: 32%;
  }
  .carousel-item.role-left { left: 20%; }
  .carousel-item.role-right { left: 80%; }
  .carousel-item.role-back {
    height: 13%; bottom: 32%;
  }
  .hero-copy {
    left: 5vw; right: 5vw; bottom: 4vh;
    max-width: none;
  }
  .hero-copy .desc { display: none; }
  .hero-copy .title { font-size: clamp(22px, 6vw, 30px); margin-bottom: 10px; white-space: normal; }
  .hero-nav-btns button { width: 48px; height: 48px; }
  .hero-cta { display: none; }
  .carousel-dots { bottom: 3vh; }
}

/* ---------- 移动端菜单（首页） ---------- */
@media (max-width: 980px) {
  .home-nav.menu-open .nav-links {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 8px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .home-nav.menu-open .nav-actions {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 16px;
  }
  .home-nav.menu-open .nav-actions .nav-ghost,
  .home-nav.menu-open .nav-actions .nav-cta {
    text-align: center;
  }
}

/* ---------- 通用内容容器 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.sec-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: 1px; }
.sec-desc { font-size: 16px; color: var(--text-2); }

.content-section { padding: 100px 0; position: relative; }
.content-section.alt { background: var(--bg-2); }

/* ---------- Stats 条 ---------- */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 40px 0;
}
.stat-cell { text-align: center; }
.stat-cell b {
  display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--cyan); line-height: 1.1;
}
.stat-cell span { font-size: 13px; color: var(--text-2); }

/* ---------- 4 卡片 ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(46,196,182,0.4); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.card:nth-child(1) .ico { background: var(--cyan-soft); }
.card:nth-child(2) .ico { background: var(--gold-soft); }
.card:nth-child(3) .ico { background: rgba(120,140,255,0.16); }
.card:nth-child(4) .ico { background: rgba(255,120,150,0.14); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---------- 双列图文 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .txt h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; line-height: 1.4; }
.split .txt h3 .hl { color: var(--cyan); }
.split .txt p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; line-height: 1.8; }
.point {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text);
}
.point .n {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  background: var(--cyan-soft); color: var(--cyan); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.split .img img, .poster-img img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--line);
}

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 12px; text-align: center; position: relative;
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--cyan), #1a8f84);
  color: #04201c; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--text-2); }
.step .arrow { position: absolute; top: 50%; right: -11px; transform: translateY(-50%); color: var(--cyan); font-size: 14px; }
.step:last-child .arrow { display: none; }

/* ---------- 数据卡 ---------- */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.data-card {
  background: linear-gradient(160deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px;
}
.data-card .big { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; color: var(--gold); margin-bottom: 10px; line-height: 1.3; }
.data-card .big small { font-size: 15px; color: var(--text-2); font-weight: 500; }
.data-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---------- 受众 ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.aud-card:hover { transform: translateY(-5px); border-color: rgba(255,184,77,0.4); }
.aud-card .emoji { font-size: 32px; margin-bottom: 14px; }
.aud-card h3 { font-size: 16px; margin-bottom: 8px; }
.aud-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ---------- 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .g {
  border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid var(--line); aspect-ratio: 3/4; background: var(--bg-3);
}
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery .g:hover img { transform: scale(1.06); }
.gallery .g .label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 12px; color: #fff;
}

/* ---------- 现场直击 ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.live-grid .g { aspect-ratio: 4/3; }

/* ---------- 里程碑 ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--gold));
}
.tl-item { position: relative; padding: 0 0 30px 8px; }
.tl-item .dot {
  position: absolute; left: -28px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan);
}
.tl-item .when { font-size: 12px; color: var(--gold); letter-spacing: 1px; font-weight: 600; }
.tl-item h4 { font-size: 18px; margin: 4px 0 4px; }
.tl-item p { font-size: 14px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta-band {
  text-align: center; padding: 100px 24px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin-bottom: 28px; }
.contact-chips {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.contact-chips .chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 22px; font-size: 14px; color: var(--text);
}
.contact-chips .chip b { color: var(--cyan); }

/* ---------- 推广横幅 ---------- */
.promo-section { background: var(--bg-2); }
.promo-card { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.promo-card img { width: 100%; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 32px 24px; text-align: center;
  font-size: 13px; color: var(--text-3);
  background: var(--bg);
}
.footer a { color: var(--cyan); }

/* ---------- 响应式内容区 ---------- */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .arrow { display: none; }
  .data-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery, .live-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-4, .aud-grid, .gallery, .live-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .content-section { padding: 72px 0; }
  .point { font-size: 13px; }
}
