/* inyou 开源专区 & 详情页 V2.0 双主题高定样式表
 * 规范：Tokyo Night 深色 / 雾蓝白浅色全 CSS 变量驱动 · 4px 间距网格 · 360/390/1440 零横向溢出
 */

:root,
html[data-theme="dark"] {
  --os-bg: #161822;
  --os-surface: #1e2130;
  --os-surface-2: #25293c;
  --os-surface-hover: #2a2f46;
  --os-border: rgba(148, 163, 184, 0.16);
  --os-border-strong: rgba(148, 163, 184, 0.28);
  --os-text: #e6eaf5;
  --os-text-2: #c0caf5;
  --os-muted: #9aa5c4;
  --os-primary: #7aa2f7;
  --os-primary-fg: #0b1020;
  --os-primary-soft: rgba(122, 162, 247, 0.15);
  --os-accent: #7dcfff;
  --os-green: #34d399;
  --os-green-soft: rgba(52, 211, 153, 0.12);
  --os-green-border: rgba(52, 211, 153, 0.30);
  --os-amber: #fbbf24;
  --os-amber-soft: rgba(251, 191, 36, 0.11);
  --os-amber-border: rgba(251, 191, 36, 0.30);
  --os-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  --os-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.22);
  --os-topbar-bg: rgba(22, 24, 34, 0.84);
  --os-hero-glow: radial-gradient(ellipse 68% 50% at 50% -10%, rgba(122, 162, 247, 0.18), transparent 72%);
}

html[data-theme="light"] {
  --os-bg: #f5f7fb;
  --os-surface: #ffffff;
  --os-surface-2: #f0f4fa;
  --os-surface-hover: #e8effa;
  --os-border: rgba(15, 23, 42, 0.09);
  --os-border-strong: rgba(15, 23, 42, 0.18);
  --os-text: #0f172a;
  --os-text-2: #1e293b;
  --os-muted: #475569;
  --os-primary: #2563eb;
  --os-primary-fg: #ffffff;
  --os-primary-soft: rgba(37, 99, 235, 0.10);
  --os-accent: #0284c7;
  --os-green: #059669;
  --os-green-soft: rgba(5, 150, 105, 0.09);
  --os-green-border: rgba(5, 150, 105, 0.26);
  --os-amber: #b45309;
  --os-amber-soft: rgba(245, 158, 11, 0.10);
  --os-amber-border: rgba(217, 119, 6, 0.28);
  --os-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --os-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --os-topbar-bg: rgba(245, 247, 251, 0.88);
  --os-hero-glow: radial-gradient(ellipse 68% 50% at 50% -10%, rgba(37, 99, 235, 0.11), transparent 72%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--os-bg);
  background-image: var(--os-hero-glow);
  background-repeat: no-repeat;
  color: var(--os-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; }

/* 容器 */
.os-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.os-detail-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.os-main { padding-top: 28px; padding-bottom: 64px; }

/* 预览切换条 */
.os-preview-banner {
  background: var(--os-surface-2);
  border-bottom: 1px solid var(--os-border);
  font-size: 12.5px;
}
.pv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.pv-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--os-amber-soft);
  border: 1px solid var(--os-amber-border);
  color: var(--os-amber);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.pv-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-link {
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--os-muted);
  border: 1px solid transparent;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.pv-link:hover { color: var(--os-text); background: var(--os-surface); }
.pv-link.on {
  color: var(--os-primary);
  background: var(--os-primary-soft);
  border-color: var(--os-primary);
}

