/* ═══════════════════════════════════════════════════════════
   主题包 · 后台可切换
   classic（默认，应用宝风格）  /  stripe（Stripe 风格，蓝色块为主）
   只改 CSS 变量与少量结构规则，不动 style.css 主体
   ═══════════════════════════════════════════════════════════ */

/* ── 默认主题：classic（保持现状，无需覆盖） ── */
html[data-theme="classic"] { }

/* ── Stripe 风格：深蓝墨 + 电光蓝，大色块，克制阴影 ── */
html[data-theme="stripe"] {
  --brand: #0b5fff;
  --brand-ink: #0a4fd6;
  --brand-soft: #e8f0ff;
  --brand-softer: #f4f8ff;
  --orange: #e8590c;
  --orange-soft: #fff2e8;
  --green: #12a150;
  --green-soft: #e9f9ef;
  --red: #d92d20;
  --yellow: #f5a524;

  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #0d253d;
  --text-2: #4a5b73;
  --text-3: #8494a8;
  --line: #e3e8ee;
  --line-2: #cfd8e3;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px rgba(16, 24, 40, .07);
  --shadow-lg: 0 1px 2px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .10);

  --nav-h: 56px;
}

/* 字体：细字重 + 负字距，Stripe 那种编辑感 */
html[data-theme="stripe"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="stripe"] h1,
html[data-theme="stripe"] h2 {
  font-weight: 600;
  letter-spacing: -0.028em;
}
html[data-theme="stripe"] h1 { font-weight: 300; }

/* 按钮：紧凑圆角 + 无重阴影 */
html[data-theme="stripe"] .btn {
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
html[data-theme="stripe"] .btn:not(.btn-line):not(.btn-ghost) {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
html[data-theme="stripe"] .btn-sm { border-radius: 7px; }

/* 卡片：hairline 边框代替重阴影 */
html[data-theme="stripe"] .app-card,
html[data-theme="stripe"] .card,
html[data-theme="stripe"] .panel {
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html[data-theme="stripe"] .app-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* 顶部导航：白底 hairline */
html[data-theme="stripe"] .topbar,
html[data-theme="stripe"] header.topbar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

/* ── Hero：大块蓝色渐变（用户要的「蓝色块为主」） ── */
html[data-theme="stripe"] .hero {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(11, 95, 255, .28), transparent 62%),
    radial-gradient(900px 380px at 88% -20%, rgba(83, 58, 253, .22), transparent 60%),
    linear-gradient(160deg, #0a3fb8 0%, #0b5fff 42%, #2b6bff 100%);
  color: #fff;
  border-radius: 0;
  padding: 68px 0 60px;
  position: relative;
  overflow: hidden;
}
html[data-theme="stripe"] .hero::after {
  content: '';
  position: absolute; inset: auto 0 -1px 0; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
html[data-theme="stripe"] .hero h1,
html[data-theme="stripe"] .hero h2,
html[data-theme="stripe"] .hero p,
html[data-theme="stripe"] .hero .sub {
  color: #fff;
}
html[data-theme="stripe"] .hero p,
html[data-theme="stripe"] .hero .sub { color: rgba(255, 255, 255, .82); }

/* Hero 里的次要按钮反白 */
html[data-theme="stripe"] .hero .btn-line,
html[data-theme="stripe"] .hero .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
html[data-theme="stripe"] .hero .btn-line:hover,
html[data-theme="stripe"] .hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .4);
}

/* 搜索框：在 Hero 上浮起来 */
html[data-theme="stripe"] .hero input,
html[data-theme="stripe"] .hero .search input {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(6, 30, 90, .18);
}

/* 标签 / 徽标 */
html[data-theme="stripe"] .tag,
html[data-theme="stripe"] .badge {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* 侧栏 / 筛选：淡底分区 */
html[data-theme="stripe"] .side-card,
html[data-theme="stripe"] .filter-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

/* 表格 */
html[data-theme="stripe"] .spec-table dt { color: var(--text-3); font-weight: 500; }
html[data-theme="stripe"] .spec-table dd { font-variant-numeric: tabular-nums; }

/* 详情页下载卡：蓝色块 */
html[data-theme="stripe"] .buy-card.is-ready {
  background: linear-gradient(168deg, #0b5fff 0%, #0a4fd6 100%);
  border: none;
  color: #fff;
}
html[data-theme="stripe"] .buy-card.is-ready .dl-head-title,
html[data-theme="stripe"] .buy-card.is-ready .amount,
html[data-theme="stripe"] .buy-card.is-ready p,
html[data-theme="stripe"] .buy-card.is-ready .small {
  color: #fff;
}
html[data-theme="stripe"] .buy-card.is-ready .small.muted,
html[data-theme="stripe"] .buy-card.is-ready .dl-head-sub {
  color: rgba(255, 255, 255, .72);
}
html[data-theme="stripe"] .buy-card.is-ready .btn {
  background: #fff;
  color: #0b5fff;
  box-shadow: 0 4px 16px rgba(4, 20, 60, .18);
}
html[data-theme="stripe"] .buy-card.is-ready .vh-latest,
html[data-theme="stripe"] .buy-card.is-ready .vh-list li {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
}
html[data-theme="stripe"] .buy-card.is-ready .vh-ver,
html[data-theme="stripe"] .buy-card.is-ready .vh-size,
html[data-theme="stripe"] .buy-card.is-ready .vh-date,
html[data-theme="stripe"] .buy-card.is-ready .vh > summary { color: #fff; }
html[data-theme="stripe"] .buy-card.is-ready .vh-dl {
  background: rgba(255, 255, 255, .2); color: #fff;
}

/* 页脚 */
html[data-theme="stripe"] .footer {
  background: #0d253d;
  color: rgba(255, 255, 255, .72);
  border-top: none;
}
html[data-theme="stripe"] .footer a { color: rgba(255, 255, 255, .88); }

/* 全局去重阴影，靠边框分层 */
html[data-theme="stripe"] .modal,
html[data-theme="stripe"] .dropdown,
html[data-theme="stripe"] .popover {
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(16, 24, 40, .14);
}

/* ── 首页轮播：不管后台配的什么底色，都压成蓝色块 ── */
html[data-theme="stripe"] .sl-slide-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
html[data-theme="stripe"] .sl-slide-inner::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 260px at 10% -30%, rgba(255, 255, 255, .22), transparent 62%),
    linear-gradient(118deg, #0a3fb8 0%, #0b5fff 46%, #2f74ff 100%);
  pointer-events: none;
}
html[data-theme="stripe"] .sl-slide-inner > * { position: relative; z-index: 1; }
html[data-theme="stripe"] .sl-title { color: #ffffff !important; letter-spacing: -.028em; }
html[data-theme="stripe"] .sl-sub { color: rgba(255, 255, 255, .84) !important; }
html[data-theme="stripe"] .sl-cta {
  background: #ffffff;
  color: #0a4fd6;
  border: none;
  box-shadow: 0 6px 20px rgba(4, 20, 60, .22);
}
html[data-theme="stripe"] .sl-cta:hover { background: #f2f6ff; }

/* 轮播再高一点，撑住「大气」 */
@media (min-width: 900px) {
  html[data-theme="stripe"] .sl-stage { height: 260px !important; }
}

/* 轮播指示点 */
html[data-theme="stripe"] .sl-dots .is-active,
html[data-theme="stripe"] .sl-dot.is-active { background: #ffffff; }
