/* ================================================================
   装酷神器 Cloud Windows — 2026 官网设计系统
   base.css：设计令牌 / 基础排版 / 共用首尾 / 通用组件
   ================================================================ */

:root {
  /* 色板：明亮、通透，以电光蓝为主色 */
  --c-bg: #f4f8ff;
  --c-bg-deep: #e9f1ff;
  --c-surface: #ffffff;
  --c-ink: #08152c;
  --c-ink-soft: #35486a;
  --c-muted: #7586a5;
  --c-faint: #a9b7cd;
  --c-line: #e1ebfb;
  --c-line-strong: #cddcf4;

  --c-blue: #2b6bff;
  --c-blue-deep: #0f43c4;
  --c-cyan: #00d2e4;
  --c-violet: #7a5cff;
  --c-mint: #0ed3a0;
  --c-amber: #ffb13d;
  --c-pink: #ff5c9d;

  --g-brand: linear-gradient(118deg, #2b6bff 0%, #00c9f2 58%, #7a5cff 100%);
  --g-brand-soft: linear-gradient(118deg, rgba(43, 107, 255, .12), rgba(0, 201, 242, .12));
  --g-surface: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  --g-night: linear-gradient(140deg, #0a1830 0%, #102a5c 55%, #1b1240 100%);

  --sh-1: 0 2px 6px rgba(13, 40, 88, .05), 0 1px 2px rgba(13, 40, 88, .04);
  --sh-2: 0 10px 28px rgba(13, 40, 88, .09), 0 2px 6px rgba(13, 40, 88, .05);
  --sh-3: 0 28px 64px rgba(17, 55, 130, .15);
  --sh-brand: 0 18px 44px rgba(43, 107, 255, .30);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1200px;
  --hdr-h: 74px;

  --e-out: cubic-bezier(.22, .8, .28, 1);
  --e-in-out: cubic-bezier(.65, .05, .36, 1);

  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI Variable", var(--font-sans);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--e-out);
}

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

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

h1,
h2,
h3,
h4 { margin: 0; color: var(--c-ink); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; }

p { margin: 0; }

::selection { background: rgba(43, 107, 255, .18); color: var(--c-ink); }

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

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--tight { padding-block: 68px; }
.section--flush { padding-top: 0; }

.stack { display: grid; gap: 18px; }

/* ---------- 背景装饰 ---------- */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.page-glow::before {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  left: -260px;
  top: -320px;
  background: radial-gradient(circle at center, rgba(43, 107, 255, .16), transparent 68%);
  filter: blur(6px);
}

.page-glow::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: 120px;
  background: radial-gradient(circle at center, rgba(0, 210, 228, .14), transparent 70%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 107, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 107, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 78%);
}

/* ================================================================
   顶部导航（全站共用）
   ================================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .58);
  border-bottom: 1px solid rgba(205, 220, 244, .55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: background .3s var(--e-out), box-shadow .3s var(--e-out), border-color .3s var(--e-out);
}

.hdr.is-scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(13, 40, 88, .08);
  border-color: transparent;
}

.hdr__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(43, 107, 255, .35));
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text b {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: .02em;
}

.brand__text small {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-faint);
  font-weight: 600;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink-soft);
  border-radius: 10px;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--g-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--e-out);
}

.nav a:hover { color: var(--c-ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav a.is-active { color: var(--c-blue); }
.nav a.is-active::after { transform: scaleX(1); }

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hdr__login {
  padding: 9px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.hdr__login:hover { color: var(--c-blue); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--c-line-strong);
  background: #fff;
  place-items: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s var(--e-out), opacity .3s;
}

.burger span + span { margin-top: 4px; }

/* ================================================================
   按钮
   ================================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .28s var(--e-out), box-shadow .28s var(--e-out),
    background .28s var(--e-out), color .28s var(--e-out), border-color .28s;
  overflow: hidden;
  isolation: isolate;
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  color: #fff;
  background: var(--g-brand);
  background-size: 160% 100%;
  box-shadow: var(--sh-brand);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--e-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 22px 50px rgba(43, 107, 255, .38);
}

.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--c-ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--c-line-strong);
  box-shadow: var(--sh-1);
}

.btn--ghost:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.btn--dark {
  color: #fff;
  background: #0b1a33;
  box-shadow: 0 12px 30px rgba(8, 21, 44, .28);
}

.btn--dark:hover { transform: translateY(-2px); background: #13294d; }

.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn__ico { width: 18px; height: 18px; flex: none; }

/* ================================================================
   文字与标题组件
   ================================================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-blue);
  background: rgba(43, 107, 255, .08);
  border: 1px solid rgba(43, 107, 255, .14);
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  white-space: nowrap;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(43, 107, 255, .16);
}

.kicker--on-dark {
  color: #9ec6ff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

.kicker--on-dark::before {
  background: #5ed6ff;
  box-shadow: 0 0 0 4px rgba(94, 214, 255, .22);
}

.sec-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 46px;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* 避免 grid 容器把胶囊标签拉伸成整条 */
.sec-head .kicker { justify-self: start; }
.sec-head--center .kicker { justify-self: center; }

.sec-head h2 {
  font-size: clamp(28px, 3.3vw, 44px);
  letter-spacing: -.025em;
}

.sec-head p {
  font-size: 16.5px;
  color: var(--c-muted);
  max-width: 640px;
}

.sec-head--on-dark h2 { color: #fff; }
.sec-head--on-dark p { color: rgba(255, 255, 255, .66); }

.grad-text {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-num { font-family: var(--font-num); letter-spacing: .01em; }

/* ================================================================
   卡片 / 玻璃面板
   ================================================================ */
.card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out), border-color .35s;
}

.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: rgba(43, 107, 255, .22);
}

