/* ============================================================
   星轨商店 Orbit Store — 设计系统与公共样式
   风格：紧凑清晰 / 胶囊化元素 / 星轨紫罗兰主题
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f4f5fb;
  --bg-soft: #eceef7;
  --card: #ffffff;
  --card-soft: #f7f8fd;
  --text: #181a2c;
  --text-2: #5d6378;
  --text-3: #9a9fb3;
  --line: #e7e9f4;
  --line-strong: #d9dcec;

  --primary: #5f5ce8;
  --primary-2: #9a63f6;
  --primary-deep: #4a47c9;
  --primary-soft: #eeeafd;
  --primary-soft-2: #e3ddfc;
  --grad: linear-gradient(135deg, #5f5ce8 0%, #9a63f6 100%);
  --grad-soft: linear-gradient(135deg, #efecfd 0%, #f6ecfd 100%);

  --star: #ffb020;
  --green: #14a06a;
  --green-soft: #e2f6ee;
  --red: #f04438;
  --red-soft: #fdeae8;
  --blue: #2e90fa;
  --blue-soft: #e8f2fe;
  --orange: #f79009;
  --orange-soft: #fef2e0;

  --shadow-xs: 0 1px 2px rgba(24, 26, 44, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(50, 52, 110, 0.10);
  --shadow-md: 0 10px 30px -12px rgba(50, 52, 110, 0.20);
  --shadow-lg: 0 24px 60px -24px rgba(50, 52, 110, 0.35);

  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --pill: 999px;

  --container: 1200px;
  --nav-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; border: none; outline: none; background: transparent; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(95, 92, 232, 0.22); }

/* 滚动条（桌面） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #cdd1e4;
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.page { min-height: 60vh; padding: 26px 0 60px; }

.section { margin-bottom: 38px; }
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-title .st-dot {
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: var(--grad);
  flex: none;
}

.section-sub { font-size: 12.5px; color: var(--text-3); font-weight: 400; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--card);
  transition: all 0.18s ease;
}
.link-more:hover {
  border-color: var(--primary-soft-2);
  background: var(--primary-soft);
}
.link-more svg { width: 13px; height: 13px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex: none;
}
.brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(95, 92, 232, 0.7);
}
.brand .brand-mark svg { width: 19px; height: 19px; }
.brand .brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.1;
}
.brand .brand-text b { font-size: 16.5px; font-weight: 800; }
.brand small {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.nav-pills a {
  padding: 6px 16px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-pills a:hover { color: var(--primary-deep); }
.nav-pills a.active {
  background: var(--card);
  color: var(--primary-deep);
  box-shadow: var(--shadow-xs);
}

.nav-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px;
  border-radius: var(--pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.nav-search:focus-within {
  border-color: var(--primary-soft-2);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(95, 92, 232, 0.08);
}
.nav-search svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.nav-search input { flex: 1; min-width: 0; font-size: 13px; }
.nav-search input::placeholder { color: var(--text-3); }
.nav-search kbd {
  font-family: var(--font);
  font-size: 10.5px;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 6px;
  padding: 2px 7px;
  flex: none;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  position: relative;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--primary-deep); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}

/* ---------- 胶囊按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 22px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(95, 92, 232, 0.75);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(95, 92, 232, 0.8);
  filter: brightness(1.04);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--primary-soft-2); color: var(--primary-deep); background: var(--primary-soft); }

.btn-soft { background: var(--primary-soft); color: var(--primary-deep); }
.btn-soft:hover { background: var(--primary-soft-2); }

.btn-lg { padding: 12px 30px; font-size: 15px; }
.btn-sm { padding: 6px 16px; font-size: 12.5px; }

/* 获取按钮（卡片内） */
.btn-get {
  padding: 6px 18px;
  font-size: 12.5px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--pill);
  font-weight: 700;
  transition: all 0.2s ease;
  flex: none;
}
.btn-get:hover { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(95, 92, 232, 0.8); }
.btn-get.installed { background: var(--bg-soft); color: var(--text-3); pointer-events: none; }
.btn-get.installed::before { content: "✓ "; }

