/* ==========================================================================
   Moe Theme - 首页样式
   与模板配套：public/themes/web/moe
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #0b0f19;
  --ink-soft: #2a3240;
  --sub: #5b6472;
  --muted: #98a2b3;
  --line: #e5eaf1;
  --line-strong: #c9d3e0;
  --blue: #2f74d4;
  --blue-2: #3f8ae6;
  --blue-soft: #eaf3ff;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, .72);
  --grid-line: rgba(11, 15, 25, .045);
  --shadow-lg: 0 30px 70px rgba(24, 54, 100, .14);
  --shadow-sm: 0 10px 26px rgba(24, 54, 100, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c1117;
  --ink: #eef3fa;
  --ink-soft: #d6e0ee;
  --sub: #9aa8ba;
  --muted: #6f7d8f;
  --line: #1e2833;
  --line-strong: #2c3946;
  --blue: #5aa2f0;
  --blue-2: #79b6ff;
  --blue-soft: #142230;
  --card: #111a23;
  --header-bg: rgba(12, 17, 23, .72);
  --grid-line: rgba(255, 255, 255, .05);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .35);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

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

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

button {
  font: inherit;
}

::selection {
  background: rgba(63, 138, 230, .22);
}

.container {
  width: min(1560px, calc(100% - 96px));
  margin-inline: auto;
}

/* 背景：柔光 + 网格 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 80% 16%, rgba(142, 190, 255, .20), transparent 62%),
    radial-gradient(720px 520px at 8% 78%, rgba(255, 208, 236, .18), transparent 66%),
    radial-gradient(620px 420px at 52% 4%, rgba(206, 236, 255, .22), transparent 68%),
    var(--bg);
  transition: background-color .3s var(--ease);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 52% 38%, #000 32%, transparent 84%);
  mask-image: radial-gradient(circle at 52% 38%, #000 32%, transparent 84%);
}

/* ============================ 头部 ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 22px 0;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(24, 54, 100, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-text {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(18px, 2.4vw, 46px);
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  font-size: 15px;
  color: var(--sub);
  letter-spacing: .02em;
  transition: color .2s var(--ease);
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7cb5f5, var(--blue));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.moon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-right: 6px;
  color: var(--sub);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.moon-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: rotate(-12deg);
}

.btn-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.btn-entry.ghost {
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line-strong);
}

.btn-entry.ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-entry.solid {
  color: #fff;
  background: #0b0d12;
  border: 1px solid #0b0d12;
  box-shadow: 0 8px 20px rgba(11, 13, 18, .18);
}

html[data-theme="dark"] .btn-entry.solid {
  color: #0b0d12;
  background: #eef3fa;
  border-color: #eef3fa;
}

.btn-entry.solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 13, 18, .26);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================ 首屏 ============================ */
.home {
  position: relative;
}

.hero {
  position: relative;
  padding: clamp(8px, 2vw, 28px) 0 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: clamp(540px, calc(100vh - 168px), 740px);
  padding-bottom: clamp(44px, 6vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 660px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5aa2ec;
  box-shadow: 0 0 0 4px rgba(90, 162, 236, .18);
  animation: breathe 3.4s ease-in-out infinite;
}

.badge-line {
  width: 46px;
  height: 1px;
  background: var(--line-strong);
}

.badge-name {
  color: var(--sub);
  font-weight: 500;
}

.badge-ver {
  padding: 2px 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
}

html[data-theme="dark"] .badge-ver {
  background: rgba(255, 255, 255, .04);
}

.hero-title {
  margin: 0 0 clamp(22px, 2.8vw, 34px);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.03em;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.line-1 {
  color: var(--ink);
  text-transform: uppercase;
}

.line-2 {
  margin-left: .05em;
  margin-top: .06em;
  color: transparent;
  -webkit-text-stroke: 2px #3f86d6;
  text-shadow: 0 10px 26px rgba(63, 134, 214, .12);
}

@supports not (-webkit-text-stroke: 1px #000) {
  .line-2 {
    color: var(--blue);
  }
}

.hero-desc {
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  padding-left: 18px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  color: var(--sub);
  border-left: 3px solid #c9dcf5;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 34px 20px 38px;
  color: #fff;
  background: #0b0d12;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 16px 26px rgba(11, 13, 18, .20));
  transition: transform .22s var(--ease), filter .22s var(--ease);
}

.btn-start:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 22px 32px rgba(11, 13, 18, .28));
}

.btn-start-cn {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
}

.btn-start-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .72);
}

