/* ===== Ringflow 官网 — 翻页式高级风 ===== */
:root {
  --bg: #f8f9fc;
  --bg-soft: #f1f3f7;
  --bg-sunken: #eceef2;
  --ink: #0a0b0d;
  --ink-2: #43474e;
  --muted: #82868e;
  --line: rgba(10, 11, 13, 0.08);
  --line-strong: rgba(10, 11, 13, 0.15);
  --accent: #2f6bff;
  --accent-ink: #1e4fd6;
  --r: 8px;
  --r-sm: 5px;
  --r-pill: 6px;
  --maxw: 1120px;
  --nav-height: 56px;
  --shadow-sm: 0 1px 2px rgba(10, 11, 13, 0.05);
  --shadow: 0 12px 40px rgba(10, 11, 13, 0.08);
  --shadow-lg: 0 30px 80px rgba(10, 11, 13, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: 0;
}

@media (min-width: 901px) {
  html.home-smooth-scroll {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 首页：淡色渐变底（随页面滚动），各屏分层叠加 */
body.home {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 88% 58% at 8% -8%, rgba(47, 107, 255, 0.12), transparent 58%),
    radial-gradient(ellipse 72% 48% at 94% 6%, rgba(122, 166, 255, 0.09), transparent 54%),
    radial-gradient(ellipse 76% 52% at 50% 108%, rgba(47, 107, 255, 0.07), transparent 62%),
    linear-gradient(180deg, #f9fafc 0%, #f4f6fa 48%, #f8f9fc 100%);
}
/* 前三屏纯白底 + 局部装饰渐变（避开轮盘区域） */
body.home .page:nth-of-type(-n+3) {
  background: #fff;
  overflow: hidden;
}
/* 第四屏起加层次，让 body 渐变透出来 */
body.home .page:nth-of-type(n+4):nth-of-type(even):not(#features):not(#download):not(#pricing) {
  background: rgba(255, 255, 255, 0.42);
}
body.home .page:nth-of-type(n+4):nth-of-type(odd):not(.window-page):not(#features) {
  background: transparent;
}
body.home .window-page {
  isolation: isolate;
}
body.home .nav {
  background: rgba(255, 255, 255, 0.82);
}
body.home .footer {
  background: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 26px; min-width: 0; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; border-radius: var(--r-sm); }
.nav-links { display: flex; align-items: center; gap: 22px; min-width: 0; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-size: 13.5px; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-right .nav-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.nav-right .nav-pro svg { color: var(--accent-ink); }
.nav-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 6px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.nav-auth-pending {
  display: inline-block;
  width: 72px;
  height: 28px;
}
.nav-login { letter-spacing: 0; }
.nav-user {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-2); font-size: 13px; text-decoration: none;
  padding: 4px 8px; border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-user:hover { background: rgba(10,11,13,.06); color: var(--ink); }
.nav-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1;
  user-select: none;
}
.nav-email {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-2); font-size: 13px;
}
.nav-logout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.nav-logout-btn:hover {
  background: rgba(47, 107, 255, 0.08);
  color: var(--accent);
}
.nav-logout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 10px 18px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* ---------- 翻页 page ---------- */
.page {
  /* 整屏高度含顶栏占位，避免 snap 后视口底部露出下一页 */
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  padding: var(--nav-height) 0 0;
  box-sizing: border-box;
  overflow: hidden;
}
.page > .container,
.page > .hero-layout {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  align-self: center;
  max-height: calc(100svh - var(--nav-height));
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scrollbar-width: none;
}
.page > .container::-webkit-scrollbar,
.page > .hero-layout::-webkit-scrollbar {
  display: none;
}
.page > .hero-layout {
  display: grid;
}

/* 进入动画：page.active 时触发，子元素用 .anim + --d 控制延迟 */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.46s var(--ease), transform 0.46s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.055s);
}
.anim.fade { transform: translateY(0) scale(0.98); }
.anim.left,
.anim.right { transform: translateY(24px); }
.anim.zoom { transform: translateY(12px) scale(0.96); }
.page.active .anim {
  opacity: 1;
  transform: none;
  will-change: opacity, transform;
}
.page.has-animated .anim {
  transition-delay: 0s;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1 !important; transform: none !important; }
  html.home-smooth-scroll { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero { overflow: hidden; justify-content: center; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 60% at 20% 26%, rgba(47, 107, 255, 0.12), transparent 78%),
    radial-gradient(34% 38% at 8% 72%, rgba(79, 139, 255, 0.05), transparent 75%),
    radial-gradient(30% 32% at 86% 86%, rgba(47, 107, 255, 0.04), transparent 72%),
    linear-gradient(180deg, rgba(47, 107, 255, 0.035) 0%, rgba(255, 255, 255, 0) 72%);
}
body.home #wake::before,
body.home #group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.home #wake::before {
  background:
    radial-gradient(52% 54% at 14% 38%, rgba(47, 107, 255, 0.11), transparent 70%),
    radial-gradient(36% 34% at 6% 88%, rgba(122, 166, 255, 0.06), transparent 72%),
    radial-gradient(28% 28% at 92% 12%, rgba(47, 107, 255, 0.04), transparent 68%);
}
body.home #group::before {
  background:
    radial-gradient(52% 54% at 86% 38%, rgba(47, 107, 255, 0.11), transparent 70%),
    radial-gradient(36% 34% at 94% 88%, rgba(122, 166, 255, 0.06), transparent 72%),
    radial-gradient(28% 28% at 8% 12%, rgba(47, 107, 255, 0.04), transparent 68%);
}
body.home #features {
  background:
    radial-gradient(ellipse 82% 52% at 50% 100%, rgba(47, 107, 255, 0.1), transparent 68%),
    linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.9) 34%,
      rgba(255, 255, 255, 0.48) 62%,
      rgba(255, 255, 255, 0.12) 84%,
      rgba(255, 255, 255, 0.92) 100%
    );
}
body.home #profiles.window-page {
  background:
    radial-gradient(ellipse 82% 52% at 50% 0%, rgba(47, 107, 255, 0.1), transparent 68%),
    radial-gradient(38% 36% at 12% 16%, rgba(122, 166, 255, 0.05), transparent 72%),
    radial-gradient(34% 32% at 88% 14%, rgba(47, 107, 255, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 38%, #fff 100%);
}
body.home #download.preset-cta {
  background:
    radial-gradient(40% 36% at 16% 28%, rgba(47, 107, 255, 0.08), transparent 72%),
    radial-gradient(34% 32% at 84% 62%, rgba(122, 166, 255, 0.06), transparent 70%),
    radial-gradient(26% 24% at 58% 82%, rgba(47, 107, 255, 0.04), transparent 68%),
    linear-gradient(128deg, #fff 0%, #fff 64%, rgba(236, 242, 255, 0.42) 100%);
}
body.home #pricing.pricing-page {
  background:
    radial-gradient(36% 34% at 76% 24%, rgba(47, 107, 255, 0.07), transparent 70%),
    radial-gradient(32% 30% at 18% 72%, rgba(122, 166, 255, 0.05), transparent 72%),
    radial-gradient(22% 20% at 46% 48%, rgba(47, 107, 255, 0.04), transparent 66%),
    linear-gradient(112deg, #fff 0%, #fff 58%, rgba(238, 244, 255, 0.38) 100%);
}
body.home #download.preset-cta > .hero-bg {
  display: none;
}
body.home #top .hero-layout,
body.home #wake .container,
body.home #group .container,
body.home .page > .container,
body.home .page > .hero-layout {
  position: relative;
  z-index: 1;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  align-items: center;
  gap: clamp(20px, 3.5vw, 40px);
  width: 100%;
  margin: 0;
  padding-block: clamp(16px, 3vh, 32px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 26px;
}
.hero-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero h1 {
  font-size: clamp(30px, 4.8vw, 52px); line-height: 1.08; letter-spacing: -0.036em;
  margin: 0; font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 10%, #7aa6ff 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(14px, 1.45vw, 16px); color: var(--ink-2); max-width: 42ch; margin: 0; line-height: 1.55; }
.hero-meta {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 0;
}
.hero-meta span {
  font-size: 11.5px; color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}
.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center; line-height: 0;
}
.hero-wheel.site-wheel-mount,
.media-wheel.site-wheel-mount {
  width: min(var(--wheel-display-size, 300px), 100%);
  margin: 0 auto;
}
.media-wheel--folder.site-wheel-mount {
  width: min(360px, 100%);
}

/* ---------- 前三屏：居中收紧 ---------- */
@media (min-width: 901px) {
  body.home #top .hero-layout,
  body.home #wake .showcase,
  body.home #group .showcase {
    max-width: 940px;
    margin-inline: auto;
  }

  body.home #top .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: clamp(16px, 2.8vw, 28px);
    padding-block: clamp(6px, 1.5vh, 16px);
  }

  body.home #top .hero-copy { gap: 20px; }
  body.home #top .hero-top { gap: 12px; }

  body.home #wake .showcase,
  body.home #group .showcase {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(18px, 3vw, 36px);
  }

  body.home #wake .showcase-copy .tag,
  body.home #group .showcase-copy .tag { margin-bottom: 10px; }
  body.home #wake .showcase-copy h2,
  body.home #group .showcase-copy h2 { margin-bottom: 10px; }
  body.home #wake .showcase-copy p,
  body.home #group .showcase-copy p { margin-bottom: 12px; }
  body.home #wake .showcase-copy li,
  body.home #group .showcase-copy li { padding: 4px 0; }
}

