/*
 * AI知识库欢迎站样式。
 * 目标: 首页更像正式产品官网, 注册页和下载页保持清楚好用。
 * 说明: 宝塔只需要把本文件放在 /static/site-v4.css 即可。
 */

/* 基础变量: 全站共用颜色、阴影和字体。 */
:root {
  --ink: #101624;
  --ink-2: #283244;
  --muted: #3f4a5a;
  --muted-2: #687586;
  --paper: #f7f8fb;
  --paper-2: #eef2f7;
  --surface: #fbfcff;
  --surface-2: #f2f5fa;
  --line: #dfe5ef;
  --line-strong: #c9d2df;
  --blue: #123f8f;
  --blue-2: #0c2f70;
  --blue-soft: #e8efff;
  --ok: #166b50;
  --dark: #080b13;
  --dark-2: #0d1220;
  --dark-3: #141b2c;
  --dark-line: #263145;
  --dark-text: #f2f5fb;
  --dark-muted: #aab4c5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 26px 62px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.08);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    system-ui,
    sans-serif;
  color-scheme: light;
}

/* 暗黑模式变量: 只在用户点切换后启用。 */
html[data-theme="dark"] {
  color-scheme: dark;
}

/* 页面重置: 防止浏览器默认边距把布局挤乱。 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

/* 选中文本时使用品牌蓝, 让细节也统一。 */
::selection {
  background: rgba(36, 88, 216, 0.18);
  color: var(--ink);
}

/* 通用容器: 控制页面最大宽度和左右留白。 */
.container,
.home-container {
  width: 100%;
  max-width: 1436px;
  padding-inline: 28px;
  margin-inline: auto;
}

/* 通用深色背景: 注册页和下载页使用。 */
body:not(.home-v2) {
  background:
    radial-gradient(
      900px 500px at 78% -10%,
      rgba(36, 88, 216, 0.2),
      transparent 62%
    ),
    linear-gradient(135deg, #080b13 0%, #101827 52%, #081019 100%);
  color: var(--dark-text);
}

/* 背景装饰: 只负责氛围, 不影响点击。 */
.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.32;
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -260px;
  left: -170px;
  background: #174ea6;
}

.ambient-two {
  width: 460px;
  height: 460px;
  right: -220px;
  top: 320px;
  background: #0f766e;
  opacity: 0.18;
}

/* 品牌标识: 全站统一。 */
.brand,
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark,
.home-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #2d5fba, var(--blue));
  color: #f8fbff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 900;
}

/* 通用导航: 下载页和注册页使用。 */
.site-header,
body > header.container {
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 19, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  color: var(--dark-muted);
  font-size: 14px;
}

.nav-links a,
.text-link {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover,
.text-link:hover,
.active-link {
  color: var(--dark-text);
}

/* 通用按钮: 统一尺寸、圆角、点击反馈。 */
.button,
.btn,
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.btn:hover,
.home-btn:hover {
  transform: translateY(-2px);
}

.button:active,
.btn:active,
.home-btn:active {
  transform: translateY(0);
}

.button-primary,
.btn-primary,
.home-btn-blue {
  background: linear-gradient(135deg, #2d5fba, var(--blue));
  color: #f8fbff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.button-primary:hover,
.btn-primary:hover,
.home-btn-blue:hover {
  background: linear-gradient(135deg, #174ea6, var(--blue-2));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.button-light,
.button-ghost,
.home-btn-white {
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink);
  border-color: rgba(201, 210, 223, 0.8);
  box-shadow: var(--shadow-soft);
}

.button-small,
.home-btn-small {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 13px;
}

.button-large,
.home-btn-large {
  min-height: 54px;
  padding-inline: 22px;
}

.btn-wide {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

/* 首页主题: 明亮、干净, 更适合第一眼理解产品。 */
.home-v2 {
  background:
    linear-gradient(180deg, #f7f8fb 0%, #eef2f7 47%, #f7f8fb 100%);
  color: var(--ink);
  color-scheme: light;
}

/* 首页暗黑模式: 贴近主系统截图的深色产品感。 */
html[data-theme="dark"] .home-v2 {
  --ink: #f3f6ff;
  --ink-2: #dbe4f5;
  --muted: #aab6ca;
  --muted-2: #8794aa;
  --paper: #080b13;
  --paper-2: #0d1220;
  --surface: #111827;
  --surface-2: #151d2d;
  --line: #263145;
  --line-strong: #34425b;
  --blue: #7c8cff;
  --blue-2: #9aa6ff;
  --blue-soft: rgba(124, 140, 255, 0.16);
  background:
    radial-gradient(900px 560px at 72% 22%, rgba(89, 104, 255, 0.22), transparent 62%),
    radial-gradient(720px 420px at 10% 16%, rgba(20, 184, 166, 0.1), transparent 58%),
    linear-gradient(180deg, #080b13 0%, #0d1220 52%, #080b13 100%);
  color: var(--ink);
}

.home-v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      760px 420px at 78% 10%,
      rgba(36, 88, 216, 0.14),
      transparent 60%
    ),
    radial-gradient(
      580px 320px at 12% 18%,
      rgba(15, 118, 110, 0.08),
      transparent 62%
    );
}

/* 暗黑模式下减弱浅色背景装饰，让主截图更突出。 */
html[data-theme="dark"] .home-v2::before {
  background:
    radial-gradient(760px 420px at 80% 10%, rgba(124, 140, 255, 0.16), transparent 60%),
    radial-gradient(580px 320px at 12% 18%, rgba(20, 184, 166, 0.08), transparent 62%);
}

/* 首页导航: 固定在顶部, 宝塔部署后路径仍然是根目录。 */
.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  border-bottom: 1px solid rgba(201, 210, 223, 0.7);
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .home-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 19, 0.78);
}

html[data-theme="dark"] .home-links,
html[data-theme="dark"] .home-login {
  color: #aab6ca;
}

.home-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-brand {
  color: var(--ink);
}

.home-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #596579;
  font-size: 14px;
}

.home-links a,
.home-login,
.home-footer-main nav a,
.footer-main a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  color: #c8d2e5;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -10px 22px rgba(8, 13, 26, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.2);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-links a::before,
.home-login::before,
.home-footer-main nav a::before,
.footer-main a::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.46), transparent 58%);
  transform: translateX(-44%) rotate(8deg);
  transition: transform 0.5s ease;
}