.btn-start-en i {
  font-style: normal;
  margin-left: 2px;
  transition: transform .2s var(--ease);
}

.btn-start:hover .btn-start-en i {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 42px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 8px 22px rgba(24, 54, 100, .06);
  transition: transform .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--bg);
}

/* 插画区 */
.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1.16 / 1;
  z-index: 2;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 26px;
  z-index: 0;
}

.hero-art::before {
  inset: 10% 12% 12% 16%;
  background: linear-gradient(150deg, #ffe9e2 0%, #fff6e0 46%, #e7f4ff 100%);
  transform: rotate(-7deg);
  opacity: .85;
  filter: blur(.2px);
  box-shadow: 0 26px 60px rgba(255, 170, 150, .18);
}

.hero-art::after {
  inset: 18% 6% 6% 30%;
  background: linear-gradient(160deg, #e8f6ff, #f3ecff 55%, #fff4e8);
  transform: rotate(6deg);
  opacity: .7;
}

.art-glow {
  position: absolute;
  inset: 4% 0 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(146, 196, 255, .5), transparent 72%);
  filter: blur(26px);
  animation: pulse 7s ease-in-out infinite;
}

.art-ring {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 54%;
  aspect-ratio: 1;
  z-index: 1;
  border: 1px dashed rgba(110, 158, 214, .55);
  border-radius: 50%;
  animation: spin 46s linear infinite;
}

.art-dots {
  position: absolute;
  left: 3%;
  bottom: 14%;
  width: 96px;
  height: 96px;
  z-index: 1;
  background-image: radial-gradient(rgba(90, 162, 236, .55) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .7;
}

.art-frame {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(255, 173, 196, .65);
  border-radius: 18px;
  opacity: .75;
}

.frame-a {
  top: 8%;
  left: 6%;
  width: 34%;
  height: 30%;
  transform: rotate(-12deg);
}

.frame-b {
  right: 4%;
  bottom: 8%;
  width: 30%;
  height: 26%;
  border-color: rgba(255, 214, 120, .7);
  transform: rotate(9deg);
}

.art-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(47, 111, 208, .18));
  animation: float 6.5s ease-in-out infinite;
}

.art-placeholder {
  position: absolute;
  inset: 12% 10%;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
  color: var(--sub);
  background: rgba(255, 255, 255, .55);
  border: 2px dashed rgba(90, 162, 236, .5);
  border-radius: 24px;
  backdrop-filter: blur(4px);
}

.hero-art.no-art .art-placeholder {
  display: flex;
}

html[data-theme="dark"] .art-placeholder {
  background: rgba(17, 26, 35, .72);
  border-color: rgba(90, 162, 240, .45);
}

.art-placeholder strong {
  font-size: 18px;
  color: var(--ink);
}

.art-placeholder span {
  font-size: 13px;
  color: var(--muted);
}

/* 左侧竖排装饰字 */
.side-note {
  position: absolute;
  left: max(10px, calc((100vw - 1560px) / 2 - 42px));
  bottom: 96px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
  user-select: none;
}

/* 跑马灯 */
.ticker {
  position: relative;
  z-index: 4;
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  transform: rotate(-1.7deg);
  background: linear-gradient(90deg, #2c6ac6 0%, #3f87e2 48%, #2f74d4 100%);
  box-shadow: 0 20px 44px rgba(47, 116, 212, .24);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(38px, 4vw, 74px);
  padding: 17px clamp(20px, 2.6vw, 40px);
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .95);
}

.ticker-item::before {
  content: "◆";
  font-size: 10px;
  color: #cfe2ff;
}

/* SCROLL */
.scroll-hint {
  padding: 46px 0 42px;
  text-align: center;
  color: var(--muted);
}

.scroll-hint span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .52em;
  text-indent: .52em;
}

.chevron {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 1.9s var(--ease) infinite;
}

/* ============================ 页脚 ============================ */
.site-footer {
  position: relative;
  margin-top: 8px;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(240, 246, 255, .55));
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, transparent, rgba(20, 34, 48, .55));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr .8fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 48px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 42px;
  width: auto;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 380px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.footer-social a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.footer-col h3 {
  margin: 4px 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}

.footer-col a,
.footer-contact span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--sub);
  transition: color .2s var(--ease);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-contact .qq-line {
  cursor: pointer;
  transition: color .2s var(--ease);
}

.footer-contact .qq-line:hover {
  color: var(--blue);
}