/* ---------- 展示页（图文两栏） ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.showcase.rev .showcase-media { order: 2; }
.showcase-copy .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.showcase-copy h2 { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.032em; line-height: 1.08; margin: 0 0 14px; font-weight: 680; }
.showcase-copy p { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); margin: 0 0 16px; max-width: 46ch; line-height: 1.55; }
.showcase-copy ul { list-style: none; margin: 0; padding: 0; }
.showcase-copy li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.showcase-copy li::before { content: ""; margin-top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.showcase-media { display: flex; justify-content: center; align-items: center; line-height: 0; }
.media-wheel {
  width: min(360px, 100%);
  margin-inline: auto;
}
.media-window {
  width: min(86%, 880px);
  margin-inline: auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(10, 11, 13, 0.055);
}

/* 应用窗口整屏展示页 */
.window-page .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 14px);
  padding-block: clamp(12px, 2vh, 24px);
}
.window-page .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin: 0; }
.window-page h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; margin: 0; font-weight: 680; white-space: nowrap; }
.window-page .sub { font-size: clamp(15px, 1.55vw, 17px); color: var(--ink-2); margin: 0 auto; max-width: none; line-height: 1.45; white-space: nowrap; }
.media-window-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  isolation: isolate;
}
.media-window-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-44px, -5vh, -24px);
  z-index: -1;
  width: min(76%, 720px);
  height: clamp(72px, 12vh, 130px);
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.16), rgba(47, 107, 255, 0)),
    radial-gradient(ellipse at center, rgba(10, 11, 13, 0.18), rgba(10, 11, 13, 0) 68%);
  filter: blur(26px);
  opacity: 0.72;
  pointer-events: none;
}
.window-page .media-window-wrap {
  width: min(90%, 800px);
  margin-top: clamp(28px, 5vh, 64px);
  margin-inline: auto;
}
.window-page .media-window {
  width: 100%;
}

