* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.exam-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.exam-header-left {
    flex: 1;
}

.paper-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.exam-header-center {
    flex: 1;
    text-align: center;
}

.time-label {
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
}

.countdown {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    font-family: "Courier New", monospace;
    background: rgba(255, 107, 107, 0.15);
    padding: 6px 16px;
    border-radius: 6px;
}

.countdown.warning {
    color: #ffaa00;
    animation: pulse 1s infinite;
}

.countdown.danger {
    color: #ff4757;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.exam-header-right {
    flex: 1;
    text-align: right;
}

.submit-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #ee5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.exam-container {
    display: flex;
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

.exam-page-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.exam-stats-row {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    text-align: center;
}

.stat-card .stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ff700a;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #999;
}

.exam-item-list {
    list-style: none;
    padding: 0;
}

.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-info {
    flex: 1;
}

.exam-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.exam-title a {
    color: #333;
    text-decoration: none;
}

.exam-title a:hover {
    color: #ff700a;
}

.exam-time {
    font-size: 13px;
    color: #999;
}

.exam-score {
    margin-right: 20px;
    text-align: center;
}

.exam-score .score-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff700a;
}

.exam-score .score-unit {
    font-size: 12px;
    color: #999;
}

.exam-status {
    margin-right: 20px;
}

.status-doing {
    color: #3498db;
    font-weight: 500;
}

.status-pass {
    color: #27ae60;
    font-weight: 500;
}

.status-fail {
    color: #e74c3c;
    font-weight: 500;
}

.exam-actions {
    display: flex;
    gap: 10px;
}

.exam-actions .btn {
    padding: 8px 20px;
    background: #ff700a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.exam-actions .btn:hover {
    background: #e66000;
}

.exam-actions .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.exam-actions .btn-secondary:hover {
    background: #e0e0e0;
}

.page-bar {
    text-align: center;
    padding: 30px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #ff700a;
    color: #ff700a;
}

.page-btn.active {
    background: #ff700a;
    border-color: #ff700a;
    color: #fff;
}