/* 顶部导航栏 */
.os-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--os-topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--os-border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.os-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--os-primary), var(--os-accent));
  box-shadow: 0 0 10px var(--os-primary);
}
.brand-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--os-primary-soft);
  color: var(--os-primary);
}
.os-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.os-theme-btn,
.os-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--os-border-strong);
  background: var(--os-surface);
  color: var(--os-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.os-theme-btn:hover,
.os-btn-ghost:hover {
  border-color: var(--os-primary);
  background: var(--os-surface-hover);
}

/* 专区 Hero */
.os-hero {
  padding: 20px 0 28px;
  max-width: 760px;
}
.os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--os-primary);
  margin-bottom: 12px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--os-green);
  box-shadow: 0 0 8px var(--os-green);
}
.os-h1 {
  margin: 0 0 12px 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.6px;
}
.os-h1 .grad {
  background: linear-gradient(90deg, var(--os-primary), var(--os-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.os-lead {
  margin: 0;
  font-size: 15px;
  color: var(--os-muted);
  line-height: 1.75;
}

/* 筛选条（三层清晰不混排） */
.os-filter-bar {
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--os-shadow-sm);
}
.os-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.os-filter-label {
  flex: 0 0 64px;
  font-size: 13px;
  font-weight: 700;
  color: var(--os-muted);
}
.os-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.os-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--os-border);
  background: var(--os-surface-2);
  color: var(--os-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.os-chip:hover { border-color: var(--os-primary); }
.os-chip.on {
  background: var(--os-primary);
  border-color: var(--os-primary);
  color: var(--os-primary-fg);
}
.os-search-row { padding-top: 4px; }
.os-search-box {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--os-border-strong);
  background: var(--os-surface-2);
  color: var(--os-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease;
}
.os-search-box:focus { border-color: var(--os-primary); }
.os-search-box::placeholder { color: var(--os-muted); }

/* 开源专区精品卡片网格 */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
  gap: 24px;
}
.os-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--os-shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.os-card:hover {
  transform: translateY(-3px);
  border-color: var(--os-primary);
  box-shadow: var(--os-shadow);
}
.os-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--os-surface-2);
  line-height: 0;
}
.os-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.os-cover-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}
.os-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.os-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.os-card-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  padding: 4px;
}
.os-card-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--os-primary), var(--os-accent));
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  border: none;
}
.os-card-titles { min-width: 0; flex: 1; }
.os-card-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-tag-sz { color: var(--os-muted); }

/* 详情页首屏 5 项档案卡 + 装前必看 + 前置安全背书（V2.1） */
.os-profile-card {
  margin: 0 0 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-prof-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  align-items: baseline;
}
.os-prof-k {
  color: var(--os-muted);
  font-weight: 700;
  white-space: nowrap;
}
.os-prof-v {
  color: var(--os-text);
  word-break: break-word;
}
.os-prenote {
  margin: 0 0 20px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--os-amber-soft);
  border: 1px solid var(--os-amber-border);
  color: var(--os-text-2);
  font-size: 13.5px;
  line-height: 1.65;
}
.os-prenote strong { color: var(--os-amber); }
.os-dl-hint {
  margin: 10px 0 0 0;
  font-size: 12.5px;
  color: var(--os-muted);
  line-height: 1.55;
}
.os-trust-strip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--os-green-soft);
  border: 1px solid var(--os-green-border);
}
@media (max-width: 768px) {
  .os-prof-row { grid-template-columns: 82px minmax(0, 1fr); gap: 6px 8px; font-size: 13px; }
}
.os-card-cn {
  font-size: 13px;
  font-weight: 600;
  color: var(--os-muted);
}
.os-card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--os-muted);
  flex-wrap: wrap;
}
.os-ver {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--os-primary);
  font-weight: 700;
}
.os-lic {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--os-green-soft);
  color: var(--os-green);
  font-weight: 700;
}
.os-card-desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--os-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}
.os-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.os-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  color: var(--os-text-2);
}
.os-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--os-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.os-replaces {
  font-size: 12px;
  color: var(--os-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.os-card-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--os-primary-soft);
  color: var(--os-primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.os-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--os-muted);
  background: var(--os-surface);
  border: 1px dashed var(--os-border-strong);
  border-radius: 16px;
}

/* ==================== 详情页（860px 单列大画幅） ==================== */
.os-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--os-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.os-crumb a:hover { color: var(--os-primary); }

