/* 浅蓝主题 */
:root {
  --bg: #E8F4FD;
  --bg-card: #FFFFFF;
  --primary: #2980B9;
  --primary-light: #3498DB;
  --primary-dark: #1A6EA8;
  --text: #2C3E50;
  --text-muted: #7F8C8D;
  --border: #BDC3C7;
  --border-light: #D5E8F5;
  --link: #2980B9;
  --shadow-sm: 0 1px 4px rgba(41,128,185,0.10);
  --shadow-md: 0 4px 12px rgba(41,128,185,0.18);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 24px; padding-bottom: 44px; }

/* ── 头部 ── */
.site-header {
  background: linear-gradient(135deg, #2980B9 0%, #1A6EA8 100%);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(26,110,168,0.35);
}
.site-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: #fff;
  font-weight: 700;
}
.site-header .site-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.80);
}
.site-header a { color: #fff; }
.site-header a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ── 列表 ── */
.news-list { padding: 0; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.news-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.news-item .title { font-size: 1.05rem; font-weight: 500; margin: 0 0 8px; }
.news-item .title a { color: var(--text); }
.news-item .title a:hover { color: var(--primary); text-decoration: none; }
.news-item .meta { font-size: 0.82rem; color: var(--text-muted); }
.news-item .meta span { margin-right: 16px; }

/* ── 分页（质感浮雕按钮）── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 28px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}
.pagination a {
  background: linear-gradient(180deg, #fff 0%, #e8f4fd 100%);
  border: 1px solid #b0cfe4;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(41,128,185,0.13), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.15s;
}
.pagination a:hover {
  background: linear-gradient(180deg, #ebf5fb 0%, #d4ecf7 100%);
  border-color: var(--primary);
  box-shadow: 0 3px 9px rgba(41,128,185,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-1px);
  color: var(--primary-dark);
  text-decoration: none;
}
.pagination a:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(26,110,168,0.18);
}
.pagination .current {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 1px solid var(--primary-dark);
  color: #fff;
  box-shadow: 0 3px 8px rgba(41,128,185,0.38), inset 0 1px 0 rgba(255,255,255,0.22);
}
.pagination .ellipsis {
  border: none;
  background: none;
  box-shadow: none;
  color: var(--text-muted);
  padding: 0 4px;
  min-width: auto;
  cursor: default;
}

/* ── 文章头部 ── */
.article-header {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.breadcrumb { font-size: 0.82rem; margin-bottom: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: none; color: var(--primary-dark); }
.article-header h1 { font-size: 1.55rem; margin: 0 0 14px; line-height: 1.45; font-weight: 700; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); }
.article-meta span, .article-meta time { margin-right: 20px; }

/* ── 文章导读 ── */
.article-intro {
  background: linear-gradient(135deg, #EBF5FB 0%, #D6EAF8 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.intro-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.intro-body { font-size: 0.95rem; color: #2C3E50; line-height: 1.8; }

/* ── 目录 TOC ── */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { border-bottom: 1px dashed var(--border-light); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  color: var(--text);
  font-size: 0.92rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.toc-list a:hover { color: var(--primary); background: var(--bg); text-decoration: none; }

/* 序号 */
.toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(41,128,185,0.30);
}
.toc-text { flex: 1; }

/* ── 字体工具栏 ── */
.font-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  margin-left: auto;
}
.font-icon-sm { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; user-select: none; }
.font-icon-lg { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; user-select: none; }

/* Range 滑块（质感）*/
input[type="range"]#font-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 5px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
input[type="range"]#font-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #d4ecf7 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(41,128,185,0.42), inset 0 1px 0 rgba(255,255,255,0.9);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
input[type="range"]#font-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 3px 10px rgba(41,128,185,0.60), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: scale(1.2);
}
input[type="range"]#font-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #d4ecf7 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(41,128,185,0.42);
  cursor: pointer;
}

/* ── 正文 ── */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.9;
}
.article-content img { max-width: 100%; height: auto; border-radius: 4px; }
.article-content figure.article-image {
  margin: 1.4em 0;
  text-align: center;
}
.article-content figure.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: inline-block;
}
.article-content p { margin: 0 0 1.2em; }
.article-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1.8em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-content h2::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(41,128,185,0.30);
}
.article-content h2:first-child { margin-top: 0; }