/* ---------- 胶囊标签 / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--primary-soft-2); color: var(--primary-deep); }
.chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(95, 92, 232, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.tag.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag.orange { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.tag.purple { background: var(--primary-soft); color: var(--primary-deep); border-color: transparent; }

.badge-fire {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff7a45, #ff3d71);
}

/* ---------- 评分 ---------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.rating .star { color: var(--star); font-size: 11px; letter-spacing: 0.5px; }
.rating .score { color: var(--orange); font-weight: 800; }

/* ---------- 应用图标 ---------- */
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 27px;
  flex: none;
  position: relative;
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.12), var(--shadow-xs);
  overflow: hidden;
}
.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}
.app-icon.sm { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
.app-icon.lg { width: 88px; height: 88px; border-radius: 24px; font-size: 42px; }
/* 图片图标（图标值存图片地址时）：图片铺满、去掉高光叠层 */
.app-icon.has-img::after { display: none; }
.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 应用卡片 ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  gap: 13px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.22s ease;
  position: relative;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-md);
}

.app-card .app-main { flex: 1; min-width: 0; }

.app-card .app-name {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.app-card .app-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.app-card .app-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.app-card .app-desc {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card .app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

/* 横向紧凑列表行（榜单 / 侧栏） */
.app-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.app-row:hover {
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}
.app-row .row-main { flex: 1; min-width: 0; }
.app-row .app-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.app-row .app-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; display: flex; gap: 7px; align-items: center; }
.app-row .row-num {
  width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.app-row .row-num.top { color: var(--primary); }

/* ---------- 空状态 ---------- */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty .empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  font-size: 32px;
}
.empty p { font-size: 13.5px; margin-bottom: 4px; }
.empty .empty-hint { font-size: 12px; color: var(--text-3); }

/* ---------- 横向滚动容器 ---------- */
.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  margin: -4px -4px -6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { border: none; background: #d5d8e8; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 40px;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}
.footer .brand { margin-bottom: 10px; }
.footer .footer-slogan {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.8;
  max-width: 300px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 12.5px; color: var(--text-3); transition: color 0.15s; width: fit-content; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.footer-bottom .footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 移动端底部标签栏 ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  bottom: 14px;
  z-index: 130;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 6px;
  gap: 2px;
  box-shadow: var(--shadow-lg);
}
.tabbar a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tabbar a svg { width: 17px; height: 17px; transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tabbar a:hover { color: var(--primary-deep); }
.tabbar a.active {
  background: linear-gradient(135deg, rgba(95, 92, 232, 0.12), rgba(154, 99, 246, 0.12));
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(95, 92, 232, 0.16);
}
.tabbar a.active svg { transform: scale(1.1); }

/* ---------- 通用动效 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.d-1 { animation-delay: 0.04s; }
.d-2 { animation-delay: 0.08s; }
.d-3 { animation-delay: 0.12s; }
.d-4 { animation-delay: 0.16s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ============================================================
   首页样式
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 46px 0 34px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 640px;
  background:
    radial-gradient(closest-side, rgba(95, 92, 232, 0.16), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(154, 99, 246, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}
.hero-eyebrow .pill-tag {
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--pill);
  letter-spacing: 0.4px;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .hero-sub {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 520px;
  margin: 0 auto 26px;
}

/* 大搜索框 */
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 7px 7px 7px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.hero-search:focus-within {
  border-color: var(--primary-soft-2);
  box-shadow: 0 0 0 5px rgba(95, 92, 232, 0.09), var(--shadow-md);
}
.hero-search svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.hero-search input { flex: 1; min-width: 0; font-size: 14.5px; }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search .btn { padding: 10px 26px; }

.hero-hot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}
.hero-hot a {
  padding: 5px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  transition: all 0.18s ease;
}
.hero-hot a:hover {
  color: var(--primary-deep);
  border-color: var(--primary-soft-2);
  background: var(--primary-soft);
}
.hero-hot a.rising { color: var(--red); background: var(--red-soft); border-color: transparent; }

/* ---------- 首页数据横条 ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.stat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
.stat-item:hover { border-color: var(--primary-soft-2); box-shadow: var(--shadow-sm); }
.stat-item .stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: none;
}
.stat-item b { font-size: 17px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.stat-item span { font-size: 11.5px; color: var(--text-3); }

/* ---------- 分类快捷入口 ---------- */
.cat-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 10px;
  border-radius: var(--pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s ease;
  flex: none;
}
.cat-pill .cat-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.cat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft-2);
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}
.cat-pill small { color: var(--text-3); font-weight: 500; font-size: 11px; }