.os-detail-hero {
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--os-shadow-sm);
}
.os-hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.os-hero-ico {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  padding: 6px;
}
.os-hero-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--os-primary), var(--os-accent));
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  border: none;
}
.os-hero-info { min-width: 0; flex: 1; }
.os-detail-h1 {
  margin: 0 0 8px 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.25;
  word-break: break-word;
}
.os-detail-cn {
  font-size: 17px;
  font-weight: 600;
  color: var(--os-muted);
}
.os-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.os-pill-meta {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  color: var(--os-text-2);
}
.os-pill-ver { color: var(--os-primary); background: var(--os-primary-soft); border-color: transparent; }
.os-pill-star { color: var(--os-amber); background: var(--os-amber-soft); border-color: var(--os-amber-border); }
.os-pill-lic { color: var(--os-green); background: var(--os-green-soft); border-color: var(--os-green-border); }

.os-hero-summary {
  margin: 0 0 20px 0;
  font-size: 15.5px;
  color: var(--os-text-2);
  line-height: 1.75;
}
.os-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.os-btn-primary,
.os-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}
.os-btn-primary {
  background: var(--os-primary);
  color: var(--os-primary-fg);
  box-shadow: 0 6px 20px var(--os-primary-soft);
}
.os-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.os-btn-secondary {
  background: var(--os-surface-2);
  color: var(--os-text);
  border: 1px solid var(--os-border-strong);
}
.os-btn-secondary:hover { border-color: var(--os-primary); color: var(--os-primary); }

/* 封面主视觉 */
.os-cover-stage {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--os-border);
  box-shadow: var(--os-shadow);
  line-height: 0;
}
.os-cover-stage img { width: 100%; display: block; }

/* 通用详情板块 */
.os-section {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  box-shadow: var(--os-shadow-sm);
}
.os-sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--os-border);
}
.os-sec-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-sec-title h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--os-primary);
}
.os-sec-title span,
.os-more-link {
  font-size: 12.5px;
  color: var(--os-muted);
}
.os-more-link { color: var(--os-primary); font-weight: 700; }

/* 实机画廊与视频 */
.os-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.os-media-item { margin: 0; }
.os-media-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--os-border);
  background: var(--os-surface-2);
  line-height: 0;
}
.os-media-frame img,
.os-media-frame video {
  width: 100%;
  display: block;
  border: none;
}
.os-media-cap {
  margin-top: 8px;
  font-size: 13px;
  color: var(--os-muted);
  text-align: center;
  line-height: 1.55;
}

/* 核心特性 2 列网格 */
.os-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.os-feat-card {
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.os-feat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--os-text);
  margin-bottom: 8px;
}
.os-feat-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--os-muted);
  line-height: 1.7;
}

/* 网盘清单与追更提示 */
.os-update-tip {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--os-green-soft);
  border: 1px solid var(--os-green-border);
  color: var(--os-text);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.os-manifest-box {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--os-text-2);
  overflow-x: auto;
  white-space: pre;
}
.os-manifest-cta { margin-top: 16px; }

/* #tutorial 官方教程 */
.os-tutorial-sec { scroll-margin-top: 80px; }
.os-sub-block { margin-bottom: 24px; }
.os-sub-block:last-of-type { margin-bottom: 16px; }
.os-sub-h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--os-text);
}
.os-pkg-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-pkg-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  align-items: center;
}
.os-pkg-plat {
  font-size: 13px;
  font-weight: 800;
  color: var(--os-primary);
}
.os-pkg-file {
  font-size: 13px;
  word-break: break-all;
}
.os-pkg-file code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--os-text);
  font-weight: 700;
}
.os-pkg-sz {
  margin-left: 6px;
  font-size: 12px;
  color: var(--os-muted);
}
.os-pkg-guide {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--os-muted);
}

.os-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.os-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.os-step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--os-primary);
  color: var(--os-primary-fg);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.os-step-body { min-width: 0; flex: 1; }
