/* OVO · Sky 首页 —— 浅色液态毛玻璃 × 随机动漫壁纸
   原则：所有文字都落在玻璃面板上，壁纸再亮再暗都不影响阅读。 */
:root {
  --ink: #1a2030;
  --ink2: #465066;
  --dim: #7a8398;
  --a1: #7486ff;            /* 强调色：长春花蓝 → 樱粉 */
  --a2: #ff8db8;
  --a3: #7fd6c8;
  --edge: rgba(255, 255, 255, .62);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: linear-gradient(135deg, #dfe6ff, #fde3ef 50%, #e2f5f1);   /* 壁纸到之前的底色 */
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(116, 134, 255, .3); }

/* ───────── 壁纸层 ───────── */
#wp { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
#wp img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
  animation: drift 48s ease-in-out infinite alternate;
}
#wp img.on { opacity: 1; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
#veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(244, 246, 255, .16) 55%, rgba(244, 246, 255, .34)),
    radial-gradient(80% 60% at 50% 45%, transparent, rgba(30, 36, 60, .10));
}

/* ───────── 液态玻璃 ───────── */
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, .50), rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .30));
  backdrop-filter: blur(22px) saturate(185%) brightness(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(185%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    inset 0 0 24px rgba(255, 255, 255, .18),
    0 24px 60px -24px rgba(28, 36, 72, .38),
    0 2px 8px rgba(28, 36, 72, .06);
}
/* Chromium：背景再加一层流体折射（Safari / Firefox 自动退回普通毛玻璃） */
.refract .glass.liquid {
  backdrop-filter: url(#liquid) blur(16px) saturate(185%) brightness(1.04);
}
/* 跟随指针的高光 */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 25%) var(--my, -10%), rgba(255, 255, 255, .62), transparent 42%);
  transition: opacity .5s;
}
/* 边缘反光：左上亮、右下次亮 */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ───────── 顶栏：居中悬浮的玻璃胶囊 ───────── */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px; border-radius: 999px;
  transition: top .4s, box-shadow .4s;
}
.nav a.lk {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink2);
  transition: background .25s, color .25s;
}
.nav a.lk:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.nav.scrolled { top: 10px; }

/* ───────── 按钮 ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px 0 30px; border-radius: 999px; white-space: nowrap;
  font: 600 15px/1 var(--sans); letter-spacing: .12em; color: #fff;
  background: linear-gradient(180deg, #2b3247 0%, #161b29 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 14px 30px -14px rgba(18, 22, 40, .75);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background .35s;
}
.btn > span { margin-right: -.12em; }
.btn .arrow { position: relative; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 4px rgba(116, 134, 255, .18), 0 18px 36px -14px rgba(18, 22, 40, .8);
}
.btn:hover .arrow { width: 24px; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; }

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 0 #fff, 0 10px 24px -14px rgba(28, 36, 72, .45);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px #fff, 0 0 0 4px rgba(255, 141, 184, .16), 0 14px 30px -14px rgba(28, 36, 72, .5); }
.btn.sm { height: 40px; padding: 0 18px 0 20px; font-size: 13px; letter-spacing: .1em; gap: 10px; }
.btn.sm > span { margin-right: -.1em; }
.btn.sm .arrow { width: 12px; }
.btn.sm:hover .arrow { width: 18px; }

/* ───────── 首屏 ───────── */
/* minmax(0,1fr)：不让按钮的 nowrap 把列撑宽，否则手机上卡片会超出屏幕 */
.hero { min-height: min(100svh, 980px); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 96px 16px 70px; }
.hero-card {
  width: min(900px, 100%); text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 6vw, 72px) clamp(30px, 5vw, 44px);
  border-radius: clamp(28px, 4vw, 40px);
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; letter-spacing: .28em; color: var(--ink2);
  background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 10px var(--a2); }