/* ---------- 编辑精选（横滑大卡） ---------- */
.feature-card {
  width: 330px;
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.feature-card::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -70px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.1);
}
.feature-card .fc-label {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  margin-bottom: 12px;
}
.feature-card h3 { position: relative; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.feature-card p {
  position: relative;
  font-size: 12.5px;
  opacity: 0.86;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card .fc-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.feature-card .fc-foot .rating { color: rgba(255, 255, 255, 0.95); }
.feature-card .fc-foot .rating .star,
.feature-card .fc-foot .rating .score { color: #ffd66b; }
.feature-card .fc-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #2c2a5e;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--pill);
  transition: all 0.18s ease;
}
.feature-card .fc-btn:hover { background: #fff; transform: scale(1.04); }

/* ---------- 首页双栏 ---------- */
.home-cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.panel .panel-title { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.panel .panel-title .st-dot { height: 18px; }
.panel .panel-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }

.rank-mini { display: flex; flex-direction: column; gap: 8px; }
.rank-mini .app-row { border: none; background: transparent; padding: 9px 10px; }
.rank-mini .app-row:hover { background: var(--card-soft); }

.new-grid { display: flex; flex-direction: column; gap: 8px; }
.new-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}
.new-item:hover { background: var(--card-soft); }
.new-item .row-main { flex: 1; min-width: 0; }
.new-item .app-name { font-size: 13.5px; font-weight: 700; }
.new-item .app-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

/* ============================================================
   列表页样式
   ============================================================ */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 25px; font-weight: 800; letter-spacing: 0.3px; }
.page-head .page-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 10px);
  z-index: 60;
  box-shadow: var(--shadow-xs);
}
.filter-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  padding-right: 3px;
  letter-spacing: 0.5px;
}
.filter-divider { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

.result-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.result-strip b { color: var(--primary); font-weight: 800; }

.load-more-wrap { text-align: center; margin-top: 26px; }

/* ============================================================
   排行榜样式
   ============================================================ */

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 16px;
  align-items: start;
}

.rank-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.rank-tab {
  padding: 8px 22px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rank-tab:hover { color: var(--primary-deep); }
.rank-tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(95, 92, 232, 0.8); }