.glass {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--sh-2);
}

.ico-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--g-brand-soft);
  border: 1px solid rgba(43, 107, 255, .16);
  color: var(--c-blue);
}

.ico-tile svg { width: 22px; height: 22px; }

/* 通用图标 */
.i {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================================
   入场动画
   ================================================================ */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--e-out), transform .8s var(--e-out);
  will-change: transform, opacity;
}

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

html.js-reveal [data-reveal][data-delay="1"] { transition-delay: .08s; }
html.js-reveal [data-reveal][data-delay="2"] { transition-delay: .16s; }
html.js-reveal [data-reveal][data-delay="3"] { transition-delay: .24s; }
html.js-reveal [data-reveal][data-delay="4"] { transition-delay: .32s; }
html.js-reveal [data-reveal][data-delay="5"] { transition-delay: .4s; }
html.js-reveal [data-reveal][data-delay="6"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ================================================================
   页脚（全站共用）
   ================================================================ */
.ftr {
  position: relative;
  margin-top: 40px;
  background: var(--g-night);
  color: rgba(255, 255, 255, .7);
  overflow: hidden;
}

.ftr::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 12% -10%, rgba(43, 107, 255, .38), transparent 70%),
    radial-gradient(700px 260px at 88% 8%, rgba(122, 92, 255, .3), transparent 70%);
  pointer-events: none;
}

.ftr__mesh {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.ftr__main {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
  padding-block: 68px 52px;
}

.ftr__brand .brand__text b { color: #fff; }
.ftr__brand .brand__text small { color: rgba(255, 255, 255, .42); }

.ftr__desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.85;
  max-width: 300px;
  color: rgba(255, 255, 255, .6);
}

.ftr__col h4 {
  font-size: 14px;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 18px;
  font-weight: 700;
}

.ftr__col ul { display: grid; gap: 11px; }

.ftr__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  transition: color .25s, padding-left .25s;
}

.ftr__col a:hover { color: #fff; padding-left: 4px; }

.ftr__qr {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}

.ftr__qr-code {
  width: 86px;
  height: 86px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ftr__qr-code svg { width: 74px; height: 74px; }

.ftr__qr-txt {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
}

.ftr__qr-txt b {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 3px;
}

.ftr__bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

.ftr__bottom a { color: rgba(255, 255, 255, .5); }
.ftr__bottom a:hover { color: #fff; }

.ftr__bottom .sep { opacity: .3; }

.ftr__bottom .ftr__spacer { margin-left: auto; }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--g-brand);
  box-shadow: var(--sh-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--e-out), visibility .3s;
}

.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1100px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .hdr__inner { gap: 16px; }
  .ftr__main { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--hdr-h);
    z-index: 89;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 18px 40px rgba(13, 40, 88, .1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s, transform .28s var(--e-out), visibility .28s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav a {
    padding: 13px 12px;
    font-size: 15.5px;
    border-radius: 12px;
  }

  .nav a:hover { background: var(--c-bg); }
  .nav a::after { display: none; }
  .nav a.is-active { background: rgba(43, 107, 255, .08); }

  .burger { display: grid; }
  .hdr__login { padding: 8px 2px; font-size: 14px; }
  .hdr__actions { gap: 8px; }
  .hdr__actions .btn--primary { height: 40px; padding: 0 16px; font-size: 14px; }
}

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

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .hdr__inner { padding-inline: 18px; }
  .brand__text small { display: none; }
  .section { padding-block: 60px; }
  .sec-head { margin-bottom: 34px; }
  .ftr__main { grid-template-columns: 1fr; gap: 32px; padding-block: 52px 36px; }
  .ftr__bottom { font-size: 11.5px; }
  .ftr__bottom .ftr__spacer { display: none; }
  .to-top { right: 16px; bottom: 18px; }
}
