/* 主题：曦光 Aurora — 柔和极光、层次光影、靛紫 × 薄荷青 */
:root {
  --bg: #f5f3ff;
  --bg-mid: #eef2ff;
  --bg-elevated: #ffffff;
  --border: rgba(99, 102, 241, 0.12);
  --border-strong: rgba(99, 102, 241, 0.22);
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --mint: #14b8a6;
  --mint-soft: rgba(20, 184, 166, 0.14);
  --violet: #a855f7;
  --text: #1e1b4b;
  --muted: #64748b;
  --tech: #0d9488;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --wrap-pad: 24px;
  --wrap-max: 1080px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(99, 102, 241, 0.12), 0 4px 12px -4px rgba(30, 27, 75, 0.06);
  --shadow-lg: 0 20px 50px -12px rgba(99, 102, 241, 0.18), 0 12px 28px -8px rgba(30, 27, 75, 0.08);
  --shadow-card-hover: 0 24px 48px -12px rgba(99, 102, 241, 0.22), 0 12px 20px -8px rgba(30, 27, 75, 0.1);
  --font-sans: "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 70% at 85% -15%, rgba(168, 85, 247, 0.14), transparent 52%),
    radial-gradient(ellipse 90% 55% at 5% 25%, rgba(99, 102, 241, 0.12), transparent 48%),
    radial-gradient(ellipse 80% 50% at 70% 95%, rgba(20, 184, 166, 0.1), transparent 45%),
    linear-gradient(165deg, #faf8ff 0%, #f0f4ff 38%, #ecfeff 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 18%, black 0%, transparent 72%);
  pointer-events: none;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s ease, background-color 0.28s ease;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 48%, #14b8a6 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: min(52vw, 440px);
  line-height: 1.3;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 70%;
  height: 2px;
  transform: translateX(-50%) scaleX(0);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  opacity: 0.85;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  color: #5b21b6;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(129, 140, 248, 0.55), rgba(45, 212, 191, 0.55)) border-box;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.hero h1 {
  margin: 26px 0 16px;
  font-size: clamp(1.65rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(115deg, #312e81 0%, #6366f1 38%, #7c3aed 62%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 42rem;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.75;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #6366f1 0%, #7c3aed 48%, #0d9488 100%);
  background-size: 160% 100%;
  box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.45), 0 4px 12px rgba(13, 148, 136, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background-position 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.5), 0 6px 16px rgba(13, 148, 136, 0.25);
  background-position: 100% 0;
  filter: brightness(1.03);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0s;
  pointer-events: none;
  z-index: 1;
}

.hero-cta:hover::after {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(130%);
}

/* Sections */
section {
  padding: 44px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.68rem + 0.15vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--mint), var(--violet), var(--accent));
  background-size: 220% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 10px;
  font-weight: 600;
  animation: section-title-flow 10s ease-in-out infinite;
}

section h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* 开放式介绍：无卡片，标题下短装饰线 + 正文栏宽 */
.section-copy h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 14px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--mint));
}

.section-intro {
  max-width: 42rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.prose {
  color: var(--muted);
  white-space: pre-line;
  font-size: clamp(0.95rem, 0.92rem + 0.12vw, 1.08rem);
  line-height: 1.82;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* 能力：列表 + 分隔线，大屏三栏分割，非卡片 */
.feature-flow {
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 14px 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--border);
  box-shadow: 0 16px 40px -18px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.06);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1.6;
  padding-top: 3px;
}

.feature-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 0.98rem + 0.15vw, 1.18rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.88rem + 0.12vw, 1.04rem);
  line-height: 1.68;
}

/* 联系：行内串联，无框 */
.contact-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0;
  max-width: 52rem;
  margin-top: 6px;
  line-height: 1.7;
}

.contact-item {
  display: inline;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.88rem + 0.12vw, 1.05rem);
}

.contact-item:not(:first-child)::before {
  content: "·";
  display: inline;
  margin: 0 0.65rem 0 0;
  color: rgba(100, 116, 139, 0.4);
  font-weight: 700;
  pointer-events: none;
}

.contact-item strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.35rem;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 2px;
  background-image: linear-gradient(90deg, var(--accent-bright), var(--mint));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left calc(100% - 1px);
  transition:
    color 0.2s,
    background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-item a:hover {
  color: var(--accent-hover);
  background-size: 100% 2px;
}