.os-step-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--os-text);
  margin-bottom: 4px;
}
.os-step-text {
  margin: 0;
  font-size: 14px;
  color: var(--os-muted);
  line-height: 1.7;
}

.os-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.os-sc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  font-size: 13px;
  min-width: 0;
}
.os-sc-row kbd {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--os-surface);
  border: 1px solid var(--os-border-strong);
  border-bottom-width: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--os-primary);
}
.os-sc-row span { color: var(--os-text-2); line-height: 1.5; }

.os-warnings {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--os-amber-soft);
  border: 1px solid var(--os-amber-border);
  margin-top: 16px;
}
.os-warn-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--os-amber);
  margin-bottom: 8px;
}
.os-warnings ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--os-text-2);
  line-height: 1.7;
}
.os-warnings li + li { margin-top: 4px; }

.os-qa-bar {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--os-primary-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.os-qa-bar a { color: var(--os-primary); font-weight: 800; }

/* 开源认证背书卡 */
.os-license-box {
  background: var(--os-green-soft);
  border-color: var(--os-green-border);
}
.os-lic-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.os-lic-title { font-size: 15px; font-weight: 800; color: var(--os-green); }
.os-lic-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--os-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
.os-lic-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--os-primary);
}
.os-lic-desc { margin: 0 0 8px 0; font-size: 14px; color: var(--os-text-2); line-height: 1.7; }
.os-lic-meta { font-size: 12px; color: var(--os-muted); }

/* 同类推荐 */
.os-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.os-rel-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--os-surface-2);
  border: 1px solid var(--os-border);
  transition: border-color 0.16s ease;
}
.os-rel-card:hover { border-color: var(--os-primary); }
.os-rel-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.os-rel-body { padding: 12px 16px; }
.os-rel-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.os-rel-name small { font-weight: 600; color: var(--os-primary); margin-left: 4px; }
.os-rel-desc {
  font-size: 13px;
  color: var(--os-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移动端底部常驻获取条 */
.os-mobile-sticky { display: none; }

/* 页脚 */
.os-footer {
  padding-top: 20px;
  padding-bottom: 48px;
  font-size: 13px;
  color: var(--os-muted);
  text-align: center;
}
.os-footer a { color: var(--os-primary); font-weight: 600; }
.os-footer .fine { opacity: 0.78; margin-top: 6px; font-size: 12px; }

/* ==================== 移动端响应式（360px / 390px 零溢出） ==================== */
@media (max-width: 768px) {
  .os-wrap, .os-detail-wrap { padding: 0 16px; }
  .os-main { padding-top: 16px; padding-bottom: 96px; }
  .os-hero { padding: 12px 0 20px; }
  .os-filter-bar { padding: 14px 16px; }
  .os-filter-label { flex: 0 0 100%; margin-bottom: -4px; }
  .os-grid { grid-template-columns: 1fr; gap: 16px; }
  .os-detail-hero { padding: 20px 16px; border-radius: 16px; }
  .os-hero-top { gap: 14px; }
  .os-hero-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; }
  .os-hero-actions { flex-direction: column; align-items: stretch; }
  .os-btn-primary, .os-btn-secondary { width: 100%; }
  .os-section { padding: 18px 16px; margin-top: 20px; }
  .os-feat-grid, .os-shortcuts, .os-rel-grid { grid-template-columns: 1fr; }
  .os-pkg-row { grid-template-columns: 1fr; gap: 4px; }
  .os-lic-link { margin-left: 0; }
  .os-sc-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  body.is-detail .os-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--os-topbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--os-border-strong);
  }
  .os-mobile-sticky .os-btn-primary { flex: 1; min-height: 42px; font-size: 14px; padding: 0 12px; }
  .os-mobile-sticky .os-btn-secondary { flex: 0 0 auto; width: auto; min-height: 42px; font-size: 13.5px; padding: 0 14px; }
  .os-topbar .os-btn-ghost:nth-child(2) { display: none; }
}
