/* LIN STUDIO 官网 — 现代暗色主题 + 动效 */

:root {
  --bg: #06060c;
  --bg-elevated: #0e0e18;
  --surface: #12121f;
  --surface-hover: #181828;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5fa;
  --muted: #9494a8;
  --primary: #7c5cfc;
  --primary-soft: rgba(124, 92, 252, 0.18);
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --cyan: #22d3ee;
  --success: #34d399;
  --max: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 80px rgba(124, 92, 252, 0.22);
  --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --reveal-duration: 1.15s;
  --reveal-offset: 24px;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a78bfa; }

img { max-width: 100%; height: auto; display: block; }

/* ---- 背景氛围 ---- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7c5cfc 0%, transparent 70%);
  top: -120px; left: -80px;
}

.orb-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  top: 20%; right: -100px;
  animation-delay: -6s;
}

.orb-c {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -12s;
  opacity: 0.25;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ---- 导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  width: 100%;
  background: rgba(6, 6, 12, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 12, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: var(--surface);
}

/* 尺寸与 brand-head.css 保持一致，避免切换页面时字标跳动 */
.brand-text {
  box-sizing: border-box;
  display: inline-block;
  width: 110px;
  height: 21px;
  overflow: hidden;
  font-family: "LIN Brand", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.32px;
  font-weight: 800;
  font-synthesis: none;
  font-style: normal;
  line-height: 21px;
  letter-spacing: 0.9792px;
  white-space: nowrap;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-auth-link {
  display: inline-block;
  min-width: 4.75em;
  text-align: center;
}

html[data-auth="in"] .nav-auth-guest { display: none; }
html:not([data-auth="in"]) .nav-auth-user { display: none; }

.login-modal.is-mandatory-bind .login-modal-backdrop {
  pointer-events: none;
}

.login-modal.is-mandatory-bind .login-modal-panel {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(135deg, #8b6dff 0%, #7c5cfc 50%, #6344f5 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.35);
}

.btn-primary:hover { color: white; box-shadow: 0 12px 40px rgba(124, 92, 252, 0.45); }

.btn-accent {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  color: #1a1200;
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.25);
}

.btn-accent:hover { color: #1a1200; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* ---- 主内容 ---- */
main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.page-home main {
  padding-bottom: 100px;
}

/* ---- Hero ---- */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 48px 0 80px;
}

.hero-copy { max-width: min(100%, 640px); }

.hero-headline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2.5vw, 28px);
  margin-bottom: 20px;
}

.hero-title-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 8.5em;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-title-mascot {
  flex: 0 0 auto;
  width: clamp(150px, 26vw, 240px);
  height: auto;
  align-self: center;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 40px rgba(124, 92, 252, 0.4));
  animation: mascot-bob 5s ease-in-out infinite;
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 0%, #c4b5fd 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-beta-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* 下载下拉菜单 */
.download-dropdown {
  position: relative;
  display: inline-flex;
}

.download-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.download-toggle .chevron {
  transition: transform 0.3s ease;
}

.download-dropdown.open .chevron {
  transform: rotate(180deg);
}

.download-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: rgba(18, 18, 31, 0.35);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
}

.download-dropdown.open .download-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.download-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-family: inherit;
}

.download-option:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.download-option.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.45;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero 视觉区 */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.visual-glow {
  position: absolute;
  inset: 10% 5% 5% 5%;
  background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.35), transparent 65%);
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1.05); }
}

.screenshot-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-glow), 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.15s ease-out;
  animation: float-screen 6s ease-in-out infinite;
}

@keyframes float-screen {
  0%, 100% { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0); }
  50%      { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-10px); }
}

.frame-chrome {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.frame-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.frame-chrome span:first-child { background: #ff5f57; }
.frame-chrome span:nth-child(2) { background: #febc2e; }
.frame-chrome span:nth-child(3) { background: #28c840; }

.screenshot-frame img { width: 100%; }

/* ---- 区块通用 ---- */
.section { padding: 80px 0 40px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* Bento 网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.bento-card:hover {
  border-color: rgba(124, 92, 252, 0.35);
  background: var(--surface-hover);
}

.bento-wide { grid-column: span 2; }

.bento-accent {
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.12), rgba(251, 191, 36, 0.06));
  border-color: rgba(124, 92, 252, 0.3);
}

.compat-note {
  margin-top: 28px;
  text-align: center;
  opacity: 0.4 !important;
}

.compat-note p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bento-icon { font-size: 1.6rem; margin-bottom: 12px; }

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.bento-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Showcase */
.showcase-section {
  padding: 80px 0;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(34, 211, 238, 0.04));
  border: 1px solid var(--border);
}

.check-list {
  list-style: none;
  margin-top: 24px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.showcase-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease;
}

.showcase-frame:hover { transform: scale(1.02); }

/* Mascot 区块 */
.mascot-section { padding: 60px 0 80px; }

.mascot-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.mascot-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 92, 252, 0.15), transparent 50%);
  pointer-events: none;
}

