@charset "UTF-8";

/* =========================================================
   Caractiv — 官网样式
   浅色 = 方向 A「浅色流光」，深色 = 方向 B「深色前沿」。
   主题由 <html data-theme> 决定（首屏前由内联脚本按「用户选择 > 系统设置」写入）；
   游戏区与宣言带固定使用深色变量（元素自身带 data-theme="dark"）。
   断点：手机 <700 · iPad 竖屏 700–999 · iPad 横屏 / 桌面 ≥1000 · 宽屏 ≥1180
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --brand: #93481f;
  --brand-hi: #b56331;
  --brand-soft: rgba(147, 72, 31, 0.08);

  --bg: #ffffff;
  --bg-alt: #f6f4f2;
  --text: #1c1a18;
  --text-2: #6e6864;
  --text-3: #9b948f;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);

  --nav-bg: rgba(255, 255, 255, 0.72);
  --card: #ffffff;
  --card-line: rgba(0, 0, 0, 0.07);
  --badge-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(0, 0, 0, 0.06);

  /* AI 流光：焦糖橙 → 珊瑚粉 → 紫 → 蓝 */
  --ai-1: #c4612d;
  --ai-2: #e85a6e;
  --ai-3: #9a5cf0;
  --ai-4: #4f7cff;
  --ai-grad: linear-gradient(100deg, var(--ai-1), var(--ai-2) 38%, var(--ai-3) 68%, var(--ai-4));

  --btn-bg: var(--brand);
  --btn-bg-hi: var(--brand-hi);
  --btn-text: #fff;


  --radius: 22px;
  --radius-lg: 28px;
  --wrap: 1040px;
  --wrap-wide: 1200px;
  --gutter: 22px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, "PingFang SC", "PingFang HK",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", sans-serif;

  color-scheme: light;
}

html[lang^="zh"] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "PingFang HK", "PingFang TC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", sans-serif;
}

[data-theme="dark"] {
  --brand: #e39a63;
  --brand-hi: #f2b585;
  --brand-soft: rgba(227, 154, 99, 0.12);

  --bg: #0c0a09;
  --bg-alt: #131110;
  --text: #f5f2ef;
  --text-2: #a9a29d;
  --text-3: #7d7671;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --nav-bg: rgba(14, 12, 11, 0.7);
  --card: #161312;
  --card-line: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(20, 17, 15, 0.62);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);

  --ai-1: #f2a25c;
  --ai-2: #ff6f91;
  --ai-3: #b47cff;
  --ai-4: #6e9bff;

  --btn-bg: #f5f2ef;
  --btn-bg-hi: #ffffff;
  --btn-text: #14110f;


  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-defs .s1 { stop-color: var(--ai-1); }
.svg-defs .s2 { stop-color: var(--ai-2); }
.svg-defs .s3 { stop-color: var(--ai-3); }
.svg-defs .s4 { stop-color: var(--ai-4); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 15px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }

/* ---------- AI 元素 ---------- */
.spark { width: 1em; height: 1em; flex: 0 0 auto; fill: url(#g-ai); }

.ai-text {
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.02em;
}

/* ---------- Reveal on scroll ----------
   默认可见；只有 JS 可用（html.js）时才先隐藏再渐显。 */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav-inner {
  max-width: var(--wrap-wide); margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}

.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { width: auto; height: 25px; transition: opacity 0.2s var(--ease); }
.nav-logo:hover img { opacity: 0.7; }

:root[data-theme="dark"] .nav-logo img,
:root[data-theme="dark"] .footer-logo { filter: brightness(0) invert(1) opacity(0.92); }

.nav-links {
  display: none; flex: 1 1 auto; justify-content: center; gap: 28px;
  font-size: 13px; letter-spacing: 0;
}
.nav-links a { position: relative; opacity: 0.82; white-space: nowrap; transition: opacity 0.2s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--ai-grad); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* 语言切换 */
.lang { position: relative; display: none; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 980px; font-size: 13px;
  transition: background 0.2s var(--ease);
}
.lang-toggle:hover { background: var(--brand-soft); }
.globe, .chev { flex: 0 0 auto; fill: none; stroke: currentColor; }
.globe { width: 15px; height: 15px; stroke-width: 1.4; opacity: 0.9; }
.chev { width: 10px; height: 10px; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; transition: transform 0.3s var(--ease); }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-current { white-space: nowrap; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97); transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-item { display: block; padding: 8px 12px; border-radius: 9px; font-size: 14px; transition: background 0.15s var(--ease); }
.lang-item:hover { background: var(--bg-alt); }
.lang-item.is-current { color: var(--brand); font-weight: 500; }

/* 深浅色切换：浅色时显示月亮（点了变深色），深色时显示太阳 */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), transform 0.3s var(--ease);
}
.theme-toggle:hover { background: var(--brand-soft); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }

