/* 海智 SeaMind 网站样式：苹果式毛玻璃
   - 背景是一张“海”的渐变壁纸（纯 CSS，固定不随页面滚动）
   - 导航栏、面板、卡片都是半透明玻璃，透出背后的壁纸
   - 字体用系统字体：国内访问不依赖外部字体服务，Mac 上就是苹方 + SF */

:root {
  --ink: #1d1d1f;
  --mute: #5b6170;
  --line: rgba(255, 255, 255, .55);
  --accent: #0a6ad6;
  --accent-ink: #ffffff;
  --pro-bg: #d8f3a0;
  --pro-ink: #3a5a10;
  --free-bg: #cdeefc;
  --free-ink: #0b5274;
  --danger: #c4372b;

  /* 玻璃材质 */
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 50px -24px rgba(16, 42, 80, .35), 0 2px 8px rgba(16, 42, 80, .06);
  --blur: saturate(180%) blur(28px);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --mute: #a9b0bf;
    --line: rgba(255, 255, 255, .12);
    --accent: #4aa3ff;
    --glass: rgba(28, 32, 44, .5);
    --glass-strong: rgba(36, 40, 54, .72);
    --glass-edge: rgba(255, 255, 255, .14);
    --glass-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 60px -24px rgba(0, 0, 0, .6);
    --pro-bg: #3c5a14; --pro-ink: #e1f7b5;
    --free-bg: #0f4a66; --free-ink: #cdeefc;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: #cfe6f5;
}