.mascot-hero-img {
  width: min(280px, 40%);
  flex-shrink: 0;
  filter: drop-shadow(0 16px 48px rgba(124, 92, 252, 0.3));
  animation: mascot-bob 5s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.mascot-copy { position: relative; }

/* 下载面板 */
.download-section {
  scroll-margin-top: 88px;
  padding: 48px 24px 64px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.download-soon {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

/* 登录弹窗 */
body.login-modal-open { overflow: hidden; }

.login-modal[hidden] { display: none; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.login-modal-panel {
  position: relative;
  width: min(100%, 420px);
  border-radius: 20px;
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.login-modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.login-modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.login-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.login-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.login-modal-body {
  padding: 20px;
  min-height: 400px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.login-pane { display: none; }
.login-pane.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 360px;
}

.login-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.login-message.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.login-message.is-success {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.login-message.is-info {
  background: rgba(124, 92, 252, 0.12);
  color: #c4b5fd;
}

.login-field {
  display: block;
  margin-bottom: 14px;
}

.login-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.login-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
}

.login-field input:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.45);
}

.login-code-row {
  display: flex;
  gap: 10px;
}

.login-code-row input { flex: 1; min-width: 0; }

.login-submit {
  width: 100%;
  margin-top: 6px;
}

.login-wechat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 240px;
  justify-content: center;
  flex: 1;
}

.login-qr {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.login-wechat-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.checkout-body {
  text-align: center;
}

.checkout-plan {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkout-plan::before {
  content: '订阅方案：';
}

.checkout-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 220px;
  justify-content: center;
}

.checkout-body [data-checkout-mock] {
  margin-top: 12px;
}

/* 订阅页 */
.pricing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 48px 24px 64px;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 720px;
  width: 100%;
}

.price-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  padding: 20px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-chip-highlight {
  border-color: rgba(124, 92, 252, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.2);
}

.price-chip-name {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.price-chip-price {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.price-chip-price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-hint {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.account-main {
  max-width: 720px;
}

.page-account .account-loading {
  margin: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 252, 0.28);
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.14), rgba(34, 211, 238, 0.06));
  padding: 28px 28px 24px;
}

.account-hero-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.35), transparent 70%);
  pointer-events: none;
}

.account-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-avatar-picker {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: calc(112px * 11 / 40);
}

.account-avatar {
  width: 112px;
  height: 112px;
  border-radius: calc(112px * 11 / 40);
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  display: block;
  transition: transform 0.25s, border-color 0.25s;
}

.account-avatar-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: calc(112px * 11 / 40);
  background: rgba(6, 6, 12, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.account-avatar-picker:hover .account-avatar-mask,
.account-avatar-picker:focus-within .account-avatar-mask {
  opacity: 1;
}

.account-avatar-picker:hover .account-avatar {
  transform: scale(1.02);
  border-color: rgba(124, 92, 252, 0.5);
}

.account-hero-meta {
  flex: 1;
  min-width: 0;
}

.account-nickname-edit {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.account-nickname-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 6, 12, 0.45);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.account-nickname-input:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.account-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.account-id-label {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font);
}

.account-vip-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-vip-pill.is-active {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.account-vip-pill.is-none {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-vip-pill.is-expired {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.account-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.account-panel-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.account-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-row:last-child {
  border-bottom: none;
}

.account-row-text {
  min-width: 0;
}

.account-row-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.account-row-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}

.account-row-btn {
  flex-shrink: 0;
  border: 1px solid rgba(124, 92, 252, 0.35);
  background: rgba(124, 92, 252, 0.12);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.account-row-btn:hover {
  background: rgba(124, 92, 252, 0.22);
  border-color: rgba(124, 92, 252, 0.55);
}

.account-panel-vip {
  display: flex;
  flex-direction: column;
}

.account-vip-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.account-vip-line {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.account-footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.account-logout {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
}

.account-input:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.45);
}

.account-pwd-hint {
  margin: 0;
  padding: 14px 20px 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.account-pwd-body {
  padding-top: 16px;
}

.account-pane-desc {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.account-pwd-panel .login-tab:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.account-pwd-panel .login-tab:not(:disabled) {
  cursor: pointer;
}

@media (max-width: 720px) {
  .account-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .account-nickname-edit {
    flex-direction: column;
    width: 100%;
  }

  .account-nickname-edit .btn {
    width: 100%;
  }

  .account-panels {
    grid-template-columns: 1fr;
  }

  .account-row {
    flex-wrap: wrap;
  }

  .account-row-btn {
    width: 100%;
    text-align: center;
  }
}

/* legacy account helpers (password modal) */
.account-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.account-verify-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.account-card {
  margin-top: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* CTA */
.cta-section { padding: 40px 0 20px; }

.cta-card {
  text-align: center;
  padding: 56px 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(99, 68, 245, 0.08));
  border: 1px solid rgba(124, 92, 252, 0.35);
  box-shadow: var(--shadow-glow);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- 滚动入场动画 ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-offset, 24px));
  transition: opacity var(--reveal-duration, 1.15s) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1)),
              transform var(--reveal-duration, 1.15s) var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-sub .section-title[data-reveal] {
  --reveal-duration: 1.75s;
  --reveal-offset: 36px;
}

/* ---- 子页面兼容样式 ---- */
.page-sub main {
  padding-top: 48px;
  padding-bottom: 32px;
}

.payment-result-main {
  text-align: center;
  padding-top: 80px;
}

.payment-result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.payment-result-main .section-sub {
  margin-bottom: 0;
}

.payment-result-btn {
  margin-top: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

.hero-card {
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.15), rgba(251, 191, 36, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 64px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.25s;
}

.price-card[data-reveal] {
  --reveal-duration: 1.75s;
  --reveal-offset: 32px;
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    border-color 0.25s;
}

.price-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 252, 0.35);
  transition: transform 0.25s, border-color 0.25s;
}