.home-links a:hover,
.home-login:hover {
  color: #ffffff;
  border-color: rgba(180, 202, 255, 0.62);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(135deg, rgba(92, 124, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 48px rgba(66, 98, 210, 0.24);
  transform: translateY(-2px);
}

.home-links a:hover::before,
.home-login:hover::before,
.home-footer-main nav a:hover::before,
.footer-main a:hover::before {
  transform: translateX(36%) rotate(8deg);
}

.home-account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-login {
  font-size: 14px;
}

/* 主题按钮: 用户点击后在明亮和暗黑模式之间切换。 */
.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(201, 210, 223, 0.82);
  border-radius: var(--radius-sm);
  background: rgba(251, 252, 255, 0.82);
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 63, 143, 0.32);
  color: var(--blue);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe4f5;
}

html[data-theme="dark"] .home-btn-white,
html[data-theme="dark"] .button-light {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f6ff;
  box-shadow: none;
}

/* 首页首屏: 左文案右产品预览, 按真实产品官网节奏排版。 */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 1.15fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100dvh - 76px);
  padding-top: 56px;
  padding-bottom: 72px;
}

/* 首屏动态背景层: 使用纯 CSS 动画，宝塔不需要额外配置。 */
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb,
.hero-grid-light {
  position: absolute;
  display: block;
}

/* 左上角柔光，慢速漂移，避免页面太死。 */
.hero-orb-one {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 70px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  filter: blur(26px);
}

/* 右侧柔光，配合产品截图形成层次。 */
.hero-orb-two {
  width: 360px;
  height: 360px;
  right: 40px;
  top: 84px;
  border-radius: 999px;
  background: rgba(18, 63, 143, 0.12);
  filter: blur(34px);
}

/* 轻微网格光，只在首屏背景里露一点科技感。 */
.hero-grid-light {
  right: 3%;
  bottom: 14%;
  width: 420px;
  height: 220px;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(18, 63, 143, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 143, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 590px;
}

.home-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(36, 88, 216, 0.16);
  border-radius: 999px;
  background: rgba(36, 88, 216, 0.07);
  color: #174ea6;
  font-size: 13px;
  font-weight: 700;
}

.home-badge i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--ok);
}

html[data-theme="dark"] .home-badge {
  border-color: rgba(124, 140, 255, 0.24);
  background: rgba(124, 140, 255, 0.12);
  color: #cdd5ff;
}

.home-hero h1 {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.home-hero h1 span {
  color: var(--blue);
}

.home-hero-copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  min-width: 0;
  margin-top: 32px;
}

.home-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #303b4a;
  font-size: 13px;
}

.home-assurance span {
  padding: 7px 10px;
  border: 1px solid rgba(201, 210, 223, 0.8);
  border-radius: 999px;
  background: rgba(251, 252, 255, 0.72);
}

html[data-theme="dark"] .home-assurance {
  color: #c7d0e2;
}

