/* 布局 */
.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; }
.official-tag { color:#52c41a; margin-right:6px; }
.auth-text { color:#004094; }

/* 简介展开收起 */
.intro-toggle { text-align:center; margin:10px 0; }
.toggle-btn { color: #004094; cursor: pointer; font-weight: bold; font-size: 15px; }
.toggle-btn:hover { color: #ff9800; }
.detail-intro { display: none; padding:20px; background: #f9f9f9; border-radius: 8px; margin-top: 15px; border: 1px solid #eee; overflow: hidden; }
.intro-inner { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.intro-content { flex: 1; line-height: 1.8; font-size: 14px; text-align: left; }
.intro-img { border:1px solid #eee; padding:2px; background:#fff; max-width:100%; height:auto; display:block; margin:0 auto; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,0.1); }
.intro-close { text-align:center; margin-top:25px; }

/* 系统匹配 */
.sys-match-bar { background: #fff7e6; border: 1px solid #ffbb96; padding: 12px 20px; border-radius: 6px; margin-bottom: 15px; display: none; align-items: center; justify-content: space-between; font-size:15px; }
.match-text { color: #873800; font-weight:bold; }
.match-ctrl-link { color: #004094; font-weight: bold; cursor: pointer; text-decoration: underline; }
.hide-count { color:#ff3000; font-size:16px; }

/* 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; }
.err-report-btn { color: #ff4d4f; font-weight: bold; font-size: 13px; border: 1px solid #ffccc7; background: #fff2f0; padding: 5px 15px; border-radius: 4px; }
.err-report-btn:hover { background: #ff4d4f; color: #fff; }

/* 下载区域 */
.pane-course { display:none; padding:10px 20px; line-height:2.2; background:#fdfdfd; }
.warm-tip { background: #f6ffed; border: 1px solid #b7eb8f; padding: 8px 12px; border-radius: 4px; font-size: 12px; color: #52c41a; margin-bottom: 10px; }
.dl-card { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px dashed #eee; transition: 0.2s; }
.dl-card.gray { background:#fafafa; }
.dl-card:hover { background: #f0f7ff; }
.dl-info h5 { margin: 0 0 5px; font-size: 15px; color: #004094; }
.speed-tip { background: #e6f7ff; border: 1px solid #91d5ff; padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; color: #0050b3; }

/* 右侧排行 */
.rank-list { list-style: none; }
.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; }

/* 工具卡片 */
.tool-card { background:#f0f7ff; border:1px solid #cce5ff; }
.tool-btn { display:block; background:#004094; color:#fff; text-align:center; padding:10px; border-radius:6px; font-weight:bold; }
.tool-btn:hover { background:#002d66; }

/* 报错反馈弹窗 */
.error-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.popup-container {
    max-width: 700px;
    background: #fff;
    margin: 80px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.popup-header {
    background: #004094;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup-close {
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.popup-body { padding: 25px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; margin-bottom: 6px; font-weight: bold; color: #333; }
.form-item input,
.form-item textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.form-item textarea { min-height: 120px; resize: vertical; }
.submit-btn { background: #004094; color: #fff; border: none; padding: 10px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.submit-btn:hover { background: #003375; }

/* 全局提示 */
.msg-success {
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background:#004094;
    color:#fff;
    padding:14px 25px;
    border-radius:6px;
    z-index:10000;
    display:none;
}
.tbsm {
    margin: 16px 0;
    padding: 16px 20px;
    border: 1px solid #ffbb96;
    background: #fff7e6;
    color: #873800;
    line-height: 1.8;
    font-size: 14px;
    border-radius: 8px;
    word-break: break-all;
    clear: both;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tbsm::before {
    content: "⚠️ 特别说明";
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #ff4d4f;
    margin-bottom: 10px;
}
.tbsm p {
    margin: 0 0 8px 0;
}
.tbsm a {
    color: #004094;
    font-weight: 500;
    text-decoration: underline;
}
.tbsm a:hover {
    color: #ff9800;
    text-decoration: none;
}
.tbsm img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 6px;
}

/* 修复图片响应式 */
@media (max-width:768px){
    .intro-inner{ flex-direction:column; align-items:center; }
    .intro-img{ margin-bottom:10px; }
}

/* FAQ模块样式 - 适配驱动下载页 */
#soft_faq {
    max-width: 100%;
    margin: 0 auto 0;
    font-family: "Microsoft YaHei", sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.faq-header {
    padding: 12px 16px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.faq-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-title::before {
    content: "❓";
    font-size: 16px;
}
.faq-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.faq-item {
    border-bottom: 1px solid #f3f4f6;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    transition: background 0.2s;
}
.faq-question:hover {
    background-color: #f9fafb;
}
.q-icon {
    font-weight: bold;
    color: #2563eb;
    font-size: 16px;
    min-width: 20px;
}
.q-text {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}
.arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9fafb;
}
.a-content {
    padding: 12px 16px 16px 46px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}
.a-content p {
    margin: 0 0 8px 0;
}
.a-content ul {
    margin: 0;
    padding-left: 20px;
}
.a-content li {
    margin-bottom: 6px;
}
.a-content strong {
    color: #1f2937;
}
.a-content span { color: #d93025; font-weight: bold; }
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-item.active .arrow {
    transform: rotate(180deg);
}
.faq-item.active .faq-question {
    background-color: #eff6ff;
    border-left: 3px solid #2563eb;
}

/* ===================== 下载模块样式 ===================== */
.dl-section {
    margin-bottom: 30px;
}
.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-info p {
    margin: 0 0 18px 0;
    color: #666;
}
.dl-row {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.dl-row:last-child {
    margin-bottom: 0;
}

/* ========== 分类标题（你指定的颜色边框） ========== */
.dl-section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px;
    padding-left: 10px;
    color: #333;
    border-left: 4px solid;
}
.dl-section-title-official {
    border-left-color: #52c41a;  /* 官方驱动：绿色 */
}
.dl-section-title-base {
    border-left-color: #1a73e8;  /* 基础打印：蓝色 */
}
.dl-section-title-scan {
    border-left-color: #9c27b0;  /* 扫描软件：紫色 */
}
.section-sub {
    font-size: 12px;
    font-weight: normal;
    color: #999;
    margin-left: 8px;
}

/* ========== 温馨提示（统一灰色背景） ========== */
.dl-tip,
.dl-tip-official,
.dl-tip-text {
    background: #f8f8f8;
    color: #666;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #e8e8e8;
}

/* ========== 你指定的 下载按钮样式 ========== */
.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.official,
.dl-btn[style*="#52c41a"] {
    background-color: #E8F5E9;
    color: #2E7D32 !important;
    border-color: #C8E6C9;
}
.dl-btn.official:hover,
.dl-btn[style*="#52c41a"]:hover {
    background-color: #2E7D32;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}
/* 普通下载 */
.dl-btn.primary,
.dl-btn[style*="#1a73e8"] {
    background-color: #E3F2FD;
    color: #004094 !important;
    border-color: #BBDEFB;
}
.dl-btn.primary:hover,
.dl-btn[style*="#1a73e8"]:hover {
    background-color: #004094;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 64, 148, 0.2);
}
/* 备用下载 */
.dl-btn.backup,
.dl-btn[style*="#999"] {
    background-color: #ECEFF1;
    color: #455A64 !important;
    border-color: #CFD8DC;
}
.dl-btn.backup:hover,
.dl-btn[style*="#999"]:hover {
    background-color: #455A64;
    color: #ffffff !important;
}
/* 迅雷下载 */
.dl-btn.thunder {
    background: #FCE4EC;
    color: #C2185B !important;
    border: 1px solid #F8BBD0;
}
.dl-btn.thunder:hover {
    background: #F8BBD0;
    color: #C2185B !important;
}

/* 本站节点提示 */
.dl-site-tip {
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    padding: 6px 12px;
    margin: 4px 0 10px 0;
    border-radius: 4px;
    font-weight: normal;
    width: 100%;
}

/* 左右并排布局（左侧下载 + 右侧占位） */
.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;
}
       /* 扫描仪专用配色与样式 */
        .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;
}
/* 针对左侧主内容区的卡片头部进行居中处理 */
.card-header-center {
    text-align: center; /* 让标签和标题全部居中 */
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.card-header-center h1 {
    font-size: 26px;
    margin: 10px 0;
    color: #333;
}

/* 步骤引导样式 */
.scan-step {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}
.step-item {
    flex: 1;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #666;
}
.step-item b {
    display: block;
    color: #004094;
    font-size: 14px;
    margin-bottom: 5px;
}
.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){
    .dl-wrap-row {
        flex-direction: column;
    }
    .dl-left-col,
    .dl-right-col {
        width: 100%;
        flex: none;
    }
    .dl-right-col {
        min-height: 160px;
    }
}
