/* ===== 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;
  --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-snap-type: none;
  scroll-padding-top: 0;
}

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.home #top .hero-layout,
body.home #wake .container,
body.home #group .container {
  position: relative;
  z-index: 1;
}
/* 第四屏起加层次 */
body.home .page:nth-of-type(n+4):nth-of-type(even) {
  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 {
  background: var(--bg);
  isolation: isolate;
}
body.home .nav {
  background: rgba(255, 255, 255, 0.82);
}

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: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.brand img { width: 26px; height: 26px; border-radius: var(--r-sm); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.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; }

/* ---------- 按钮 ---------- */
.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 {
  height: 100svh;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 72px 0 40px;
}
.page > .container,
.page > .hero-layout {
  width: 100%;
}
.page.auto {
  height: auto;
  min-height: 100svh;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  padding: 64px 0;
  align-items: center;
  justify-content: flex-start;
}
.page.auto .container {
  width: 100%;
  margin-inline: auto;
}

/* 进入动画：page.active 时触发，子元素用 .anim + --d 控制延迟 */
.anim {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.09s);
  will-change: opacity, transform;
}
.anim.fade { transform: translateY(0) scale(0.98); }
.anim.left { transform: translateX(-44px); }
.anim.right { transform: translateX(44px); }
.anim.zoom { transform: scale(0.9); }
.page.active .anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1 !important; transform: none !important; }
  html { scroll-snap-type: none; }
}

/* ---------- HERO ---------- */
.hero { overflow: hidden; padding-bottom: 40px; 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%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  align-items: center;
  gap: clamp(20px, 3.5vw, 40px);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.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 {
  width: min(300px, 100%);
  margin: 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; }
.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: var(--shadow-lg);
}

/* 应用窗口整屏展示页 */
.window-page.page {
  padding: 48px 0 24px;
  justify-content: flex-start;
}
.window-page .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding-top: 6vh;
  box-sizing: border-box;
}
.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; }
.window-page .media-window { width: min(90%, 800px); }

/* ---------- 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.page.auto {
  padding: 72px 0;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(47, 107, 255, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.32);
}
.features-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}
#features .section-head {
  margin: 0 auto 40px;
  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: 12px;
}
.feature {
  text-align: left;
  padding: 18px 20px;
  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;
}
body.home #download.preset-cta {
  background: #fff;
}
.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;
}
.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; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 52px 0 60px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .brand { font-size: 15px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { width: 100%; font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-height: 820px) {
  .window-page.page { padding: 44px 0 20px; }
  .window-page .container { padding-top: 4vh; }
  .window-page .media-window { width: min(86%, 680px); }
  .window-page h2 { font-size: clamp(22px, 2.8vw, 34px); }
  .mini-points { gap: 8px; }
  .mini-points span { font-size: 10.5px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .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; }
  .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-links a:not(.btn) { display: none; }
  .page:not(.auto) { height: auto; min-height: 100svh; padding: 72px 0; scroll-snap-align: none; scroll-snap-stop: normal; overflow: visible; }
  html { scroll-snap-type: none; }
}
@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%); }
  #features .feature-grid { max-width: 100%; }
  .feature { padding: 16px 18px; }
  .window-page .media-window { 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; }
}