html[data-theme="dark"] .home-assurance span {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* 产品截图: 只展示用户提供的真实 AI知识库截图，避免旧模拟图混入页面。 */
.home-product {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* 截图外框: 像放在官网里的产品展示，不改变图片本身比例。 */
.product-shot {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #111723;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

/* 截图扫光: 很轻的动态效果，强调产品图，不遮挡截图内容。 */
.product-shine {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

html[data-theme="dark"] .product-shot {
  background: #080b13;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

/* 截图图片: 宽度跟随容器，高度自动，保证不变形。 */
.product-screenshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2560 / 1512;
  object-fit: contain;
}

/* 能力条: 用一行让访客快速扫到价值。 */
.home-value-strip {
  border-block: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.76);
}

html[data-theme="dark"] .home-value-strip,
html[data-theme="dark"] .home-how,
html[data-theme="dark"] .home-footer,
html[data-theme="dark"] footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(13, 18, 32, 0.72);
}

html[data-theme="dark"] .home-value-strip span,
html[data-theme="dark"] .home-value-strip div,
html[data-theme="dark"] .home-section-head > p,
html[data-theme="dark"] .home-steps p,
html[data-theme="dark"] .home-footer-main > p,
html[data-theme="dark"] .home-footer-main nav,
html[data-theme="dark"] .home-footer-bottom {
  color: var(--muted);
}

.home-value-strip > .home-container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-value-strip span {
  color: #7a8597;
  font-size: 13px;
  font-weight: 700;
}

.home-value-strip div {
  color: #3e4a5d;
  font-size: 14px;
  font-weight: 700;
}

.home-value-strip b {
  margin-right: 7px;
  color: var(--blue);
}

/* 首页内容区: 统一上下节奏。 */
.home-section {
  padding-block: 104px;
}

.home-section-head,
.home-how-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.home-how-head {
  margin-inline: auto;
  text-align: center;
}

.home-section h2,
.home-how h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.home-section-head > p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-eyebrow {
  display: none;
}

/* 功能卡片: 非等宽结构, 避免廉价三栏模板感。 */
.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 16px;
}

.home-feature {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 252, 255, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.home-feature-primary {
  grid-row: span 2;
  min-height: 586px;
  background:
    linear-gradient(180deg, rgba(36, 88, 216, 0.08), rgba(251, 252, 255, 0.94)),
    var(--surface);
}

html[data-theme="dark"] .home-feature {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(17, 24, 39, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .home-feature-primary {
  background:
    linear-gradient(180deg, rgba(124, 140, 255, 0.12), rgba(17, 24, 39, 0.92)),
    var(--surface);
}

.feature-tag {
  position: absolute;
  right: 24px;
  top: 24px;
  color: #9aa5b7;
  font-size: 11px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 24px;
}

.feature-icon.purple,
.feature-icon.teal {
  background: transparent;
  color: var(--blue);
}

.home-feature h3 {
  max-width: 450px;
  margin: 24px 0 10px;
  color: #263244;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home-feature > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

html[data-theme="dark"] .home-feature h3,
html[data-theme="dark"] .home-section h2,
html[data-theme="dark"] .home-how h2,
html[data-theme="dark"] .home-steps b {
  color: var(--ink);
}

html[data-theme="dark"] .feature-query,
html[data-theme="dark"] .feature-lines {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(8, 11, 19, 0.74);
  box-shadow: none;
}

html[data-theme="dark"] .feature-query b {
  color: #eef2ff;
}

html[data-theme="dark"] .feature-query small {
  color: #9aa6bb;
}

html[data-theme="dark"] .feature-lines i {
  background: rgba(255, 255, 255, 0.12);
}

.feature-query,
.feature-lines {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(251, 252, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.feature-query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.feature-query > span {
  color: var(--blue);
}

.feature-query b,
.feature-query small {
  display: block;
  font-size: 12px;
}

.feature-query b {
  color: #334054;
}

.feature-query small {
  margin-top: 4px;
  color: #5b687a;
}

.feature-lines {
  padding: 16px;
}

.feature-lines i {
  display: block;
  height: 7px;
  margin: 8px 0;
  border-radius: 99px;
  background: #e2e7ef;
}

.feature-lines i:first-child {
  width: 42%;
  background: rgba(36, 88, 216, 0.55);
}

.feature-lines i:nth-child(2) {
  width: 88%;
}

.feature-lines i:nth-child(3) {
  width: 70%;
}

.feature-lines i:nth-child(4) {
  width: 56%;
}

.feature-nodes {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 178px;
  height: 112px;
}

.feature-nodes::before,
.feature-nodes::after {
  content: "";
  position: absolute;
  height: 1px;
  background: #aeb9c9;
  transform-origin: left;
}

.feature-nodes::before {
  width: 92px;
  left: 28px;
  top: 56px;
  transform: rotate(-25deg);
}

.feature-nodes::after {
  width: 78px;
  left: 88px;
  top: 22px;
  transform: rotate(35deg);
}

.feature-nodes i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 6px solid #dfe7f5;
  border-radius: 99px;
  background: var(--blue);
}

.feature-nodes i:first-child {
  left: 12px;
  top: 47px;
}

.feature-nodes i:nth-child(2) {
  left: 84px;
  top: 6px;
}

.feature-nodes i:nth-child(3) {
  right: 5px;
  top: 56px;
}

.feature-nodes i:nth-child(4) {
  left: 84px;
  bottom: 0;
  background: #7f93c7;
}

/* 使用步骤: 保持小白能看懂的三步说明。 */
.home-how {
  border-block: 1px solid var(--line);
  background: rgba(251, 252, 255, 0.68);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-steps article {
  display: flex;
  gap: 15px;
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .home-steps article {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(17, 24, 39, 0.82);
  box-shadow: none;
}

.home-steps article > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.home-steps b {
  display: block;
  margin-top: 3px;
  color: #263244;
  font-size: 16px;
}

.home-steps p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 首页下载行动区: 明确引导到桌面端下载页。 */
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-block: 96px;
  padding: 44px 50px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(36, 88, 216, 0.95), #12388f),
    var(--blue);
  color: #f8fbff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .home-cta {
  background:
    linear-gradient(135deg, rgba(53, 68, 210, 0.94), rgba(18, 63, 143, 0.94)),
    #123f8f;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.home-cta > div > span {
  color: #cddaff;
  font-size: 13px;
  font-weight: 700;
}

.home-cta h2 {
  margin: 9px 0 7px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.home-cta p {
  margin: 0;
  color: #f1f5ff;
  font-size: 14px;
}

/* 首页页脚: 简洁收尾, 保留常用入口。 */
.home-footer,
footer {
  border-top: 1px solid var(--line);
  background: #f1f4f8;
  color: #3f4a5d;
}

.home-footer-main,
.footer-main {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-block: 36px;
}

.home-footer-main > p,
.footer-main p {
  flex: 1;
  margin: 0;
  color: #596679;
}

.home-footer-main nav,
.footer-main > div {
  display: flex;
  gap: 22px;
  color: #596579;
  font-size: 13px;
}

.home-footer-bottom,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
  color: #8993a3;
  font-size: 12px;
}

/* 注册页: 居中表单, 重点是清晰和不出错。 */
.auth-shell {
  min-height: calc(100dvh - 76px);
  display: grid;
  place-items: center;
  padding-block: 54px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(13, 18, 32, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9c9ff;
  font-size: 13px;
  font-weight: 700;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
}

.auth-card h1 {
  margin: 18px 0 10px;
  color: var(--dark-text);
  font-size: 36px;
  letter-spacing: -0.03em;
}

.auth-card > p {
  margin: 0 0 26px;
  color: var(--dark-muted);
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: #cbd5e6;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #2b3750;
  border-radius: 12px;
  outline: 0;
  background: #0b1020;
  color: var(--dark-text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input::placeholder {
  color: #7d879a;
}

.field input:focus {
  border-color: #6688ee;
  background: #0f1627;
  box-shadow: 0 0 0 3px rgba(248, 251, 255, 0.12);
}

.form-message {
  min-height: 22px;
  margin: 3px 0 14px;
  color: #aeb8c9;
  font-size: 13px;
  line-height: 1.55;
}

.form-message.error {
  color: #ff9aa6;
}

.form-message.success {
  color: #79ddb7;
}

.switch {
  margin-top: 18px;
  color: #9aa5b7;
  text-align: center;
  font-size: 14px;
}

.switch a {
  color: #b9c9ff;
  font-weight: 800;
}

/* 下载页: 信息先清楚, 下载按钮足够明显。 */
.download-page footer {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 19, 0.64);
  color: var(--dark-muted);
}

.download-main {
  padding-top: 78px;
  padding-bottom: 104px;
}

.download-hero {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid rgba(102, 136, 238, 0.34);
  border-radius: 999px;
  background: rgba(36, 88, 216, 0.12);
  color: #c6d3ff;
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #79ddb7;
}

.download-hero h1 {
  margin: 22px 0 14px;
  color: var(--dark-text);
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.download-hero h1 span {
  color: #9db5ff;
}

.download-hero p {
  max-width: 640px;
  margin: auto;
  color: var(--dark-muted);
  font-size: 17px;
  line-height: 1.8;
}

.download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(
      500px 220px at 0 0,
      rgba(36, 88, 216, 0.22),
      transparent 64%
    ),
    rgba(13, 18, 32, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.download-platform-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.08);
  color: #c6d3ff;
  font-size: 32px;
}

.available-badge {
  color: #79ddb7;
  font-size: 13px;
  font-weight: 800;
}

.download-info h2 {
  margin: 8px 0 7px;
  color: var(--dark-text);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.download-info p {
  margin: 0;
  color: var(--dark-muted);
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.download-specs span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e6;
  font-size: 13px;
}

.download-specs b {
  margin-right: 4px;
  color: #91a8f8;
}

.download-button {
  min-height: 66px;
  padding-inline: 22px;
}

.download-button b,
.download-button small {
  display: block;
}

.download-button small {
  margin-top: 3px;
  font-weight: 600;
  opacity: 0.82;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
}

.install-panel,
.security-panel,
.system-note {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(13, 18, 32, 0.74);
}

.install-panel,
.security-panel {
  padding: 28px;
}

.panel-head h2,
.security-panel h3 {
  margin: 0;
  color: var(--dark-text);
  letter-spacing: -0.02em;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: #9db5ff;
  font-size: 13px;
  font-weight: 800;
}

.install-steps {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.install-steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: rgba(36, 88, 216, 0.2);
  color: #c6d3ff;
  font-weight: 900;
}

.install-steps b {
  color: var(--dark-text);
}

.install-steps p,
.security-panel p,
.security-panel li {
  color: var(--dark-muted);
  line-height: 1.65;
}

.install-steps p {
  margin: 5px 0 0;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e0ff;
}

.shield {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(36, 88, 216, 0.18);
  color: #c6d3ff;
  font-size: 22px;
}

.security-panel ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 18px 0 0;
}

.system-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 24px;
}

.system-note > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.system-note span {
  width: 28px;
  height: 28px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: rgba(36, 88, 216, 0.18);
  color: #c6d3ff;
  font-weight: 900;
}

.system-note p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.65;
}

.system-note b,
.system-note a {
  color: var(--dark-text);
}

/* 深色页脚文字颜色: 覆盖首页的浅色页脚。 */
body:not(.home-v2) .footer-main,
body:not(.home-v2) .footer-bottom {
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.home-v2) .footer-main p,
body:not(.home-v2) .footer-main a,
body:not(.home-v2) .footer-bottom {
  color: var(--dark-muted);
}

body:not(.home-v2) .brand {
  color: var(--dark-text);
}

/* 动态效果: 有动画偏好的用户才启用，避免影响低性能设备。 */
@media (prefers-reduced-motion: no-preference) {
  .hero-orb-one {
    animation: orb-drift-one 9s ease-in-out infinite alternate;
  }

  .hero-orb-two {
    animation: orb-drift-two 11s ease-in-out infinite alternate;
  }

  .hero-grid-light {
    animation: grid-breathe 7s ease-in-out infinite alternate;
  }

  .home-badge i {
    animation: dot-pulse 1.8s ease-in-out infinite;
  }

  .product-shot {
    animation: product-float 6s ease-in-out infinite;
  }

  .product-shine {
    animation: product-shine 4.8s ease-in-out infinite;
  }

  .home-btn-blue {
    position: relative;
    overflow: hidden;
  }

  .home-btn-blue::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
  }

  .home-btn-blue:hover::after {
    transform: translateX(130%);
  }

  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.64s ease,
      transform 0.64s ease;
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 用户选择减少动画时，保证所有内容直接显示。 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 光影慢速移动。 */
@keyframes orb-drift-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(54px, 26px, 0) scale(1.08);
  }
}

@keyframes orb-drift-two {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-38px, 34px, 0) scale(1.04);
  }
}

/* 背景网格轻微呼吸。 */
@keyframes grid-breathe {
  from {
    opacity: 0.18;
    transform: translateY(0);
  }

  to {
    opacity: 0.38;
    transform: translateY(-10px);
  }
}

/* 小圆点提示系统在线感。 */
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 107, 80, 0.28);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(22, 107, 80, 0);
  }
}