/* 汉堡菜单 */
.nav-burger { width: 36px; height: 36px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
.nav-burger span { display: block; width: 17px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  padding: 12px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-in { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 17px 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.mobile-lang { margin-top: 30px; }
.mobile-lang-label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.mobile-lang-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-lang-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 980px; font-size: 15px; color: var(--text-2); }
.mobile-lang-links a.is-current { border-color: transparent; background: var(--brand); color: #fff; }
:root[data-theme="dark"] .mobile-lang-links a.is-current { color: #14110f; }

/* =========================================================
   Typography primitives
   ========================================================= */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 18px;
}
.eyebrow .spark, .kicker .spark { width: 13px; height: 13px; }
html[lang^="zh"] .eyebrow, html[lang^="zh"] .kicker { letter-spacing: 0.12em; }
[data-theme="dark"] .eyebrow span {
  background: var(--ai-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-title {
  font-size: clamp(30px, 6vw, 56px); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.03em; text-wrap: balance;
}
html[lang^="zh"] .section-title { letter-spacing: -0.01em; }
.section-lead {
  margin-top: 18px; font-size: clamp(16px, 3.4vw, 20px); line-height: 1.6;
  color: var(--text-2); max-width: 44em; text-wrap: pretty;
}

.section { padding: clamp(76px, 13vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }
.section-head-left { margin-left: 0; text-align: left; }
.section-head-left .section-lead { margin-left: 0; }

.arrow { display: inline-block; margin-left: 5px; transition: transform 0.3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 980px;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 16px; font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { background: var(--btn-bg-hi); }
.btn:active { transform: scale(0.975); }
[data-theme="dark"] .btn:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 8px 30px rgba(180, 124, 255, 0.35); }
.btn-text { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; color: var(--brand); }
.btn-text:hover { color: var(--brand-hi); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: max(640px, 94svh);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 clamp(170px, 26vw, 300px);
  overflow: hidden; isolation: isolate;
}

/* 首屏背景：流光与天际线都是按设计稿切出的透明图层（Codex imagegen），
   浅色 / 深色各一套，只会下载当前主题用到的那一套；手机用 960 宽的小图。 */
.hero {
  --hero-aurora: url("/assets/img/hero/light-aurora.webp");
  --hero-skyline: url("/assets/img/hero/light-skyline.webp");
  --aurora-ratio: 1600 / 800;
  --skyline-ratio: 1800 / 720;
  --aurora-top: -2%;
  --aurora-opacity: 0.62;
  --skyline-opacity: 0.62;
}
:root[data-theme="dark"] .hero {
  --hero-aurora: url("/assets/img/hero/dark-aurora.webp");
  --hero-skyline: url("/assets/img/hero/dark-skyline.webp");
  --aurora-ratio: 1800 / 600;
  --skyline-ratio: 1800 / 675;
  --aurora-opacity: 0.95;
  --skyline-opacity: 1;
}
@media (max-width: 699px) {
  .hero {
    --hero-aurora: url("/assets/img/hero/light-aurora-960.webp");
    --hero-skyline: url("/assets/img/hero/light-skyline-960.webp");
  }
  :root[data-theme="dark"] .hero {
    --hero-aurora: url("/assets/img/hero/dark-aurora-960.webp");
    --hero-skyline: url("/assets/img/hero/dark-skyline-960.webp");
  }
}

.hero {
  --aurora-w: max(1100px, 118vw);
  --skyline-h: 250px;
}
.hero-aurora {
  position: absolute; left: 50%; top: var(--aurora-top); z-index: -2;
  width: var(--aurora-w); aspect-ratio: var(--aurora-ratio);
  background: var(--hero-aurora) center / contain no-repeat;
  opacity: var(--aurora-opacity);
  transform: translateX(-50%);
  animation: aurora-float 20s ease-in-out infinite alternate;
  pointer-events: none;
}
/* 深色：按设计稿 B1，流光是两道从屏幕左右边缘升起、托在城市上空的弧线，中间留暗。
   图层宽度等于屏幕宽，弧线两端才落在屏幕边缘；底边相对天际线定位，不随 hero 高度漂移。
   2px 模糊抹掉抠图留下的毛刺色边。 */
:root[data-theme="dark"] .hero-aurora {
  --aurora-w: max(100vw, 900px);
  top: auto;
  bottom: calc(var(--skyline-h) * 0.27);
  filter: blur(2px);
}
/* 手机：屏幕放不下完整的两道弧，取中间一段贴在城市上空，像城市上方的一层光 */
@media (max-width: 699px) {
  :root[data-theme="dark"] .hero-aurora {
    --aurora-w: 190vw;
    bottom: calc(var(--skyline-h) * 0.5);
  }
}
@keyframes aurora-float {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-52%) translateY(2%) scale(1.04); }
}

.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 250px;
  background: var(--hero-skyline) bottom center / auto 100% no-repeat;
  opacity: var(--skyline-opacity);
  pointer-events: none;
}

/* 闪烁的小四角星 */
.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tw { position: absolute; width: 14px; height: 14px; opacity: 0; animation: twinkle 5.5s ease-in-out infinite; }
.tw-1 { left: 16%; top: 24%; width: 18px; height: 18px; animation-delay: 0s; }
.tw-2 { left: 82%; top: 20%; animation-delay: 1.4s; }
.tw-3 { left: 9%; top: 52%; width: 10px; height: 10px; animation-delay: 2.6s; }
.tw-4 { left: 90%; top: 46%; width: 11px; height: 11px; animation-delay: 3.4s; }
.tw-5 { left: 30%; top: 12%; width: 9px; height: 9px; animation-delay: 4.2s; }
.tw-6 { left: 70%; top: 58%; width: 12px; height: 12px; animation-delay: 0.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  45%, 55% { opacity: 0.9; transform: scale(1) rotate(45deg); }
}

.hero-inner { position: relative; text-align: center; }
.hero-title {
  font-size: clamp(40px, 9.4vw, 96px); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.035em; text-wrap: balance;
}
html[lang^="zh"] .hero-title { letter-spacing: -0.01em; }
html[lang^="zh"] .hero-lead,
html[lang^="zh"] .section-lead,
html[lang^="zh"] .statement-text,
html[lang^="zh"] .tool-tagline,
html[lang^="zh"] .game-tagline,
html[lang^="zh"] .services-proof { word-break: keep-all; overflow-wrap: anywhere; }
/* 标题不允许任意断行，否则句号会被挤到下一行；需要换行的地方在文案里用 <br /> */
html[lang^="zh"] .section-title { word-break: keep-all; line-break: strict; }
.hero-lead {
  margin: clamp(20px, 3.2vw, 30px) auto 0; max-width: 31em;
  font-size: clamp(16px, 3.6vw, 21px); line-height: 1.6; color: var(--text-2); text-wrap: balance;
}
.hero-cta { margin-top: clamp(30px, 5vw, 44px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; }

/* =========================================================
   Statement（宣言带，跟随主题；背后一团缓慢漂移的流光）
   ========================================================= */
.statement {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--text);
  padding: clamp(96px, 15vw, 170px) 0; text-align: center;
}
.statement .wrap { position: relative; }
.statement-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.statement-aurora span {
  position: absolute; top: 50%; border-radius: 50%;
  filter: blur(40px); will-change: transform;
}
.statement-aurora span:nth-child(1) {
  left: 50%; width: min(760px, 120vw); height: 300px; margin: -150px 0 0 calc(min(760px, 120vw) / -2);
  background: radial-gradient(closest-side, rgba(232, 140, 90, 0.34), transparent);
  animation: st-drift-a 18s ease-in-out infinite alternate;
}
.statement-aurora span:nth-child(2) {
  left: 50%; width: min(620px, 100vw); height: 260px; margin: -100px 0 0 calc(min(620px, 100vw) * -0.1);
  background: radial-gradient(closest-side, rgba(160, 110, 245, 0.30), transparent);
  animation: st-drift-b 22s ease-in-out infinite alternate;
}
.statement-aurora span:nth-child(3) {
  left: 50%; width: min(560px, 90vw); height: 240px; margin: -150px 0 0 calc(min(560px, 90vw) * -0.95);
  background: radial-gradient(closest-side, rgba(240, 110, 150, 0.26), transparent);
  animation: st-drift-c 20s ease-in-out infinite alternate;
}
[data-theme="dark"] .statement-aurora span:nth-child(1) { background: radial-gradient(closest-side, rgba(242, 140, 70, 0.30), transparent); }
[data-theme="dark"] .statement-aurora span:nth-child(2) { background: radial-gradient(closest-side, rgba(150, 100, 255, 0.32), transparent); }
[data-theme="dark"] .statement-aurora span:nth-child(3) { background: radial-gradient(closest-side, rgba(255, 90, 140, 0.24), transparent); }
@keyframes st-drift-a { to { transform: translate(-6%, 8%) scale(1.08); } }
@keyframes st-drift-b { to { transform: translate(10%, -10%) scale(0.92); } }
@keyframes st-drift-c { to { transform: translate(8%, 12%) scale(1.1); } }
/* 宣言带与下方区块之间的满屏流光分界线（光晕只向上，浅色模式下更淡） */
.statement-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ai-grad); opacity: 0.45;
  box-shadow: 0 0 22px 2px rgba(154, 92, 240, 0.12);
}
[data-theme="dark"] .statement-glow { opacity: 0.6; box-shadow: 0 0 40px 6px rgba(180, 124, 255, 0.25); }
.statement .kicker { color: var(--brand); }
.statement-text {
  font-size: clamp(32px, 6.4vw, 68px); line-height: 1.22; font-weight: 700;
  letter-spacing: -0.03em; max-width: 920px; margin: 0 auto;
}
.statement-line { display: block; }
.statement-line + .statement-line { margin-top: 0.12em; }
html[lang^="zh"] .statement-text { letter-spacing: 0; }

/* =========================================================
   企业服务
   ========================================================= */
.services-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }

