/* ==========================================================================
   屿见应用源 · 设计系统
   单文件样式，无构建步骤。变量集中在 :root，改主题色只改这里。
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --line: #e6eaf2;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --container: 1160px;
  --tabbar-h: 84px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  * { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 50% -200px, #e7ecff 0%, rgba(231, 236, 255, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: #c7d2fe; color: #1e1b4b; }

.app-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px calc(var(--tabbar-h) + 28px);
}

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(245, 247, 251, .96) 70%, rgba(245, 247, 251, 0));
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .32);
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 16.5px; letter-spacing: .2px; line-height: 1.25; }
.brand-text small { color: var(--muted); font-size: 11.5px; line-height: 1.35; letter-spacing: .2px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   按钮 / 徽标
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5b53ef 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .36); }

.btn-ghost {
  color: var(--text-2);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--text); border-color: #cfd6e6; }

.btn-soft { color: var(--primary); background: var(--primary-soft); }
.btn-soft:hover { background: #e0e7ff; }

.btn-disabled,
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .2px;
  white-space: nowrap;
}
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-soft { color: var(--primary); background: var(--primary-soft); }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-neutral { color: var(--text-2); background: #f1f5f9; }
.badge-beta { color: #7c3aed; background: #f5f3ff; }
.badge-link { color: #0369a1; background: #f0f9ff; }

/* --------------------------------------------------------------------------
   页面骨架
   -------------------------------------------------------------------------- */

.view { padding-top: 8px; }

.page-head { margin: 26px 0 18px; }
.page-head h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -.3px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section { margin-top: 34px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 19.5px; margin: 0; letter-spacing: -.2px; }
.section-head .sub { color: var(--muted); font-size: 13px; }
.section-head a { color: var(--primary); font-size: 13.5px; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 44px 40px 38px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 88% 8%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(500px 320px at 6% 100%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #4f46e5 0%, #4338ca 46%, #312e81 100%);
  box-shadow: 0 24px 60px rgba(49, 46, 129, .28);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 44px rgba(255, 255, 255, .05), 0 0 0 92px rgba(255, 255, 255, .035);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -.6px;
  margin: 12px 0 12px;
  max-width: 15em;
}
.hero h1 em { font-style: normal; color: #c7d2fe; }

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  max-width: 34em;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .22);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stat strong { display: block; font-size: 22px; letter-spacing: -.3px; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .7); }

/* 搜索框 */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 18px; }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  padding: 9px 0;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar .btn { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   分类 chips
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: #cfd6e6; }
.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}
.chip .count { opacity: .55; font-weight: 500; margin-left: 3px; }

/* --------------------------------------------------------------------------
   应用卡片
   -------------------------------------------------------------------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: #d6ddec;
  box-shadow: var(--shadow);
}

.app-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .35);
  overflow: hidden;
  user-select: none;
}
.app-icon svg { width: 100%; height: 100%; }
.app-icon.lg { width: 84px; height: 84px; flex-basis: 84px; border-radius: 21px; font-size: 34px; }
.app-icon.sm { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 17px; }

.app-card-body { flex: 1; min-width: 0; }
.app-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  margin: 0 0 2px;
  line-height: 1.35;
}
.app-card-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-sub {
  color: var(--text-2);
  font-size: 12.5px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 11.5px;
}
.app-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.app-card-meta .dot::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 7px;
  opacity: .7;
}

/* 精选：横向大卡 */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  opacity: .85;
}
.feature-card .head { display: flex; gap: 13px; align-items: center; }
.feature-card h3 { margin: 0; font-size: 16px; letter-spacing: -.1px; }
.feature-card .desc {
  margin: 0;
  color: var(--text-2);
  font-size: 12.8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.feature-card .foot small { color: var(--muted); font-size: 11.5px; }

/* --------------------------------------------------------------------------
   筛选工具条
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.toolbar .searchbar { flex: 1 1 260px; max-width: 420px; box-shadow: var(--shadow-sm); }

.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-radius: 999px;
  padding: 9px 34px 9px 15px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.select:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }

.result-line { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

/* --------------------------------------------------------------------------
   应用详情
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  margin: 20px 0 14px;
}
.breadcrumb a:hover { color: var(--primary); }

.detail-hero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 100% 0%, #eef2ff 0%, rgba(238, 242, 255, 0) 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.detail-hero .info { flex: 1; min-width: 0; }
.detail-hero h1 { margin: 0 0 4px; font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -.4px; }
.detail-hero .subtitle { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.detail-hero .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-hero .install-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-hero .install-row .hint { color: var(--muted); font-size: 12px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.fact { background: var(--surface); padding: 12px 14px; }
.fact dt { color: var(--muted); font-size: 11.5px; margin: 0 0 2px; }
.fact dd { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.1px; }

.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.shot {
  flex: 0 0 auto;
  width: 208px;
  height: 372px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shot span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .28), transparent 60%);
}

.prose { color: var(--text-2); font-size: 14.5px; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.panel { padding: 20px 22px; }
.panel h2 {
  font-size: 15.5px;
  margin: 0 0 12px;
  letter-spacing: -.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 14px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* 版本记录 */
.version-list { display: grid; gap: 0; }
.version-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  font-size: 13.5px;
}
.version-item:first-child { border-top: 0; padding-top: 0; }
.version-item .ver { font-weight: 700; font-size: 14px; }
.version-item .ver small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.version-item .notes { color: var(--text-2); }
.version-item .meta { color: var(--muted); font-size: 11.5px; text-align: right; white-space: nowrap; }