/* 产品截图轻微悬浮，避免静态海报感。 */
@keyframes product-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 截图扫光从左到右滑过。 */
@keyframes product-shine {
  0%,
  58% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* 平板适配: 首屏变成上下结构。 */
@media (max-width: 1000px) {
  .container,
  .home-container {
    max-width: 1180px;
    padding-inline: 18px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 54px;
  }

  .home-hero-copy {
    max-width: 760px;
    text-align: left;
  }

  .home-product {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-primary {
    grid-row: auto;
    min-height: 360px;
  }

  .download-card,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* 手机适配: 所有多列布局收成单列, 按钮撑满方便点击。 */
@media (max-width: 720px) {
  .container,
  .home-container {
    width: 350px;
    max-width: calc(100% - 40px);
    padding-inline: 0;
    margin-left: 20px;
    margin-right: auto;
  }

  .nav,
  .home-nav {
    gap: 16px;
  }

  .nav-links,
  .home-links {
    display: none;
  }

  .nav-actions,
  .home-account {
    gap: 10px;
  }

  .theme-toggle,
  .home-btn-small {
    min-height: 38px;
    padding-inline: 11px;
  }

  .theme-toggle [data-theme-text] {
    display: none;
  }

  .text-link,
  .home-login {
    display: none;
  }

  .home-header,
  .site-header,
  body > header.container {
    height: 68px;
    min-height: 68px;
  }

  .nav {
    min-height: 68px;
  }

  .home-hero {
    width: 100%;
    max-width: 100%;
    padding-top: 40px;
    padding-bottom: 58px;
  }

  .home-hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .home-hero h1,
  .download-hero h1 {
    font-size: 36px;
  }

  .home-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-hero-copy > p,
  .download-hero p {
    max-width: calc(100% - 16px);
    font-size: 15px;
  }

  .home-actions .home-btn,
  .download-button,
  .auth-card .btn {
    width: calc(100% - 20px);
  }

  .home-actions {
    width: 100%;
    max-width: 100%;
  }

  .home-btn-large,
  .button-large {
    padding-inline: 14px;
  }

  .home-assurance {
    width: calc(100% - 20px);
    gap: 9px;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .home-assurance span {
    font-size: 12px;
  }

  .home-product {
    max-width: 100%;
    overflow: hidden;
  }

  .product-shot {
    width: calc(100% - 20px);
    max-width: 100%;
    border-radius: 14px;
  }

  .product-screenshot {
    max-width: 100%;
  }

  .home-value-strip > .home-container {
    justify-content: center;
    flex-wrap: wrap;
    padding-block: 22px;
    text-align: center;
  }

  .home-value-strip span {
    width: 100%;
  }

  .home-section {
    padding-block: 74px;
  }

  .home-feature,
  .home-feature-primary {
    min-height: 330px;
    padding: 24px;
  }

  .feature-query,
  .feature-lines {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-cta,
  .system-note,
  .home-footer-main,
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-cta {
    margin-block: 72px;
    padding: 32px 26px;
  }

  .home-footer-main nav,
  .footer-main > div {
    flex-wrap: wrap;
  }

  .home-footer-bottom,
  .footer-bottom {
    flex-direction: column;
  }

  .auth-shell {
    padding-block: 36px;
  }

  .auth-card {
    padding: 26px;
  }

  .download-main {
    padding-top: 54px;
    padding-bottom: 76px;
  }

  .download-card {
    text-align: center;
  }

  .download-platform-icon {
    margin-inline: auto;
  }

  .download-specs {
    justify-content: center;
  }
}

/* 液态玻璃升级: 网页用透明、模糊、高光和阴影近似用户给的玻璃按钮效果。 */
.button,
.btn,
.home-btn,
.theme-toggle,
.download-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(28, 91, 210, 0.38);
  color: #ffffff;
  backdrop-filter: blur(22px) saturate(180%) contrast(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(180%) contrast(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -16px 34px rgba(6, 16, 38, 0.2),
    0 16px 44px rgba(18, 63, 143, 0.24),
    0 2px 8px rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.button::before,
.btn::before,
.home-btn::before,
.theme-toggle::before,
.download-button::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.58), transparent 56%),
    radial-gradient(circle at var(--mx, 38%) var(--my, 18%), rgba(255, 255, 255, 0.7), transparent 28%);
  transform: translateX(-34%) rotate(9deg);
  transition: transform 0.55s ease;
}

.button:hover::before,
.btn:hover::before,
.home-btn:hover::before,
.theme-toggle:hover::before,
.download-button:hover::before {
  transform: translateX(34%) rotate(9deg);
}

.button-light,
.button-ghost,
.home-btn-white,
.theme-toggle {
  color: #12203a;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.34);
}

html[data-theme="dark"] .button-light,
html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .home-btn-white,
html[data-theme="dark"] .theme-toggle {
  color: #f5f8ff;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.3), transparent 33%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(18, 28, 50, 0.42);
}

/* 所有主要框体都增加毛玻璃和阴影，避免“平面纸片感”。 */
.home-header,
.site-header,
.home-value-strip,
.home-feature,
.home-how,
.home-steps article,
.home-cta,
.product-shot,
.auth-card,
.download-card,
.download-note,
.system-note,
.feature-query,
.feature-lines,
.field input {
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 22px 70px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

.home-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 17, 31, 0.78), rgba(11, 17, 31, 0.42)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 60px rgba(0, 0, 0, 0.22);
}

.home-header .home-brand {
  color: #f7f9ff;
}

html[data-theme="dark"] .home-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.84), rgba(8, 12, 24, 0.5)),
    rgba(255, 255, 255, 0.04);
}

