/* ============================================================
   应用导航 · 前台设计系统 v3（雨朵网风格）
   极简扁平：玫粉主色、灰底卡片、无厚重阴影、细描边、大圆角
   ============================================================ */
:root {
  --primary: #e94e81;
  --primary-dark: #d84475;
  --primary-light: #ffecf2;
  --fg: #292a2e;
  --fg-soft: #505258;
  --muted: #80838d;
  --border: 1px solid rgba(0, 0, 0, .1);
  --bg: #ffffff;
  --bg-card: #f7f7f7;
  --bg-card-hover: #e8e8e8;
  --maxw: 1400px;
  --radius: 6px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--fg);
  background: var(--bg); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 3vw; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- 页眉 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 1px 1px rgba(9, 30, 66, .25); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 8px 12px; color: var(--fg-soft); text-decoration: none;
  white-space: nowrap; font-size: 17px; transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--fg-soft); }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: var(--border); margin-top: 48px; padding: 20px 0; }

/* ---------- Hero ---------- */
.hero { display: flex; gap: 16px; margin: 24px 0; }
.hero-main {
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--fg); position: relative; display: block;
}
.hero-main .hero-banner {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-main-inner { text-align: center; padding: 40px; }
.hero-main h1 { font-size: 30px; font-weight: 600; margin: 0 0 12px; }
.hero-main p { color: var(--fg-soft); margin: 0 0 20px; font-size: 16px; }
.hero-side { flex: 1.4; display: flex; flex-direction: column; gap: 12px; min-width: 0; align-self: stretch; }
.hero-card {
  flex: 1; display: flex; gap: 14px; align-items: center;
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 14px 16px;
  text-decoration: none; color: var(--fg); transition: background .15s;
}
.hero-card:hover { background: var(--bg-card-hover); }
.hero-card-text { flex: 1; min-width: 0; }
.hero-card-text h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card-text p { margin: 0 0 8px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card-text .go { color: var(--primary); font-weight: 700; font-size: 14px; }
.hero-card:hover .go { transform: translateX(10px); display: inline-block; transition: transform .2s; }
.hero-card img { width: 80px; height: 80px; border-radius: 25%; object-fit: cover; flex-shrink: 0; background: #fff; border: var(--border); }

/* ---------- 板块标题 ---------- */
.home-section { margin: 24px 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 {
  font-size: 22px; font-weight: 600; margin: 0; color: var(--fg);
  display: inline-block; position: relative; padding: 0 6px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 12px;
  background: var(--primary-light); border-radius: 6px; z-index: -1;
}
.section-head .sub { color: var(--muted); font-size: 14px; margin-left: 12px; font-weight: 400; }
.section-head .more { float: right; font-size: 14px; color: var(--muted); text-decoration: none; line-height: 32px; }
.section-head .more:hover { color: var(--primary); }

/* ---------- 应用卡片（雨朵式：横向左图右文） ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-card); border-radius: var(--radius); padding: 12px;
  text-decoration: none; color: var(--fg); transition: background .15s;
}
.app-card:hover { background: var(--bg-card-hover); }
.app-card.white { background: #fff; border: var(--border); }
.app-card.white:hover { border-color: var(--primary); background: #fff; }
.app-icon {
  width: 90px; height: 90px; border-radius: 25%; object-fit: cover; flex-shrink: 0;
  background: #fff; border: var(--border);
}
.app-icon.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: var(--primary); background: var(--primary-light); border: 0;
}
.app-info { flex: 1; min-width: 0; }
.app-info h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-info .desc { margin: 0 0 8px; font-size: 16px; color: var(--fg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-links { font-size: 14px; color: var(--muted); }
.app-links .label { color: var(--muted); }
.app-links a { color: var(--primary); text-decoration: none; font-weight: 500; }
.app-links a:hover { text-decoration: underline; }
.app-links .dot { margin: 0 6px; color: var(--muted); }
.badge {
  font-size: 12px; padding: 2px 10px; border-radius: 3px;
  background: var(--primary-light); color: var(--primary); font-weight: 600;
}

/* Hero 幻灯 */
.hero { display: flex; gap: 16px; margin: 24px 0; align-items: stretch; }
.hero-main-slides { position: relative; flex: 3.5; overflow: hidden; border-radius: var(--radius-lg); display: grid; min-width: 0; }
.hero-main-slides .hero-main.slide { grid-area: 1/1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; pointer-events: none; }
.hero-main-slides .hero-main.slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-main-slides .hero-banner { width: 100%; height: auto; display: block; }
.slide-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.slide-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slide-dots .dot.active { background: #fff; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-side { flex: 1.4; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.hero-side .hero-card { flex: 1; min-height: 0; }
@media (max-width: 900px) {
  .hero-main-slides { min-height: 280px; }
}

/* 最新上架小卡片（比普通小2号，无直达链接，hover 显示点击打开） */
a.app-card-sm { text-decoration: none; color: inherit; }
.app-card-sm {
  position: relative; display: flex; gap: 10px; align-items: center;
  background: var(--bg-card); border-radius: var(--radius); padding: 10px;
  transition: background .15s; overflow: hidden;
}
.app-card-sm:hover { background: var(--bg-card-hover); }
.app-card-sm .app-icon { width: 56px; height: 56px; }
.app-card-sm .app-info { flex: 1; min-width: 0; }
.app-card-sm .app-info h3 { font-size: 15px; margin: 0 0 4px; }
.app-card-sm .app-info .desc { font-size: 13px; }
.app-card-sm .hover-open {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px;
  opacity: 0; transition: opacity .15s; text-decoration: none; pointer-events: none;
}
.app-card-sm:hover .hover-open { opacity: 1; pointer-events: auto; }
.app-card-sm .hover-open span {
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 100px; padding: 6px 18px; box-shadow: 0 2px 8px rgba(233,78,129,.4);
}

/* 精选应用（付费收录）：3列，与普通卡片同尺寸，以多平台直达链接区分 */
.app-grid-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-card-lg {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-card); border-radius: var(--radius); padding: 12px;
  transition: background .15s;
}
.app-card-lg:hover { background: var(--bg-card-hover); }
.app-card-lg .app-icon { width: 90px; height: 90px; }
.app-card-lg .app-info h3 { font-size: 18px; }
.app-card-lg .app-info .desc { font-size: 16px; }
.app-card-lg .app-links { font-size: 14px; margin-top: 6px; line-height: 1.8; }

/* ---------- 资源卡片 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.res-card {
  display: block; overflow: hidden;
  background: #fff; border: var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s;
}
.res-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.res-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  background: var(--bg-card);
}
.res-body { padding: 8px 10px; }
.res-body h3 { margin: 0 0 3px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-body .desc { margin: 0 0 6px; font-size: 11px; color: var(--fg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-btn {
  display: inline-block; background: var(--primary); color: #fff; border: 0;
  border-radius: 100px; padding: 4px 14px; font-size: 11px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.res-btn:hover { background: var(--primary-dark); color: #fff; }

/* ---------- 纯文本列表（文章/专题，双列） ---------- */
.text-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.text-list .text-item {
  padding: 14px 18px; background: var(--bg-card); border-radius: var(--radius);
  transition: background .15s;
}
.text-list .text-item:hover { background: var(--bg-card-hover); }
.text-list .text-item:hover h3 { color: var(--primary); }
.text-item { text-decoration: none; color: var(--fg); display: block; }
.text-item h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.text-item h3 a { color: var(--fg); text-decoration: none; }
.text-item h3 a:hover, .text-item:hover h3 { color: var(--primary); }
.text-item p { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-item .meta { font-size: 14px; color: var(--muted); }

/* ---------- 友情链接 ---------- */
.link-card { border: var(--border); border-radius: var(--radius-lg); padding: 20px; }
.link-capsules { display: flex; gap: 10px; flex-wrap: wrap; }
.link-capsules a {
  font-size: 14px; color: var(--fg-soft); text-decoration: none;
  border: var(--border); border-radius: 20px; padding: 6px 18px; transition: all .15s;
}
.link-capsules a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin: 16px 0 8px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 页面头 ---------- */
.page-head { margin: 24px 0 16px; }
.page-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.page-head .muted { font-size: 14px; }

/* ---------- 产品详情 ---------- */
.product-top { display: flex; gap: 20px; align-items: flex-start; margin: 16px 0; }
.product-top .app-icon { width: 110px; height: 110px; }
.product-top h1 { font-size: 26px; margin: 0 0 8px; font-weight: 600; }
.product-top .desc { color: var(--fg-soft); margin: 0 0 12px; font-size: 16px; }
.detail-section { margin: 28px 0; }
.detail-section h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; padding: 0 6px; display: inline-block; position: relative; }
.detail-section h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 10px;
  background: var(--primary-light); border-radius: 5px; z-index: -1;
}
.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li { padding: 12px 0; border-bottom: var(--border); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.download-list li:last-child { border: 0; }
.download-list a { font-weight: 600; }
.spec-list > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: var(--border); font-size: 14px; }
.spec-list dt { color: var(--muted); min-width: 100px; }
.spec-list dd { margin: 0; }

/* ---------- 文章详情 ---------- */
.article-detail { margin: 16px 0; }
.article-detail h1 { font-size: 26px; font-weight: 600; margin: 0 0 12px; line-height: 1.4; }
.article-summary { color: var(--fg-soft); font-size: 15px; margin: 0 0 16px; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--fg); }
.article-body h2 { font-size: 20px; margin: 28px 0 12px; font-weight: 600; }
.article-body h3 { font-size: 18px; margin: 22px 0 10px; font-weight: 600; }
.article-body p { margin: 12px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.article-body th, .article-body td { border: var(--border); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--bg-card); }
.article-body blockquote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--primary); background: var(--primary-light); border-radius: 0 6px 6px 0; }
.article-body pre { background: var(--fg); color: #fff; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.article-body code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.callout { border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.callout.tip { background: var(--primary-light); border: 1px solid #f9c2d4; }
.tag-row { margin: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row a {
  font-size: 13px; color: var(--primary); text-decoration: none;
  background: var(--primary-light); border-radius: 3px; padding: 3px 12px;
}
.chip { font-size: 12px; padding: 2px 10px; border-radius: 3px; background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ---------- 搜索 ---------- */
.search-page-box { display: flex; max-width: 560px; margin: 20px 0; }
.search-page-box input { flex: 1; border: var(--border); border-right: 0; border-radius: 6px 0 0 6px; padding: 12px 16px; font-size: 15px; outline: none; }
.search-page-box input:focus { border-color: var(--primary); }
.search-page-box button { border: 0; background: var(--primary); color: #fff; border-radius: 0 6px 6px 0; padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer; }
.search-page-box button:hover { background: var(--primary-dark); }
.search-filters { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.search-filters a { padding: 6px 16px; border: var(--border); border-radius: 100px; text-decoration: none; color: var(--muted); font-size: 14px; }
.search-filters a.active, .search-filters a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: 6px; text-decoration: none; color: var(--fg-soft); font-size: 14px; background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 36px; margin: 0 0 12px; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .app-grid, .app-grid-featured { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .text-list { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
}
@media (max-width: 640px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  /* 精选应用手机端：单列，避免超宽 */
  .app-grid-featured { grid-template-columns: 1fr; }
  .app-card-lg .app-icon { width: 64px; height: 64px; }
  .app-card-lg .app-info h3 { font-size: 16px; }
  .app-card-lg .app-info .desc { font-size: 13px; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { gap: 16px; height: 60px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .app-grid { grid-template-columns: 1fr; }
  .app-icon { width: 72px; height: 72px; }
  .hero-main h1 { font-size: 24px; }
}

/* 付费收录申请表单 */
.submit-wrap { max-width: 640px; margin: 32px auto; padding: 0 16px; }
.submit-wrap h1 { font-size: 24px; margin-bottom: 12px; }
.submit-intro { color: #64748b; font-size: 14px; margin-bottom: 24px; line-height: 1.7; }
.submit-form label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.submit-form input[type=text], .submit-form input[type=url], .submit-form input[type=email], .submit-form textarea { width: 100%; margin-top: 6px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-weight: 400; font-family: inherit; }
.submit-form textarea { resize: vertical; }
.submit-form fieldset { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin: 0 0 16px; }
.submit-form legend { font-size: 14px; font-weight: 600; padding: 0 8px; }
.btn-submit { display: block; width: 100%; padding: 12px; background: var(--primary); color: #fff; border: 0; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-submit:hover { opacity: .9; }
.submit-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 16px 20px; border-radius: 10px; font-size: 15px; line-height: 1.7; }

/* 产品详情页（对标站丰富版） */
.product-top { display: flex; gap: 16px; align-items: flex-start; margin: 16px 0 20px; }
.product-top-info { flex: 1; min-width: 0; }
.product-top-info h1 { font-size: 20px; margin: 0 0 6px; }
.product-top-info .desc { margin: 0 0 8px; font-size: 14px; color: #475569; }
.detail-section { margin: 22px 0; }
.detail-section h2 { font-size: 17px; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--primary); }
.version-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.version-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--radius-lg); padding: 14px 16px; }
.version-card-info { flex: 1; min-width: 0; }
.version-card-info h3 { margin: 0 0 4px; font-size: 15px; }
.version-card-info h3 a { color: var(--fg); text-decoration: none; }
.version-card-info p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.btn-small { flex-shrink: 0; padding: 7px 14px; background: #fff; border: 1px solid var(--primary); color: var(--primary); border-radius: 8px; text-decoration: none; font-size: 12px; white-space: nowrap; }
.btn-small:hover { background: var(--primary); color: #fff; }
.trust-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 14px 18px; }
.trust-box p { margin: 0 0 8px; font-size: 13px; line-height: 1.7; }
.trust-box p:last-child { margin-bottom: 0; }
.trust-box .warn { color: #92400e; }
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.info-table th, .info-table td { padding: 8px 14px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.info-table th { width: 110px; color: #64748b; font-weight: 600; background: #f8fafc; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.screenshot-grid figure { margin: 0; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }
.screenshot-grid img { width: 100%; height: auto; display: block; }
.screenshot-grid figcaption { padding: 10px 14px; font-size: 13px; color: #64748b; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item summary { padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q "; color: var(--primary); font-weight: 800; }
.faq-item[open] summary { border-bottom: 1px solid #e2e8f0; }
.faq-item > p { padding: 12px 16px 14px; margin: 0; font-size: 14px; line-height: 1.8; color: #475569; }
.faq-item > p::before { content: "A "; color: var(--primary); font-weight: 800; }
.faq-answer { padding: 12px 16px; font-size: 13px; line-height: 1.7; color: #475569; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border-radius: var(--radius-lg); padding: 12px; text-decoration: none; color: var(--fg); }
.related-card:hover { background: #e8e8e8; }
.related-card img, .related-card .app-icon-sm { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.related-card .app-icon-sm.placeholder { display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 20px; font-weight: 700; }
.related-card h3 { margin: 0 0 4px; font-size: 14px; }
.related-card p { margin: 0; font-size: 12px; color: #64748b; }
.disclaimer { background: #f8fafc; border-radius: var(--radius-lg); padding: 18px 20px; }
.disclaimer p { font-size: 13px; color: #64748b; line-height: 1.8; margin: 0 0 10px; }
.disclaimer p:last-child { margin-bottom: 0; }
.permalink { color: var(--primary); word-break: break-all; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } .product-top { flex-direction: column; } }

/* 产品详情页（像素级对标 yuduo.cn） */
.detail-layout { display: flex; gap: 28px; margin: 16px 0 40px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; max-width: calc(100% - 328px); }
.detail-side { width: 300px; flex-shrink: 0; }
/* 顶部标题区 */
.p-head { display: flex; gap: 20px; align-items: flex-start; padding: 8px 0 20px; }
.p-icon { width: 100px; height: 100px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.p-icon.placeholder { display: flex; align-items: center; justify-content: center; background: #ffe4ec; color: #e94e81; font-size: 44px; font-weight: 800; }
.p-head-mid { flex: 1; min-width: 0; }
.p-head-mid h1 { font-size: 28px; font-weight: 800; color: #1a2b4a; margin: 6px 0 8px; }
.p-sub { font-size: 15px; color: #666; margin: 0 0 8px; }
.p-meta { font-size: 13px; color: #999; margin: 0; }
.p-head-right { text-align: center; flex-shrink: 0; padding-top: 10px; }
.btn-pink { display: inline-block; padding: 12px 36px; background: #f43f5e; color: #fff; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 600; }
.btn-pink:hover { background: #e11d48; color: #fff; }
.btn-gray { display: inline-block; padding: 12px 36px; background: #e5e7eb; color: #374151; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 600; }
.btn-gray:hover { background: #d1d5db; color: #111827; }
/* 下载按钮组：... 悬停展开隐藏按钮 */
.dl-btns { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.dl-more { position: relative; display: flex; align-items: center; }
.dl-dots { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 20px; letter-spacing: 2px; cursor: pointer; user-select: none; flex-shrink: 0; }
.dl-dots:hover { background: #e5e7eb; }
.dl-hidden { display: none; margin-right: 10px; }
.dl-more:hover .dl-hidden { display: block; }
.dl-hidden .btn-gray { white-space: nowrap; }
/* 二维码弹窗 */
.qr-modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5); align-items: center; justify-content: center; }
.qr-modal:target { display: flex; }
.qr-box { background: #fff; border-radius: 16px; padding: 28px 32px; text-align: center; max-width: 320px; }
.qr-box img { width: 220px; height: 220px; }
.qr-box p { margin: 12px 0 16px; color: #374151; font-size: 14px; }
.p-head-right p { font-size: 13px; color: #999; margin: 10px 0 0; }
/* 信息卡片 */
.info-card { background: #f5f6fa; border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.info-row { display: flex; gap: 12px; line-height: 2; font-size: 14px; }
.info-k { color: #1a2b4a; font-weight: 600; flex-shrink: 0; min-width: 80px; }
.info-v { color: #555; }
.info-v a { color: #f43f5e; text-decoration: none; }
/* 版本卡片 */
.ver-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.ver-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e8eaef; border-radius: 12px; padding: 20px 24px; }
.ver-icon { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ver-icon.placeholder { display: flex; align-items: center; justify-content: center; background: #ffe4ec; color: #e94e81; font-size: 22px; font-weight: 800; }
.ver-mid { flex: 1; min-width: 0; }
.ver-mid h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #1a2b4a; }
.ver-dl { margin: 0 0 4px; font-size: 13px; color: #999; }
.ver-desc { margin: 0; font-size: 13px; color: #666; }
.btn-pink-sm { flex-shrink: 0; padding: 9px 24px; background: #f43f5e; color: #fff; border-radius: 999px; text-decoration: none; font-size: 14px; }
.btn-pink-sm:hover { background: #e11d48; color: #fff; }
/* 版块 */
.d-sec { margin: 48px 0; }
.d-sec h2 { font-size: 20px; font-weight: 700; color: #1a2b4a; margin: 0 0 18px; }
.d-sec h3 { font-size: 17px; font-weight: 700; color: #1a2b4a; margin: 24px 0 12px; }
.d-sec p { font-size: 14px; color: #444; line-height: 1.8; margin: 0 0 14px; }
.d-sec .c-warn { color: #92400e; }
.kv-list p { margin: 0 0 8px; }
.kv-list p span { color: #1a2b4a; font-weight: 600; }
/* 截图 */
.shot-list figure { margin: 0 0 20px; }
.shot-list img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #e8eaef; }
.shot-list figcaption { text-align: center; font-size: 13px; color: #999; margin-top: 8px; }
/* FAQ 手风琴 */
.faq-acc details { background: #f7f7f9; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-acc summary { padding: 14px 18px; font-size: 15px; font-weight: 600; color: #1a2b4a; cursor: pointer; list-style: none; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc details div { padding: 0 18px 16px; font-size: 14px; color: #555; line-height: 1.8; }
/* 声明 */
.decl p { color: #666; }
/* 侧边栏 */
.side-box { background: #fff; border: 1px solid #e8eaef; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.side-box h3 { font-size: 18px; font-weight: 700; color: #1a2b4a; margin: 0 0 14px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: #333; font-size: 14px; border-bottom: 1px solid #f1f2f5; }
.side-item:last-child { border-bottom: 0; }
.side-item:hover { color: #f43f5e; }
.side-item img, .side-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.side-icon.placeholder { display: flex; align-items: center; justify-content: center; background: #ffe4ec; color: #e94e81; font-size: 18px; font-weight: 700; }
@media (max-width: 900px) {
  .detail-layout { flex-direction: column; }
  .detail-main { max-width: 100%; }
  .detail-side { width: 100%; }
  .p-head { flex-wrap: wrap; }
  .p-head-right { width: 100%; text-align: left; }
}

/* 幻灯左右箭头 */
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slide-arrow:hover { background: rgba(0,0,0,.6); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }

/* 资源类型筛选 */
.type-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.type-filter a { padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 14px; color: #475569; background: #fff; }
.type-filter a:hover { border-color: #e94e81; color: #e94e81; }
.type-filter a.active { background: #e94e81; border-color: #e94e81; color: #fff; }

/* 网页应用详情第一屏 */
.info-card { background: #f5f6fa; border-radius: 12px; padding: 20px 24px; margin: 16px 0 24px; font-size: 15px; }
.info-row { display: flex; margin-bottom: 12px; line-height: 1.7; }
.info-row2 { display: flex; margin-bottom: 12px; }
.info-row2 > div { flex: 1; }
.info-label { color: #666; white-space: nowrap; flex-shrink: 0; }
.tag-pill { display: inline-block; background: #fce4ec; color: #e94e81; border-radius: 4px; padding: 2px 10px; margin-right: 8px; font-size: 13px; text-decoration: none; }
a.tag-pill:hover { background: #e94e81; color: #fff; }
.p-stats { font-size: 13px; margin-top: 4px; }
.d-sec { font-size: 15px; }
.d-sec p { font-size: 15px; line-height: 1.8; }

/* 幻灯区：主幻灯固定高度，右侧不影响主区 */
.hero-main-slides { aspect-ratio: 3/1; min-height: 300px; }
.hero-main-slides .hero-banner { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-side:empty { display: none; }
.hero:has(.hero-side:empty) .hero-main-slides { flex: 1; }
.hero > .hero-side > .hero-card { flex: 1 1 0 !important; min-height: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f5f6fa; border-radius: 10px; text-decoration: none; color: inherit; }
.feat-item img, .feat-icon { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.feat-item span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search { display: flex; align-items: center; margin-left: 16px; }
.header-search input { border: 1px solid #ddd; border-radius: 20px 0 0 20px; padding: 6px 12px; font-size: 14px; width: 180px; outline: none; }
.header-search input:focus { border-color: #3b82f6; }
.header-search button { border: 1px solid #ddd; border-left: none; border-radius: 0 20px 20px 0; padding: 6px 12px; background: #f5f6fa; cursor: pointer; font-size: 14px; }
.feat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; overflow: hidden; }
.feat-grid-4 .feat-item-4 { min-width: 0; overflow: hidden; }
.feat-item-4 { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 10px; text-decoration: none; color: inherit; }
.feat-item-4 img, .feat-item-4 .feat-icon { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.feat-text { min-width: 0; }
.feat-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.feat-text p { margin: 0; font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f5f6fa; border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dl-info { flex: 1; min-width: 200px; }
.dl-page { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.dl-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.dl-head img { width: 64px; height: 64px; border-radius: 12px; }
.dl-page h2 { font-size: 18px; margin: 20px 0 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.d-sec .article-body img { max-width: 600px; display: block; margin: 12px auto; }

.dl-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9999; }
.dl-modal.show { display: block; }
.dl-modal-box { background: #fff; border-radius: 12px; padding: 32px; text-align: center; width: 320px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.dl-modal-num { font-size: 36px; color: #e94e81; font-weight: 700; }


.pf-img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; margin-right: 8px; vertical-align: middle; }
.dl-info { display: flex; align-items: center; }
/* 资源详情页收窄 */
.resource-detail { max-width: 1080px; margin-left: auto; margin-right: auto; }
.resource-detail .p-head { padding: 20px; }
.resource-detail .info-card { padding: 16px 20px; }

.resource-crumb { max-width: 1080px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .header-search { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 100; }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
}
.error-page { text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto; }
.error-code { font-size: 96px; font-weight: 800; color: #e94e81; line-height: 1; margin-bottom: 16px; }
.error-page h1 { font-size: 24px; margin-bottom: 12px; }
.error-actions { margin: 28px 0; display: flex; gap: 12px; justify-content: center; }
.error-nav { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.error-nav a { color: var(--primary); }
@media (max-width: 640px) {
        .footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  }

.site-footer { background: #fff; border-top: 1px solid #eee; margin-top: 40px; padding: 24px 0; }
.footer-top { margin-bottom: 12px; }
.footer-top strong { font-size: 16px; }
.footer-desc { color: var(--muted); font-size: 14px; margin-left: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--muted); }
.footer-icp a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
@media (max-width: 640px) {
  .footer-desc { display: block; margin: 6px 0 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; width: 100%; }
  .footer-links a { font-size: 14px; padding: 4px 0; }
}

.flex-shrink-0 { flex-shrink: 0; }
.link-inherit { color: inherit; text-decoration: none; }
.shot-img { max-width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; }
.text-sm { font-size: 13px; }
.empty-tip { text-align: center; padding: 40px; }
.mt-24 { margin-top: 24px; }
.mt-20 { margin-top: 20px; }
.mt-12 { margin-top: 12px; }

@media (max-width: 640px) {
  .hero { flex-direction: column; }
  .hero-main-slides { aspect-ratio: 16/9; min-height: 0; flex: none; width: 100%; }
  .hero-main-slides .hero-main.slide { min-height: 0; }
  .hero-side { flex: none; width: 100%; }
  .hero-main h1 { font-size: 22px; }
  .hero-main-inner { padding: 24px 16px; }
}

@media (max-width: 640px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .version-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
.nav-search { display: none; }
@media (max-width: 640px) {
  .nav-search { display: flex; gap: 8px; padding: 8px 0; }
  .nav-search input { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
  .nav-search button { padding: 8px 16px; background: var(--primary); color: #fff; border: 0; border-radius: 8px; }
}
@media (max-width: 640px) {
  .info-row { flex-wrap: wrap; }
  .tag-pill { margin-bottom: 6px; }
}
.announce-bar { background: #fff7e6; color: #b7791f; text-align: center; padding: 8px 16px; font-size: 14px; border-bottom: 1px solid #ffe58f; }
/* 文末 CPS 大按钮 */
.cps-cta { margin: 36px 0; padding: 32px 24px; text-align: center; background: #fdf2f6; border: 1px solid #f9cddc; border-radius: 12px; }
.cps-cta-name { font-size: 19px; font-weight: 700; color: #1a1a2e; margin: 0 0 18px; }
.cps-cta .btn-cta { font-size: 18px; padding: 15px 56px; }
.cps-cta .disclosure { margin: 14px 0 0; font-size: 12px; }
/* 专题页（CPS 落地页） */
.subject-hero { background: linear-gradient(135deg, #fdf2f6 0%, #ffffff 75%); border: 1px solid #f9cddc; border-radius: 16px; padding: 40px 32px; margin: 8px 0 28px; text-align: center; }
.subject-badge { display: inline-block; background: #e94e81; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.subject-hero h1 { font-size: 30px; margin: 0 0 10px; color: #1a1a2e; }
.subject-subtitle { font-size: 17px; color: #e94e81; font-weight: 600; margin: 0 0 8px; }
.subject-summary { color: #666; max-width: 620px; margin: 0 auto 22px; }
.subject-hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.subject-hero .btn-cta { font-size: 18px; padding: 15px 56px; }
.subject-count { color: #999; font-size: 14px; }
.subject-hero .disclosure { margin: 12px 0 0; font-size: 12px; }
.subject-section { margin: 0 0 28px; }
.subject-section h2 { font-size: 20px; padding-left: 10px; border-left: 4px solid #e94e81; margin: 0 0 16px; }
.subject-articles { display: grid; gap: 14px; }
.subject-card { display: block; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px 22px; text-decoration: none; color: inherit; }
.subject-card:hover { border-color: #f9cddc; }
.subject-card:hover h3 { color: #e94e81; }
.subject-card h3 { font-size: 17px; margin: 0 0 8px; color: #1a1a2e; }
.subject-card p { color: #666; font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.subject-bottom-cta { text-align: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 30px 24px; margin: 32px 0 8px; }
.subject-bottom-cta p { color: #666; margin: 0 0 18px; }
@media (max-width: 640px) { .subject-hero { padding: 28px 20px; } .subject-hero h1 { font-size: 24px; } }
/* 专题频道页卡片 */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0 32px; }
.subject-card-lg { display: block; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 24px; text-decoration: none; color: inherit; }
.subject-card-lg:hover { border-color: #f9cddc; }
.subject-card-lg:hover h3 { color: #e94e81; }
.subject-card-lg .subject-badge { margin-bottom: 12px; }
.subject-card-lg h3 { font-size: 20px; margin: 0 0 10px; color: #1a1a2e; }
.subject-card-lg > p { color: #666; font-size: 14px; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.subject-card-meta { display: flex; align-items: center; gap: 14px; color: #999; font-size: 13px; }
.subject-card-meta .go { margin-left: auto; color: #e94e81; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .subject-grid { grid-template-columns: 1fr; } }
/* 文章封面 */
.article-cover { margin: 0 auto 24px; max-width: 640px; border-radius: 12px; overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }
.pagination .gap { padding: 6px 4px; color: #999; }

/* 广告位 */
.ad-sitewide { max-width: 1200px; margin: 12px auto; padding: 0 16px; }
.ad-sitewide img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ad-article-top { margin: 16px 0; }
.ad-article-top img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ad-popup { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.ad-popup.show { display: flex; }
.ad-popup-box { position: relative; max-width: 90vw; max-height: 90vh; }
.ad-popup-box img { max-width: 100%; max-height: 85vh; display: block; border-radius: 12px; }
.ad-popup-close { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: none; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ad-product-detail { margin: 16px 0; }
.ad-product-detail img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* 文章详情页 v2 */
.art-head { margin: 8px 0 20px; }
.art-head h1 { font-size: 30px; font-weight: 700; line-height: 1.45; margin: 0 0 14px; letter-spacing: .5px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--fg-soft); margin-bottom: 16px; }
.art-author { color: var(--primary); font-weight: 600; }
.article-summary { font-size: 16px; line-height: 1.9; color: var(--fg-soft); background: var(--bg-card); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 0 0 20px; }
.art-layout { display: flex; gap: 32px; align-items: flex-start; }
.art-main { flex: 1; min-width: 0; }
.art-toc { width: 220px; flex-shrink: 0; position: sticky; top: 20px; }
.toc-box { background: var(--bg-card); border: var(--border); border-radius: 12px; padding: 16px 18px; font-size: 14px; }
.toc-title { font-weight: 700; margin: 0 0 10px; font-size: 15px; }
.toc-box ol { margin: 0; padding-left: 20px; }
.toc-box li { margin: 8px 0; line-height: 1.5; }
.toc-box a { color: var(--fg-soft); text-decoration: none; }
.toc-box a:hover { color: var(--primary); }
.article-body { font-size: 17px; line-height: 2; }
.article-body h2 { font-size: 22px; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-card); display: flex; align-items: center; gap: 10px; scroll-margin-top: 20px; }
.h2-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; border-radius: 8px; }
.article-body h3 { font-size: 19px; margin: 28px 0 12px; }
.article-body p { margin: 14px 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 14px 0; }
.article-body li { margin: 8px 0; }
.art-tags { margin: 28px 0 8px; }
.tag-label { font-size: 14px; color: var(--fg-soft); }
.perma-link { font-size: 13px; color: var(--fg-soft); background: var(--bg-card); border-radius: 8px; padding: 10px 14px; margin: 20px 0 0; word-break: break-all; }
.perma-link a { color: var(--primary); }
.sec-title { font-size: 20px; font-weight: 700; margin: 36px 0 16px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 5px; height: 22px; background: var(--primary); border-radius: 3px; }
.rel-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.rel-app-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--bg-card); border: var(--border); border-radius: 12px; padding: 16px 10px; text-decoration: none; transition: transform .15s; }
.rel-app-card:hover { transform: translateY(-2px); }
.rel-app-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.rel-app-ph { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.rel-app-name { font-size: 13px; color: var(--fg); text-align: center; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rel-art-card { display: block; background: var(--bg-card); border: var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .15s; }
.rel-art-card:hover { transform: translateY(-2px); }
.rel-art-card img, .rel-art-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--primary-light); }
.rel-art-title { display: block; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .art-layout { flex-direction: column; }
  .art-toc { display: none; }
  .art-head h1 { font-size: 24px; }
}