.nodata {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.nodata .msg {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 8px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.wrong-item, .collect-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.item-type {
    background: #ff700a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.item-cate {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.remove-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.item-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-images {
    margin-bottom: 15px;
}

.item-images .question-image {
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.item-options {
    margin-bottom: 15px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.option-item.correct {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.option-item.wrong {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.option-key {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.option-value {
    flex: 1;
    color: #666;
}

.item-analysis, .item-answer {
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
}

.analysis-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.analysis-row:last-child {
    margin-bottom: 0;
}

.analysis-row .label {
    font-weight: 500;
    color: #666;
    min-width: 70px;
}

.wrong-text {
    color: #e74c3c;
}

.correct-text {
    color: #27ae60;
}

.analysis-row.analysis {
    flex-direction: column;
}

.cert-stats-row {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

.cert-icon {
    font-size: 32px;
}

.cert-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.cert-status.status-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.cert-status.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.cert-status.status-expired {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.cert-body {
    padding: 15px 20px;
}

.cert-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cert-desc {
    font-size: 13px;
    color: #999;
}

.cert-info {
    padding: 15px 20px;
    background: #fafafa;
}

.cert-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.cert-info .label {
    color: #999;
}

.cert-info .value {
    color: #333;
    font-weight: 500;
}

.cert-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
}

.cert-actions .btn {
    flex: 1;
    text-align: center;
}

.exam-left-panel {
    width: 220px;
    background: #fff;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.exam-middle-panel {
    flex: 1;
    margin-left: 220px;
    margin-right: 300px;
    padding: 20px;
}

.exam-right-panel {
    width: 300px;
    background: #fff;
    padding: 20px;
    border-left: 1px solid #e0e0e0;
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff700a;
}

.answer-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.answered {
    color: #27ae60;
    font-weight: 600;
}

.unanswered {
    color: #95a5a6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.card-item {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-item:hover {
    border-color: #ff700a;
    transform: scale(1.05);
}

.card-item.current {
    border-color: #ff700a;
    background: rgba(255, 112, 10, 0.1);
    color: #ff700a;
}

.card-item.answered {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.card-item.unanswered {
    background: #fff;
    color: #666;
}

.card-footer {
    text-align: center;
}

.jump-btn {
    background: #ff700a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.jump-btn:hover {
    background: #e66000;
}

.question-container {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    min-height: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-wrapper {
    margin-bottom: 30px;
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.question-number {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #ff700a;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    margin-right: 15px;
}

.question-type {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-right: 10px;
}

.question-score {
    font-size: 14px;
    color: #999;
}

.question-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    padding-left: 51px;
}

.options-list {
    padding-left: 51px;
}

.options-list.single-column .option-item {
    width: 100%;
}

.options-list.double-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    background: #fafafa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: #ff700a;
    background: rgba(255, 112, 10, 0.05);
}

.option-item.selected {
    border-color: #ff700a;
    background: rgba(255, 112, 10, 0.1);
}

.option-item.selected .option-letter {
    background: #ff700a;
    color: #fff;
}

.option-letter {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.option-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.fill-blank-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.fill-blank-input:focus {
    border-color: #ff700a;
    outline: none;
}

.short-answer-textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.short-answer-textarea:focus {
    border-color: #ff700a;
    outline: none;
}

.question-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #e0e0e0;
}

.nav-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.current-info {
    font-size: 15px;
    color: #666;
}

.collect-btn {
    background: #f0c419;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.collect-btn:hover {
    background: #e0b409;
}

.collect-btn.collected {
    background: #95a5a6;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.info-item .label {
    font-size: 14px;
    color: #666;
}

.info-item .value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.setting-item {
    margin-bottom: 18px;
}

.setting-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.setting-options {
    display: flex;
    gap: 8px;
}

.size-btn, .mode-btn, .layout-btn, .order-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.size-btn:hover, .mode-btn:hover, .layout-btn:hover, .order-btn:hover {
    border-color: #ff700a;
    color: #ff700a;
}

.size-btn.active, .mode-btn.active, .layout-btn.active, .order-btn.active {
    background: #ff700a;
    border-color: #ff700a;
    color: #fff;
}

.save-progress-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.save-progress-btn:hover {
    background: #2980b9;
}

.submit-final-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-final-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@media screen and (max-width: 1200px) {
    .exam-left-panel {
        width: 180px;
    }
    
    .exam-middle-panel {
        margin-left: 180px;
        margin-right: 250px;
    }
    
    .exam-right-panel {
        width: 250px;
    }
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

.confirm-modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 450px;
    padding: 30px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff700a;
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
    border: none;
}

.modal-btn.cancel:hover {
    background: #e0e0e0;
}

.modal-btn.confirm {
    background: #ff700a;
    color: #fff;
    border: none;
}

.modal-btn.confirm:hover {
    background: #e66000;
}

.exam-breadcrumb {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.exam-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.exam-breadcrumb a:hover {
    text-decoration: underline;
}

.exam-breadcrumb span {
    color: #999;
}

.exam-breadcrumb > * {
    margin-right: 8px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-left {
    display: flex;
    gap: 15px;
}

.filter-left select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-right input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    padding: 8px 20px;
    background: #ff700a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover {
    background: #e66000;
}

.action-btn {
    padding: 10px 20px;
    background: #ff700a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e66000;
}

.action-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.action-btn.secondary:hover {
    background: #e0e0e0;
}

.action-btn.large {
    padding: 14px 40px;
    font-size: 16px;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    gap: 15px;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.page-links {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #ff700a;
    color: #ff700a;
}

.page-btn.active {
    background: #ff700a;
    border-color: #ff700a;
    color: #fff;
}

.chapter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.chapter-info {
    color: #fff;
}

.chapter-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.chapter-info .desc {
    opacity: 0.9;
    margin-bottom: 15px;
}

.chapter-info .stats {
    display: flex;
    gap: 30px;
}

.chapter-info .stat-item {
    font-size: 14px;
}

.chapter-list {
    display: grid;
    gap: 15px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chapter-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-icon {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.chapter-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.chapter-meta {
    font-size: 13px;
    color: #666;
}

.chapter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    min-width: 40px;
    text-align: right;
}

.paper-list {
    display: grid;
    gap: 20px;
}

.paper-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.paper-cover {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.paper-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paper-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.paper-type.type-fixed {
    background: #3498db;
}

.paper-type.type-random {
    background: #9b59b6;
}

.paper-type.type-multi {
    background: #e67e22;
}

.paper-info {
    flex: 1;
}

.paper-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.paper-title a {
    color: #333;
    text-decoration: none;
}

.paper-title a:hover {
    color: #ff700a;
}

.paper-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.5;
}

.paper-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 14px;
    color: #666;
}

.paper-actions {
    display: flex;
    gap: 10px;
}

.paper-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.paper-detail-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.paper-cover-large {
    width: 250px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.paper-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paper-basic-info {
    flex: 1;
}

.paper-type-badge {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
}

.paper-detail .paper-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.paper-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px 25px;
    background: #fafafa;
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ff700a;
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.paper-detail-body {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff700a;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.question-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.type-item {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.type-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.type-count, .type-score {
    font-size: 13px;
    color: #999;
    margin-right: 10px;
}

.rule-list {
    list-style: none;
    padding: 0;
}

.rule-list li {
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.rule-list li:last-child {
    border-bottom: none;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.status-pass {
    color: #27ae60;
    font-weight: 500;
}

.status-fail {
    color: #e74c3c;
    font-weight: 500;
}

.paper-detail-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.back-btn {
    padding: 12px 30px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.back-btn:hover {
    background: #e0e0e0;
}

.result-container {
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-header.result-pass {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.result-header.result-fail {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.result-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.result-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.result-score {
    margin-bottom: 15px;
}

.score-num {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
}

.score-unit {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

.score-total {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
}

.result-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.result-info span {
    margin-right: 20px;
}

.result-body {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.result-section {
    margin-bottom: 30px;
}

.result-section:last-child {
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-grid .info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.info-grid .label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.info-grid .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.question-list {
    display: grid;
    gap: 20px;
}

.result-container .question-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
}

.result-container .question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.result-container .question-num {
    font-weight: 600;
    color: #333;
}

.result-container .question-type {
    background: #fff;
}

.result-container .correct {
    color: #27ae60;
    font-weight: 500;
}

.result-container .wrong {
    color: #e74c3c;
    font-weight: 500;
}

.result-container .question-content {
    padding-left: 0;
    margin-bottom: 15px;
}

.result-container .question-images {
    margin-bottom: 15px;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.result-container .question-options {
    margin-bottom: 15px;
}

.result-container .option-item {
    width: auto;
    margin-bottom: 8px;
}

.result-container .option-item.correct {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.result-container .option-item.wrong {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.result-container .question-answer {
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.answer-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.answer-row .label {
    font-weight: 500;
    color: #666;
    min-width: 70px;
}

.answer-row.analysis {
    flex-direction: column;
}

.answer-row.analysis .label {
    margin-bottom: 5px;
}

.result-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.room-list {
    display: grid;
    gap: 20px;
}

.room-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.room-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.room-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.room-status.status-wait {
    background: rgba(255, 255, 255, 0.2);
}

.room-status.status-running {
    background: #2ecc71;
}

.room-status.status-ended {
    background: #95a5a6;
}

.room-info {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.info-row .label {
    color: #999;
    font-size: 14px;
}

.info-row .value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.room-desc {
    padding: 0 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.room-footer {
    padding: 20px;
    background: #fafafa;
    text-align: center;
}

.my-exam-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab-btn {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: #ff700a;
    color: #ff700a;
}

.tab-btn.active {
    background: #ff700a;
    border-color: #ff700a;
    color: #fff;
}

.my-exam-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.my-exam-stats .stat-item {
    flex: 1;
    text-align: center;
}

.my-exam-stats .stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ff700a;
    margin-bottom: 5px;
}

.my-exam-stats .stat-label {
    font-size: 14px;
    color: #999;
}

.my-exam-list {
    display: grid;
    gap: 15px;
}

.my-exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.my-exam-item .exam-info {
    flex: 1;
}

.my-exam-item .exam-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.my-exam-item .exam-title a {
    color: #333;
    text-decoration: none;
}

.my-exam-item .exam-title a:hover {
    color: #ff700a;
}

.my-exam-item .exam-time {
    font-size: 13px;
    color: #999;
}

.my-exam-item .exam-score {
    text-align: center;
    margin-right: 20px;
}

.my-exam-item .score-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ff700a;
}

.my-exam-item .score-label {
    font-size: 13px;
    color: #999;
}

.my-exam-item .exam-status {
    margin-right: 20px;
}

.my-exam-item .status-doing {
    color: #3498db;
    font-weight: 500;
}

.wrong-item, .collect-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wrong-item .question-header, .collect-item .question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.wrong-item .question-cate, .collect-item .question-cate {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.remove-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.cert-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cert-stats .stat-item {
    flex: 1;
    text-align: center;
}

.cert-stats .stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ff700a;
    margin-bottom: 5px;
}

.cert-stats .stat-label {
    font-size: 14px;
    color: #999;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.cert-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cert-card {
    padding: 25px;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cert-icon {
    font-size: 40px;
}

.cert-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.cert-status.status-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.cert-status.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.cert-status.status-expired {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.cert-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cert-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.cert-info {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.cert-info .info-row {
    padding: 8px 0;
}

.cert-actions {
    padding: 20px;
    background: #fafafa;
    display: flex;
    gap: 10px;
}

.cert-actions .action-btn {
    flex: 1;
    text-align: center;
}