.home-footer,
footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.3), rgba(8, 12, 24, 0.72)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 -22px 70px rgba(0, 0, 0, 0.16);
}

.home-footer-bottom,
.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.home-footer-main > p,
.footer-main p,
.home-footer-bottom,
.footer-bottom {
  color: #aeb9cc;
}

.home-footer-main nav a:hover,
.footer-main a:hover {
  color: #ffffff;
  border-color: rgba(180, 202, 255, 0.55);
  transform: translateY(-2px);
}

.home-feature,
.home-how,
.home-steps article,
.home-cta,
.product-shot,
.auth-card,
.download-card,
.download-note,
.system-note {
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .home-feature,
html[data-theme="dark"] .home-how,
html[data-theme="dark"] .home-steps article,
html[data-theme="dark"] .home-cta,
html[data-theme="dark"] .product-shot,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .download-note,
html[data-theme="dark"] .system-note {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(10, 16, 30, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.38);
}

/* 注册页和下载页本来就是深色页面，玻璃要偏黑，文字才清楚。 */
body:not(.home-v2) .auth-card,
body:not(.home-v2) .download-card,
body:not(.home-v2) .download-note,
body:not(.home-v2) .system-note {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 13, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 90px rgba(0, 0, 0, 0.42);
}

body:not(.home-v2) .field input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(3, 8, 20, 0.72);
  color: #f5f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.24);
}

