/* ============================================================
   鼎多多游戏 官网重构 — 全局样式
   设计语言参考 papegames.com：大图视觉驱动、留白充分、文案克制
   ============================================================ */

:root {
  --brand: #ff4d2e;
  --brand-dark: #e63d1f;
  --ink: #1a1a1f;
  --ink-2: #4b4b55;
  --ink-3: #8a8a96;
  --line: #e8e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --bg-dark: #141419;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 20, 40, .10);
  --ease: cubic-bezier(.22, .8, .28, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用区块 ---------- */
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }

.sec-head { margin-bottom: 56px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 14px;
}
.sec-tag::before { content: ""; width: 34px; height: 2px; background: var(--brand); }
.sec-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: .02em; }
.sec-desc { margin-top: 14px; color: var(--ink-2); max-width: 640px; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: pointer; border: 0;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 77, 46, .35); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.logo-mark { width: 34px; height: 34px; }
.logo small { font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .18em; display: block; line-height: 1.2; }

.nav-links { display: flex; gap: 38px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--brand); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav.on-dark:not(.scrolled) .logo,
.nav.on-dark:not(.scrolled) .nav-links a { color: #fff; }
.nav.on-dark:not(.scrolled) .logo small { color: rgba(255, 255, 255, .6); }

.burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; z-index: 110; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }
.nav.on-dark:not(.scrolled) .burger span { background: #fff; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg-dark); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-art { position: absolute; inset: 0; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 16, .82) 8%, rgba(10, 10, 16, .35) 55%, rgba(10, 10, 16, .15));
}
.art-1 { background:
  radial-gradient(1000px 600px at 78% 30%, rgba(255, 77, 46, .55), transparent 60%),
  radial-gradient(800px 500px at 20% 85%, rgba(84, 62, 255, .45), transparent 60%),
  linear-gradient(135deg, #191a24, #0c0c12); }
.art-2 { background:
  radial-gradient(900px 600px at 75% 70%, rgba(0, 190, 200, .5), transparent 60%),
  radial-gradient(700px 500px at 15% 20%, rgba(255, 170, 40, .4), transparent 60%),
  linear-gradient(135deg, #12161f, #0a0d13); }
.art-3 { background:
  radial-gradient(900px 620px at 80% 25%, rgba(190, 80, 255, .5), transparent 60%),
  radial-gradient(760px 520px at 18% 80%, rgba(255, 77, 46, .4), transparent 60%),
  linear-gradient(135deg, #171321, #0b0a10); }

.hero-glyph {
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%);
  font-size: clamp(200px, 34vw, 460px); font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  user-select: none; pointer-events: none; letter-spacing: -.04em;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, .75); font-size: 13px; letter-spacing: .32em;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 42px; height: 1px; background: var(--brand); }
.hero-title {
  color: #fff; font-size: clamp(40px, 6.5vw, 78px); font-weight: 800;
  line-height: 1.12; letter-spacing: .02em; max-width: 14em;
}
.hero-title em { font-style: normal; color: var(--brand); }
.hero-sub { color: rgba(255, 255, 255, .72); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; margin: 26px 0 40px; }

/* 轮播控件 */
.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 44px; }
.hero-ui .wrap { display: flex; align-items: center; justify-content: space-between; }
.hero-count { color: #fff; font-size: 15px; letter-spacing: .2em; display: flex; align-items: baseline; gap: 8px; }
.hero-count b { font-size: 30px; font-weight: 700; }
.hero-count .bar { width: 120px; height: 2px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; align-self: center; }
.hero-count .bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.hero-arrows { display: flex; gap: 12px; }
.hero-arrows button {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent;
  color: #fff; font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: .3s;
}
.hero-arrows button:hover { background: var(--brand); border-color: var(--brand); }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 120px; transform: translateX(-50%);
  color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .3em;
  writing-mode: vertical-rl; display: none;
}

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--bg-dark); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  cursor: pointer;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prod-art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.prod-card:hover .prod-art { transform: scale(1.06); }
.prod-art img { width: 100%; height: 100%; object-fit: cover; }
.prod-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 14, .88), rgba(8, 8, 14, .05) 55%); }
.pa-rpg { background: radial-gradient(420px 340px at 70% 25%, rgba(255, 77, 46, .7), transparent 65%), linear-gradient(160deg, #232636, #101018); }
.pa-act { background: radial-gradient(420px 340px at 30% 30%, rgba(0, 190, 200, .65), transparent 65%), linear-gradient(160deg, #14202a, #0c1116); }
.pa-rts { background: radial-gradient(420px 340px at 65% 70%, rgba(255, 170, 40, .6), transparent 65%), linear-gradient(160deg, #241d12, #14100a); }
.pa-cas { background: radial-gradient(420px 340px at 40% 65%, rgba(190, 80, 255, .6), transparent 65%), linear-gradient(160deg, #1d1626, #100c16); }
.pa-5 { background: radial-gradient(420px 340px at 60% 30%, rgba(84, 62, 255, .6), transparent 65%), linear-gradient(160deg, #181a2c, #0d0e18); }
.pa-6 { background: radial-gradient(420px 340px at 35% 35%, rgba(255, 120, 160, .55), transparent 65%), linear-gradient(160deg, #251820, #150e12); }

.prod-body { position: relative; z-index: 2; padding: 30px; }
.prod-type { font-size: 12px; letter-spacing: .26em; color: rgba(255, 255, 255, .65); text-transform: uppercase; margin-bottom: 8px; }
.prod-name { font-size: 24px; font-weight: 700; }
.prod-desc { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: .45s var(--ease); }
.prod-card:hover .prod-desc { max-height: 120px; opacity: 1; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-visual {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background:
    radial-gradient(500px 380px at 75% 30%, rgba(255, 77, 46, .35), transparent 65%),
    linear-gradient(140deg, #1c1d28, #101018);
  display: grid; place-items: center;
}
.about-visual .big {
  font-size: clamp(90px, 12vw, 150px); font-weight: 900; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); letter-spacing: -.02em;
}
.about-visual .chip {
  position: absolute; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  padding: 14px 20px; border-radius: 12px; font-size: 13px;
}
.chip-1 { top: 26px; left: 26px; }
.chip-2 { bottom: 26px; right: 26px; text-align: right; }
.chip b { display: block; font-size: 24px; color: var(--brand); }

.about-text p { color: var(--ink-2); margin-bottom: 18px; font-size: 16px; }
.about-stats { display: flex; gap: 48px; margin: 34px 0 40px; }
.about-stats .num { font-size: 40px; font-weight: 800; color: var(--ink); }
.about-stats .num i { font-style: normal; color: var(--brand); }
.about-stats .lbl { font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }

/* ---------- 加入我们 ---------- */
.join { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; }
.join::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 460px at 85% 20%, rgba(255, 77, 46, .28), transparent 60%),
    radial-gradient(600px 420px at 10% 90%, rgba(84, 62, 255, .22), transparent 60%);
}
.join .wrap { position: relative; z-index: 2; text-align: center; }
.join .sec-title { color: #fff; }
.join .sec-desc { margin: 16px auto 0; color: rgba(255, 255, 255, .68); }
.join-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; text-align: left; }
.join-card {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  padding: 34px 30px; background: rgba(255, 255, 255, .04);
  transition: .35s var(--ease);
}
.join-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-6px); border-color: rgba(255, 77, 46, .55); }
.join-card h3 { font-size: 20px; margin-bottom: 10px; }
.join-card p { font-size: 14px; color: rgba(255, 255, 255, .62); }
.join-card .ic { font-size: 28px; margin-bottom: 16px; }

/* ---------- 新闻 ---------- */
.news-list { display: grid; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; align-items: center;
  padding: 30px 10px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s var(--ease);
}
.news-item:hover { background: var(--bg-soft); padding-left: 22px; }
.news-date { font-size: 14px; color: var(--ink-3); letter-spacing: .06em; }
.news-date b { display: block; font-size: 26px; color: var(--ink); font-weight: 800; }
.news-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; transition: color .25s; }
.news-item:hover h3 { color: var(--brand); }
.news-item p { font-size: 14px; color: var(--ink-3); }
.news-item .go { color: var(--ink-3); font-size: 22px; transition: .3s var(--ease); }
.news-item:hover .go { color: var(--brand); transform: translateX(6px); }
.news-more { text-align: center; margin-top: 48px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, .62); padding: 70px 0 34px; font-size: 13px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .06em; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--brand); }
.footer-health { padding: 26px 0; color: rgba(255, 255, 255, .45); letter-spacing: .04em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; color: rgba(255, 255, 255, .4); }

/* ---------- 内页 ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 80px; background: var(--bg-soft); }
.page-hero .sec-title { font-size: clamp(30px, 4.4vw, 48px); }
.page-body { padding: 80px 0 110px; }
.page-body h2 { font-size: 22px; margin: 44px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.page-body ol, .page-body ul { padding-left: 22px; margin-bottom: 12px; }
.page-body ol li, .page-body ul li { list-style: decimal; margin-bottom: 8px; }
.page-body ul li { list-style: disc; }

/* 产品页大图卡片 */
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plist .prod-card { aspect-ratio: 16 / 11; }
.plist .prod-desc { max-height: none; opacity: 1; }

/* 家长监护 */
.guard-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 60px; }
.guard-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: .3s var(--ease); }
.guard-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-4px); }
.guard-card .ic { font-size: 30px; margin-bottom: 16px; }
.guard-card h3 { font-size: 18px; margin-bottom: 8px; }
.guard-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .prod-grid, .join-cards, .guard-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .plist { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px);
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: .35s var(--ease);
  }
  .nav-links a { font-size: 20px; color: var(--ink) !important; }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
  body.menu-open .burger span { background: var(--ink) !important; }
  .prod-grid, .join-cards, .guard-cards { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item .go { display: none; }
  .about-stats { gap: 28px; flex-wrap: wrap; }
  .hero-ui { bottom: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}