.contact-address {
  color: var(--muted);
}

.site-footer {
  position: relative;
  padding: 36px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.8rem + 0.08vw, 0.92rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, #fff 24%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  max-width: min(480px, 90%);
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), rgba(45, 212, 191, 0.25), transparent);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Admin */
.admin-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.admin-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.admin-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.admin-card p.sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fafbff;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-card input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.admin-card .err {
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.admin-card button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #6366f1, #7c3aed);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.admin-card button:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.42);
  transform: translateY(-1px);
}

.admin-dash {
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.admin-dash header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-dash h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-actions button,
.admin-actions a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-actions button.primary {
  border: none;
  background: linear-gradient(120deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.admin-actions button:hover,
.admin-actions a:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: #fafbff;
}

.admin-actions button.primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.admin-form .field {
  margin-bottom: 18px;
}

.admin-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fafbff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-form textarea.tall {
  min-height: 160px;
}

/* 仅后台保留轻量面板（前台介绍已不用卡片） */
.glass.admin-form {
  position: relative;
  background: linear-gradient(152deg, #ffffff 0%, #fafbff 55%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.admin-form hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.msg {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--tech);
  font-weight: 600;
}

.msg.err {
  color: #dc2626;
}

/* 大屏 */
@media (min-width: 1024px) {
  :root {
    --wrap-max: 1240px;
    --wrap-pad: 40px;
    --radius-lg: 22px;
  }

  .bg-grid {
    background-size: 48px 48px;
  }

  .site-header .inner {
    min-height: 64px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .nav a {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 76px 0 56px;
  }

  .hero-badge {
    padding: 8px 18px;
    font-size: 0.76rem;
  }

  section {
    padding: 56px 0;
  }

  .section-intro {
    max-width: 44rem;
  }

  .feature-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
    margin-top: 8px;
    padding-top: 28px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 0 0;
    border-bottom: none;
  }

  .feature-item:not(:last-child) {
    border-right: 1px solid var(--border);
    padding-right: 40px;
  }

  .glass.admin-form {
    padding: 32px 36px;
  }

  .admin-dash {
    max-width: min(1040px, 100%);
    padding: 36px 40px 64px;
  }
}

@media (min-width: 1440px) {
  :root {
    --wrap-max: 1380px;
    --wrap-pad: 52px;
    --radius: 14px;
    --radius-lg: 24px;
  }

  .bg-grid {
    background-size: 56px 56px;
  }

  .site-header .inner {
    min-height: 72px;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
    margin-top: 28px;
    margin-bottom: 20px;
  }

  section {
    padding: 72px 0;
  }

  .section-copy h2::after {
    width: 3.5rem;
    margin-top: 16px;
    margin-bottom: 26px;
  }

  .section-intro {
    max-width: 48rem;
  }

  .feature-flow {
    gap: 0 48px;
    padding-top: 32px;
  }

  .feature-item:not(:last-child) {
    padding-right: 48px;
  }

  .site-footer {
    padding: 44px 0 56px;
  }

  .admin-dash {
    max-width: min(1120px, 100%);
  }
}

@media (min-width: 1800px) {
  :root {
    --wrap-max: 1540px;
    --wrap-pad: 64px;
  }

  .hero {
    padding: 112px 0 80px;
  }

  section {
    padding: 88px 0;
  }

  .bg-grid {
    background-size: 64px 64px;
  }
}

@media (max-width: 640px) {
  .nav {
    justify-content: flex-end;
  }

  .hero {
    padding-top: 40px;
  }

  .feature-flow {
    display: block;
    border-top: 1px solid var(--border);
  }

  .feature-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    border-right: none;
    padding-right: 0;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    padding-right: 0;
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .contact-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-item {
    display: block;
  }

  .contact-item:not(:first-child)::before {
    display: none;
  }
}

/* —— 深色主题（跟随系统 / 手动深色） —— */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
  }
}

html[data-theme="dark"] {
  --bg: #0c0a14;
  --bg-mid: #12101c;
  --bg-elevated: #161322;
  --border: rgba(129, 140, 248, 0.14);
  --border-strong: rgba(165, 180, 252, 0.22);
  --accent: #818cf8;
  --accent-bright: #a5b4fc;
  --accent-hover: #c7d2fe;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --accent-glow: rgba(129, 140, 248, 0.4);
  --mint: #2dd4bf;
  --mint-soft: rgba(45, 212, 191, 0.14);
  --violet: #c084fc;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --tech: #5eead4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.06);
  --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 140, 248, 0.08);
  --shadow-card-hover: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0c0a14;
    --bg-mid: #12101c;
    --bg-elevated: #161322;
    --border: rgba(129, 140, 248, 0.14);
    --border-strong: rgba(165, 180, 252, 0.22);
    --accent: #818cf8;
    --accent-bright: #a5b4fc;
    --accent-hover: #c7d2fe;
    --accent-soft: rgba(129, 140, 248, 0.16);
    --accent-glow: rgba(129, 140, 248, 0.4);
    --mint: #2dd4bf;
    --mint-soft: rgba(45, 212, 191, 0.14);
    --violet: #c084fc;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --tech: #5eead4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 40px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.06);
    --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 140, 248, 0.08);
    --shadow-card-hover: var(--shadow-lg);
  }
}