body:not(.home-v2) .auth-card h1,
body:not(.home-v2) .download-hero h1,
body:not(.home-v2) .download-card h2 {
  color: #f7f9ff;
}

body:not(.home-v2) .auth-card > p,
body:not(.home-v2) .download-hero p,
body:not(.home-v2) .download-card p {
  color: #b7c2d6;
}

/* 首页科技感背景: 明显运动，但不影响文字阅读。 */
.home-v2 {
  background-size: 160% 160%;
  animation: aurora-pan 16s ease-in-out infinite alternate;
}

.home-v2::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(18, 63, 143, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 143, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(76, 111, 255, 0.18), transparent 32%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
  transform-origin: 50% 0%;
  animation: tech-grid-float 12s ease-in-out infinite alternate;
}

html[data-theme="dark"] .home-v2::after {
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(125, 142, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 142, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 52% 16%, rgba(28, 139, 255, 0.18), transparent 32%);
}

.home-hero,
.home-product,
.home-feature-grid,
.download-card,
.auth-shell {
  perspective: 1200px;
}

/* JS 会写入 --rx 和 --ry，让卡片跟随鼠标产生 3D 倾斜。 */
.tilt-ready {
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.tilt-ready:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 34px 100px rgba(18, 63, 143, 0.28);
}

/* 让首屏截图更像悬浮在空间里的玻璃屏幕。 */
.product-shot {
  transform-origin: center;
}

.product-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%);
}

@keyframes aurora-pan {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 70%;
  }
}