.title {
  margin: 24px 0 18px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 7.4vw, 92px); line-height: 1.12; letter-spacing: .03em; color: var(--ink);
}
.title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--a1), var(--a2) 60%, #ffb48a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 560px; margin: 0 auto; color: var(--ink2); font-size: clamp(15px, 1.6vw, 17px); }
.lede b { color: var(--ink); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(26, 32, 48, .08);
}
.stat b { display: block; font: 700 clamp(24px, 3vw, 34px)/1.1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.stat + .stat { border-left: 1px solid rgba(26, 32, 48, .08); }

/* ───────── 区块 ───────── */
section.block { padding: 40px 18px; }
.panel { max-width: 1180px; margin: 0 auto; border-radius: 36px; padding: clamp(28px, 5vw, 60px); }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: .36em; font-weight: 600;
  background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 { font: 700 clamp(28px, 4vw, 46px)/1.25 var(--serif); letter-spacing: .02em; margin: 10px 0 12px; color: var(--ink); }
.sub { color: var(--ink2); max-width: 540px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 38px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 面板里的小卡：不再叠 backdrop-filter（嵌套模糊很吃性能），用半透明白 + 描边 */
.tile {
  position: relative; border-radius: 24px; padding: 26px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), inset 0 1px 0 #fff, 0 16px 34px -22px rgba(28, 36, 72, .45);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.tile:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px #fff, 0 0 0 4px rgba(116, 134, 255, .12), 0 24px 44px -22px rgba(28, 36, 72, .55); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile .num { font: 600 12px/1 var(--serif); letter-spacing: .3em; color: var(--dim); }
.tile .ico {
  width: 50px; height: 50px; margin: 22px 0 18px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 22px -10px rgba(116, 134, 255, .8);
}
.tile .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font: 700 19px/1.3 var(--serif); letter-spacing: .04em; margin-bottom: 8px; }
.tile p { font-size: 14px; color: var(--ink2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: 11px; padding: 3px 10px; border-radius: 999px; color: #4a58cf; background: rgba(116, 134, 255, .12); }

/* 航线星图 */
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.realm svg.cst { display: block; width: 100%; height: 100px; margin-bottom: 12px; overflow: visible; }
.realm .cst line { stroke: rgba(116, 134, 255, .45); stroke-width: 1.2; stroke-dasharray: 3 4; }
.realm .cst circle { fill: url(#dotg); filter: drop-shadow(0 0 4px rgba(255, 141, 184, .7)); }
.realm:hover .cst circle { animation: tw 1.8s ease-in-out infinite; }
.realm:hover .cst circle:nth-child(2n) { animation-delay: .6s; }
@keyframes tw { 50% { opacity: .45; } }
.realm h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; }
.realm h3 small { font: 600 12px/1 var(--sans); color: #5a67d8; letter-spacing: .04em; white-space: nowrap; }
.realm ul { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.realm li { font-size: 12px; color: var(--ink2); padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(26, 32, 48, .05); }
.realm li i { font-style: normal; color: var(--dim); margin-left: 6px; font-variant-numeric: tabular-nums; }
.atlas-empty { color: var(--dim); text-align: center; padding: 50px 0; border-radius: 24px; border: 1px dashed rgba(26, 32, 48, .15); }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { text-align: center; padding: 32px 22px; }
.orb {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font: 700 22px/1 var(--serif); color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 0 0 8px rgba(255, 255, 255, .55), 0 14px 30px -10px rgba(116, 134, 255, .8);
}
.step h3 { font: 700 19px/1.3 var(--serif); letter-spacing: .06em; margin-bottom: 6px; }
.step p { color: var(--ink2); font-size: 14px; max-width: 260px; margin: 0 auto; }

/* 规范 */
.pledge { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 5vw, 56px); align-items: center; }
.pledge ul { list-style: none; display: grid; gap: 10px; }
.pledge li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; padding: 12px 16px; }
.pledge li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a3)); }
.pledge li.no::before { background: linear-gradient(135deg, #ff6f91, #ff9a76); }

/* 尾声 + 页脚 */
.finale { text-align: center; }
.finale .h2 { font-size: clamp(30px, 4.6vw, 54px); }
footer { max-width: 1180px; margin: 0 auto 28px; padding: 18px 26px; border-radius: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink2); }
footer .links { display: flex; gap: 20px; }
footer a:hover { color: var(--a1); }

/* 换壁纸 */
#wp-next {
  position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 0; color: var(--ink);
}
#wp-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .6s; }
#wp-next:hover svg { transform: rotate(180deg); }
#wp-next.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#wp-next span {
  position: absolute; right: 56px; white-space: nowrap; font-size: 12px; padding: 6px 10px; border-radius: 10px;
  background: rgba(26, 32, 48, .78); color: #fff; opacity: 0; transform: translateX(6px); transition: .25s; pointer-events: none;
}
#wp-next:hover span { opacity: 1; transform: none; }

#maint {
  position: fixed; z-index: 60; left: 50%; top: 76px; transform: translateX(-50%);
  padding: 8px 18px; border-radius: 999px; font-size: 13px; color: #fff; background: rgba(26, 32, 48, .82);
}
#maint[hidden] { display: none; }

/* ───────── 响应式 ───────── */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .pledge { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { padding: 5px; }
  .nav a.lk { display: none; }
  .nav .btn { margin-left: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .panel { border-radius: 28px; }
  .stat span { letter-spacing: .1em; }
  .hero { padding-top: 84px; }
  .hero-card { padding-left: 18px; padding-right: 18px; }
  .cta .btn { flex: 1 1 140px; padding-left: 18px; padding-right: 18px; }
  .stat b { font-size: 22px; }
  .eyebrow { font-size: 10px; letter-spacing: .18em; }
  /* 手机上去掉折射，只留毛玻璃，省电也省掉低端机的卡顿 */
  .refract .glass.liquid { backdrop-filter: blur(18px) saturate(180%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.still .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.still .hero-card { animation: none !important; }