.footer-contact .qq-line.is-copied {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-inner a {
  color: var(--muted);
}

.footer-bottom-inner a:hover {
  color: var(--blue);
}

/* ============================ 动画 ============================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-16px) rotate(-.6deg); }
}

@keyframes pulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(90, 162, 236, .16); }
  50% { box-shadow: 0 0 0 7px rgba(90, 162, 236, .08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .55; }
  50% { transform: translateY(7px) rotate(45deg); opacity: 1; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 1400px) {
  .side-note { display: none; }
  .hero-art { max-width: 700px; }
}

@media (max-width: 1200px) {
  .container { width: min(1560px, calc(100% - 64px)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-nav { gap: 22px; }
  .btn-entry { padding: 0 16px; }
}

@media (max-width: 992px) {
  .container { width: min(1560px, calc(100% - 48px)); }

  .site-header { padding: 16px 0; }

  .nav-toggle {
    display: block;
    margin-left: 8px;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .nav-link.is-active::after { display: none; }

  .nav-link.is-active { background: var(--blue-soft); color: var(--blue); }

  .header-actions { margin-left: auto; gap: 8px; }

  .moon-btn { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 56px;
    gap: 40px;
  }

  .hero-copy { max-width: none; }

  .hero-title { font-size: clamp(46px, 10vw, 78px); }

  .hero-art {
    justify-self: center;
    max-width: 620px;
    aspect-ratio: 1.2 / 1;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }

  .brand img { height: 34px; }

  .brand-text { font-size: 19px; }

  .btn-entry { height: 36px; padding: 0 12px; font-size: 12.5px; }

  .nav-toggle { width: 38px; height: 38px; padding: 9px; }

  .header-actions { gap: 6px; }

  .hero-title { font-size: clamp(34px, 10.4vw, 52px); }

  .line-2 { -webkit-text-stroke-width: 1.3px; }

  .hero-desc {
    font-size: 14px;
    line-height: 1.9;
    padding-left: 14px;
  }

  .hero-desc br { display: none; }

  .btn-start { padding: 17px 26px 17px 28px; gap: 12px; }

  .btn-start-cn { font-size: 15px; }

  .btn-ghost { height: 54px; padding: 0 28px; font-size: 15px; }

  .ticker { transform: rotate(-1.2deg); }

  .ticker-group { gap: 28px; padding: 14px 18px; }

  .ticker-item { font-size: 12px; }

  .scroll-hint { padding: 34px 0 30px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }

  .footer-contact { grid-column: 1 / -1; }

  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   内页通用组件（与首页同一视觉体系）
   ============================================================ */
.page {
  position: relative;
}

.page-hero {
  position: relative;
  padding: clamp(44px, 5vw, 76px) 0 clamp(30px, 4vw, 46px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 420px;
  z-index: 0;
  background:
    radial-gradient(560px 280px at 22% 30%, rgba(126, 178, 255, .22), transparent 70%),
    radial-gradient(460px 240px at 82% 10%, rgba(255, 205, 232, .2), transparent 70%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.crumbs a {
  color: var(--sub);
}

.crumbs a:hover {
  color: var(--blue);
}

.crumbs em {
  font-style: normal;
  color: var(--ink);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--blue);
}

.page-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.page-hero .page-desc {
  max-width: 760px;
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--sub);
}

.page-section {
  padding: clamp(38px, 5vw, 66px) 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(28px, 3.4vw, 44px);
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--blue);
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}

.moe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.moe-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.tech-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--acc, var(--blue)), transparent 88%);
  opacity: .85;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--acc, var(--blue));
  box-shadow: var(--shadow-lg);
}

.card-num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--acc, var(--blue));
  opacity: .08;
  pointer-events: none;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--acc, var(--blue));
  background: var(--acc-soft, rgba(47, 116, 212, .1));
  border-radius: 12px;
}

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

.tech-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.tech-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

.tech-card .card-foot {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tech-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc, var(--blue));
}

.tech-card .card-link:hover {
  gap: 10px;
}