@keyframes tech-grid-float {
  0% {
    transform: translate3d(0, 0, 0) rotateX(58deg) scale(1.08);
  }

  100% {
    transform: translate3d(0, -28px, 0) rotateX(62deg) scale(1.16);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orb-one {
    animation-duration: 8s;
  }

  .hero-orb-two {
    animation-duration: 9s;
  }

  .product-shot {
    animation: product-float 4.8s ease-in-out infinite;
  }

  .home-feature:nth-child(odd) {
    animation: card-hover-drift 7s ease-in-out infinite;
  }

  .home-feature:nth-child(even) {
    animation: card-hover-drift 8s ease-in-out infinite reverse;
  }
}

@keyframes card-hover-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 720px) {
  .home-v2::after {
    opacity: 0.18;
    background-size: 42px 42px, 42px 42px, 100% 100%;
  }

  .tilt-ready {
    transform: none;
  }
}

/* 明暗适配修正: 下载行动区在明亮模式下必须使用深色文字。 */
.home-v2 .home-cta {
  color: #142036;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
}

.home-v2 .home-cta > div > span {
  color: #506fc8;
}

.home-v2 .home-cta h2 {
  color: #111827;
}

.home-v2 .home-cta p {
  color: #46546a;
}

html[data-theme="dark"] .home-v2 .home-cta {
  color: #f7f9ff;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(10, 16, 30, 0.62);
}

html[data-theme="dark"] .home-v2 .home-cta > div > span {
  color: #cddaff;
}

html[data-theme="dark"] .home-v2 .home-cta h2 {
  color: #f7f9ff;
}

html[data-theme="dark"] .home-v2 .home-cta p {
  color: #c3ccdd;
}