/* 证书卡 */
.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.cert-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cert-card h3 { margin: 0 0 3px; font-size: 15.5px; }
.cert-card .type { color: var(--muted); font-size: 12.5px; }
.cert-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.cert-row dt { color: var(--muted); font-size: 11.5px; margin: 0; }
.cert-row dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; word-break: break-all; }
.cert-card .note { color: var(--text-2); font-size: 12.5px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); }

.progress {
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #059669); }
.progress.warn > span { background: linear-gradient(90deg, #fbbf24, #d97706); }
.progress.danger > span { background: linear-gradient(90deg, #f87171, #dc2626); }

/* --------------------------------------------------------------------------
   步骤 / FAQ / 说明页
   -------------------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.steps li strong { color: var(--text); }

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13.5px;
}
.callout.info { background: var(--primary-soft); border-color: #c7d2fe; color: var(--primary-dark); }
.callout.danger { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.callout svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--text-2); font-size: 13.8px; padding-top: 10px; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 14px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--danger); }
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field .help { color: var(--muted); font-size: 11.8px; }
.form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 12px; }

/* --------------------------------------------------------------------------
   空状态 / 骨架 / Toast
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #d9e0ec;
  border-radius: var(--radius);
}
.empty strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }

.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, #eef1f7 30%, #f7f9fc 50%, #eef1f7 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton-card { height: 92px; }
.skeleton-line { height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 20px);
  transform: translate(-50%, 16px);
  z-index: 80;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   页脚 / 底部导航
   -------------------------------------------------------------------------- */

.footer { margin-top: 48px; padding: 22px 2px 0; border-top: 1px solid var(--line); }
.footer-inner { color: var(--muted); font-size: 12.3px; }
.footer-inner p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footer-links a:hover { color: var(--primary); }
.footer-meta { opacity: .8; }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: min(440px, calc(100vw - 24px));
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(230, 234, 242, .9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1), 0 18px 44px rgba(15, 23, 42, .1);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.tab:hover { color: var(--text-2); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px 28px; border-radius: 22px; }
  .detail-hero { flex-direction: column; gap: 16px; padding: 20px; }
  .version-item { grid-template-columns: 78px 1fr; }
  .version-item .meta { grid-column: 2; text-align: left; }
}

@media (max-width: 560px) {
  .app-shell { padding: 0 14px calc(var(--tabbar-h) + 26px); }
  .topbar { padding: 13px 0 8px; }
  .topbar-actions .btn { display: none; }
  .brand-text small { display: none; }
  .page-head h1 { font-size: 23px; }
  .hero h1 { font-size: 25px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 10px 22px; }
  .hero-stat strong { font-size: 19px; }
  .app-grid { grid-template-columns: 1fr; }
  .searchbar { padding-left: 14px; }
  .toolbar .searchbar { max-width: none; }
  .detail-hero h1 { font-size: 22px; }
  .app-icon.lg { width: 72px; height: 72px; flex-basis: 72px; border-radius: 18px; font-size: 29px; }
  .shot { width: 172px; height: 306px; }
  .panel { padding: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
