/* cms 详情页 · 软件信息头 + 下载区 + 选项卡 + 评论 */
.cms-detail-page { padding: 16px 0 24px; }

.cms-info {
  background: #fff; border: 1px solid var(--cms-border);
  border-radius: var(--cms-radius); padding: 16px; margin-bottom: 12px;
}
.cms-info-top { display: flex; gap: 16px; align-items: flex-start; }
.cms-info-cover img, .cms-info-ico {
  width: 64px; height: 64px; border-radius: var(--cms-radius-lg);
}
@media (min-width:640px) {
  .cms-info-cover img, .cms-info-ico { width: 80px; height: 80px; }
}
.cms-info-ico {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 900;
}
.cms-info-bd { flex: 1; min-width: 0; }
.cms-info-bd h1 { font-size: 18px; font-weight: 900; color: #111; margin-bottom: 6px; }
@media (min-width:640px) { .cms-info-bd h1 { font-size: 22px; } }
.cms-info-desc { font-size: 12px; color: var(--cms-muted); line-height: 1.5; margin-bottom: 8px; }
.cms-info-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 11px; color: var(--cms-muted); }
.cms-score { font-size: 14px; font-weight: 800; color: var(--cms-amber); }
.cms-info-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--cms-muted); margin-bottom: 8px; }
.cms-info-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.cms-info-tags span {
  font-size: 10px; border: 1px solid rgba(21,101,192,.3);
  color: var(--cms-primary); padding: 2px 6px; border-radius: 4px;
}
.cms-info-actions { display: none; }
.cms-info-ver { font-size: 10px; color: var(--cms-muted); border: 1px solid var(--cms-border); padding: 1px 6px; border-radius: 4px; }
.cms-stars-inline { color: var(--cms-amber); letter-spacing: 1px; font-size: 13px; }

/* App 商店式头部 */
.cms-app-hero .cms-info-top { align-items: center; }
.cms-app-hero .cms-info-cover img {
  width: 76px; height: 76px; box-shadow: 0 6px 16px rgba(21,101,192,.18);
}
@media (min-width:640px) { .cms-app-hero .cms-info-cover img { width: 92px; height: 92px; } }
.cms-app-hero .cms-info-bd h1 { margin-bottom: 8px; }
.cms-app-hero .cms-info-desc { margin-bottom: 0; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.cms-app-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cms-border);
}
@media (min-width:640px) { .cms-app-highlights { grid-template-columns: repeat(4, 1fr); } }
.cms-app-highlights li {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #374151; font-weight: 600;
  background: var(--cms-primary-light); border-radius: var(--cms-radius); padding: 8px 10px;
}
.cms-app-highlights svg { width: 16px; height: 16px; color: var(--cms-primary); flex-shrink: 0; }
.cms-info-meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--cms-muted); margin-top: 8px;
}
.cms-info-meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.cms-down-actions {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--cms-border); font-size: 12px; color: var(--cms-muted);
}
.cms-down-actions button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.cms-down-actions button:hover { color: var(--cms-primary); }

.cms-info-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--cms-border); text-align: center;
}
.cms-info-stats strong { display: block; font-size: 18px; font-weight: 900; }
.cms-info-stats span { font-size: 10px; color: var(--cms-muted); }
.cms-info-stats .s1 strong { color: var(--cms-primary); }
.cms-info-stats .s2 strong { color: var(--cms-red); }
.cms-info-stats .s3 strong { color: var(--cms-amber); }
.cms-info-stats .s2 { border-left: 1px solid var(--cms-border); border-right: 1px solid var(--cms-border); }

