/* ==========================================================================
   OneAIHost 官网样式
   设计规范见 design/01-视觉设计方案.md
   ========================================================================== */

/* ---------- 字体（全部自托管） ---------- */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* 中日文页面专用：只接管英文字母与数字，标点留给中日文字体，
   避免引号、破折号、间隔号被换成西文字形（与上面是同一个文件，不会重复下载） */
@font-face {
  font-family: "Manrope CJK";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A9, U+00AE, U+00D7;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 设计变量 ---------- */

:root {
  --bg: #06080F;
  --card: #0C111D;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .26);
  --text: #EEF2F8;
  --dim: #9AA6BC;
  --mute: #6C7890;
  --accent: #4DE2FF;
  --accent-rgb: 77, 226, 255;
  --accent2-rgb: 91, 124, 255;
  --ok: #3EE6A8;

  --radius: 16px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-brand: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 自定义属性会被继承，所以每种语言都要显式声明：
   这样页面里带 lang 属性的其它语言文字（如语言菜单里的“Русский”“日本語”）也能用上各自的字体。 */

:lang(en),
:lang(ru),
:lang(vi) {
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:lang(zh-CN) {
  --font-sans: "Manrope CJK", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}

:lang(zh-TW) {
  --font-sans: "Manrope CJK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", system-ui, sans-serif;
}

:lang(ja) {
  --font-sans: "Manrope CJK", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
}

/* ---------- 基础 ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 日文：标点不出现在行首 */
:lang(ja) {
  line-break: strict;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

svg, canvas {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* 带 lang 属性的语言名称，各自使用对应语言的字体 */
[lang] {
  font-family: var(--font-sans);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(var(--accent-rgb), .3);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #031119;
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.is-disabled {
  opacity: .38;
  cursor: not-allowed;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14.5px;
}

.btn--lg {
  min-height: 54px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 16.5px;
}

.btn--primary {
  background: var(--accent);
  color: #031119;
}

.btn--primary:hover {
  background: #7CEAFF;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .6), 0 10px 36px rgba(var(--accent-rgb), .36);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .02);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .icon {
  transition: transform .2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

/* ---------- 小标签 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16), 0 0 14px var(--accent);
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--accent);
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(6, 8, 15, .78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--text);
}

.brand__ai-mark {
  stroke: var(--accent);
}

.brand__ai {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: 16px;
  font-size: 15px;
  color: var(--dim);
}

.nav__links a {
  transition: color .2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav__toggle-close,
.nav__toggle[aria-expanded="true"] .nav__toggle-open {
  display: none;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-close {
  display: block;
}

/* 手机菜单展开时用接近不透明的底色，避免下面的内容透上来干扰阅读 */
.nav.is-open {
  background: rgba(6, 8, 15, .97);
}

/* 语言切换 */

.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--dim);
  transition: color .2s, border-color .2s, background-color .2s;
}

.lang__btn .icon {
  width: 18px;
  height: 18px;
}

.lang__btn:hover,
.lang__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
}

.lang__chev {
  transition: transform .2s var(--ease);
}

.lang__btn[aria-expanded="true"] .lang__chev {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0D1322;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.lang__menu a,
.lang__menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--dim);
}

.lang__menu a:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.lang__menu a[aria-current] {
  color: var(--text);
}

.lang__menu a[aria-current]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* 手机菜单 */

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

.mnav__inner {
  display: grid;
  gap: 22px;
  padding-block: 8px 28px;
}

.mnav__links {
  display: grid;
}

.mnav__links a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.mnav__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mnav__langs a,
.mnav__langs span {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--dim);
}

.mnav__langs a[aria-current] {
  border-color: rgba(var(--accent-rgb), .5);
  color: var(--accent);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 172px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  top: -22%;
  right: -12%;
  width: min(78vw, 1040px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(var(--accent2-rgb), .24), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 62% 36%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 75% at 62% 36%, #000 18%, transparent 76%);
}

.hero__particles {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 40px;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: .02em;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  width: fit-content;
  background: linear-gradient(92deg, var(--accent) 0%, #A9B8FF 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 26px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
}

.hero__lead {
  max-width: 33em;
  margin-top: 16px;
  color: var(--dim);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__art {
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.hero__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--dim);
}

.hero__regions li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__region-code {
  padding: 2px 8px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--accent);
}

/* 首屏主视觉 */

.art {
  width: 100%;
  height: auto;
  overflow: visible;
}

.art__text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  fill: var(--dim);
}

.art__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  fill: var(--accent);
}

.art__spin {
  transform-origin: 300px 260px;
  animation: oah-spin 90s linear infinite;
}

.art__flow {
  stroke-dasharray: 10 100;
  stroke-dashoffset: 10;
  animation: oah-flow 2.6s linear infinite;
}

.art__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: oah-pulse 2.8s ease-out infinite;
}

.art__pulse--you {
  animation-delay: 1.3s;
}

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

@keyframes oah-flow {
  to { stroke-dashoffset: -82; }
}

@keyframes oah-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ---------- 通用区块 ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__title {
  margin-top: 18px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: .01em;
}

