/* 布局 */
.main-flex { display: flex; gap: 20px; align-items: flex-start; }
.left-main { flex: 1; min-width: 0; }
.right-side { width: 300px; flex-shrink: 0; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #eef0f2; }

/* 标题与信息 */
h1 { text-align: center; font-size: 24px; color: #222; margin: 10px 0 20px; }
.meta-info { display: flex; flex-wrap: wrap; gap: 15px; color: #666; justify-content: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }

/* Tab切换 */
.tab-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.tab-items { display: flex; gap: 30px; }
.tab-btn { padding: 12px 0; cursor: pointer; color: #888; font-weight: bold; position: relative; bottom: -2px; border-bottom: 3px solid transparent; }
.tab-btn.active { color: #004094; border-bottom-color: #004094; }

/* 下载区域样式（页面真实在用） */
.dl-section { margin-bottom: 30px; }
.dl-wrap-row { display: flex; gap: 20px; align-items: flex-start; margin-top: 10px; }
.dl-left-col { flex: 0 0 62%; }
.dl-right-col { flex: 1; min-height: 220px; background: #fafafa; border: 1px dashed #ccc; border-radius: 8px; padding: 10px; }
.dl-card { background: #fff; padding: 15px; border-radius: 6px; margin-bottom: 15px; border: 1px solid #eee; }
.dl-info h5 { font-size: 15px; margin: 0 0 8px 0; font-weight: 600; }
.dl-download-list { margin-top: 10px; }
.dl-row { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.dl-row:last-child { margin-bottom: 0; }

/* 下载按钮（页面真实在用） */
.dl-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 88px;
}
.dl-btn.primary {
    background-color: #E3F2FD;
    color: #004094 !important;
    border-color: #BBDEFB;
}
.dl-btn.primary:hover {
    background-color: #004094;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 64, 148, 0.2);
}
.dl-btn.thunder {
    background: #FCE4EC;
    color: #C2185B !important;
    border: 1px solid #F8BBD0;
}
.dl-btn.thunder:hover {
    background: #F8BBD0;
    color: #C2185B !important;
}

/* 右侧排行 */
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; overflow: hidden; }
.rank-list li em { flex-shrink: 0; width: 22px; height: 20px; line-height: 20px; background: #e1e4e8; color: #666; text-align: center; font-size: 12px; margin-right: 12px; font-style: normal; border-radius: 3px; font-weight: bold; }
.rank-list li:nth-child(1) em { background: #ff4400; color: #fff; }
.rank-list li:nth-child(2) em { background: #ff9800; color: #fff; }
.rank-list li:nth-child(3) em { background: #ffc107; color: #fff; }
.rank-list li a { flex: 1; color: #333; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rank-list li a:hover { color: #004094; }
.side-card-title { font-size: 18px; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 15px; margin: 0; margin-bottom: 15px; }
.card-title-sm { font-size:18px; border-left: 4px solid #fc7b54; }

/* 扫描仪专用样式 */
.scan-notice { background: #f0f7ff; border: 1px solid #004094; padding: 15px; border-radius: 6px; margin-bottom: 20px; display: flex; align-items: flex-start; }
.scan-notice .icon { font-size: 24px; margin-right: 12px; }
.scan-notice .text { font-size: 14px; color: #004094; line-height: 1.6; }
.scan-notice b { text-decoration: underline; }

.software-list { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; margin-top: 20px; }
.software-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }
.software-item:last-child { border-bottom: none; }
.tag-twain { background: #28a745; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 3px; }

.reset-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: normal;
}

.store-btn {
    border: 1px solid #004094;
    color: #004094 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}
.store-btn:hover {
    background: #004094;
    color: #fff !important;
}

/* 移动端自适应 */
@media (max-width:768px){
    .main-flex { flex-direction: column; }
    .right-side { width: 100%; }
    .dl-wrap-row { flex-direction: column; }
    .dl-left-col, .dl-right-col { width: 100%; flex: none; }
}