.price-card.highlight {
  border-color: rgba(124, 92, 252, 0.6);
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.25), var(--shadow-glow);
}

.badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

.price-card ul { list-style: none; margin: 16px 0 20px; }
.price-card li { color: var(--muted); font-size: 0.9rem; padding: 4px 0; }
.price-card li::before { content: "✓ "; color: var(--success); }

.price-card .price-buy {
  width: 100%;
  margin-top: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.92rem;
}

.compare-table[data-reveal] {
  --reveal-duration: 1s;
  --reveal-offset: 20px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  text-align: left;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(124, 92, 252, 0.25); }

.faq-item h3 { font-size: 1rem; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 0.92rem; }

.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #fde68a;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
/* ---- Footer 紧凑布局 ---- */
.footer-brand {
  display: none; /* 底部不重复品牌标识，header 已有 */
}
.footer-links {
  display: inline-flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links + .footer-links { display: none; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal {
  font-size: 0.73rem;
  color: rgba(148, 148, 168, 0.45);
  margin-top: 6px;
}

.footer-email {
  font-size: 0.78rem;
  color: rgba(148, 148, 168, 0.55);
  margin-top: 2px;
}

.footer-email a {
  color: rgba(148, 148, 168, 0.7);
  text-decoration: none;
}

.footer-email a:hover {
  color: var(--primary);
}

.footer-beian {
  font-size: 0.73rem;
  color: rgba(148, 148, 168, 0.45);
  margin-top: 2px;
}

.footer-beian a {
  color: rgba(148, 148, 168, 0.55);
  text-decoration: none;
}

.footer-beian a:hover {
  color: var(--primary);
}

/* ---- 法律页面 ---- */
.page-legal .legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 56px;
}

.legal-date {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 8px;
}

.legal-section p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.legal-section ul li {
  margin-bottom: 6px;
}

.legal-section ul li strong {
  color: var(--text);
}

/* ---- 登录隐私同意勾选 ---- */
.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  margin-inline: auto;
  padding-top: 14px;
  width: fit-content;
  max-width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.login-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.login-consent a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-consent a:hover {
  color: #a78bfa;
}

/* ---- 焦点可见性（键盘导航）---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
  border-radius: 4px;
}

/* ---- 来源链接弹窗 ---- */
.source-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.source-modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: calc(100vw - 48px);
}

.source-modal-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.source-modal-panel p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.source-modal-panel .btn {
  display: inline-flex;
}


/* ---- 故事页 ---- */
.story-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.story-header {
  text-align: center;
  margin-bottom: 48px;
}

.story-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
  margin: 12px 0 8px;
}

.story-byline {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.story-body {
  font-size: 1rem;
  line-height: 1.9;
}

.story-body p {
  color: var(--muted);
  margin-bottom: 20px;
  text-indent: 2em;
}

.story-body p.story-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 28px;
}

.story-body h2.story-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.story-signature {
  margin-top: 36px;
  color: var(--text);
  font-weight: 500;
  font-style: italic;
  text-align: right;
}

.story-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  .hero-visual { order: -1; max-width: 640px; margin: 0 auto; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }

  .showcase-inner { grid-template-columns: 1fr; padding: 32px; }
  .showcase-visual { order: -1; }

  .mascot-inner { flex-direction: column; text-align: center; }
  .mascot-hero-img { width: min(220px, 60%); }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; gap: 16px; flex-wrap: wrap; }

  .hero-headline {
    gap: 12px;
  }

  .hero-title-text {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    max-width: 7em;
  }

  .hero-title-mascot {
    width: clamp(130px, 38vw, 180px);
  }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }

  .download-actions .btn { width: 100%; max-width: 320px; }

  .price-chip { flex: 1 1 calc(50% - 8px); min-width: 0; }

  .hero-stats { gap: 20px; }
  .hero-actions .btn { width: 100%; }

  .showcase-inner,
  .mascot-inner { padding: 24px; }

  .story-cta { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