/* 暗黑阴影加强: 黑底里用深投影 + 冷色光边，层次才看得出来。 */
html[data-theme="dark"] .home-header,
html[data-theme="dark"] .home-value-strip,
html[data-theme="dark"] .home-feature,
html[data-theme="dark"] .home-how,
html[data-theme="dark"] .home-steps article,
html[data-theme="dark"] .home-cta,
html[data-theme="dark"] .product-shot,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .download-note,
html[data-theme="dark"] .system-note,
html[data-theme="dark"] .home-footer,
html[data-theme="dark"] footer {
  border-color: rgba(191, 205, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 55px rgba(0, 0, 0, 0.62),
    0 48px 130px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(96, 122, 255, 0.16);
}

html[data-theme="dark"] .home-feature:hover,
html[data-theme="dark"] .home-steps article:hover,
html[data-theme="dark"] .product-shot:hover,
html[data-theme="dark"] .home-cta:hover {
  border-color: rgba(202, 214, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 66px 160px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(104, 131, 255, 0.24);
}

html[data-theme="dark"] .home-links a,
html[data-theme="dark"] .home-login,
html[data-theme="dark"] .home-footer-main nav a,
html[data-theme="dark"] .footer-main a,
html[data-theme="dark"] .button,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .home-btn,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .download-button {
  border-color: rgba(210, 222, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -14px 28px rgba(4, 10, 24, 0.38),
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 30px rgba(112, 139, 255, 0.2);
}

html[data-theme="dark"] .home-links a:hover,
html[data-theme="dark"] .home-login:hover,
html[data-theme="dark"] .home-footer-main nav a:hover,
html[data-theme="dark"] .footer-main a:hover,
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .home-btn:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .download-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -14px 28px rgba(4, 10, 24, 0.34),
    0 18px 44px rgba(0, 0, 0, 0.64),
    0 0 46px rgba(129, 154, 255, 0.32);
}

/* 手机端左右边距修正: 所有主要区域统一居中，避免左宽右窄。 */
@media (max-width: 720px) {
  .container,
  .home-container {
    width: min(100% - 32px, 430px);
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
  }

  .home-hero,
  .home-hero-copy,
  .home-actions,
  .home-product,
  .home-assurance,
  .home-section,
  .home-cta,
  .product-shot {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-copy > p,
  .download-hero p {
    max-width: 100%;
  }

  .home-actions .home-btn,
  .download-button,
  .auth-card .btn {
    width: 100%;
  }

  .home-assurance {
    gap: 10px;
  }

  .home-assurance span {
    max-width: 100%;
  }

  .product-shot {
    border-radius: 16px;
  }
}

/* 手机端最终兜底: 防止后续组件规则把容器重新撑到 100%。 */
@media (max-width: 720px) {
  .home-v2 .home-container,
  .home-v2 .home-hero.home-container,
  .home-v2 .home-section.home-container,
  .home-v2 .home-cta.home-container {
    width: calc(100% - 32px);
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-v2 .home-hero-copy,
  .home-v2 .home-actions,
  .home-v2 .home-assurance,
  .home-v2 .home-product {
    width: 100%;
    max-width: 100%;
  }

  .home-v2 .home-actions .home-btn,
  .home-v2 .product-shot {
    width: 100%;
  }
}

/* 手机端头部修正: 保留登录入口，点击仍然直接进入 8080 主系统。 */
@media (max-width: 720px) {
  .home-v2 .home-nav {
    gap: 10px;
  }

  .home-v2 .home-account {
    gap: 7px;
    margin-left: auto;
  }

  .home-v2 .home-login {
    display: inline-flex;
    min-height: 38px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .home-v2 .theme-toggle,
  .home-v2 .home-btn-small {
    min-width: 0;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

/*
 * 首页明亮主题收口。
 * 上方通用玻璃样式也服务深色注册/下载页，因此在这里仅针对首页明亮模式
 * 恢复清晰的白色表面、深色文字和轻量阴影，避免手机端看起来像暗黑模式。
 */
html:not([data-theme="dark"]) .home-v2 {
  --ink: #0f172a;
  --ink-2: #25334a;
  --muted: #526176;
  --muted-2: #6f7d91;
  --paper: #f8fafc;
  --paper-2: #edf3f9;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --line: #d8e1ec;
  --line-strong: #bdcada;
  --blue: #174ea6;
  --blue-2: #0f3d87;
  --blue-soft: #e5edff;
  color-scheme: light;
  background:
    radial-gradient(720px 460px at 92% 5%, rgba(61, 111, 224, 0.13), transparent 66%),
    radial-gradient(620px 400px at 5% 30%, rgba(14, 148, 136, 0.07), transparent 68%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fa 50%, #f8fafc 100%);
}

html:not([data-theme="dark"]) .home-v2::before {
  background:
    radial-gradient(720px 440px at 84% 8%, rgba(43, 92, 190, 0.12), transparent 64%),
    radial-gradient(520px 340px at 8% 20%, rgba(13, 148, 136, 0.07), transparent 66%);
}

html:not([data-theme="dark"]) .home-v2::after {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(39, 78, 142, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 78, 142, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 16%, rgba(76, 111, 255, 0.1), transparent 34%);
}

html:not([data-theme="dark"]) .home-header {
  border-bottom-color: rgba(77, 103, 141, 0.16);
  background: rgba(250, 252, 255, 0.91);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.78),
    0 10px 34px rgba(37, 55, 84, 0.08);
}

html:not([data-theme="dark"]) .home-header .home-brand {
  color: #12203a;
}

html:not([data-theme="dark"]) .home-links a,
html:not([data-theme="dark"]) .home-login,
html:not([data-theme="dark"]) .home-footer-main nav a {
  border-color: rgba(111, 132, 164, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: #3f4f67;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(39, 58, 88, 0.07);
  text-shadow: none;
}

html:not([data-theme="dark"]) .home-links a:hover,
html:not([data-theme="dark"]) .home-login:hover,
html:not([data-theme="dark"]) .home-footer-main nav a:hover {
  border-color: rgba(23, 78, 166, 0.28);
  background: #ffffff;
  color: #174ea6;
  box-shadow: 0 10px 24px rgba(36, 75, 136, 0.12);
}

html:not([data-theme="dark"]) .theme-toggle {
  border-color: rgba(111, 132, 164, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #263750;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 8px 18px rgba(39, 58, 88, 0.08);
  text-shadow: none;
}

html:not([data-theme="dark"]) .home-value-strip {
  border-color: rgba(96, 119, 151, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 42px rgba(32, 55, 89, 0.07);
}

html:not([data-theme="dark"]) .home-feature,
html:not([data-theme="dark"]) .home-steps article {
  border-color: #dce5ef;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 18px 42px rgba(34, 55, 86, 0.09);
}

html:not([data-theme="dark"]) .home-feature-primary {
  background:
    linear-gradient(180deg, rgba(221, 233, 255, 0.72), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

html:not([data-theme="dark"]) .home-how {
  border-color: #d9e4f0;
  background: rgba(237, 244, 251, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 46px rgba(34, 55, 86, 0.07);
}

html:not([data-theme="dark"]) .product-shot {
  border-color: rgba(63, 83, 116, 0.2);
  background: #ffffff;
  box-shadow:
    0 26px 64px rgba(30, 48, 77, 0.18),
    0 2px 8px rgba(30, 48, 77, 0.08);
}

html:not([data-theme="dark"]) .home-v2 .home-cta {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(135deg, #2861bc, #123f8f);
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(18, 63, 143, 0.24);
}

html:not([data-theme="dark"]) .home-v2 .home-cta > div > span,
html:not([data-theme="dark"]) .home-v2 .home-cta p {
  color: #dce8ff;
}

html:not([data-theme="dark"]) .home-v2 .home-cta h2 {
  color: #ffffff;
}

html:not([data-theme="dark"]) .home-footer,
html:not([data-theme="dark"]) footer {
  border-top-color: #d9e3ee;
  background: rgba(244, 248, 252, 0.94);
  color: #3f4f67;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 -14px 42px rgba(34, 55, 86, 0.06);
}

html:not([data-theme="dark"]) .home-footer-main > p,
html:not([data-theme="dark"]) .home-footer-bottom {
  color: #66758a;
}

html:not([data-theme="dark"]) .home-footer-bottom {
  border-top-color: #d9e3ee;
}

@media (max-width: 720px) {
  .home-v2 {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .home-header {
    top: env(safe-area-inset-top);
    height: 66px;
  }

  .home-v2 .home-nav {
    min-height: 66px;
  }

  .home-v2 .theme-toggle,
  .home-v2 .home-login,
  .home-v2 .home-btn-small {
    min-height: 44px;
  }

  html:not([data-theme="dark"]) .home-v2::after {
    opacity: 0.1;
  }

  html:not([data-theme="dark"]) .home-feature,
  html:not([data-theme="dark"]) .home-steps article,
  html:not([data-theme="dark"]) .product-shot {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