/* ---------- section head ---------- */
.section-head { max-width: 64ch; margin: 0 auto 52px; text-align: center; }
.section-head .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 50px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; font-weight: 680; }
.section-head .sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); margin: 0; }

/* 功能与动作 */
.features-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(12px, 2vh, 24px);
}
#features .section-head {
  margin: 0 auto clamp(16px, 2.5vh, 28px);
  width: 100%;
  max-width: 52ch;
}
#features .section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
}
#features .section-head .sub {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}
#features .feature-grid {
  width: 100%;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feature {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.feature:hover {
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: 0 10px 28px rgba(10, 11, 13, 0.07);
  transform: translateY(-2px);
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.feature .ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, rgba(47, 107, 255, 0.1), rgba(47, 107, 255, 0.03));
  border: 1px solid rgba(47, 107, 255, 0.14);
}
.feature .ic svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.feature h3 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.feature p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ---------- 动作清单 ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-chip { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; background: var(--bg); transition: border-color 0.2s ease, transform 0.2s ease; }
.action-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.action-chip strong { display: block; font-size: 14px; margin-bottom: 5px; font-weight: 600; }
.action-chip span { font-size: 13px; color: var(--muted); }

/* ---------- 应用配置页：三点说明 ---------- */
.mini-points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 960px; width: 100%; margin: 0 auto; text-align: left;
}
.mini-points > div { padding-top: 10px; border-top: 2px solid var(--line); }
.mini-points strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; white-space: nowrap; }
.mini-points span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- 预设库 CTA（重设计） ---------- */
.preset-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.preset-cta > .hero-bg {
  inset: 0;
  background:
    radial-gradient(58% 52% at 50% 22%, rgba(47, 107, 255, 0.1), transparent 76%),
    radial-gradient(38% 38% at 10% 58%, rgba(122, 166, 255, 0.06), transparent 74%),
    radial-gradient(34% 34% at 90% 52%, rgba(47, 107, 255, 0.05), transparent 72%),
    linear-gradient(180deg, rgba(47, 107, 255, 0.03) 0%, rgba(255, 255, 255, 0) 72%);
}
.preset-cta .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(12px, 2vh, 28px);
}
.preset-cta .tag { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.preset-cta h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; font-weight: 700; }
.preset-cta .sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); margin: 0 auto 32px; max-width: 52ch; }
.preset-cta .hero-actions { justify-content: center; }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; margin: 0 auto 36px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 14px; color: var(--ink-2); background: var(--bg);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.cat-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.8; }