/* 卡片强调色 */
.acc-cyan { --acc: #0ea5b7; --acc-soft: rgba(14, 165, 183, .1); }
.acc-indigo { --acc: #4f6bed; --acc-soft: rgba(79, 107, 237, .1); }
.acc-amber { --acc: #d99518; --acc-soft: rgba(217, 149, 24, .12); }
.acc-emerald { --acc: #159f6e; --acc-soft: rgba(21, 159, 110, .1); }
.acc-rose { --acc: #e05a7a; --acc-soft: rgba(224, 90, 122, .1); }
.acc-sky { --acc: #2f8fe0; --acc-soft: rgba(47, 143, 224, .1); }
.acc-purple { --acc: #8b5cf6; --acc-soft: rgba(139, 92, 246, .1); }
.acc-orange { --acc: #ea7a2b; --acc-soft: rgba(234, 122, 43, .12); }

html[data-theme="dark"] .acc-cyan { --acc-soft: rgba(14, 165, 183, .18); }
html[data-theme="dark"] .acc-indigo { --acc-soft: rgba(79, 107, 237, .2); }
html[data-theme="dark"] .acc-amber { --acc-soft: rgba(217, 149, 24, .2); }
html[data-theme="dark"] .acc-emerald { --acc-soft: rgba(21, 159, 110, .2); }
html[data-theme="dark"] .acc-rose { --acc-soft: rgba(224, 90, 122, .2); }
html[data-theme="dark"] .acc-sky { --acc-soft: rgba(47, 143, 224, .2); }
html[data-theme="dark"] .acc-purple { --acc-soft: rgba(139, 92, 246, .2); }
html[data-theme="dark"] .acc-orange { --acc-soft: rgba(234, 122, 43, .2); }

/* CTA 横幅（使用 hero-2 插画） */
.cta-band {
  padding: 8px 0 clamp(48px, 6vw, 76px);
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 20px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(520px 300px at 88% 20%, rgba(63, 138, 230, .16), transparent 68%),
    linear-gradient(115deg, #f8fbff 0%, #eef5ff 55%, #e6f0ff 100%);
  border: 1px solid rgba(47, 116, 212, .16);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--blue);
}

.cta-inner h2 {
  margin: 10px 0 10px;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

.cta-inner p {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.btn-cta.primary {
  color: #fff;
  background: #0b1220;
}

.btn-cta.primary:hover {
  background: var(--blue);
}

.btn-cta.ghost {
  color: var(--ink);
  border: 1px solid rgba(11, 18, 32, .2);
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-cta.ghost:hover {
  background: rgba(11, 18, 32, .05);
}

.cta-art {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(330px, 100%);
}

.cta-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(24, 54, 100, .18));
  animation: float 7s ease-in-out infinite;
}

/* CTA 夜间模式：恢复深色底图 */
html[data-theme="dark"] .cta-inner {
  color: #fff;
  background:
    radial-gradient(520px 300px at 88% 20%, rgba(63, 138, 230, .35), transparent 68%),
    linear-gradient(115deg, #0b1220 0%, #112337 55%, #0f2f4d 100%);
  border-color: rgba(255, 255, 255, .06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .cta-inner::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
}

html[data-theme="dark"] .cta-eyebrow {
  color: #8cc2ff;
}

html[data-theme="dark"] .cta-inner p {
  color: rgba(255, 255, 255, .72);
}

html[data-theme="dark"] .btn-cta.primary {
  color: #0b1220;
  background: #fff;
}

html[data-theme="dark"] .btn-cta.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

html[data-theme="dark"] .btn-cta.ghost:hover {
  background: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .cta-art img {
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .35));
}

/* FAQ 折叠 */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  padding: 0 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(47, 116, 212, .35);
}

.faq-item summary {
  position: relative;
  padding: 18px 38px 18px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  transition: transform .25s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

/* 联系方式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 30px 24px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contact-card .card-icon {
  margin: 0 auto 16px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.contact-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sub);
}

.contact-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  word-break: break-all;
}

.contact-value + .contact-value {
  margin-top: 8px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-info-item {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-info-item span {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-info-item strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

/* 步骤与代码块 */
.steps {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sub);
}

.code-block {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: #d7e7ff;
  background: #0b1220;
  border-radius: 10px;
  white-space: nowrap;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 9px 16px;
  font-size: 13px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* 内页响应式 */
@media (max-width: 992px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-art {
    justify-self: center;
    width: min(260px, 70%);
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .moe-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .tech-card {
    border-radius: 14px;
  }

  .step {
    padding: 18px;
  }
}

/* 首页区块补充 */
.section-more {
  margin-top: 30px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: gap .2s var(--ease);
}

.text-link:hover {
  gap: 12px;
}

/* 数据条 */
.stats-band {
  padding: 6px 0 0;
}

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

.stats-card {
  padding: 26px 22px;
  text-align: center;
  background: var(--card);
}

.stats-num {
  font-family: var(--font-en);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.stats-num .unit {
  margin-left: 2px;
  font-size: .52em;
  color: var(--blue);
}

.stats-label {
  margin-top: 7px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
}

.stats-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
}

@media (max-width: 768px) {
  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