.rings { position: relative; width: min(100%, 340px); margin: 0 auto; }
.rings::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 0; margin-top: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 120, 80, 0.28), rgba(154, 92, 240, 0.12) 60%, transparent);
  filter: blur(18px);
}
.rings svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.rings-caption {
  position: relative; margin: 22px auto 0; max-width: 24em;
  font-size: 15px; line-height: 1.6; color: var(--text-2); text-align: center; text-wrap: balance;
}
html[lang^="zh"] .rings-caption { word-break: keep-all; overflow-wrap: anywhere; }
[data-theme="dark"] .rings svg { filter: drop-shadow(0 0 6px rgba(180, 124, 255, 0.45)); }
.ring { fill: none; stroke-width: 1.8; }
.ring-1 { stroke: url(#g-ring-1); stroke-width: 2.2; }
.ring-2 { stroke: url(#g-ring-2); }
.ring-3 { stroke: url(#g-ring-3); }
.ring-glow { fill: var(--brand-soft); }
.ring-spark { fill: url(#g-ai); }
.ring-label { font-family: var(--font); font-size: 15px; text-anchor: middle; fill: var(--text-2); letter-spacing: 0.02em; }
.ring-label-1 { font-size: 19px; font-weight: 700; fill: var(--text); }
.orbit { transform-box: view-box; transform-origin: 200px 200px; animation: spin 22s linear infinite; }
.orbit-1 { animation-duration: 12s; }
.orbit-2 { animation-duration: 18s; animation-direction: reverse; }
.orbit-1 circle { fill: var(--ai-1); }
.orbit-2 circle { fill: var(--ai-3); }
.orbit-3 circle { fill: var(--ai-4); }
@keyframes spin { to { transform: rotate(360deg); } }

.service-list { display: grid; gap: 14px; }
.service {
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(22px, 3.4vw, 30px);
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(120deg, rgba(196, 97, 45, 0.45), rgba(232, 90, 110, 0.35), rgba(154, 92, 240, 0.35), rgba(79, 124, 255, 0.45)) border-box;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
[data-theme="dark"] .service {
  background:
    linear-gradient(#171312, #171312) padding-box,
    linear-gradient(120deg, rgba(242, 162, 92, 0.5), rgba(255, 111, 145, 0.35), rgba(180, 124, 255, 0.4), rgba(110, 155, 255, 0.5)) border-box;
}
.service-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; background: var(--brand-soft);
}
.service-ico .spark { width: 20px; height: 20px; }
.service-title { font-size: clamp(19px, 3.6vw, 22px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.service-body { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }

.services-foot {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.services-proof { font-size: clamp(15px, 3.2vw, 18px); color: var(--text-2); max-width: 36em; text-wrap: balance; }

/* =========================================================
   AI+工具
   ========================================================= */
.tools { overflow: hidden; }
.tools::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 100% 4%, rgba(154, 92, 240, 0.10), transparent 70%),
    radial-gradient(38% 42% at 0% 100%, rgba(232, 130, 80, 0.10), transparent 70%),
    radial-gradient(30% 30% at 12% 18%, rgba(240, 110, 150, 0.06), transparent 70%);
}
[data-theme="dark"] .tools::before {
  background:
    radial-gradient(42% 46% at 100% 4%, rgba(150, 100, 255, 0.12), transparent 70%),
    radial-gradient(38% 42% at 0% 100%, rgba(242, 140, 70, 0.10), transparent 70%);
}
.tools .wrap { position: relative; }
.tool-grid { display: grid; gap: 16px; }

.tool {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tool::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  opacity: 0.8; transition: opacity 0.5s var(--ease);
}
[data-theme="dark"] .tool { background: rgba(255, 255, 255, 0.03); }

.tool-main { display: flex; flex-direction: column; flex: 1 1 auto; }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.app-icon {
  width: 64px; height: 64px; border-radius: 22.5%; flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.12);
}
.tool--featured .app-icon { width: 76px; height: 76px; }

.badges, .game-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 980px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--badge-bg); border: 1px solid var(--line); color: var(--text-2);
}
.badge .spark { width: 11px; height: 11px; }
.badge-ai {
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--ai-grad) border-box;
  color: var(--text);
}
[data-theme="dark"] .badge-ai { background: linear-gradient(#1a1614, #1a1614) padding-box, var(--ai-grad) border-box; }

.tool-genre { font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; }
.tool-name { margin-top: 4px; font-size: clamp(22px, 4vw, 28px); font-weight: 700; letter-spacing: -0.024em; line-height: 1.2; }
.tool-tagline { margin-top: 10px; font-size: clamp(16px, 3.4vw, 18px); font-weight: 500; line-height: 1.45; text-wrap: balance; }
.tool-body { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.tool--featured .tool-name { font-size: clamp(26px, 4.6vw, 36px); }
.tool--featured .tool-tagline { font-size: clamp(18px, 3.8vw, 22px); }

.pills { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 16px; border-radius: 980px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.pill-primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-text); }
.store-ico { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }

.tool-shot { margin: 28px auto calc(-1 * clamp(24px, 4vw, 34px)); width: min(78%, 300px); }
.tool-shot img {
  width: 100%; aspect-ratio: 640 / 900; object-fit: cover; object-position: top;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -2px 30px rgba(20, 40, 120, 0.18);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}


/* =========================================================
   AI+游戏（两种主题下都是深色、沉浸）
   ========================================================= */
.games { background: #070605; color: var(--text); overflow: hidden; }
.games-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 320px; pointer-events: none;
  background:
    radial-gradient(40% 70% at 22% 0%, rgba(242, 140, 70, 0.32), transparent 70%),
    radial-gradient(36% 70% at 52% 0%, rgba(255, 100, 140, 0.24), transparent 70%),
    radial-gradient(40% 70% at 80% 0%, rgba(120, 120, 255, 0.28), transparent 70%);
}
.games .wrap { position: relative; }

/* 手机：横向滑动卡片 */
.game-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 380px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px;
  scrollbar-width: none;
}
.game-grid::-webkit-scrollbar { display: none; }

.game {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; height: 500px; border-radius: var(--radius-lg);
  background: #15110f; color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.game-art { position: absolute; inset: 0; z-index: -2; }
.game-art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 6, 5, 0.92) 0%, rgba(8, 6, 5, 0.62) 34%, rgba(8, 6, 5, 0.1) 62%, transparent 78%);
}

#p-mahjong-2p .game-art > img:first-child { object-position: 78% 40%; }
#p-xiangqi-atlas .game-art > img:first-child { object-position: 70% 50%; }
#p-chessatlas .game-art > img:first-child { object-position: 72% 22%; }

.game-mascot {
  position: absolute; right: 2%; bottom: 0; height: 84%; width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
  transition: transform 0.9s var(--ease);
}

/* ---------- 游戏大卡的浮动装饰 ----------
   素材和做法都取自各游戏自己的官网：积宝扑克的浮动扑克牌与扶桑花、二人麻雀的立体麻将牌与飘落花瓣。

   兼容性（渐进增强）：
   - .deco 铺满整张卡，宽度和左右位置用 %，等同于「卡片宽度的百分比」，所有浏览器都支持；
   - 顶部位置先写 % 兜底，再用 cqw（同样是卡片宽度的百分比）覆盖，不支持 container query 的旧浏览器
     用兜底值，排版不会乱；
   - 浮动动画只改 translate、悬停只改 transform，两者叠加互不覆盖；不支持独立 translate 的旧浏览器只是不浮动。 */
.game { container-type: inline-size; }
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.deco > * { position: absolute; display: block; }
.deco img { max-width: none; }

.fl, .tile3d {
  transform: rotate(var(--r, 0deg));
  transition: transform 0.9s var(--ease);
  animation: fl-bob var(--t, 6s) ease-in-out var(--dl, 0s) infinite alternate;
}
@keyframes fl-bob { from { translate: 0 0; } to { translate: 0 -9px; } }

/* 积宝扑克 */
.jp-logo {
  left: 5%; top: 4%; top: 4.5cqw; width: 33%; height: auto;
  filter: drop-shadow(0 8px 14px rgba(40, 20, 0, 0.35));
  transition: transform 0.9s var(--ease);
}
.fl { height: auto; filter: drop-shadow(0 10px 12px rgba(0, 30, 60, 0.3)); }
.fl-as  { width: 11%; left: 43%; top: 6%;  top: 5cqw;   --r: -14deg; --t: 6.5s; }
.fl-2s  { width: 8%;  left: 69%; top: 3%;  top: 2.5cqw; --r: 16deg;  --t: 7.5s; --dl: -2s; }
.fl-ah  { width: 10%; left: 33%; top: 36%; top: 32cqw;  --r: 12deg;  --t: 7s;   --dl: -4s; }
.fl-hib { width: 17%; right: -3%; bottom: -2%; --r: -10deg; --t: 9s; --dl: -1s; }

/* 二人麻雀 */
.mj-branch {
  left: -9%; top: -11%; top: -10cqw; width: 40%; height: auto;
  transform: rotate(92deg);
  filter: drop-shadow(0 8px 10px rgba(30, 60, 40, 0.25));
  animation: mj-sway 8s ease-in-out infinite alternate;
}
@keyframes mj-sway { from { rotate: -2deg; } to { rotate: 2.5deg; } }

/* 立体麻将牌：牌面取自游戏；牌身厚度用两层伪元素按自身比例偏移（米色牌边 + 翡翠绿牌背） */
.tile3d {
  aspect-ratio: 256 / 352;
  filter: drop-shadow(0 8px 9px rgba(18, 40, 32, 0.45));
}
.tile3d::before, .tile3d::after, .tile3d i {
  content: ""; position: absolute; inset: 0; border-radius: 15% / 11%;
}
.tile3d::after  { background: linear-gradient(135deg, #2f8e68, #1c5d44); transform: translate(8%, 7.6%); z-index: -2; }
.tile3d::before { background: #ece2cb; transform: translate(3.5%, 3.3%); z-index: -1; }
.tile3d i {
  display: block;
  background: #fbf6ea center / cover no-repeat;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -3px 6px rgba(120, 100, 60, 0.16);
}
.tile3d--fa   { width: 12.5%; right: 9%;  top: 10%; top: 9cqw;  --r: 11deg;  --t: 6.5s; }
.tile3d--wan  { width: 10%;   right: 29%; top: 6%;  top: 5cqw;  --r: -13deg; --t: 7.5s; --dl: -2.2s; }
.tile3d--tiao { width: 8.5%;  right: 21%; top: 34%; top: 30cqw; --r: -6deg;  --t: 7s;   --dl: -4.1s; }
.tile3d--fa i   { background-image: url("/assets/img/products/deco/tile-zi_fa.webp"); }
.tile3d--wan i  { background-image: url("/assets/img/products/deco/tile-wan_1.webp"); }
.tile3d--tiao i { background-image: url("/assets/img/products/deco/tile-tiao_2.webp"); }

/* 飘落的花瓣 */
.petals { inset: 0; }
.petal {
  position: absolute; left: var(--x); top: -30px; width: var(--s); height: auto;
  opacity: 0;
  animation: petal-fall var(--dur, 12s) linear var(--delay, 0s) infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.95; }
  50%  { transform: translate3d(var(--sway, 40px), 280px, 0) rotate(200deg); }
  88%  { opacity: 0.85; }
  100% { transform: translate3d(calc(var(--sway, 40px) * -0.4), 560px, 0) rotate(420deg); opacity: 0; }
}

/* 手机横滑卡比较窄、吉祥物占比更大：A♥ 挪到左侧空处，避免压到人物 */
@media (max-width: 699px) {
  .fl-ah { left: 7%; top: 30%; top: 46cqw; }
  .fl-2s { left: 56%; }
}

/* 积宝捕鱼：海底渐变 + 原版角色 */
.game-art--sea {
  background:
    radial-gradient(70% 50% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #5fd0f6 0%, #2ea4e6 38%, #146fc2 72%, #0c4f96 100%);
  overflow: hidden;
}
.sea-rays {
  position: absolute; inset: -20% -10% 30%;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.16) 0 30px, transparent 30px 90px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.sea-bubbles {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 58%, rgba(255, 255, 255, 0.4) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 46%, rgba(255, 255, 255, 0.4) 0 3.5px, transparent 4.5px);
  animation: bubbles 9s ease-in-out infinite alternate;
}
@keyframes bubbles { to { transform: translateY(-14px); } }
.char { position: absolute; width: auto; filter: drop-shadow(0 12px 20px rgba(0, 30, 80, 0.35)); }
.char-a { left: 4%; top: 16%; height: 42%; animation: bob 6s ease-in-out infinite; }
.char-b { left: 40%; top: 4%; height: 26%; animation: bob 7s ease-in-out infinite reverse; }
.char-k { right: -2%; top: 10%; height: 54%; animation: bob 8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

.game-badges { position: absolute; top: 16px; right: 16px; z-index: 2; }
.game .badge { background: rgba(10, 8, 7, 0.45); border-color: rgba(255, 255, 255, 0.28); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.game .badge-ai { background: linear-gradient(rgba(16, 12, 10, 0.72), rgba(16, 12, 10, 0.72)) padding-box, var(--ai-grad) border-box; }

.game-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; }
.game-title { display: flex; align-items: center; gap: 14px; }
.game .app-icon { width: 54px; height: 54px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.app-icon--sea {
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #6fd8fa, #1677cc);
}
.app-icon--sea img { width: 86%; height: auto; }
.game-name { font-size: clamp(21px, 4.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.game-genre { margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.game-tagline { margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, 0.95); text-wrap: balance; }
.game-body {
  margin-top: 8px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.game-cta {
  display: inline-flex; align-items: center; margin-top: 14px;
  min-height: 36px; padding: 6px 15px; border-radius: 980px;
  font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease);
}

.games-notice {
  margin-top: clamp(30px, 5vw, 48px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; gap: 6px; max-width: 62em;
  font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.52);
}

/* =========================================================
   Company
   ========================================================= */
.company-grid { display: grid; gap: clamp(28px, 5vw, 56px); }
.company-text p { font-size: clamp(16px, 3.4vw, 19px); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.company-text p + p { margin-top: 20px; }

/* =========================================================
   Contact
   ========================================================= */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: min(900px, 140vw); aspect-ratio: 2 / 1;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 120, 90, 0.14), rgba(154, 92, 240, 0.08) 55%, transparent);
}
.contact .wrap { position: relative; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-email { margin-top: clamp(28px, 5vw, 42px); font-size: clamp(22px, 5.4vw, 42px); font-weight: 700; letter-spacing: -0.028em; word-break: break-word; }
.contact-email a { color: var(--brand); }
.contact-email a:hover { color: var(--brand-hi); }
.contact-meta { margin: clamp(36px, 6vw, 56px) auto 0; max-width: 760px; display: grid; gap: 24px; }
.contact-meta dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.contact-meta dd { font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 calc(56px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--text-3); }
.footer-inner { display: grid; gap: 26px; }
.footer-logo { height: 19px; width: auto; opacity: 0.62; }
.footer-legal { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.footer-meta { display: grid; gap: 8px; line-height: 1.7; }
.footer-meta a { transition: color 0.2s var(--ease); }
.footer-meta a:hover { color: var(--text); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.footer-langs a.is-current { color: var(--text-2); }

/* =========================================================
   Breakpoints
   ========================================================= */

/* 大屏手机 / 小平板 */
@media (min-width: 600px) {
  .contact-meta { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* iPad 竖屏起 */
@media (min-width: 700px) {
  .hero { --skyline-h: calc(100vw * 0.375); }
  .hero-skyline { height: auto; aspect-ratio: var(--skyline-ratio); background-size: 100% auto; }

  /* 工具：主推卡左文右图，其余三张横排成行 */
  .tool--featured { flex-direction: row; align-items: stretch; gap: 32px; }
  .tool--featured .tool-main { flex: 1 1 58%; }
  .tool--featured .badges { position: absolute; top: clamp(24px, 4vw, 34px); right: clamp(24px, 4vw, 34px); z-index: 2; }
  .tool--featured { min-height: 440px; }
  .tool--featured .tool-shot {
    flex: 0 0 34%; width: auto; align-self: stretch; position: relative;
    margin: 0 0 calc(-1 * clamp(24px, 4vw, 34px));
  }
  .tool--featured .tool-shot img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .tool:not(.tool--featured) { display: grid; grid-template-columns: 76px 1fr; column-gap: 22px; }
  .tool:not(.tool--featured) .tool-main { display: contents; }
  .tool:not(.tool--featured) .tool-head { grid-column: 1; grid-row: 1 / span 6; flex-direction: column; margin: 0; }
  .tool:not(.tool--featured) .tool-head .badges { position: absolute; top: clamp(24px, 4vw, 34px); right: clamp(24px, 4vw, 34px); }
  .tool:not(.tool--featured) > .tool-main > :not(.tool-head) { grid-column: 2; }
  .tool:not(.tool--featured) .app-icon { width: 76px; height: 76px; }
  .tool:not(.tool--featured) .tool-genre { margin-top: 2px; }

  /* 游戏：两列，第一张通栏 */
  .game-grid {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible; margin: 0; padding: 0; gap: 16px; scroll-snap-type: none;
  }
  .game { height: 420px; }
  .game:first-child { grid-column: 1 / -1; height: 460px; }
  .game-info { padding: 26px; }
}

/* 导航完整显示（iPad Air / Pro 竖屏 820、834 起） */
@media (min-width: 820px) {
  :root { --gutter: 32px; --nav-h: 56px; }
  .nav-links { display: flex; }
  .lang { display: block; }
  .nav-burger { display: none; }
  .mobile-menu { display: none !important; }
  .company-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; }
  .company-copy .section-title { font-size: clamp(30px, 4.4vw, 50px); }
}

/* 企业服务左右排 */
@media (min-width: 900px) {
  .services-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .rings { width: min(100%, 420px); }
}

/* iPad 横屏 / 桌面 */
@media (min-width: 1000px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .tool--featured { grid-column: 1 / -1; padding: 44px 48px 0; }
  .tool--featured .tool-main { padding-bottom: 44px; }
  .tool--featured .tool-shot { flex-basis: 30%; margin-bottom: 0; }
  .tool:not(.tool--featured) { display: flex; }
  .tool:not(.tool--featured) .tool-main { display: flex; }
  .tool:not(.tool--featured) .tool-head { flex-direction: row; margin-bottom: 22px; }
  .tool:not(.tool--featured) .tool-head .badges { position: static; justify-content: flex-end; }
  .tool:not(.tool--featured) .app-icon { width: 64px; height: 64px; }

  /* 游戏：上排两张大卡，下排三张 */
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .game, .game:first-child { grid-column: span 2; height: 420px; }
  .game--lg, .game--lg:first-child { grid-column: span 3; height: 470px; }
  .game-info { padding: 28px; }
  .game--lg .game-name { font-size: 28px; }

  .footer-inner { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .footer-meta { text-align: right; justify-items: end; }
  .footer-langs { justify-content: flex-end; }
}

@media (min-width: 1180px) {
  :root { --wrap: 1100px; }
}

/* 只在真正能悬停的设备上做悬停效果（iPad / 手机点按后不会卡在悬停态） */
@media (hover: hover) {
  .tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 18px 50px -18px color-mix(in srgb, var(--accent) 55%, transparent);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--card-line));
  }
  .tool:hover::before { opacity: 1; }
  .pill:hover { border-color: transparent; background: var(--brand); color: #fff; }
  :root[data-theme="dark"] .pill:hover { color: #14110f; }
  .pill-primary:hover { background: var(--btn-bg-hi); color: var(--btn-text); }
  .service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

  .game:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent),
      0 24px 70px -16px color-mix(in srgb, var(--accent) 75%, transparent);
  }
  .game:hover .game-art > img:first-child { transform: scale(1.05); }
  .game:hover .game-mascot { transform: translateY(-8px) rotate(-1.5deg); }
  .game:hover .jp-logo { transform: translateY(-4px) scale(1.03); }
  .game:hover .fl-as  { transform: translate(-6px, -8px) rotate(-22deg); }
  .game:hover .fl-2s  { transform: translate(8px, -6px) rotate(26deg); }
  .game:hover .fl-ah  { transform: translate(-8px, 4px) rotate(20deg); }
  .game:hover .fl-hib { transform: translate(-6px, -6px) rotate(-2deg) scale(1.06); }
  .game:hover .tile3d--fa   { transform: translate(6px, -10px) rotate(17deg); }
  .game:hover .tile3d--wan  { transform: translate(-8px, -8px) rotate(-20deg); }
  .game:hover .tile3d--tiao { transform: translate(4px, 6px) rotate(-12deg); }
  .game:hover .game-cta { background: rgba(255, 255, 255, 0.28); }
  /* 桌面上卡片介绍悬停时才展开，保持画面干净 */
  .game .game-body { max-height: 0; margin-top: 0; opacity: 0; transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), margin 0.6s var(--ease); }
  .game:hover .game-body, .game:focus-visible .game-body { max-height: 6em; margin-top: 8px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .tw { opacity: 0.7; }
  .petals { display: none; }
}

/* 深浅色切换时的淡入淡出（支持 View Transitions 的浏览器） */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

@media print {
  .nav, .mobile-menu, .hero-aurora, .hero-skyline, .sparkles { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
