﻿/* 时间：2026-10-20 详细注释：软件列表与详情复用 welcome-html.css 的深色品牌、导航、页脚和产品卡片；本文件仅定义目录标题、介绍、截图及下载区域，目的消除原浅色样式与首页的割裂。居中内容容器与产品头部，下载卡片随数量居中换行，长标题和版本号可换行，截图等比完整展示，避免窄屏错位或图片裁切。 */
.sw-body { min-height: 100vh; display: flex; flex-direction: column; }
.sw-body .ah-nav, .sw-body .ah-footer { flex-shrink: 0; }
.sw-main { width: calc(100% - 48px); max-width: 1080px; min-width: 0; margin: 0 auto; flex: 1 0 auto; padding: 56px 0 72px; overflow: visible; }
.sw-lead { text-align: center; margin: 0 auto 36px; }
.sw-lead h1 { margin: 0 0 12px; color: #fff; font-size: 36px; line-height: 1.35; }
.sw-lead p { max-width: 640px; margin: 0 auto; color: #9297b3; font-size: 14px; line-height: 1.8; }
.sw-empty { padding: 52px 24px; text-align: center; color: #9297b3; background: #121629; border: 1px dashed rgba(255,255,255,.12); border-radius: 18px; }
.sw-detail-main { padding-top: 28px; }
.sw-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: #a8b2ff; text-decoration: none; font-size: 14px; }
.sw-back:hover { color: #fff; }
.sw-detail { background: #121629; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; }
.sw-detail-head { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 32px 36px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.sw-detail-cover { display: block; width: 96px; height: 96px; flex: none; border-radius: 22px; object-fit: contain; background: #202640; }
.sw-cover-placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; background: linear-gradient(135deg,#6c7bff,#8a5bff); }
.sw-detail-summary { min-width: 0; width: 100%; max-width: 720px; }
.sw-detail-label { color: #93a1ff; font-size: 13px; margin-bottom: 8px; }
.sw-detail h1 { margin: 0; font-size: 32px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.sw-detail-summary p { color: #a8adc7; font-size: 15px; margin: 12px 0 0; overflow-wrap: anywhere; }
.sw-detail-content { padding: 0 36px 36px; }
.sw-section { padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.07); }
.sw-section:first-child { border-top: 0; margin-top: 0; }
.sw-section h2 { color: #f5f7ff; font-size: 21px; line-height: 1.4; margin: 0 0 20px; text-align: center; }
.sw-description { white-space: pre-wrap; overflow-wrap: anywhere; color: #a8adc7; font-size: 14px; line-height: 1.9; }
.sw-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 18px; }
.sw-gallery a { display: flex; align-items: center; justify-content: center; min-width: 0; height: 240px; padding: 12px; background: #0d1323; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.sw-gallery a:hover { border-color: rgba(124,140,255,.5); }
.sw-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sw-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.sw-download-card { display: flex; flex-direction: column; flex: 0 1 calc((100% - 36px) / 3); width: 100%; max-width: 420px; min-width: 0; padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #0d1323; }
.sw-download-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; overflow-wrap: anywhere; text-align: center; }
.sw-download-head strong { font-size: 17px; color: #f5f7ff; min-width: 0; }
.sw-download-head span { font-size: 13px; color: #a8b2ff; min-width: 0; }
.sw-download-date { color: #9297b3; font-size: 12px; margin: 8px 0 20px; text-align: center; }
.sw-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; background: linear-gradient(135deg,#6c7bff,#8a5bff); color: #fff; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
.sw-btn:hover { background: linear-gradient(135deg,#7c89ff,#996fff); }
.sw-unavailable { display: block; padding: 10px; text-align: center; color: #9297b3; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 14px; }
.sw-download-notes { border-top: 1px solid rgba(255,255,255,.07); margin-top: 20px; padding-top: 16px; color: #a8adc7; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
@media (max-width: 960px) { .sw-download-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 700px) {
    .sw-main { width: calc(100% - 36px); padding: 36px 0 48px; }
    .sw-lead { margin-bottom: 26px; }
    .sw-lead h1 { font-size: 28px; }
    .sw-detail-main { padding-top: 18px; }
    .sw-back { margin-bottom: 12px; }
    .sw-detail-head { padding: 30px 20px; }
    .sw-detail-cover { width: 76px; height: 76px; border-radius: 18px; }
    .sw-detail h1 { font-size: 26px; }
    .sw-detail-summary p { font-size: 14px; }
    .sw-detail-content { padding: 0 20px 26px; }
    .sw-section { margin-top: 24px; padding-top: 24px; }
    .sw-section h2 { font-size: 19px; }
    .sw-gallery { grid-template-columns: 1fr; gap: 14px; }
    .sw-gallery a { height: 220px; }
    .sw-download-card { flex-basis: 100%; padding: 20px; }
}