html[data-theme="dark"] .bg-mesh {
  background:
    radial-gradient(ellipse 120% 70% at 85% -15%, rgba(168, 85, 247, 0.22), transparent 52%),
    radial-gradient(ellipse 90% 55% at 5% 25%, rgba(99, 102, 241, 0.18), transparent 48%),
    radial-gradient(ellipse 80% 50% at 70% 95%, rgba(20, 184, 166, 0.12), transparent 45%),
    linear-gradient(165deg, #0c0a14 0%, #12102a 42%, #0a1628 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .bg-mesh {
    background:
      radial-gradient(ellipse 120% 70% at 85% -15%, rgba(168, 85, 247, 0.22), transparent 52%),
      radial-gradient(ellipse 90% 55% at 5% 25%, rgba(99, 102, 241, 0.18), transparent 48%),
      radial-gradient(ellipse 80% 50% at 70% 95%, rgba(20, 184, 166, 0.12), transparent 45%),
      linear-gradient(165deg, #0c0a14 0%, #12102a 42%, #0a1628 100%);
  }
}

html[data-theme="dark"] .site-header {
  background: rgba(22, 19, 34, 0.82);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .site-header {
    background: rgba(22, 19, 34, 0.82);
  }
}

html[data-theme="dark"] .hero-badge {
  color: #c4b5fd;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(120deg, rgba(129, 140, 248, 0.5), rgba(45, 212, 191, 0.45)) border-box;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .hero-badge {
    color: #c4b5fd;
    background:
      linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
      linear-gradient(120deg, rgba(129, 140, 248, 0.5), rgba(45, 212, 191, 0.45)) border-box;
  }
}

html[data-theme="dark"] .admin-card input[type="password"],
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form textarea {
  background: rgba(15, 12, 28, 0.85);
  border-color: var(--border-strong);
  color: var(--text);
}

html[data-theme="dark"] .admin-card input[type="password"]:focus,
html[data-theme="dark"] .admin-form input:focus,
html[data-theme="dark"] .admin-form textarea:focus {
  background: rgba(22, 19, 34, 0.95);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .admin-card input[type="password"],
  html:not([data-theme]) .admin-form input,
  html:not([data-theme]) .admin-form textarea {
    background: rgba(15, 12, 28, 0.85);
    color: var(--text);
  }
}

/* 浅色强制（系统深色但用户选浅色） */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.78);
}

/* —— 胶片噪点（极轻，提升质感） —— */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .bg-noise {
  opacity: 0.055;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .bg-noise {
    opacity: 0.055;
  }
}

/* —— 极光层缓慢流动 —— */
@keyframes aurora-drift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  33% {
    opacity: 0.92;
    transform: scale(1.04) translate(2%, -1.5%);
  }
  66% {
    opacity: 0.88;
    transform: scale(1.02) translate(-1.5%, 2%);
  }
}

.bg-mesh::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 55% 40% at 72% 18%, rgba(129, 140, 248, 0.2), transparent 58%),
    radial-gradient(ellipse 50% 38% at 22% 72%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 82%, rgba(168, 85, 247, 0.14), transparent 52%);
  animation: aurora-drift 22s ease-in-out infinite;
  pointer-events: none;
}