/* ---------- 壁纸：浅海 → 深海，带几团光斑 ---------- */
body::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -2;
  background:
    radial-gradient(40vmax 34vmax at 12% 8%, #8fd3f4 0%, transparent 60%),
    radial-gradient(36vmax 30vmax at 88% 12%, #b9a7f5 0%, transparent 62%),
    radial-gradient(44vmax 36vmax at 78% 78%, #4f9de8 0%, transparent 60%),
    radial-gradient(38vmax 32vmax at 18% 86%, #ffc9a8 0%, transparent 60%),
    linear-gradient(180deg, #e6f4fb 0%, #bfe0f3 45%, #8cc3ea 100%);
  filter: saturate(115%);
}
body::after { /* 细微颗粒，避免大面积渐变出现色带 */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body { background: #0b1626; }
  body::before {
    background:
      radial-gradient(40vmax 34vmax at 12% 8%, #1d5f8f 0%, transparent 60%),
      radial-gradient(36vmax 30vmax at 88% 12%, #4b3a8f 0%, transparent 62%),
      radial-gradient(44vmax 36vmax at 78% 78%, #0f4f9a 0%, transparent 60%),
      radial-gradient(38vmax 32vmax at 18% 86%, #7a3f45 0%, transparent 60%),
      linear-gradient(180deg, #0b1a2e 0%, #0a1424 100%);
  }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* 玻璃面板 */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.panel { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); }

/* ---------- 顶栏：悬浮的玻璃条 ---------- */
.nav { position: sticky; top: 12px; z-index: 20; padding-inline: 20px; }
.nav .bar {
  width: min(1120px, 100%); margin-inline: auto; height: 56px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 18px; border-radius: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.crumb { color: var(--mute); font-weight: 500; font-size: 16px; white-space: nowrap; }
.crumb::before { content: "/"; margin-right: 12px; opacity: .45; }
.nav nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--ink); opacity: .78; padding: 7px 12px; border-radius: 10px; }
.nav nav a:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .45); }
@media (prefers-color-scheme: dark) { .nav nav a:hover { background: rgba(255, 255, 255, .1); } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-secondary {
  background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .85); }
@media (prefers-color-scheme: dark) { .btn-secondary:hover { background: rgba(60, 66, 84, .8); } }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 650; line-height: 1;
  padding: 4px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.pro, .tag-pro { background: var(--pro-bg); color: var(--pro-ink); }
.pro { display: inline-block; font-size: 11px; font-weight: 650; line-height: 1; padding: 4px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.tag-free { background: var(--free-bg); color: var(--free-ink); }

/* ---------- 首屏 ---------- */
.hero { padding: 96px 0 36px; text-align: center; }
.hero-icon { width: 108px; height: 108px; margin: 0 auto 28px; border-radius: 24px; filter: drop-shadow(0 18px 30px rgba(16, 60, 120, .3)); }
.hero h1 {
  margin: 0; font-size: clamp(42px, 7vw, 80px); line-height: 1.05;
  font-weight: 760; letter-spacing: -0.04em;
}
.hero .lede { margin: 22px auto 0; max-width: 34em; color: var(--mute); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 14px; font-size: 14px; color: var(--mute); }

/* ---------- 演示：一块“屏幕”里的迷你启动台 ---------- */
.stage { padding: 28px 0 40px; }
.screen {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9; max-height: 640px; width: 100%;
  background:
    radial-gradient(120% 90% at 15% 10%, #6d7fd8 0%, transparent 55%),
    radial-gradient(90% 80% at 85% 20%, #b07cc9 0%, transparent 60%),
    radial-gradient(120% 100% at 60% 110%, #f0a77d 0%, transparent 55%),
    #4a4f86;
  box-shadow: 0 40px 80px -30px rgba(16, 32, 70, .55), 0 0 0 1px rgba(255, 255, 255, .5);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.screen::before { content: ""; position: absolute; inset: 0; background: rgba(40, 42, 60, .28); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.lp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 4% 0 3%; }
.lp-search {
  position: relative; z-index: 1; width: clamp(150px, 22%, 240px); height: clamp(24px, 4.2%, 32px);
  border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25);
  display: flex; align-items: center; gap: 6px; padding: 0 12px; color: rgba(255,255,255,.65); font-size: clamp(11px, 1.2vw, 13px);
}
.lp-search svg { width: 12px; height: 12px; flex: none; }
.lp-viewport { position: relative; z-index: 1; flex: 1; width: 100%; overflow: hidden; margin-top: 3%; }
.lp-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.lp-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(3, 1fr); padding: 0 17%; align-items: center; justify-items: center; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; cursor: default; }
.app-icon { width: clamp(30px, 5.2vw, 62px); aspect-ratio: 1; border-radius: 23%; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .18s ease; }
.app:hover .app-icon { transform: scale(1.06); }
.app-icon svg { width: 52%; height: 52%; color: #fff; }
.app-name { color: #fff; font-size: clamp(9px, 1vw, 12px); font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; }
.folder { background: rgba(255,255,255,.18); padding: 13%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 7%; align-content: start; place-items: stretch; }
.folder i { display: block; width: 100%; border-radius: 26%; aspect-ratio: 1; }
.lp-dots { position: relative; z-index: 1; display: flex; gap: 4px; margin-top: 1%; }
.lp-dots button { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lp-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.38); transition: background-color .2s; }
.lp-dots button[aria-current="true"]::after { background: rgba(255,255,255,.95); }
.stage-caption { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--mute); }
.lp.is-opening .lp-viewport, .lp.is-opening .lp-search, .lp.is-opening .lp-dots { opacity: 0; transform: scale(1.07); }
.lp-viewport, .lp-search, .lp-dots { transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }

/* ---------- 分区 ---------- */
.section { padding: 28px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 720; }
.section-head p { margin: 12px 0 0; color: var(--mute); }

/* ---------- 功能网格 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; list-style: none; margin: 0; padding: 0; }
.feature svg { width: 40px; height: 40px; color: var(--ink); margin-bottom: 12px; }
.feature svg .hl { color: var(--accent); }
.feature h3 { margin: 0; font-size: 16px; font-weight: 620; line-height: 1.4; }
.feature p { margin: 6px 0 0; font-size: 14.5px; color: var(--mute); line-height: 1.55; }
.feature .pro { margin-left: 6px; position: relative; top: -1px; }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { padding: 36px; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.plan.featured { background: var(--glass-strong); }
.plan h3 { margin: 0; font-size: 19px; font-weight: 650; }
.price { margin: 16px 0 4px; font-size: 50px; font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.plan .note { color: var(--mute); font-size: 14.5px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; font-size: 15px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.plan .actions .sub { font-size: 14px; color: var(--mute); }

.steps { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 14.5px; color: var(--mute); }
.steps li strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass-strong); color: var(--ink); font-weight: 650; font-size: 14px;
  border: 1px solid var(--glass-edge);
}

/* ---------- 常见问题 ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--mute); font-size: 15.5px; }
.faq code { font-family: var(--mono); font-size: 13px; background: var(--glass-strong); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- 页脚 ---------- */
.footer { padding: 40px 0 48px; color: var(--mute); font-size: 14px; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

/* ============ 工作室首页 ============ */
.studio-hero { padding: 104px 0 56px; text-align: center; }
.studio-hero img { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px; filter: drop-shadow(0 16px 28px rgba(10, 70, 140, .35)); }
.studio-hero h1 { margin: 0; font-size: clamp(52px, 9vw, 96px); line-height: 1; font-weight: 780; letter-spacing: -0.045em; }
.studio-hero h1 span { display: block; font-size: .36em; letter-spacing: -0.01em; font-weight: 600; color: var(--mute); margin-top: 16px; }
.studio-hero .lede { margin: 24px auto 0; max-width: 30em; color: var(--mute); font-size: clamp(17px, 2vw, 20px); }

.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.app-tile { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.app-tile:hover { transform: translateY(-3px); }
.app-tile .top { display: flex; gap: 18px; align-items: center; }
.app-tile .top img { width: 76px; height: 76px; border-radius: 17px; filter: drop-shadow(0 8px 16px rgba(16, 40, 80, .2)); flex: none; }
.app-tile h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.app-tile h3 a { color: var(--ink); }
.app-tile .tagline { margin: 2px 0 6px; font-size: 15px; font-weight: 550; }
.app-tile .summary { margin: 0; color: var(--mute); font-size: 15px; flex: 1; }
.app-tile .meta { font-size: 13px; color: var(--mute); }
.app-tile .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-tile.is-next { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1.5px dashed rgba(255, 255, 255, .75); box-shadow: none; justify-content: center; align-items: center; text-align: center; min-height: 240px; color: var(--mute); }
.app-tile.is-next:hover { transform: none; }
@media (prefers-color-scheme: dark) { .app-tile.is-next { border-color: rgba(255, 255, 255, .2); } }

.about p { margin: 0 0 12px; color: var(--mute); max-width: 40em; }

/* ============ 领取激活码页 ============ */
.claim { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 64px 0; }
.claim-box { width: min(580px, 100% - 40px); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 48px); }
.claim h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 740; }
.claim .lede { color: var(--mute); margin: 12px 0 28px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .row { display: flex; gap: 10px; }
.field input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--radius-md);
  border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink);
  font: 500 16px/1 var(--mono); letter-spacing: .02em;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .hint { margin: 10px 0 0; font-size: 14px; color: var(--mute); }
.field .error { margin: 10px 0 0; font-size: 14px; color: var(--danger); min-height: 1.4em; }
.result { margin-top: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.result[hidden] { display: none; }
.result h2 { margin: 0 0 14px; font-size: 18px; }
.key { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 650 clamp(17px, 3vw, 23px)/1.2 var(--mono); letter-spacing: .04em; padding: 14px 16px; background: rgba(255, 255, 255, .6); border-radius: var(--radius-md); word-break: break-all; }
@media (prefers-color-scheme: dark) { .key { background: rgba(0, 0, 0, .25); } }
.key span { flex: 1; min-width: 12em; }
.result ol { margin: 16px 0 0; padding-left: 20px; color: var(--mute); font-size: 15px; }

/* ---------- 免费软件页面：隐藏专业版相关内容 ---------- */
[data-free-only] { display: none; }
.is-free [data-free-only] { display: revert; }
.is-free [data-pro-only], .is-free .feature .pro { display: none !important; }

/* ---------- 适配 ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lp-page { padding: 0 6%; grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 600px) {
  .nav { padding-inline: 10px; }
  .nav nav a:not(.keep) { display: none; }
  .crumb { display: none; }
  .hero, .studio-hero { padding-top: 64px; }
  .screen { aspect-ratio: 4 / 3.4; }
  .lp-page { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
  .features { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

/* 首页底部的小号“关于” */
.about-mini { border-radius: var(--radius-lg); padding: 20px 26px; display: flex; gap: 20px; align-items: baseline; }
.about-mini h2 { margin: 0; font-size: 17px; font-weight: 650; white-space: nowrap; }
.about-mini p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 600px) { .about-mini { flex-direction: column; gap: 6px; } }
