* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; background: #f5f6f7; }
a { color: #2560a8; text-decoration: none; }
a:hover { color: #e05012; }
ul, ol { list-style: none; }
.wrap { width: 1200px; max-width: 96%; margin: 0 auto; }

/* 顶部导航（固定悬浮，滚动时始终显示在最上方） */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 2px solid #2560a8; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 20px; height: 56px; }
.site-name { display: flex; flex-direction: column; line-height: 1.15; font-size: 20px; font-weight: bold; color: #2560a8; }
.site-domain { font-size: 12px; font-weight: normal; color: #999; letter-spacing: .5px; }
.main-nav > ul { display: flex; }
.main-nav > ul > li { position: relative; display: block; height: 56px; }
.main-nav > ul > li > a { display: block; padding: 0 18px; line-height: 56px; font-size: 15px; color: #333; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: #fff; background: #2560a8; }
.sub-nav { display: none; position: absolute; top: 56px; left: 0; z-index: 99; min-width: 150px; background: #fff; border: 1px solid #ddd; border-top: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.main-nav > ul > li:hover .sub-nav { display: block; }
.sub-nav li { display: block; height: auto; }
.sub-nav a { display: block; padding: 6px 16px; color: #444; white-space: nowrap; line-height: 1.8; }
.sub-nav a:hover { background: #f0f5fb; color: #2560a8; }

/* 主体布局 */
.page-wrap { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.main-col { flex: 1 1 auto; min-width: 0; }
.side-col { flex: 0 0 300px; }
.panel { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 16px; }
.panel-title { font-size: 16px; font-weight: bold; padding: 10px 14px; border-bottom: 1px solid #eee; border-left: 3px solid #2560a8; }

/* 软件列表 */
.soft-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px dashed #eee; }
.soft-item:hover { background: #fafcff; }
.soft-ico { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: 0 0 44px; }
.soft-ico-empty { display: flex; align-items: center; justify-content: center; background: #eef2f8; color: #2560a8; font-size: 18px; font-weight: bold; }
.soft-info { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.soft-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soft-time { color: #999; font-size: 12px; flex: 0 0 auto; }

/* 分页 */
.pager { padding: 14px; text-align: center; }
.pager a, .pager .cur { display: inline-block; min-width: 34px; padding: 4px 10px; margin: 0 3px; border: 1px solid #ddd; background: #fff; color: #333; }
.pager .cur { background: #2560a8; border-color: #2560a8; color: #fff; }
.pager .total { color: #888; margin-left: 6px; }

/* 侧边栏 */
.side-box { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 16px; }
.side-box h3 { font-size: 15px; font-weight: bold; padding: 10px 14px; border-bottom: 1px solid #eee; }
.side-box ul { padding: 6px 14px; }
.side-box ul li { padding: 6px 0; border-bottom: 1px dotted #f0f0f0; overflow: hidden; }
.side-box ul li:last-child { border-bottom: none; }
.side-box ul li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-form { display: flex; }
.search-form input { flex: 1; border: 1px solid #ddd; padding: 6px 10px; outline: none; }
.search-form input:focus { border-color: #2560a8; }
.search-form button { border: none; background: #2560a8; color: #fff; padding: 0 18px; cursor: pointer; }
/* 顶部导航后的搜索栏：与导航隔开一段空间 */
.header-search { margin-left: 28px; width: 280px; flex: 0 1 280px; }
.header-search input { padding: 5px 10px; }
.side-cats .cat-title { text-align: center; }
.side-cats .cat-title a { font-size: 16px; font-weight: bold; color: #222; }
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em 2em; }
.cat-grid li { text-align: center; }
.side-cats ul { padding: 10px 36px; }
.cat-grid li a { display: inline-block; padding: 4px 6px; border-radius: 3px; }
.cat-grid li a.active { background: #2560a8; color: #fff; }

/* 广告位 */
.ad { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 16px; padding: 8px; text-align: center; color: #888; }

/* 详情页 */
.crumbs { color: #888; padding: 0 14px 12px; font-size: 13px; }
.detail-top { display: flex; gap: 16px; padding: 16px 14px; align-items: flex-start; }
.detail-cover img { max-width: 220px; border: 1px solid #eee; border-radius: 6px; }
.detail-meta { flex: 1; }
.detail-meta h1 { font-size: 20px; margin-bottom: 10px; }
.detail-meta .meta-row { margin-bottom: 6px; color: #666; }
.detail-meta .meta-row b { color: #333; }
.detail-content { padding: 4px 14px 16px; }
.detail-content img { max-width: 100%; height: auto; }
.dl-btns { padding: 10px 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { display: inline-block; padding: 8px 22px; border-radius: 4px; background: #2560a8; color: #fff; }
.dl-btn:hover { background: #1c4c88; color: #fff; }
.dl-disabled { display: inline-block; padding: 8px 22px; border-radius: 4px; background: #e5e5e5; color: #aaa; cursor: not-allowed; }
.dl-tip { color: #888; padding: 0 14px 14px; }

/* 分享栏 */
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px 18px; border-top: 1px dashed #eee; }
.share-label { color: #888; font-size: 13px; margin-right: 4px; }
.share-btn { display: inline-block; padding: 5px 14px; border-radius: 3px; color: #fff; font-size: 13px; line-height: 1.4; }
.share-btn:hover { opacity: .85; color: #fff; }
.sb-wx { background: #09bb07; }
.sb-qq { background: #12b7f5; }
.sb-qzone { background: #fece00; color: #4a3000; }
.sb-weibo { background: #e6162d; }
.sb-copy { background: #8a94a6; }

/* 分享二维码弹窗 */
.share-mask { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.45); }
.share-mask.show { display: flex; align-items: center; justify-content: center; }
.share-modal { width: 320px; background: #fff; border-radius: 8px; text-align: center; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.share-modal h3 { font-size: 16px; margin-bottom: 14px; color: #333; }
.share-modal #qrcode { display: inline-block; padding: 8px; border: 1px solid #eee; }
.share-url { color: #2560a8; font-size: 12px; word-break: break-all; margin-top: 10px; user-select: all; }
.share-tip { color: #999; font-size: 12px; margin: 8px 0 14px; }
.share-close { padding: 6px 30px; border: none; border-radius: 4px; background: #2560a8; color: #fff; cursor: pointer; }

/* 友情链接/版权 */
.friend-links { padding: 14px; border-top: 1px solid #eee; color: #666; }
.friend-links a { margin: 0 8px 0 0; }
.site-footer { background: #fff; border-top: 1px solid #e8e8e8; margin-top: 24px; padding-bottom: 30px; }
.copyright { padding: 14px; color: #999; font-size: 12px; line-height: 1.8; text-align: center; }

@media (max-width: 860px) {
    .page-wrap { flex-direction: column; }
    .side-col { width: 100%; flex: 1 1 auto; }
    .header-inner { flex-direction: column; height: auto; padding-bottom: 4px; gap: 8px; }
    .header-search { width: 100%; max-width: 320px; margin-left: 0; }
}