.rank-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.22s ease;
  position: relative;
}
.rank-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-md);
}
.rank-item .rank-num {
  width: 42px;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-3);
  flex: none;
  font-style: italic;
  letter-spacing: -0.5px;
}
.rank-item .rank-num.n1 {
  background: linear-gradient(135deg, #ff9d2e, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-item .rank-num.n2 {
  background: linear-gradient(135deg, #7f9cf5, #5a67d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-item .rank-num.n3 {
  background: linear-gradient(135deg, #f6ad55, #dd6b20);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rank-item .rank-main { flex: 1; min-width: 0; }
.rank-item .rank-name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rank-item .rank-desc {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rank-item .rank-stats {
  text-align: right;
  font-size: 12px;
  color: var(--text-3);
  flex: none;
  line-height: 1.5;
}
.rank-item .rank-stats b { display: block; font-size: 13.5px; color: var(--text-2); font-weight: 800; }
.rank-item .rank-stats .trend-up { color: var(--red); font-weight: 700; }
.rank-item .rank-stats .trend-down { color: var(--green); font-weight: 700; }

.side-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
/* 仅第一个面板吸顶，后续面板一律 static。用一般兄弟选择器（~）而非相邻（+）：
   即使两面板之间被插入其他元素也不会失效，避免多个面板吸顶重叠相互遮挡 */
.side-panel ~ .side-panel { margin-top: 14px; position: static; }
.side-panel .panel-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.legend-list { display: flex; flex-direction: column; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.legend-item:last-child { border-bottom: none; }
.legend-item .leg-info { flex: 1; min-width: 0; }
.legend-item .leg-info b { font-size: 13px; display: block; }
.legend-item .leg-info span { font-size: 11.5px; color: var(--text-3); }
.legend-item .leg-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 11px;
  border-radius: var(--pill);
}

/* ============================================================
   详情页样式
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .bc-sep { opacity: 0.6; }

.detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title action"
    "icon tags action"
    "icon stats action";
  align-items: center;
  column-gap: 22px;
  row-gap: 12px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  margin-bottom: 18px;
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    210px circle at calc(100% - 72px) 30px,
    #efecfd,
    rgba(246, 236, 253, 0.45) 55%,
    transparent 78%
  );
  opacity: 0.9;
  pointer-events: none;
}
.detail-hero > * { position: relative; }
.detail-hero .dh-safe {
  position: absolute;
  top: -12px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 5px 11px -5px rgba(20, 160, 106, 0.45), 0 2px 6px rgba(24, 26, 44, 0.06);
}
.detail-hero > .app-icon { grid-area: icon; align-self: center; }
.detail-hero .dh-title { grid-area: title; min-width: 0; }
.detail-hero h1 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-hero .dh-dev { color: var(--primary); font-size: 13.5px; font-weight: 600; margin-top: 3px; }
.detail-hero .dh-tags { grid-area: tags; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-hero .dh-stats {
  grid-area: stats;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  background: var(--card-soft);
}
.dh-stat {
  padding: 9px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
  min-width: 92px;
}
.dh-stat:last-child { border-right: none; }
.dh-stat b { display: block; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dh-stat span { font-size: 11px; color: var(--text-3); }

.detail-hero .dh-action { grid-area: action; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.detail-hero .dh-action .btn { min-width: 172px; }
.detail-hero .dh-action .dh-note { font-size: 11.5px; color: var(--text-3); }

/* 截图横滑 */
.shot {
  width: 208px;
  height: 380px;
  border-radius: 24px;
  border: 5px solid #1d1f33;
  overflow: hidden;
  position: relative;
  flex: none;
  background: var(--card);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease;
}
.shot:hover { transform: translateY(-5px) scale(1.01); }
.shot .shot-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shot .shot-status {
  display: flex;
  justify-content: space-between;
  padding: 7px 13px 4px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.3px;
}
.shot .shot-body { flex: 1; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.shot .si-hero {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  padding: 12px 10px;
  color: #fff;
}
.shot .si-hero b { font-size: 13px; display: block; margin-bottom: 3px; }
.shot .si-hero span { font-size: 9.5px; opacity: 0.85; }
.shot .si-line {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}
.shot .si-line.w70 { width: 70%; }
.shot .si-line.w45 { width: 45%; }
.shot .si-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.shot .si-tile {
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
}
.shot .si-tile.tall { height: 84px; }
.shot .si-nav {
  margin-top: auto;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.shot .si-nav i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9cbe8;
}
.shot .si-nav i.on { background: var(--primary); }

/* 详情双栏 */
.detail-cols {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 16px;
  align-items: start;
}
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.article h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.article h2 .st-dot { height: 18px; }
.article p.body-text { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }
.article .article-block + .article-block { margin-top: 28px; }

.changelog {
  border-left: 2px solid var(--primary-soft-2);
  padding-left: 16px;
  position: relative;
}
.changelog::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.changelog .cl-ver { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.changelog .cl-ver span { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.changelog ul { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.changelog li {
  font-size: 12.8px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.changelog li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

/* 评论 */
.review {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: none; padding-bottom: 0; }
.review .rv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.review .rv-main { flex: 1; min-width: 0; }
.review .rv-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.review .rv-name { font-size: 13px; font-weight: 700; }
.review .rv-time { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.review .rv-text { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.75; }
.review .rv-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s ease;
}
.review .rv-likes:hover { color: var(--primary); border-color: var(--primary-soft-2); background: var(--primary-soft); }

/* 信息侧栏 */
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list .info-row { display: flex; justify-content: space-between; font-size: 12.8px; gap: 12px; }
.info-list .info-row .k { color: var(--text-3); flex: none; }
.info-list .info-row .v { font-weight: 600; text-align: right; }

.side-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease;
}
.side-app:hover { background: var(--card-soft); }
.side-app .row-main { flex: 1; min-width: 0; }
.side-app .app-name { font-size: 13.5px; font-weight: 700; }
.side-app .app-meta { font-size: 11.5px; color: var(--text-3); }

/* ============================================================
   搜索页样式
   ============================================================ */

.search-hero { max-width: 720px; margin: 0 auto 26px; }
.search-hero .search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.search-hero .search-box:focus-within {
  border-color: var(--primary-soft-2);
  box-shadow: 0 0 0 5px rgba(95, 92, 232, 0.09), var(--shadow-md);
}
.search-hero .search-box svg { width: 19px; height: 19px; color: var(--text-3); flex: none; }
.search-hero .search-box input { flex: 1; font-size: 15px; min-width: 0; }
.search-hero .search-box .btn { padding: 10px 28px; }

.search-block { max-width: 720px; margin: 0 auto; }
.search-block + .search-block { margin-top: 30px; }
.search-block .block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.search-block .block-head h3 { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.search-block .clear-btn { font-size: 12px; color: var(--text-3); transition: color 0.15s; }
.search-block .clear-btn:hover { color: var(--red); }

.hot-word-list { display: flex; flex-wrap: wrap; gap: 9px; }
.hot-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  transition: all 0.18s ease;
}
.hot-word:hover {
  color: var(--primary-deep);
  border-color: var(--primary-soft-2);
  background: var(--primary-soft);
  transform: translateY(-1px);
}
.hot-word .hw-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  font-style: italic;
}
.hot-word .hw-rank.top { color: var(--red); }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .rank-layout, .detail-cols { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .home-cols { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-search kbd { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 14px; }
  .page { padding: 18px 0 90px; }

  .nav-pills { display: none; }
  .nav-search { display: none; }
  .brand small { display: none; }

  .tabbar { display: flex; }

  .hero { padding: 30px 0 22px; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 10px 18px; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 9px; grid-auto-rows: 1fr; }
  .section-sub, .panel-sub { display: none; }
  .stat-item { padding: 11px 13px; gap: 9px; }
  .stat-item .stat-ico { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .stat-item b { font-size: 15px; }

  .feature-card { width: 272px; min-height: 160px; }

  .app-grid { grid-template-columns: 1fr; }
  .app-card { padding: 12px; }

  .filter-bar {
    top: 0;
    position: static;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 9px;
    padding: 11px 12px;
  }
  .filter-bar .filter-divider { display: none; }
  .filter-bar .filter-group { flex-wrap: nowrap; }
  .filter-bar > .filter-group { overflow-x: auto; scrollbar-width: none; }
  .filter-bar > .filter-group::-webkit-scrollbar { display: none; }
  .filter-bar .filter-group .filter-group { flex: none; }

  .detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "tags tags"
      "stats stats"
      "action action";
    align-items: center;
    padding: 18px;
    column-gap: 15px;
    row-gap: 13px;
  }
  .detail-hero > .app-icon { width: 64px; height: 64px; border-radius: 19px; font-size: 32px; }
  .detail-hero .dh-safe { top: -11px; right: 12px; font-size: 10px; padding: 3px 8px; }
  .detail-hero h1 { font-size: 20px; }
  .detail-hero .dh-action { width: 100%; }
  .detail-hero .dh-action .btn { width: 100%; }
  .detail-hero .dh-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .detail-hero .dh-stat { min-width: 0; padding: 9px 8px; display: flex; flex-direction: column; justify-content: center; border-right: none; border-bottom: 1px solid var(--line); }
  .detail-hero .dh-stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .detail-hero .dh-stat:nth-child(n+3) { border-bottom: none; }
  .detail-hero .dh-stat b { font-size: 13px; white-space: nowrap; }
  .detail-hero .dh-stat span { font-size: 10.5px; white-space: nowrap; }

  .rank-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rank-tabs::-webkit-scrollbar { display: none; }

  .rank-item { padding: 12px 13px; gap: 11px; }
  .rank-item .rank-num { width: 30px; font-size: 18px; }
  .rank-item .rank-stats { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 104px; }

  .page-head h1 { font-size: 21px; }
  .shot { width: 182px; height: 336px; }

  .tabbar a { padding: 9px 12px; }
}

@media (max-width: 365px) {
  .tabbar a span { display: none; }
  .tabbar a { padding: 10px 13px; }
}

@media (max-width: 420px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .hero-hot a { padding: 4px 11px; font-size: 12px; }
}