.cms-downbox {
  background: #fff; border: 1px solid var(--cms-border);
  border-radius: var(--cms-radius); padding: 16px; margin-bottom: 12px;
}
.cms-downbox h3 {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.cms-downbox h3::before { content: "⬇"; color: var(--cms-primary); }
.cms-down-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid #e5e7eb; border-radius: var(--cms-radius);
  margin-bottom: 8px; transition: border-color .15s, background .15s;
}
.cms-down-row:hover { border-color: var(--cms-primary); background: rgba(227,242,253,.3); }
.cms-down-row-bd { flex: 1; min-width: 0; }
.cms-down-row-bd b { font-size: 13px; color: #1f2937; display: block; }
.cms-down-row-bd small { font-size: 10px; color: var(--cms-muted); }

.cms-card { background: #fff; border: 1px solid var(--cms-border); border-radius: var(--cms-radius); overflow: hidden; margin-bottom: 12px; }
.cms-card .cms-tab-hd [data-tab] { display: inline-block; }
.cms-card-bd { padding: 16px; }
.cms-content { font-size: 13px; line-height: 1.8; color: #374151; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content-h {
  position: relative; display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 800; color: var(--cms-primary);
  margin: 22px 0 12px; padding: 0 0 9px; border-bottom: 1px solid #eef1f5;
}
.cms-content-h::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cms-primary); box-shadow: 0 0 0 3px rgba(21,101,192,.16);
}
.cms-content-h::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--cms-primary), rgba(21,101,192,0));
}

.cms-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cms-shots img { border-radius: var(--cms-radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.cms-shot-main { position: relative; margin-bottom: 8px; border-radius: var(--cms-radius); overflow: hidden; aspect-ratio: 16/9; }
.cms-shot-main img { width: 100%; height: 100%; object-fit: cover; }
.cms-shot-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.cms-shot-thumbs button {
  border: 2px solid transparent; padding: 0; border-radius: 4px;
  overflow: hidden; width: 80px; height: 56px; flex-shrink: 0; cursor: pointer; background: none;
}
.cms-shot-thumbs button.on { border-color: var(--cms-primary); }
.cms-shot-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.cms-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width:640px) { .cms-rel { grid-template-columns: repeat(6, 1fr); } }
.cms-rel a { text-align: center; color: inherit; font-size: 11px; }
.cms-rel img { width: 48px; height: 48px; border-radius: var(--cms-radius); margin-bottom: 4px; }
.cms-rel b { display: block; font-weight: 600; color: #374151; }
.cms-rel a:hover b { color: var(--cms-primary); }

.cms-softtags { font-size: 12px; margin-bottom: 12px; color: var(--cms-muted); }
.cms-softtags a { margin-left: 6px; }

.cms-safe {
  background: #fff; border: 1px solid var(--cms-border);
  border-radius: var(--cms-radius); padding: 12px; margin-bottom: 12px;
}
.cms-safe h4 { font-size: 12px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; color: var(--cms-green-dark); }
.cms-safe li { font-size: 11px; color: #4b5563; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.cms-safe li::before { content: "✓"; color: var(--cms-green); font-weight: 700; }

.cms-comments { margin-top: 12px; }
.cms-comments-hd {
  display: flex; align-items: center; gap: 24px;
  padding: 12px; background: var(--cms-bg); border-radius: var(--cms-radius); margin-bottom: 12px;
}
.cms-comments-score { text-align: center; }
.cms-comments-score strong { font-size: 28px; font-weight: 900; color: var(--cms-amber); display: block; }
.cms-cm-item {
  display: flex; gap: 10px; padding: 12px 0;
  border-top: 1px solid #f9fafb;
}
.cms-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cms-cm-bd { flex: 1; min-width: 0; }
.cms-cm-name { font-size: 12px; font-weight: 600; color: #374151; }
.cms-cm-name em { font-size: 10px; color: var(--cms-muted); font-style: normal; margin-left: 8px; font-weight: 400; }
.cms-cm-txt { font-size: 12px; color: #4b5563; margin-top: 4px; line-height: 1.6; }

.cms-faq details { border: 1px solid var(--cms-border); border-radius: var(--cms-radius); margin-bottom: 8px; overflow: hidden; }
.cms-faq summary {
  padding: 10px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.cms-faq summary::-webkit-details-marker { display: none; }
.cms-faq .cms-faq-a { padding: 0 12px 12px; font-size: 12px; color: #4b5563; line-height: 1.7; border-top: 1px solid var(--cms-border); padding-top: 10px; }

[data-tabs] [data-panel].on { display: block; }
