/* =========================================================
   paper.css - 帝国CMS在线考试系统样式表 (灰色背景+白色卡片版)
   ========================================================= */

/* --- 全局与基础设置 --- */
* { box-sizing: border-box; margin: 0; padding: 0; } 
/* 修改1: 背景改为淡灰色 */
body { background-color: #f4f6f8; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; font-size: 14px; }
.container { max-width: 100%; margin: 0 auto; padding: 0; } 

/* --- 积分不足模态框样式 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}
.modal-icon {
    color: #ff4d4f;
    font-size: 30px;
    margin-bottom: 15px;
}
.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #ffccc7;
    padding-bottom: 10px;
}
.modal-body p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}
.modal-body .required-fen {
    color: #e60012;
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}
.modal-body .current-fen {
    color: #1890ff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}
.modal-action button {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-recharge {
    background: #e60012;
    color: #fff;
    font-weight: bold;
}
.btn-recharge:hover {
    background: #d90011;
}

/* --- 通用头部样式 --- */
/* 修改2: 核心容器变为白色卡片 */
.exam-container { 
    background: #fff; /* 白色背景 */
    padding: 30px 40px; /* 增加内边距，让内容不贴边 */
    margin-top: 20px; 
    margin-bottom: 30px;
    min-height: 600px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); /* 轻微阴影 */
    border-radius: 4px; /* 轻微圆角 */
    max-width: 1200px; /* 限制最大宽度，防止大屏太宽 */
    margin-left: auto;
    margin-right: auto;
}

.header { 
    background: #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 25px; 
    position: relative; 
    width: 100%; 
    z-index: 1; 
    border-bottom: 1px solid #f0f0f0; 
    min-height: 60px;
    flex-wrap: wrap; 
} 

.h-title { 
    font-size: 18px; 
    font-weight: bold; 
    color: #e60012; 
    display: flex; 
    align-items: center; 
    margin-right: auto; 
    padding-right: 15px;
} 

.h-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-right a { 
    text-decoration: none; 
    color: #555; 
    cursor: pointer; 
    font-size: 13px; 
    transition: 0.2s; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    border: 1px solid #eee;
    white-space: nowrap;
} 

.h-right a:hover { 
    color: #e60012; 
    background: #fff1f0; 
    border-color: #ffa39e;
    transform: translateY(-1px);
}

.h-right a svg {
    margin-right: 5px;
    width: 14px;
    height: 14px;
}