/* ---------- 官网价格 ---------- */
.pricing-page > .container {
  padding-block: clamp(12px, 2vh, 24px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(10, 11, 13, 0.06);
}
.pricing-card.featured {
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow: 0 22px 58px rgba(47, 107, 255, 0.13);
}
.pricing-label {
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: rgba(47, 107, 255, 0.09);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}
.pricing-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pricing-label-recommend {
  background: rgba(245, 158, 11, 0.14);
  color: #9a4f00;
}
.pricing-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.pricing-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.pricing-card .price {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.pricing-card .price span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.pricing-card .btn {
  margin-top: auto;
  justify-content: center;
}
.pricing-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.pricing-message[data-tone="error"] { color: #b42318; }
.pricing-download-hint {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}
.pricing-download-link {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pricing-download-link:hover { opacity: 0.8; }

/* ---------- 官网购买弹窗 ---------- */
.purchase-modal[hidden] { display: none; }
.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.purchase-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.42);
  backdrop-filter: blur(5px);
}
.purchase-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(10, 11, 13, 0.12);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.purchase-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.purchase-modal-close:hover { color: var(--ink); background: var(--bg-soft); }
.purchase-modal-dialog h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.purchase-modal-subtitle { margin: 8px 0 20px; color: var(--ink-2); font-size: 14px; }
.purchase-plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.purchase-renewal-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--r-sm, 8px);
  background: rgba(47, 107, 255, 0.06);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.purchase-renewal-note[hidden] { display: none; }
.purchase-plan-option {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.purchase-plan-option:hover,
.purchase-plan-option.is-selected { border-color: var(--accent); background: rgba(47, 107, 255, 0.06); }
.purchase-plan-option span { display: grid; gap: 3px; min-width: 0; }
.purchase-plan-option strong { font-size: 14px; }
.purchase-plan-option small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.purchase-coupon-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}
.purchase-coupon-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.purchase-coupon-fields[hidden] { display: none; }
.purchase-coupon-input-row { display: flex; gap: 8px; }
.purchase-coupon-input-row input { min-width: 0; flex: 1; }
.purchase-coupon-message,
.purchase-modal-message { min-height: 21px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.purchase-coupon-message[data-tone="error"],
.purchase-modal-message[data-tone="error"] { color: #b42318; }
.purchase-coupon-message[data-tone="success"] { color: #047857; }
.purchase-price-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 107, 255, 0.16);
  border-radius: var(--r-sm);
  background: rgba(47, 107, 255, 0.05);
  color: var(--ink-2);
  font-size: 13px;
}
.purchase-price-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.purchase-price-summary .price-original { color: var(--muted); }
.purchase-price-summary strong { color: #047857; }
.purchase-price-final { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); }
.purchase-price-final strong { color: var(--accent-ink); font-size: 20px; }
.purchase-modal-actions { margin-top: 16px; }
.purchase-modal-message { text-align: center; }
.purchase-modal-open { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-download { letter-spacing: 0; }

/* ---------- 首页左侧刻度轴 ---------- */
.page-rail {
  position: fixed;
  left: max(4px, calc((100vw - var(--maxw)) / 2 - 142px));
  top: calc(var(--nav-height) + (100svh - var(--nav-height)) * 0.5);
  transform: translateY(-50%);
  z-index: 40;
  width: 84px;
  pointer-events: none;
}
.page-rail-viewport {
  height: min(240px, calc(100svh - var(--nav-height) - 80px));
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.page-rail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.42s var(--ease);
  will-change: transform;
}
.page-rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.page-rail-tick {
  flex: none;
  width: 10px;
  height: 1px;
  border-radius: 1px;
  background: rgba(10, 11, 13, 0.18);
  transition: width 0.32s var(--ease), height 0.32s var(--ease), background 0.32s var(--ease), opacity 0.32s var(--ease);
  opacity: 0.55;
}
.page-rail-label {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.42;
  transition: color 0.32s var(--ease), opacity 0.32s var(--ease), font-weight 0.32s var(--ease);
  white-space: nowrap;
}
.page-rail-item:hover .page-rail-label,
.page-rail-item:hover .page-rail-tick {
  opacity: 0.82;
}
.page-rail-item.is-active .page-rail-tick {
  width: 24px;
  height: 2px;
  background: var(--accent);
  opacity: 1;
}
.page-rail-item.is-active .page-rail-label {
  color: var(--ink);
  opacity: 1;
  font-weight: 650;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0 36px;
  background: var(--ink);
  color: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.footer .brand { font-size: 15px; color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #fff; opacity: 0.88; }
.footer-links a:hover { opacity: 1; }
.footer-legal { width: 100%; font-size: 13px; color: #fff; opacity: 0.72; margin: 4px 0 0; }

@media (max-height: 820px) {
  .window-page .media-window-wrap {
    width: min(86%, 680px);
    margin-top: clamp(20px, 3.6vh, 40px);
  }
  .window-page h2 { font-size: clamp(22px, 2.8vw, 34px); }
  .mini-points { gap: 8px; }
  .mini-points span { font-size: 10.5px; }
  .feature { padding: 12px 14px; }
  .pricing-card { min-height: 0; padding: 18px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .anim.left,
  .anim.right {
    transform: translateY(38px);
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
    text-align: center;
  }
  .hero-copy { align-items: center; text-align: center; gap: 22px; }
  .hero-top { align-items: center; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .showcase.rev .showcase-copy { order: 1; }
  .showcase.rev .showcase-media { order: 2; }
  .showcase-copy p { margin-left: auto; margin-right: auto; }
  .showcase-copy ul { display: inline-block; text-align: left; }
  .nav-left { gap: 12px; }
  .nav-links { display: none; }
  .nav-right { gap: 10px; }
  .page-rail { display: none; }
  html.home-smooth-scroll { scroll-behavior: auto; }
  .nav-auth,
  .nav-auth a,
  .nav-auth button { display: inline-flex; }
  .page {
    height: auto;
    min-height: calc(100svh - var(--nav-height));
    padding: 48px 0;
    overflow: visible;
  }
  body.home .page {
    padding-top: 0;
  }
  .page > .container,
  .page > .hero-layout {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 900px) {
  .window-page h2,
  .window-page .sub { white-space: normal; }
  .mini-points strong { white-space: normal; }
}
@media (max-width: 640px) {
  .mini-points { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .mini-points > div { border-top: none; padding-top: 0; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .page { padding: 64px 0; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero-lead { font-size: 15px; }
  .hero-wheel { width: min(240px, 72vw); }
  .hero-meta span { font-size: 11px; padding: 4px 9px; }
  .media-wheel { width: min(280px, 88%); }
  .media-wheel--folder.site-wheel-mount { width: min(300px, 92%); }
  #features .feature-grid { max-width: 100%; }
  .feature { padding: 16px 18px; }
  .window-page .media-window-wrap { width: min(92%, 100%); }
  .showcase-copy h2, .window-page h2, .preset-cta h2 { font-size: clamp(24px, 7.5vw, 32px); }
  .showcase-copy p, .window-page .sub, .preset-cta .sub { font-size: 15px; }
  .showcase-copy li { font-size: 14px; }
  .cat-chip { font-size: 13px; padding: 8px 13px; }
  .purchase-modal { padding: 12px; }
  .purchase-modal-dialog { max-height: calc(100svh - 24px); padding: 24px 18px 20px; }
  .purchase-plan-options { grid-template-columns: 1fr; }
  .purchase-plan-option { padding: 12px 14px; }
}