.section__sub {
  max-width: 36em;
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--dim);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

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

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)), var(--card);
  transition: border-color .25s, transform .25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: .9;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent);
}

.card__title {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.card__text {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* ---------- 主机产品 ---------- */

.host {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition: border-color .25s;
}

.host:hover {
  border-color: rgba(var(--accent-rgb), .38);
}

.host__art {
  position: relative;
  padding: 40px 24px 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 85% at 50% 100%, rgba(var(--accent2-rgb), .2), transparent 70%),
    linear-gradient(180deg, #0E1526, #0A0F1B);
}

.host__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000, transparent 75%);
}

.device {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-inline: auto;
}

.host__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}

.host__name {
  margin-top: 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.host__desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--dim);
}

.host__features {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  font-size: 15.5px;
}

.host__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.host__features .icon {
  margin-top: 5px;
  color: var(--accent);
}

.host__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.host__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host__price-label {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--mute);
}

.host__price-value {
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 全球节点 ---------- */

.mapbox {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 70% at 46% 46%, rgba(var(--accent2-rgb), .14), transparent 70%),
    var(--card);
}

.map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map__dot {
  fill: var(--accent);
}

.map__halo {
  fill: rgba(var(--accent-rgb), .16);
  stroke: rgba(var(--accent-rgb), .5);
  stroke-width: 1px;
}

.map__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2px;
  transform-box: fill-box;
  transform-origin: center;
  animation: oah-pulse-map 3.2s ease-out infinite;
}

.map__node:nth-of-type(2) .map__pulse { animation-delay: .8s; }
.map__node:nth-of-type(3) .map__pulse { animation-delay: 1.6s; }
.map__node:nth-of-type(4) .map__pulse { animation-delay: 2.4s; }

@keyframes oah-pulse-map {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(5); opacity: 0; }
}

.map__label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  fill: var(--text);
  stroke: #0A0F1B;
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke;
}

.map__code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  fill: var(--accent);
}

.regions {
  margin-top: 20px;
}

.region {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.region__code {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--accent);
}

.region__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.region__area {
  font-size: 14px;
  line-height: 1.4;
  color: var(--dim);
}

.region__status {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}

.region__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 230, 168, .18);
}

/* ---------- 应用场景 ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.bento__item {
  grid-column: span 2;
}

.bento__item:nth-child(-n+2) {
  grid-column: span 3;
}

/* ---------- 租用流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  position: relative;
  padding: 30px 28px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
}

.step__title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.step__text {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--dim);
}

/* ---------- 常见问题 ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 64px;
}

.faq__head {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

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

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}

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

.faq__item summary:hover {
  color: var(--accent);
}

.faq__icon {
  color: var(--dim);
  transition: transform .25s var(--ease), color .2s;
}

.faq__item[open] .faq__icon {
  color: var(--accent);
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 48px 26px 4px;
  font-size: 16px;
  color: var(--dim);
}

/* ---------- 联系客服 ---------- */

.section--contact {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6.4vw, 88px) clamp(22px, 5vw, 72px);
  border: 1px solid rgba(var(--accent-rgb), .26);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 62% 90% at 50% 0%, rgba(var(--accent2-rgb), .3), transparent 66%),
    radial-gradient(ellipse 40% 60% at 88% 100%, rgba(var(--accent-rgb), .12), transparent 70%),
    var(--card);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta__title {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .01em;
}

.cta__sub {
  max-width: 34em;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--dim);
}

.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}

/* 渠道数量少时收窄并居中，避免一两个按钮被拉得很宽 */
.channels--n1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 400px;
  margin-inline: auto;
}

.channels--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(6, 8, 15, .6);
  transition: border-color .2s, transform .2s var(--ease);
}

a.channel:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.channel__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
}

.channel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.channel__name {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dim);
}

.channel__value {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.channel__arrow {
  color: var(--dim);
  transition: transform .2s var(--ease), color .2s;
}

a.channel:hover .channel__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.channel--pending {
  border-style: dashed;
}

.channel--pending .channel__value {
  font-weight: 500;
  color: var(--mute);
}

.channel--pending .channel__arrow {
  opacity: .3;
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: #05070C;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 64px 48px;
}

.footer__tagline {
  max-width: 28em;
  margin-top: 18px;
  font-size: 15px;
  color: var(--dim);
}

.footer__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--mute);
}

.footer__col ul {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--dim);
}

.footer__col a {
  transition: color .2s;
}

.footer__col a:hover,
.footer__col a[aria-current] {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 40px;
  padding-block: 24px 36px;
  font-size: 13.5px;
  color: var(--mute);
}

.footer__bottom::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: 16px;
  background: var(--line);
}

/* ---------- 各语言排版微调 ----------
   中日文是方块字，标题用正字距；英文、俄文字母更宽、单词更长，
   标题要收紧字距并缩小字号，否则首屏标题会折行。 */

.section__title,
.cta__title,
.host__name,
.card__title,
.step__title,
.hero__subtitle {
  text-wrap: balance;
}

:lang(en) .hero__title,
:lang(ru) .hero__title,
:lang(vi) .hero__title {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
}