html[data-bg="calm"] .bg-mesh::before {
  display: none;
}

html[data-motion="reduced"] .bg-mesh::before,
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .bg-mesh::before {
    animation: none;
    opacity: 0.85;
    transform: none;
  }
}

html[data-bg="calm"] .bg-grid {
  opacity: 0.45;
}

/* —— 标题微光（仅丰富动效） —— */
@keyframes hero-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.hero h1 span {
  background-size: 200% auto;
  animation: hero-shimmer 12s ease-in-out infinite alternate;
}

html[data-motion="reduced"] .hero h1 span,
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .hero h1 span {
    animation: none;
  }
}

html[data-bg="calm"] .hero-badge .dot {
  animation: none;
}

html[data-motion="reduced"] .hero-badge .dot,
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .hero-badge .dot {
    animation: none;
  }
}

/* —— 滚动显现 —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-2 {
  transition-delay: 0.12s;
}

.reveal-delay-3 {
  transition-delay: 0.18s;
}

.reveal-delay-4 {
  transition-delay: 0.24s;
}

.reveal-delay-5 {
  transition-delay: 0.3s;
}

html[data-motion="reduced"] .reveal,
html[data-motion="reduced"] .reveal.is-visible {
  transition: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .reveal,
  html:not([data-motion="full"]) .reveal.is-visible {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* —— 体验设置：悬浮入口 —— */
.prefs-trigger {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(14px) saturate(1.3);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

html[data-theme="dark"] .prefs-trigger {
  background: linear-gradient(145deg, rgba(30, 27, 46, 0.94), rgba(22, 19, 34, 0.92));
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .prefs-trigger {
    background: linear-gradient(145deg, rgba(30, 27, 46, 0.94), rgba(22, 19, 34, 0.92));
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }
}

.prefs-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.15) inset;
  border-color: rgba(99, 102, 241, 0.28);
}

.prefs-trigger:active {
  transform: translateY(0);
}

.prefs-trigger-icon {
  display: flex;
  color: var(--accent);
}

.prefs-trigger-label {
  line-height: 1;
}

@media (max-width: 480px) {
  .prefs-trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .prefs-trigger {
    padding: 12px;
    border-radius: 50%;
  }
}

/* —— 设置面板 —— */
.prefs-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: end stretch;
  padding: 12px;
  background: rgba(15, 12, 28, 0.28);
  backdrop-filter: blur(8px);
}

@media (min-width: 560px) {
  .prefs-panel {
    place-items: center end;
    padding: 24px;
    background: rgba(15, 12, 28, 0.2);
  }
}

.prefs-panel[hidden] {
  display: none;
}

.prefs-panel-inner {
  width: 100%;
  max-width: 400px;
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .prefs-panel-inner {
  background: linear-gradient(165deg, rgba(28, 25, 44, 0.98) 0%, rgba(18, 16, 30, 0.98) 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .prefs-panel-inner {
    background: linear-gradient(165deg, rgba(28, 25, 44, 0.98) 0%, rgba(18, 16, 30, 0.98) 100%);
  }
}

.prefs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prefs-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prefs-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.prefs-close:hover {
  background: rgba(99, 102, 241, 0.22);
}

.prefs-lead {
  margin: 0 0 18px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.prefs-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.prefs-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

.prefs-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prefs-seg-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prefs-opt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

html[data-theme="dark"] .prefs-opt {
  background: rgba(22, 19, 34, 0.65);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .prefs-opt {
    background: rgba(22, 19, 34, 0.65);
  }
}

.prefs-opt:has(input:checked) {
  border-color: rgba(99, 102, 241, 0.45);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.prefs-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.prefs-opt:has(input:focus-visible) {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.prefs-done {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #6366f1 0%, #7c3aed 48%, #0d9488 100%);
  background-size: 160% 100%;
  box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.4);
  transition: filter 0.2s, transform 0.15s;
  overflow: hidden;
  isolation: isolate;
}

.prefs-done::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0s;
  pointer-events: none;
  z-index: 1;
}

.prefs-done:hover::after {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(130%);
}

.prefs-done:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

main section {
  scroll-margin-top: calc(56px + 16px);
}

@media (min-width: 1024px) {
  main section {
    scroll-margin-top: calc(64px + 20px);
  }
}

/* —— 阅读进度条 —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #6366f1, #a855f7, #14b8a6);
  pointer-events: none;
  opacity: 0.94;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px -14px rgba(99, 102, 241, 0.18), var(--shadow-sm);
}

html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 14px 44px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.08);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .site-header.is-scrolled {
    box-shadow: 0 14px 44px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.08);
  }
}

/* —— Hero 漂浮光斑 —— */
.hero-glow {
  position: absolute;
  left: -18%;
  right: -18%;
  top: -42%;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero .hero-badge,
.hero h1,
.hero .hero-lead,
.hero .hero-cta {
  position: relative;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-orb-a {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  background: radial-gradient(circle, rgba(129, 140, 248, 0.55) 0%, transparent 68%);
  left: 6%;
  top: 8%;
  animation: orb-float-a 16s ease-in-out infinite;
}

.hero-orb-b {
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
  right: 4%;
  top: 22%;
  animation: orb-float-b 19s ease-in-out infinite;
}

.hero-orb-c {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  background: radial-gradient(circle, rgba(45, 212, 191, 0.38) 0%, transparent 68%);
  left: 38%;
  bottom: -8%;
  animation: orb-float-c 21s ease-in-out infinite;
}

@keyframes orb-float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, 8%) scale(1.06);
  }
}

@keyframes orb-float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-7%, 5%) scale(1.05);
  }
}