/* ── 上下篇导航 ── */
.article-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
.article-nav .nav-prev, .article-nav .nav-next { margin-bottom: 10px; }
.article-nav .nav-label { color: var(--text-muted); }
.article-nav .nav-none { color: var(--text-muted); font-style: italic; }
.article-nav .nav-more { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-light); }

/* ── 文章双栏布局 ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}
.article-main { min-width: 0; }

/* ── 侧边栏 ── */
.sidebar { min-width: 0; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.85rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  line-height: 1.45;
}
.sidebar-list a:hover { color: var(--primary); text-decoration: none; }
.sidebar-item-title {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sidebar-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-rank--top {
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
}
.sidebar-rank--normal {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.sidebar-views, .sidebar-date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding-left: 28px;
}

/* ── 底部 ── */
.site-footer {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

/* ── 响应式 ── */
@media (max-width: 600px) {
  .article-header { padding: 16px; }
  .article-header h1 { font-size: 1.28rem; }
  .article-content { padding: 16px; font-size: 15px; }
  .toc { padding: 14px 16px; }
  .toc-header { flex-direction: column; align-items: flex-start; }
  .font-toolbar { margin-left: 0; }
  .news-item { padding: 14px 16px; }
  .article-layout { grid-template-columns: 1fr; }
  .home-layout { grid-template-columns: 1fr; }
  .site-header-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .header-search { width: 100%; }
  .site-nav { flex-wrap: wrap; justify-content: flex-start; }
}

/* ── 深色模式 ── */
:root[data-theme="dark"] {
  --bg: #1a2332;
  --bg-card: #243044;
  --primary: #5dade2;
  --primary-light: #85c1e9;
  --primary-dark: #3498db;
  --text: #ecf0f1;
  --text-muted: #95a5a6;
  --border: #3d5266;
  --border-light: #2c3e50;
  --link: #85c1e9;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
}

/* ── 宽版容器（侧栏 + 双栏）── */
.container--wide { max-width: 1100px; }

/* ── 顶栏：搜索 + 导航 ── */
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  justify-content: space-between;
}
.site-brand { flex: 1; min-width: 0; }
.site-brand h1 { margin: 0; }

.header-search {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.header-search input[type="search"] {
  width: 160px;
  border: none;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #2c3e50;
}
.header-search button {
  border: none;
  padding: 8px 14px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
}
.header-search button:hover { background: rgba(255,255,255,0.38); }

.theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { background: rgba(255,255,255,0.28); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 0.88rem;
}
.site-nav a {
  color: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.site-nav a:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
}

/* ── 首页 / 搜索 / 分类：主栏 + 侧栏 ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}
.home-main { min-width: 0; }
.home-sidebar { min-width: 0; }

.news-excerpt {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.meta-cat a {
  color: var(--primary);
  font-size: 0.8rem;
}
.meta-cat a:hover { color: var(--primary-dark); }

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 14px;
}
.page-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.search-form {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.search-form input[type="search"] {
  width: min(100%, 240px);
  border: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
}
.search-form button {
  border: none;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.search-hint, .search-result-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.category-breadcrumb { margin-bottom: 8px; }
.category-page-title {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ── 相关文章 ── */
.related-articles {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.related-articles-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.related-articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-articles-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.9rem;
}
.related-articles-list li:last-child { border-bottom: none; }
.related-articles-list a {
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.related-articles-list a:hover { color: var(--primary); text-decoration: none; }
.related-articles-views {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 返回顶部 ── */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.article-read-time { white-space: nowrap; }

/* ═══════════════════════════════════════════════
   APP 模块样式
   ═══════════════════════════════════════════════ */

/* 页面布局 */
.app-layout,
.app-detail-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* 页面标题区 */
.app-page-header { margin-bottom: 16px; }
.app-page-title  { font-size: 1.4rem; margin: 8px 0 0; }

/* 分类标签栏 */
.app-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.app-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.app-cat-tab:hover { background: var(--primary-light); color: #fff; border-color: transparent; }
.app-cat-tab.active { background: var(--primary); color: #fff; border-color: transparent; }
.cat-count { font-size: 0.75rem; opacity: 0.8; }

/* APP 卡片列表 */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.app-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.app-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
.app-card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.app-card-icon img { width: 56px; height: 56px; object-fit: cover; }
.app-icon-placeholder {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.app-icon-placeholder--lg { font-size: 2.4rem; width: 96px; height: 96px; }
.app-card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.app-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.app-card-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-action { flex-shrink: 0; }

/* 按钮 */
.btn-view {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
}
.btn-view--sm { padding: 4px 10px; font-size: 0.78rem; }

.btn-download-primary {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-download-primary:hover { background: var(--primary-dark); color: #fff; }

/* 辅助文字 */
.app-error, .app-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.app-total {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── APP 详情页 ── */
.app-detail-layout .breadcrumb { margin-bottom: 16px; }
.app-detail-main { display: flex; flex-direction: column; gap: 28px; }

.app-info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.app-info-icon {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.app-info-icon img { width: 96px; height: 96px; object-fit: cover; }
.app-info-meta { flex: 1; }
.app-info-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.app-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.app-info-date { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.app-download-area { margin-top: 6px; }

/* 截图 */
.app-screenshots { }
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}
.app-screenshots-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.app-screenshot-item {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.app-screenshot-item img {
  display: block;
  height: 200px;
  width: auto;
  max-width: 120px;
  object-fit: cover;
}

/* 正文 */
.app-description-body h2 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--primary-dark);
}
.app-description-body p {
  margin: 0 0 12px;
  line-height: 1.8;
}

/* 底部下载 */
.app-download-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.download-size { font-size: 0.85rem; color: var(--text-muted); }

/* 相关推荐 */
.app-related { margin-top: 20px; }
.app-list--compact { gap: 8px; }
.app-card--sm .app-card-link { padding: 10px 14px; }
.app-card--sm .app-card-icon { width: 44px; height: 44px; }
.app-card--sm .app-card-icon img { width: 44px; height: 44px; }
.app-card--sm .app-card-name { font-size: 0.92rem; }

/* ── APP 详情页：主侧栏双列布局 ── */
.app-detail-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: flex-start;
}

/* ── APP 信息表 ── */
.app-info-table { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 0; margin: 8px 0 12px; }
.info-row { display: flex; font-size: 0.82rem; padding: 3px 0; border-bottom: 1px solid var(--border-light); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); flex-shrink: 0; min-width: 60px; padding-right: 6px; }
.info-value { color: var(--text); word-break: break-all; }
.info-value a { color: var(--primary); }

/* ── 侧栏 ── */
.app-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
  color: var(--text);
}
.sidebar-app-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.sidebar-app-item:last-child { border-bottom: none; }
.sidebar-app-item:hover .sidebar-app-name { color: var(--primary); text-decoration: underline; }
.sidebar-app-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.sidebar-app-icon img { width: 36px; height: 36px; object-fit: cover; display: block; }
.sidebar-icon-placeholder {
  font-size: 1.0rem;
  width: 36px; height: 36px;
}
.sidebar-app-info { flex: 1; min-width: 0; }
.sidebar-app-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.sidebar-app-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

/* ── 猜你喜欢 ── */
.app-may-like {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.may-like-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.may-like-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.may-like-item:hover { border-color: var(--primary-light); background: var(--bg); }
.may-like-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.may-like-icon img { width: 52px; height: 52px; object-fit: cover; display: block; }
.may-like-name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.may-like-item:hover .may-like-name { color: var(--primary); }
.may-like-cat { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }

/* ── 正文内嵌图片 ── */
.content-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.content-imgs img {
  max-width: 200px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* 响应式 */
@media (max-width: 860px) {
  .app-detail-with-sidebar { grid-template-columns: 1fr; }
  .app-sidebar { order: -1; } /* 小屏侧栏移至顶部 */
  .may-like-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .app-info-card { flex-direction: column; align-items: center; text-align: center; }
  .app-info-tags { justify-content: center; }
  .app-info-table { grid-template-columns: 1fr; }
  .app-download-footer { flex-direction: column; text-align: center; }
  .app-screenshot-item img { height: 160px; }
  .may-like-grid { grid-template-columns: repeat(3, 1fr); }
}