/* --- 面包屑导航 --- */
.breadcrumb-nav { background: #f9f9f9; padding: 15px 25px; border-radius: 4px; margin-bottom: 25px; display: flex; align-items: center; font-size: 14px; color: #999; border:1px solid #eee; }
.breadcrumb-nav a { color: #666; transition: 0.2s; font-weight: 500; text-decoration: none; }
.breadcrumb-nav a:hover { color: #1890ff; }
.breadcrumb-sep { margin: 0 10px; color: #e0e0e0; font-size: 12px; }
.breadcrumb-current { color: #333; font-weight: bold; }

/* =========================================================
   促销/充值活动模块
   ========================================================= */
.promo-box { 
    background: #fff; 
    border: 1px solid #ffe5e5; 
    border-radius: 4px; 
    margin-bottom: 25px; 
    overflow: hidden; 
}
.left-panel .promo-box { margin-top: 15px; margin-bottom: 0; }

.promo-head { 
    background: #fff0f6; 
    padding: 10px 15px; 
    color: #c41d7f; 
    font-weight: bold; 
    font-size: 14px; 
    border-bottom: 1px solid #ffe5e5; 
    display: flex; 
    align-items: center; 
}

.promo-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    padding: 15px; 
    background: #fff; 
}

.p-card { 
    border: 1px solid #ffccc7; 
    border-radius: 4px; 
    padding: 15px 5px; 
    text-align: center; 
    position: relative; 
    transition: all 0.3s; 
    background: #fff; 
}
.left-panel .p-card { padding: 12px 2px; }

.p-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255, 77, 79, 0.15); border-color: #ff4d4f; }

.p-price { 
    color: #cf1322; 
    font-size: 20px; 
    font-weight: bold; 
    margin-bottom: 5px; 
    font-family: Arial, sans-serif; 
}
.left-panel .p-price { font-size: 18px; margin-bottom: 4px; }

.p-desc { 
    display: inline-block; 
    background: #fff1f0; 
    color: #820014; 
    font-size: 12px; 
    padding: 2px 8px; 
    border-radius: 10px; 
    margin-bottom: 12px; 
}
.left-panel .p-desc { padding: 1px 6px; border-radius: 8px; margin-bottom: 8px; font-size: 12px; transform: scale(0.9); }

.p-btn { 
    display: block; 
    width: 90%; 
    margin: 0 auto; 
    background: linear-gradient(90deg, #ff7875, #f5222d); 
    color: #fff; 
    padding: 6px 0; 
    border-radius: 20px; 
    font-size: 13px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.2s; 
}
.left-panel .p-btn { width: 95%; padding: 5px 0; border-radius: 15px; font-size: 12px; }

.p-btn:hover { opacity: 0.9; box-shadow: 0 3px 8px rgba(245, 34, 45, 0.3); color:#fff; }

.p-tag { 
    position: absolute; 
    top: 0; 
    right: 0; 
    color: #fff; 
    font-size: 12px; 
    padding: 1px 5px; 
    border-bottom-left-radius: 4px; 
    border-top-right-radius: 4px; 
}
.left-panel .p-tag { padding: 0 4px; font-size: 10px; }

.tag-hot { background: #f5222d; }
.tag-vip { background: #faad14; }

/* =========================================================
   模拟考试模式专用样式 (Mode: Exam)
   ========================================================= */
.exam-meta-styled { 
    background: #fff; 
    border: 1px solid #eaeaea; 
    padding: 15px 25px; 
    color: #666; 
    font-size: 14px; 
    margin-bottom: 25px; 
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    display: flex; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 25px; 
    margin-top: 20px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.meta-item b { 
    color: #e60012; 
    margin: 0 6px; 
    font-family: Arial, sans-serif; 
    font-size: 16px; 
    font-weight: bold;
    vertical-align: -2px;
}

.timer-badge { color: #f5222d; font-weight: bold; font-size: 15px; }

.q-box { 
    background: #fff; 
    padding: 30px 40px; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    border: 1px solid #eaeaea; 
}

.q-title { 
    font-weight: bold; 
    font-size: 14px; 
    margin-bottom: 25px; 
    line-height: 1.8; 
    color: #222; 
    display: block; 
}
.q-title * { display: inline !important; margin: 0 !important; }

.q-type-label { color: #e60012; font-weight: bold; margin-right: 8px !important; font-size: 16px; }

.q-title .q-score { 
    color: #ff4d4f; background-color: #fff2f0; border: 1px solid #ffccc7; 
    font-size: 12px; padding: 2px 8px !important; border-radius: 20px;
    display: inline-block !important; vertical-align: 1px; margin-left: 8px !important;
}

.q-opt label { 
    display: flex; 
    align-items: center; 
    margin: 15px 0; 
    cursor: pointer; 
    padding: 15px 20px; 
    border-radius: 6px; 
    border: 1px solid #e8e8e8; 
    background: #fff;
    transition: all 0.2s; 
}
.q-opt label:hover { 
    background: #fff5f5; 
    border-color: #e60012; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.05); transform: translateY(-1px);
}
.q-opt input { margin-right: 15px; }
.q-opt span { font-size: 15px; color: #555; line-height: 1.5; }

.pagination-bar { 
    margin-top: 40px; padding: 20px 0; border-top: 1px solid #eee;
    display: flex; justify-content: center; align-items: center; gap: 5px; 
}
#pagination-numbers { display: flex; align-items: center; gap: 5px; }
.page-btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 8px 16px; background: #fff; border: 1px solid #d9d9d9;
    color: #666; cursor: pointer; border-radius: 4px; font-size: 14px;
    transition: 0.2s; user-select: none;
}
.page-btn:hover { color: #e60012; border-color: #e60012; }
.page-btn.active { background: #e60012; color: #fff; border-color: #e60012; }

.submit-area { text-align: center; margin-top: 30px; margin-bottom: 50px; }
.submit-btn { 
    width: 220px; height: 50px; font-size: 16px; 
    background: #e60012; color: #fff; border: none; 
    cursor: pointer; border-radius: 4px; font-weight: bold; 
    letter-spacing: 1px; box-shadow: 0 4px 10px rgba(230,0,18,0.3); 
    transition: 0.3s; 
}
.submit-btn:hover { background: #d90011; transform: translateY(-2px); }

.exam-page-container { display: none; }
.exam-page-container.active-page { display: block; }

/* =========================================================
   专题列表模式专用样式 (Mode: List) - 列表整体外框风格
   ========================================================= */
.list-box { 
    margin-top: 15px; 
    
    /* ★★★ 关键：让列表项左右边距与容器对齐 ★★★ */
    margin: 0 -30px 20px -30px; /* 负边距，拉伸列表项到 exam-container 的内侧边缘 */
} 

.list-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    
    /* 恢复为细线分隔和透明背景 */
    padding: 15px 30px !important; /* 增加左右内边距，与 list-box 的负边距抵消，实现内容对齐 */
    margin-bottom: 0 !important;   /* 移除列表项之间的垂直间距 */
    
    background: transparent !important; /* 确保背景透明 */
    border-radius: 0 !important; 
    border: none !important;                
    border-bottom: 1px solid #f0f0f0 !important; /* 增加细底线分隔 */
    
    transition: all 0.3s; 
    position: relative;
    flex-wrap: nowrap; 
}

/* 移除最后一行底线 */
.list-box .list-item:last-child {
    border-bottom: none !important;
}

/* 悬停效果 */
.list-item:hover { 
    background: #fafafa !important; /* 浅灰色悬停背景 */
    border-color: transparent !important; 
    box-shadow: none !important;
}

/* 图标/Badge区域 (保持不变) */
.list-icon { 
    margin-right: 15px; 
    flex-shrink: 0; 
}

/* 调整标题样式，避免被负边距影响 */
.list-title {
    /* 恢复默认的左右边距，防止贴边 */
    padding-right: 15px; 
}



.icon-txt { 
    display: inline-block; 
    padding: 3px 6px; 
    font-size: 12px; 
    color: #fff; 
    border-radius: 2px; /* 方形圆角 */
    transform: scale(0.95); 
    line-height: 1.2;
}
.bg-top { background: #ff4d4f; }
.bg-good { background: #73d13d; } 

.list-info { 
    flex: 1; 
    min-width: 0; 
    padding-right: 15px;
}
.list-title { 
    font-size: 16px; 
    font-weight: bold; 
    color: #222; 
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    line-height: 1.5;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.list-title:hover { color: #e60012; }

.list-tags { 
    font-size: 12px; 
    color: #999; 
    display: flex;
    align-items: center;
}
.list-tags > span { margin-right: 10px; }

.list-action { 
    margin-left: 20px; 
    flex-shrink: 0; 
    white-space: nowrap;
}

/* 按钮通用样式 */
.btn-do, .btn-do-active { 
    display: inline-block; 
    padding: 8px 24px; 
    border-radius: 4px; /* 方角按钮 */
    font-size: 14px; 
    text-decoration: none; 
    transition: 0.3s; 
    text-align: center;
    min-width: 100px; 
    letter-spacing: 0.5px;
}

.btn-do { 
    background: #f5f5f5; 
    color: #ccc; 
    border: 1px solid #eee; 
    cursor: not-allowed; 
}

.btn-do-active { 
    background: #e60012; 
    color: #fff; 
    border: 1px solid #e60012; 
}
.btn-do-active:hover { 
    background: #d90011; 
    border-color: #d90011; 
    color: #fff; 
    box-shadow: 0 3px 8px rgba(230,0,18,0.3); 
}

/* 分页 */
.pagination { text-align: center; margin-top: 40px; margin-bottom: 20px; display: flex; justify-content: center; gap: 8px; }
.page-link { 
    display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid #d9d9d9; 
    color: #666; border-radius: 4px; text-decoration: none; transition: 0.2s; font-size: 14px; 
}
/* --- 替换这整个样式块 --- */
.page-link:hover { color: #e60012; border-color: #e60012; }

/* 修正后的活跃页码样式，改为红色主题色 */
.page-active { 
    background: #e60012; 
    color: #fff; 
    border-color: #e60012; 
}
.page-disabled { background: #f5f5f5; color: #ccc; cursor: not-allowed; border-color: #eee; }

/* 标题块 - 红色竖线风格 */
/* =========================================================
   [最终修正] 标题块 - 统一首页风格 (单竖线 + 底线)
   ========================================================= */

/* 1. 标题容器：用于显示底线和间距 */
.section-header { 
    display: flex; 
    align-items: flex-end; 
    justify-content: space-between; 
    margin-bottom: 0px; 
    padding-bottom: 10px !important; /* 调整间距 */
    border-bottom: 2px solid #e60012 !important; /* 红色底框 */
}

/* 2. 标题文本：强制实现单竖线样式 */
.section-title { 
    font-size: 18px !important; 
    font-weight: bold !important; 
    color: #333 !important; 
    
    /* 采用首页的单竖线风格 */
    border-left: 4px solid #e60012 !important; /* 左侧红色单线 */
    padding-left: 10px !important;            /* 线与文字间距 */
    line-height: 1 !important;                
    
    display: flex !important;
    align-items: center !important;
}

/* 3. 彻底禁用 ::before 伪元素 (防止其双线残留) */
.section-title::before {
    content: none !important; 
    display: none !important;
}

.section-meta { 
    color: #999; 
    font-size: 13px; 
    margin-top: 5px; 
}

.section-meta { color: #999; font-size: 13px; margin-top: 5px; }

/* =========================================================
   封面模式专用样式 (Mode: Cover)
   ========================================================= */
.info-card { background: #fff; padding: 25px 30px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; border:1px solid #eaeaea; box-shadow: 0 2px 8px rgba(0,0,0,0.02); } 
.info-left { display: flex; align-items: flex-start; flex: 1; padding-right: 20px; } 
.book-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; margin-right: 20px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(24, 144, 255, 0.3); } 
.info-title { font-size: 18px; font-weight: bold; color: #333; line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; } 
.info-crumb { font-size: 14px; color: #888; margin-top: 10px; line-height: 1.6; max-width: 90%; } 
.info-actions { flex-shrink: 0; } 
.info-actions button { border: 1px solid #d9d9d9; background: #fff; padding: 8px 20px; border-radius: 4px; margin-left: 12px; cursor: pointer; color: #666; font-size: 14px; transition: all 0.2s; display: inline-flex; align-items: center; } 
.info-actions button:hover { color: #1890ff; border-color: #1890ff; background: #e6f7ff; } 
.info-actions button.active { background: #fff1f0; color: #ff4d4f; border-color: #ff4d4f; } 

.panel { background: #fff; border-radius: 8px; padding: 0; margin-bottom: 25px; border:1px solid #eaeaea; box-shadow: 0 2px 8px rgba(0,0,0,0.02); overflow: hidden; } 
.panel-head { font-size: 16px; font-weight: bold; color: #333; border-bottom: 1px solid #f0f0f0; padding: 15px 25px; display: flex; align-items: center; }
.panel-head::before { content: ''; display: inline-block; width: 4px; height: 16px; background: #e60012; margin-right: 10px; border-radius: 2px; }

.my-row { display: flex; justify-content: space-around; padding: 25px 0; } 
.my-item { flex: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid #f5f5f5; transition: 0.2s; cursor: pointer; text-decoration: none; } 
.my-item:last-child { border-right: none; } 
.my-item:hover { transform: translateY(-3px); } 

.icon-circle { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-right: 15px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); } 
.bg-red { background: linear-gradient(135deg, #ff9c6e 0%, #ff4d4f 100%); } 
.bg-yellow { background: linear-gradient(135deg, #ffd666 0%, #faad14 100%); } 
.bg-blue { background: linear-gradient(135deg, #69c0ff 0%, #1890ff 100%); } 
.bg-green { background: linear-gradient(135deg, #95de64 0%, #52c41a 100%); } 

.my-text-box div:first-child { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 5px; } 
.my-text-box div:last-child { font-size: 13px; color: #999; } 

.bank-grid-box { padding: 25px; }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } 

.bank-card { display: flex; align-items: center; padding: 20px; background: #fff; border-radius: 8px; transition: all 0.3s; cursor: pointer; border: 1px solid #f0f0f0; position: relative; overflow: hidden; } 
.bank-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #1890ff; transform: translateY(-3px); } 

.b-icon { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; margin-right: 15px; } 
.c-orange { background: linear-gradient(135deg, #ffc069 0%, #fa8c16 100%); } 
.c-blue   { background: linear-gradient(135deg, #69c0ff 0%, #1890ff 100%); } 
.c-green  { background: linear-gradient(135deg, #95de64 0%, #52c41a 100%); } 
.c-red    { background: linear-gradient(135deg, #ff9c6e 0%, #ff4d4f 100%); } 

.b-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 5px; } 
.b-desc { font-size: 12px; color: #999; } 

/* =========================================================
   练习模式专用样式 (Mode: Practice / Random)
   ========================================================= */
.main-layout { display: flex; min-height: 600px; margin-top: 20px; max-width: 1400px; margin-left: auto; margin-right: auto; gap:20px; padding:0 10px; } 
.left-panel { flex: 1; display: flex; flex-direction: column; } 
.q-container { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); min-height: 500px; display: flex; flex-direction: column; border:1px solid #eaeaea; } 

.q-header { height: 60px; padding: 0 30px; border-bottom: 1px solid #f0f0f0; font-size: 16px; color: #666; display:flex; justify-content:space-between; align-items:center; line-height: 1; } 
.q-tag { display:none; }

.q-body { padding: 40px; flex: 1; overflow-y: auto; } 
.q-text { font-size: 16px; line-height: 1.8; margin-bottom: 30px; font-weight: 500; color:#222; min-height: 35px; } 

.q-tag-inline { color:#e60012; font-weight:bold; margin-right:8px; font-size:16px; float: left; line-height: 1.8; }
.q-text p { display: inline; margin: 0; padding: 0; }

.option-item { display: flex; align-items: center; margin-bottom: 15px; cursor: pointer; padding: 15px 20px; border: 1px solid #e8e8e8; border-radius: 6px; transition: all 0.2s; background:#fff; } 
.option-item:hover { background-color: #fff5f5; border-color: #e60012; box-shadow:0 2px 8px rgba(230,0,18,0.05); transform: translateY(-1px); } 
.opt-key { width: 36px; height: 36px; line-height: 34px; text-align: center; border-radius: 50%; border: 1px solid #d9d9d9; margin-right: 20px; flex-shrink: 0; font-weight:bold; color:#666; } 
.opt-key.square { border-radius: 4px; } 

.option-item.selected { border-color: #e60012; background-color: #fff1f0; } 
.option-item.selected .opt-key { background: #e60012; color: #fff; border-color: #e60012; } 

.q-footer { padding: 20px 40px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background:#fafafa; border-bottom-left-radius:8px; border-bottom-right-radius:8px; } 
.btn-nav { padding: 10px 30px; border: 1px solid #d9d9d9; background: #fff; color: #666; border-radius: 4px; cursor: pointer; margin-right: 15px; font-size:14px; transition:0.2s; } 
.btn-nav:hover { border-color:#e60012; color:#e60012; }
.btn-primary { background: #e60012; color: #fff; border-color: #e60012; } 
.btn-primary:hover { background: #d90011; color:#fff; }

.submit-box-multi { margin-top:20px; text-align:left; display:none; padding-left:10px; }
.btn-submit-new { background: #e60012; color: #fff; border: none; padding: 10px 40px; border-radius: 4px; font-size: 15px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(230,0,18,0.2); }
.btn-submit-new:hover { background: #d90011; transform: translateY(-2px); }

.analysis-box { background: #f6ffed; border: 1px solid #b7eb8f; padding: 25px; margin-top: 30px; border-radius: 6px; display: none; box-shadow:0 2px 8px rgba(82, 196, 26, 0.1); } 

.right-panel { width: 300px; background: #fff; border: 1px solid #eaeaea; display: flex; flex-direction: column; border-radius:8px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); max-height:800px; } 
.card-head { padding:15px 20px; font-weight:bold; border-bottom:1px solid #f0f0f0; color:#333; display:flex; justify-content:space-between; align-items:center; }
.card-body { flex: 1; overflow-y: auto; padding: 20px; } 
.card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; } 
.card-num { width: 38px; height: 38px; line-height: 36px; text-align: center; border: 1px solid #e8e8e8; border-radius: 6px; cursor: pointer; font-size: 13px; transition:0.2s; color:#666; } 
.card-num:hover { border-color:#e60012; color:#e60012; }
.card-num.active { border-color: #e60012; color: #fff; font-weight: bold; background: #e60012; box-shadow:0 2px 5px rgba(230,0,18,0.3); } 
.card-num.correct { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; } 
.card-num.wrong { background: #fff1f0; border-color: #ffa39e; color: #f5222d; } 

.btn-fav { cursor: pointer; margin-right: 25px; color: #666; display:flex; align-items:center; } 
.btn-fav:hover { color:#e60012; }
.btn-fav.active { color: #e60012; font-weight: bold; } 

/* =========================================================
   媒体查询适配 (手机端极致优化 - 封面+答题页整合版)
   ========================================================= */
/* =========================================================
   媒体查询适配 (手机端极致优化 - 模拟考试专项版)
   放在 paper.css 最底部
   ========================================================= */
@media (max-width: 900px) {
    /* --- 1. 全局容器与头部优化 (修复标题截断与按钮居中) --- */
    .exam-container { 
        padding: 10px; 
        margin: 10px auto; 
        width: 96%; 
        min-height: auto;
    }

    /* 头部改为上下垂直布局，确保标题能完整显示 */
    .header { 
        padding: 12px 10px; 
        flex-direction: column; /* 改为垂直排列 */
        align-items: center;    /* 水平居中 */
        justify-content: center;
        height: auto;           /* 高度自适应 */
        gap: 10px;              /* 标题和按钮之间的间距 */
    }

    .h-title { 
        font-size: 16px; 
        margin-bottom: 0; 
        margin-right: 0;        /* 去除右边距 */
        border: none; 
        padding: 0; 
        max-width: 100%;        /* 取消宽度限制 */
        width: 100%;
        overflow: visible;      /* 允许显示溢出内容 */
        text-overflow: clip;    /* 取消省略号 */
        white-space: normal;    /* 允许自动换行 */
        text-align: center;     /* 文字居中 */
        line-height: 1.4;
    }

    .h-right { 
        width: 100%; 
        display: flex;
        justify-content: center; /* 按钮组水平居中 */
        gap: 8px;                /* 按钮之间的间距 */
    }

    .h-right a { 
        padding: 6px 12px;       /* 稍微增大按钮点击区域 */
        font-size: 12px; 
        background: #f9f9f9;
    }
    .h-right a svg { width: 12px; height: 12px; margin-right: 3px; }

    /* --- 2. 模拟考试模式：题目间距优化 (修复间距过大) --- */
    
    /* 考试元数据栏 (时间/倒计时) */
    .exam-meta-styled {
        padding: 10px 15px;
        margin-top: 10px;
        margin-bottom: 15px;
        gap: 15px;
        justify-content: center; /* 居中显示倒计时等信息 */
        font-size: 13px;
    }
    
    /* 题目卡片容器 */
    .q-box {
        padding: 15px;       /* PC端是30px，手机端改为15px */
        margin-bottom: 15px; /* 减少卡片下边距 */
        border-radius: 6px;
    }

    /* 题目标题 */
    .q-title {
        font-size: 15px;
        margin-bottom: 15px; /* PC端是25px，减小标题与选项的距离 */
        line-height: 1.6;
    }
    
    .q-type-label {
        font-size: 15px;
        margin-right: 4px !important;
    }

    /* 选项容器 */
    .q-opt {
        margin-top: 5px;
    }

    /* 单个选项样式 */
    .q-opt label {
        margin: 8px 0;       /* PC端是15px，大幅减小选项上下间距 */
        padding: 10px;       /* 减小内边距 */
        border-radius: 4px;
        font-size: 14px;     /* 调整字体大小 */
    }
    
    .q-opt input {
        margin-right: 10px;
    }
    
    .q-opt span {
        font-size: 14px;
        line-height: 1.4;
    }

    /* 底部提交按钮区域 */
    .submit-area {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .submit-btn {
        width: 90%;          /* 按钮加宽方便点击 */
        height: 45px;
    }

    /* 分页条 */
    .pagination-bar {
        padding: 15px 0;
        margin-top: 20px;
        flex-wrap: wrap;     /* 防止页码过多撑破 */
    }
    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* --- 3. 封面与练习模式兼容 (保持原有逻辑，防止影响其他页面) --- */
    .breadcrumb-nav { padding: 8px 10px; margin-bottom: 10px; font-size: 12px; white-space: nowrap; overflow-x: auto; }
    
    /* 封面信息卡 */
    .info-card { padding: 15px; flex-direction: column; align-items: stretch; }
    .info-left { width: 100%; margin-bottom: 12px; padding-right: 0; display: flex; flex-direction: row; align-items: flex-start; }
    .book-icon { width: 44px; height: 44px; font-size: 22px; margin-right: 12px; border-radius: 8px; }
    .info-title { font-size: 16px; line-height: 1.4; margin-bottom: 5px; }
    .info-crumb { font-size: 12px; line-height: 1.4; max-height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .info-actions { width: 100%; display: flex; justify-content: space-between; gap: 10px; }
    .info-actions button { margin: 0; flex: 1; justify-content: center; padding: 8px 0; font-size: 13px; }

    /* 我的练习九宫格 */
    .my-row { padding: 5px 0; flex-wrap: wrap; }
    .my-item { width: 50%; flex: none; padding: 10px; border: none; justify-content: flex-start; border-bottom: 1px solid #f9f9f9; }
    .my-item:nth-last-child(-n+2) { border-bottom: none; }
    .icon-circle { width: 36px; height: 36px; font-size: 18px; margin-right: 10px; }
    .my-text-box div:first-child { font-size: 14px; font-weight: 600; }
    .my-text-box div:last-child { font-size: 12px; transform: scale(0.9); transform-origin: left top; }

    /* 专项练习网格 */
    .bank-grid-box { padding: 15px; }
    .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bank-card { padding: 12px 10px; flex-direction: row !important; align-items: center !important; text-align: left !important; min-height: auto; }
    .bank-card:last-child { grid-column: span 2; }
    .b-icon { width: 32px !important; height: 32px !important; font-size: 16px !important; margin-right: 10px !important; margin-bottom: 0 !important; }
    .b-title { font-size: 14px; margin-bottom: 2px; }
    .b-desc { font-size: 12px; transform: scale(0.9); transform-origin: left center; }

    /* 练习模式(Practice/Random)布局复位 */
    .main-layout { flex-direction: column; padding: 0; }
    .left-panel { width: 100%; }
    .left-panel .promo-box { display: none !important; }
    .q-container { min-height: auto; border: none; box-shadow: none; }
    .q-header { height: 40px; padding: 0 5px; font-size: 13px; }
    .q-body { padding: 10px 5px; }
    .q-text { font-size: 15px; margin-bottom: 15px; }
    .option-item { padding: 8px 10px; margin-bottom: 8px; border-radius: 4px; }
    .opt-key { width: 28px; height: 28px; line-height: 26px; font-size: 14px; margin-right: 8px; }
    .option-item div[style*="font-size:16px"] { font-size: 14px !important; }
    .btn-submit-new { width: 100%; padding: 8px 0; }
    .q-footer { padding: 10px; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
    .btn-nav { padding: 6px 12px; margin-right: 5px; font-size: 12px; }
    .right-panel { display: none; }
    .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
    .p-card { padding: 10px 5px; }
}
/* =========================================================
   [更新] 首页左右分栏与侧边栏导航样式 (放在文件最底部)
   ========================================================= */
/* =========================================================
   [更新] 首页左右分栏与侧边栏导航样式 (放在文件最底部)
   ========================================================= */

/* 1. 布局容器 */
.exam-layout {
    display: flex;
    gap: 25px; /* 左右间距 */
    align-items: flex-start;
}

/* 2. 左侧边栏 */
.exam-sidebar {
    width: 250px; 
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    overflow: hidden; 
}

/* 3. 右侧内容区 */
.exam-main {
    flex: 1; 
    min-width: 0; 
}

/* 4. 侧边栏标题 */
.sidebar-title {
    background: #fafafa;
    padding: 15px 15px; 
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex; 
    align-items: center;
    justify-content: flex-start; 
    padding-left: 20px; 
}

/* 5. 导航菜单容器 */
.cat-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.cat-menu li { margin: 0; padding: 0; }

/* 6. 一级菜单链接 */
.cat-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
}
.cat-menu a:hover { color: #1890ff; background: #f9f9f9; }
.cat-menu a.active { color: #e60012; font-weight: bold; background: #fff1f0; border-left-color: #e60012; }

/* 7. 二级菜单容器 */
.sub-menu {
    list-style: none;
    padding: 5px 0; 
    margin: 0;
    background: #fff;
    border-top: none; 
    border-bottom: none;
    display: none; 
}

/* 8. 二级菜单链接 - 【修改点】纯文字居左 */
.sub-menu li a.level2 {
    padding: 10px 10px 10px 20px; /* 左侧缩进调整为20px */
    font-size: 14px;
    color: #666;
    border-left: none;
    font-weight: normal;
    background: transparent;
    margin: 2px 10px; 
    border-radius: 4px;
    display: block; /* 纯文字显示 */
}

/* 鼠标划过效果 */
.sub-menu li a.level2:hover { 
    color: #e60012; 
    background: #fcfcfc; 
}

/* 选中激活状态 - 红色背景 */
.sub-menu li a.level2.active { 
    color: #e60012; 
    background: #fff1f0; 
    font-weight: bold; 
}

/* 已删除所有 ::before 样式，确保无点 */


/* =========================================================
   [更新] 右侧列表单行样式 (无边框版)
   ========================================================= */
/* 这里的样式在 .list-item 卡片式修改后已不再使用，但保留原始定义 */
.list-item {
    align-items: center;
    padding: 15px 0;
    border-bottom: none !important;
}

.list-info {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    flex-wrap: wrap;
}

.list-title {
    margin-bottom: 0; 
    margin-right: 15px; 
    font-size: 16px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px; 
}

.list-tags {
    margin-top: 0; 
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.tag-price { margin-right: 0; font-weight: bold; }
.tag-count { color: #999; }

/* 移动端适配 */
@media (max-width: 900px) {
    
    /* ****************************************************** */
    /* ★★★ 关键修复区域：解决列表错位和负边距冲突 ★★★ */
    /* ****************************************************** */
    
    /* 1. 修复列表容器负边距，防止溢出或错位 */
    .list-box {
        margin: 0 0 20px 0 !important; 
    }
    
    /* 2. 修复列表项 Padding，使其与屏幕边缘对齐 */
    .list-item {
        padding: 15px 15px !important; /* 修正左右内边距 */
    }
    
    /* 3. 修复列表信息区域，确保标题和标签能正确排列 */
    .list-info { 
        flex: 1 !important; /* 占据剩余空间 */
        min-width: 0 !important; /* 允许信息区域缩小 */
        padding-right: 10px !important;
        /* 重置为垂直堆叠，以适应小屏幕 */
        flex-direction: column !important; 
        align-items: flex-start !important;
    }
    
    /* 4. 修复列表标题，允许其自动换行并占用所有宽度 */
    .list-title {
        margin-bottom: 5px !important; 
        margin-right: 0 !important;
        white-space: normal !important; /* 允许标题换行 */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2; /* 最多显示2行 */
        -webkit-box-orient: vertical;
    }
    
    /* 5. 修复列表标签，确保在一行显示 */
    .list-tags {
        margin-top: 0 !important;
        display: block !important;
    }
    
    /* 6. 修复操作按钮，确保不被挤压 */
    .list-action {
        flex-shrink: 0 !important; /* 不许缩小 */
        margin-left: 10px !important;
    }
    
    /* 7. 统一按钮大小 */
    .btn-do, .btn-do-active {
        padding: 6px 15px !important;
        font-size: 13px !important;
        min-width: 80px !important;
    }
    
    /* ****************************************************** */
    /* ★★★ 修复区域结束 ★★★ */
    /* ****************************************************** */
    
    .exam-layout { flex-direction: column; gap: 15px; }
    .exam-sidebar { width: 100%; margin-bottom: 10px; border: none; box-shadow: none; }
    .sidebar-title { display: none; }
    .cat-menu { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 10px; gap: 10px; background: #fff;}
    .cat-menu > li { flex-shrink: 0; }
    .cat-menu a { padding: 6px 15px; background: #f5f5f5; border-radius: 20px; font-size: 13px; border: 1px solid #eee; display: block; text-align: center; font-weight: normal;}
    .sub-menu { display: none !important; }
    
    /* 这些样式在上方已被更精确地覆盖，此处保留原始，仅作参考 */
    .list-info { flex-direction: column; align-items: flex-start; }
    .list-title { margin-bottom: 5px; margin-right: 0; white-space: normal; max-width: 100%; }
    .list-tags { margin-top: 0; }
    
    .my-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; justify-content: space-between; }
    .my-btn { display: flex !important; margin: 0 !important; width: auto !important; box-sizing: border-box; padding: 10px 5px !important; justify-content: flex-start !important; padding-left: 10px !important; }
    .my-btn:last-child { grid-column: span 2 !important; }
}