@keyframes orb-float-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, -6%) scale(1.04);
  }
}

@keyframes section-title-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes feature-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logo-glow-pulse {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(99, 102, 241, 0.48),
      0 0 28px rgba(20, 184, 166, 0.22);
  }
}

#features.reveal.is-visible .feature-item {
  animation: feature-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#features.reveal.is-visible .feature-item:nth-child(1) {
  animation-delay: 0.05s;
}

#features.reveal.is-visible .feature-item:nth-child(2) {
  animation-delay: 0.12s;
}

#features.reveal.is-visible .feature-item:nth-child(3) {
  animation-delay: 0.2s;
}

.fx-btn-label {
  position: relative;
  z-index: 2;
}

.prefs-trigger-icon,
.prefs-trigger-label {
  position: relative;
  z-index: 2;
}

.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: fx-ripple 0.7s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

.prefs-trigger .fx-ripple {
  background: rgba(129, 140, 248, 0.28);
}

@keyframes fx-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

html[data-theme="dark"] .feature-item:hover {
  background: rgba(30, 27, 46, 0.65);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .feature-item:hover {
    background: rgba(30, 27, 46, 0.65);
  }
}

@media (min-width: 1024px) {
  .feature-flow .feature-item:hover {
    transform: translateY(-4px);
  }
}

html[data-bg="calm"] .hero-glow {
  display: none;
}

html[data-motion="reduced"] .hero-orb,
html[data-motion="reduced"] .section-title,
html[data-motion="reduced"] .logo-mark,
html[data-motion="reduced"] .hero-cta::after,
html[data-motion="reduced"] .prefs-done::after,
html[data-motion="reduced"] #features.reveal.is-visible .feature-item {
  animation: none !important;
}

html[data-motion="reduced"] .hero-cta::after,
html[data-motion="reduced"] .prefs-done::after {
  display: none;
}

html[data-motion="reduced"] #features.reveal.is-visible .feature-item {
  opacity: 1;
  transform: none;
}

html[data-motion="reduced"] .nav a::after {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .hero-orb,
  html:not([data-motion="full"]) .section-title,
  html:not([data-motion="full"]) .logo-mark,
  html:not([data-motion="full"]) #features.reveal.is-visible .feature-item {
    animation: none !important;
  }

  html:not([data-motion="full"]) .hero-cta::after,
  html:not([data-motion="full"]) .prefs-done::after {
    display: none;
  }

  html:not([data-motion="full"]) #features.reveal.is-visible .feature-item {
    opacity: 1;
    transform: none;
  }

  html:not([data-motion="full"]) .nav a::after {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .logo-mark {
    animation: logo-glow-pulse 5.5s ease-in-out infinite;
  }
}

html[data-motion="full"] .logo-mark {
  animation: logo-glow-pulse 5.5s ease-in-out infinite !important;
}