:lang(en) .hero__title {
  font-size: clamp(40px, 5.9vw, 76px);
}

:lang(ru) .hero__title {
  font-size: clamp(33px, 5.2vw, 66px);
}

/* 越南语字母上方有两层声调符号，行高要留足，否则上下两行会相碰 */
:lang(vi) .hero__title {
  font-size: clamp(40px, 5.9vw, 76px);
  line-height: 1.2;
}

:lang(en) .hero__subtitle,
:lang(ru) .hero__subtitle,
:lang(vi) .hero__subtitle {
  letter-spacing: 0;
}

:lang(en) .section__title,
:lang(ru) .section__title,
:lang(en) .cta__title,
:lang(ru) .cta__title,
:lang(en) .host__name,
:lang(ru) .host__name {
  line-height: 1.16;
  letter-spacing: -.022em;
}

:lang(vi) .section__title,
:lang(vi) .cta__title,
:lang(vi) .host__name {
  line-height: 1.3;
  letter-spacing: -.015em;
}

:lang(en) .art__text,
:lang(ru) .art__text,
:lang(vi) .art__text {
  letter-spacing: .02em;
}

:lang(ja) .hero__lead,
:lang(ja) .section__sub,
:lang(ja) .cta__sub {
  line-height: 1.85;
}

/* ---------- 404 页面（静态文件 404.html） ---------- */

.nf {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px var(--gutter);
  overflow: hidden;
  text-align: center;
}

.nf::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(var(--accent2-rgb), .2), transparent 70%),
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

.nf__code {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: clamp(88px, 22vw, 184px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  background: linear-gradient(92deg, var(--accent) 0%, #A9B8FF 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf__title {
  margin-top: 20px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.3;
}

.nf__text {
  max-width: 30em;
  margin: 12px auto 32px;
  color: var(--dim);
}

.nf__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.nf__langs a {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--dim);
  transition: color .2s, border-color .2s;
}

.nf__langs a:hover {
  border-color: rgba(var(--accent-rgb), .5);
  color: var(--accent);
}

/* ---------- 滚动浮现 ----------
   .js 由 <head> 内联脚本添加；.reveal-on 由 main.js 添加。
   如果 main.js 没能加载，3 秒后由兜底动画把内容全部显示出来。 */

.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), border-color .25s, transform .25s var(--ease);
  animation: oah-failsafe 0s linear 3s forwards;
}

.js.reveal-on [data-reveal] {
  animation: none;
}

.js [data-reveal].is-in {
  opacity: 1;
  translate: none;
}

@keyframes oah-failsafe {
  to { opacity: 1; translate: none; }
}

/* ---------- 平板 ---------- */

@media (max-width: 1023px) {
  .nav__links,
  .lang {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 132px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    justify-self: center;
    max-width: 460px;
  }

  .hero__regions {
    margin-top: 48px;
  }

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

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

  .bento__item,
  .bento__item:nth-child(-n+2) {
    grid-column: span 1;
  }

  .bento__item:last-child {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .faq__head {
    position: static;
    margin-bottom: 40px;
  }

  .channels {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 手机 ---------- */

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .nav__inner {
    height: 64px;
    gap: 16px;
  }

  .hero {
    padding: 112px 0 56px;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .hero__regions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }

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

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 26px 22px 28px;
  }

  .host__art {
    padding: 28px 16px 16px;
  }

  .host__body {
    padding: 26px 22px;
  }

  .host__foot {
    flex-direction: column;
    align-items: stretch;
  }

  /* 地图整体缩小后，把节点与文字放大回可读尺寸 */
  .map__node-inner {
    transform: scale(2.4);
  }

  /* 地图上只留地域代码；完整名称见下方卡片（俄语、英语名称太长，会伸出地图） */
  .map__name {
    display: none;
  }

  /* 地域卡片改为上下排列：代码在上，名称在下 */
  .region {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px;
  }

  .region__code {
    grid-row: auto;
    margin-bottom: 10px;
    font-size: 22px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .step {
    padding: 0 0 34px 28px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::after {
    top: 6px;
    left: -5px;
  }

  .faq__item summary {
    padding: 20px 2px;
    font-size: 17px;
  }

  .faq__item p {
    padding: 0 8px 22px 2px;
  }

  .cta {
    border-radius: 22px;
  }

  .footer__top {
    gap: 36px 24px;
    padding-block: 48px 36px;
  }
}

@media (max-width: 420px) {
  .nav__cta {
    display: none;
  }
}

/* ---------- 减少动态效果 ----------
   系统开启“减少动态效果”时（Windows 远程桌面里通常默认如此）：
   关闭大范围、持续位移的动效（平滑滚动、上浮、轨道旋转、粒子、悬停位移），
   只保留淡入和小范围的呼吸光点。粒子在 main.js 里同步关闭。 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    translate: none;
    transition: opacity .5s ease, border-color .25s;
  }

  .art__spin {
    animation: none;
  }

  .btn:hover,
  .btn:hover .icon,
  .card:hover,
  a.channel:hover,
  a.channel:hover .channel__arrow {
    transform: none;
  }
}
