:root {
    --primary-color: #1976D2;
    --primary-dark: #1565C0;
    --secondary-color: #667eea;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #f5f6fa;
    --bg-white: #ffffff;
    --border-color: #e8ecf1;
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.logo i {
    font-size: 28px;
    color: #fff;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 2px;
}

.nav-item {
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.user-name {
    color: #fff;
    font-size: 14px;
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 页面顶部返回栏 */
.page-header-bar {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.back-btn i {
    font-size: 12px;
}

/* 主体内容 */
.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
}

/* 卡片样式 */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

/* 轮播图 */
.carousel-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.carousel-caption h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.carousel-container .carousel-indicators {
    position: absolute !important;
    bottom: 20px !important;
    left: auto !important;
    right: 30px !important;
    top: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px;
    z-index: 10;
    width: auto !important;
    margin: 0 !important;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 5px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.carousel-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* 列表项 */
.list-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.list-item:hover {
    background: #f8fafc;
}

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

.list-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.list-item .content {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-item .title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.list-item .desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.list-item .meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.list-item .meta span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 倒计时 */
#countdown {

    align-items: center;

    padding: 25px 20px;
    
    color: #6483aa;
    border-radius: 12px;

    min-width: 180px;
}

.countdown-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.countdown-title {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
}

.countdown-time {
    font-size: 35px;
    font-weight: bold;
    font-family: 'Courier New', 'Monaco', monospace;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 登录页面 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #999;
}

.login-form {
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.login-form .yzm {
    width: 60%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .captcha-group {
    display: flex;
    gap: 15px;
}

.login-form .captcha-left {
    flex: 1;
}

.login-form .captcha-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
}

.login-form .captcha-img {
    width: 120px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.login-form .refresh-captcha {
    font-size: 12px;
    color: #667eea;
    text-align: center;
    text-decoration: none;
}

.login-form .refresh-captcha:hover {
    text-decoration: underline;
}

.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-form .form-check-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.login-page .btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    text-align: center;
}

.login-page .btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-page .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-footer a {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer .separator {
    color: #ddd;
}

/* 消息提示 */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-box.fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 每日一题 */
.daily-question {
    
    padding: 20px;
    border-radius: 12px;
    min-height: 200px;
}

.daily-question .question-loading,
.daily-question .question-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8b4513;
}

.daily-question .question-loading i,
.daily-question .question-empty i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.daily-question .question-loading p,
.daily-question .question-empty p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.daily-question .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-question .question-type {
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #8b4513;
}

.daily-question .question-subject {
    font-size: 13px;
    color: #a0522d;
    font-weight: 500;
}

.daily-question .question-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.daily-question .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.daily-question .option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(25, 118, 210, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.daily-question .option:hover {
    background: #fff;
    transform: translateX(5px);
}

.daily-question .option.selected {
    border-color: #1976D2;
    background: #e3f2fd;
}

.daily-question .option.correct {
    border-color: #28A745;
    background: #e8f5e9;
}

.daily-question .option.wrong {
    border-color: #DC3545;
    background: #ffebee;
}

.daily-question .option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
    color: #666;
}

.daily-question .option.selected .option-letter {
    background: #1976D2;
    color: #fff;
}

.daily-question .option.correct .option-letter {
    background: #28A745;
    color: #fff;
}

.daily-question .option.wrong .option-letter {
    background: #DC3545;
    color: #fff;
}

.daily-question .option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.daily-question .btn-submit {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background:  #e8f2f7;
    border: none;
    border-radius: 8px;
    color: #1a1818;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

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

.daily-question .btn-submit:active {
    transform: translateY(0);
}

.daily-question .result-box {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.daily-question .result-box.correct {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.daily-question .result-box.wrong {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.daily-question .result-icon {
    font-size: 18px;
}

.daily-question .result-box.correct .result-icon {
    color: #28A745;
}

.daily-question .result-box.wrong .result-icon {
    color: #DC3545;
}

.daily-question .result-text {
    font-size: 14px;
    font-weight: 600;
}

.daily-question .result-box.correct .result-text {
    color: #28A745;
}

.daily-question .result-box.wrong .result-text {
    color: #DC3545;
}

.daily-question .result-answer {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.daily-question .question-type-badge {
    font-size: 12px;
    font-weight: normal;
    background: rgba(25, 118, 210, 0.1);
    color: #1976D2;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.daily-question .fill-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.daily-question .fill-input:focus {
    border-color: #007bff;
}

.daily-question .fill-input:disabled {
    background-color: #f5f6fa;
    cursor: not-allowed;
}

/* 打卡日历 */
.checkin-calendar {
    padding: 15px;
}

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

.calendar-header button {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
}

.calendar-title {
    font-size: 15px;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 5px;
}

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.calendar-day:hover {
    background: #e8ecf1;
}

.calendar-day.checked {
    background: var(--primary-color);
    color: #fff;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.checkin-streak {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
}

.checkin-streak .streak-count {
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
}

.checkin-streak .streak-label {
    font-size: 12px;
    color: #666;
}

/* 任务列表 */
.task-list {
    padding: 10px 0;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.task-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.task-checkbox.checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    color: var(--text-primary);
}

.task-reward {
    font-size: 12px;
    color: var(--warning-color);
    font-weight: 500;
}

/* 友情链接 */
.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    padding: 8px 15px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 课程分类 */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.category-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.category-item:hover .category-icon,
.category-item:hover .category-name {
    color: #fff;
}

.category-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.category-name {
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.category-item:hover .category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 课程卡片 */
.course-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.course-card:hover {
    background: #f8fafc;
}

.course-card:last-child {
    border-bottom: none;
}

.course-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-status {
    font-size: 12px;
    font-weight: normal;
}

.course-status.completed {
    color: #4caf50;
}

.course-status.not-completed {
    color: #999;
}

.course-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.course-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.course-meta .icon {
    margin-right: 3px;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--primary-dark);
}

/* 侧边菜单 */
.side-menu {
    list-style: none;
    padding: 0;
}

.side-menu li {
    margin-bottom: 5px;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.side-menu a:hover {
    background: #f0f4f8;
    color: var(--primary-color);
}

.side-menu a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.side-menu a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-info {

    align-items: center;

}

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

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-right {
    text-align: right;
}

.footer-copyright {
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 新闻列表 */
.news-list {
    padding: 5px 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.news-item:hover {
    background: #f8fafc;
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 20px;
    padding-right: 5px;
    border-radius: 8px;
}

.news-tag {
    flex-shrink: 0;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 15px;
    margin-right: 12px;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 试卷列表 */
.paper-list {
    padding: 5px 0;
}

.paper-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.paper-info {
    flex: 1;
    min-width: 0;
}

.paper-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paper-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.paper-major {
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976D2;
    font-size: 12px;
    border-radius: 4px;
}

.paper-type {
    padding: 2px 8px;
    background: #fff3e0;
    color: #ff9800;
    font-size: 12px;
    border-radius: 4px;
}

.paper-grading {
    padding: 2px 8px;
    background: #e8f5e9;
    color: #28A745;
    font-size: 12px;
    border-radius: 4px;
}

.paper-detail {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.paper-status {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    background: #e3f2fd;
    color: #1976D2;
}

/* 课程列表 */
.course-list {
    padding: 5px 0;
}

.course-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.course-item:hover {
    background: #f8fafc;
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 20px;
    padding-right: 5px;
    border-radius: 8px;
}

.course-cover {
    position: relative;
    width: 100px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    background: #f5f6fa;
}

.course-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.course-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    z-index: 1;
}

.course-type {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

.course-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.course-major {
    color: #667eea;
    font-weight: 500;
}

.course-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 更新任务列表样式 */
.task-list {
    padding: 5px 0;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.task-item.done .task-name {
    color: #999;
    text-decoration: line-through;
}

.task-icon {
    width: 18px;
    margin-right: 10px;
    color: #ddd;
    font-size: 16px;
}

.task-item.done .task-icon {
    color: #28A745;
}

.task-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.task-reward {
    font-size: 12px;
    color: #ff9800;
    font-weight: 500;
}

/* 轮播图占位 */
.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.carousel-placeholder .carousel-caption {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    text-align: center;
}

/* 响应式 */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-item {
        padding: 0 12px;
        font-size: 13px;
    }

    .header-content {
        padding: 0 10px;
    }
}

.category-item.active {
    background: var(--primary-color);
    color: #fff;
}

.category-item.active .category-icon,
.category-item.active .category-name,
.category-item.active .category-count {
    color: #fff;
}

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

.course-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.course-card-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.course-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.course-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    z-index: 1;
}

.course-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.course-card-info {
    padding: 15px;
}

.course-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.course-card-major {
    color: #667eea;
    font-weight: 500;
}

.course-card-views, .course-card-duration {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-course-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.recent-course-cover {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.recent-course-cover i {
    color: #999;
    font-size: 18px;
}

.recent-course-info {
    flex: 1;
    min-width: 0;
}

.recent-course-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-course-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-course-progress .progress-bar {
    flex: 1;
    height: 4px;
    background: #e8ecf1;
    border-radius: 2px;
    overflow: hidden;
}

.recent-course-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.recent-course-progress span {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    flex-shrink: 0;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar .input-group {
    display: flex;
    gap: 10px;
}

.search-bar .form-control {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-bar .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.search-bar .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.search-bar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.achievement-item {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.achievement-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.achievement-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.achievement-label {
    font-size: 12px;
    color: #999;
}

.subject-courses-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.subject-courses-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.subject-course-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subject-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-course-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.subject-course-info {
    flex: 1;
    min-width: 0;
}

.subject-course-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subject-course-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.course-type-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.course-type-tag.video {
    background: #e3f2fd;
    color: #1976D2;
}

.course-type-tag.text {
    background: #f3e5f5;
    color: #7B1FA2;
}

.course-duration, .course-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.subject-course-arrow {
    color: #ccc;
    font-size: 14px;
    margin-left: 10px;
}

.course-detail-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.course-detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.course-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-cover {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6fa;
}

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

.detail-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-play-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.detail-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.detail-back-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.course-chapters-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.course-chapters-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.chapter-index {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
    min-width: 0;
}

.chapter-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.chapter-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chapter-arrow {
    color: #ccc;
    font-size: 14px;
    margin-left: 10px;
    flex-shrink: 0;
}

.chapter-item-wrapper {
    margin-bottom: 8px;
}

.chapter-item-wrapper:last-child {
    margin-bottom: 0;
}

.chapter-lesson-count {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.lesson-list {
    margin-top: 8px;
    margin-left: 40px;
    border-left: 2px dashed #e0e0e0;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.lesson-item:hover {
    background: #f8fafc;
    border-color: #667eea;
    transform: translateX(5px);
}

.lesson-index {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-type {
    font-size: 11px;
    color: #999;
}

.lesson-arrow {
    color: #ddd;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.course-detail-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.course-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.course-player-card .card-body {
    padding: 0;
}

.player-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-video {
    width: 100%;
    max-height: 600px;
    display: block;
}

.text-course-content {
    width: 100%;
    background: #fff;
    padding: 30px;
    min-height: 400px;
    box-sizing: border-box;
}

.text-course-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.text-course-body {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.text-course-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.text-course-body img {
    max-width: 100%;
    border-radius: 8px;
}

.no-content-tip {
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #999;
}

.no-content-tip i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.no-content-tip h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.no-content-tip p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.chapter-title-tip {
    font-size: 13px;
    color: #bbb;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
}

.course-info-card .card-title {
    font-size: 20px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.course-type-badge.video {
    background: #e3f2fd;
    color: #1976D2;
}

.course-type-badge.text {
    background: #f3e5f5;
    color: #7B1FA2;
}

.course-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.chapter-list-sidebar {
    max-height: 600px;
    overflow-y: auto;
}

.chapter-item-sidebar {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    background: #f8fafc;
}

.chapter-item-sidebar:last-child {
    margin-bottom: 0;
}

.chapter-item-sidebar:hover {
    background: #f0f4f8;
}

.chapter-item-sidebar.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #667eea;
}

.chapter-index-sidebar {
    width: 28px;
    height: 28px;
    background: #e8ecf1;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.chapter-item-sidebar.active .chapter-index-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.chapter-info-sidebar {
    flex: 1;
    min-width: 0;
}

.chapter-title-sidebar {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-item-sidebar.active .chapter-title-sidebar {
    color: #667eea;
}

.chapter-duration-sidebar {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chapter-play-icon {
    color: #ccc;
    font-size: 16px;
    margin-left: 10px;
    flex-shrink: 0;
}

.chapter-item-sidebar.active .chapter-play-icon {
    color: #667eea;
}

.sidebar-chapter-wrapper {
    margin-bottom: 6px;
}

.sidebar-chapter-wrapper:last-child {
    margin-bottom: 0;
}

.sidebar-chapter-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-chapter-item:hover {
    background: #f8fafc;
}

.sidebar-chapter-index {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-chapter-info {
    flex: 1;
    min-width: 0;
}

.sidebar-chapter-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-chapter-count {
    font-size: 11px;
    color: #999;
}

.sidebar-chapter-arrow {
    color: #ccc;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.sidebar-lesson-list {
    margin-top: 4px;
    margin-left: 22px;
    padding-left: 14px;
    border-left: 2px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-lesson-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-lesson-item:hover {
    background: #f8fafc;
}

.sidebar-lesson-item.active {
    background: #eef2ff;
}

.sidebar-lesson-item.active .sidebar-lesson-title {
    color: #667eea;
    font-weight: 500;
}

.sidebar-lesson-dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-lesson-item.active .sidebar-lesson-dot {
    background: #667eea;
}

.sidebar-lesson-title {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .course-detail-wrapper {
        flex-direction: column;
    }
    
    .course-sidebar {
        width: 100%;
    }
    
    .player-container {
        min-height: 250px;
    }
    
    .text-course-content {
        padding: 20px;
    }
}

.exam-menu, .practice-menu, .profile-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.exam-btn, .practice-btn, .profile-btn {
    padding: 20px 15px;
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    outline: none;
    font-family: inherit;
}

.exam-btn:hover, .practice-btn:hover, .profile-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.exam-btn:hover i, .exam-btn:hover span,
.practice-btn:hover i, .practice-btn:hover span,
.profile-btn:hover i, .profile-btn:hover span {
    color: #fff;
}

.exam-btn i, .practice-btn i, .profile-btn i {
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.exam-btn span, .practice-btn span, .profile-btn span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.exam-btn.active, .practice-btn.active, .profile-btn.active {
    background: var(--primary-color);
}

.exam-btn.active i, .exam-btn.active span,
.practice-btn.active i, .practice-btn.active span,
.profile-btn.active i, .profile-btn.active span {
    color: #fff;
}

.exam-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.exam-stat {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.exam-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.exam-stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exam-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.exam-stat-label {
    font-size: 12px;
    color: #999;
}

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

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

.exam-record-info {
    flex: 1;
    min-width: 0;
}

.exam-record-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

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

.exam-record-score {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
}

.exam-record-score.pass {
    color: #28A745;
    background: #e8f5e9;
}

.exam-record-score.fail {
    color: #DC3545;
    background: #ffebee;
}

.exam-card {
    margin-bottom: 15px;
}

.exam-card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.exam-major {
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976D2;
    border-radius: 4px;
}

.exam-count, .exam-duration {
    padding: 2px 8px;
    background: #f5f6fa;
    border-radius: 4px;
}

.exam-desc {
    font-size: 14px;
    color: #666;
}

.exam-major-group {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.exam-major-title {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    font-weight: 500;
    font-size: 14px;
    gap: 8px;
}

.exam-major-title i {
    font-size: 16px;
}

.exam-major-count {
    margin-left: auto;
    font-size: 12px;
    background: rgba(46, 125, 50, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.exam-major-papers {
    padding: 8px;
}

.exam-paper-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 4px;
    background: #fafafa;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.exam-paper-item:hover {
    background: #f0fdf4;
    transform: translateX(4px);
}

.exam-paper-item:last-child {
    margin-bottom: 0;
}

.exam-paper-info {
    flex: 1;
    min-width: 0;
}

.exam-paper-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-paper-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.exam-paper-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.exam-section {
    margin-bottom: 24px;
}

.exam-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

.exam-section-title i {
    color: #4CAF50;
}

.exam-section-count {
    margin-left: auto;
    font-size: 12px;
    padding: 2px 8px;
    background: #f0fdf4;
    color: #4CAF50;
    border-radius: 10px;
    font-weight: normal;
}

.exam-room-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e8ecf1;
}

.exam-room-card.exam-room-disabled {
    opacity: 0.6;
}

.exam-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.exam-room-header:hover {
    background: #fafafa;
}

.exam-room-info {
    flex: 1;
    min-width: 0;
}

.exam-room-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.exam-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.exam-room-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.exam-room-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    flex-shrink: 0;
}

.exam-room-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.exam-room-enabled {
    background: #e8f5e9;
    color: #4CAF50;
}

.exam-room-disabled {
    background: #fce4ec;
    color: #e91e63;
}

.exam-room-permission {
    background: #e3f2fd;
    color: #1976D2;
}

.exam-room-no-permission {
    background: #fff3e0;
    color: #ff9800;
}

.btn-expand {
    padding: 4px 8px;
    color: #999;
}

.btn-expand:hover {
    color: #1976D2;
}

.exam-room-papers {
    border-top: 1px solid #e8ecf1;
    padding: 12px 16px;
    background: #fafafa;
}

.exam-room-papers-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.exam-paper-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-paper-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid #e8ecf1;
}

.exam-paper-item:hover {
    background: #f0fdf4;
    border-color: #c8e6c9;
}

.exam-paper-info {
    flex: 1;
    min-width: 0;
}

.exam-paper-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-paper-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.exam-paper-detail span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.exam-actions {
    text-align: right;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.stat-item .stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #999;
}

.week-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding: 10px 0;
}

.day-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.day-label {
    font-size: 12px;
    color: #999;
}

.bar-container {
    width: 24px;
    height: 80px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: height 0.5s ease;
}

.day-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.learning-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.learning-stat {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.learning-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.learning-stat-label {
    font-size: 12px;
    color: #999;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.badge-item {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.badge-name {
    font-size: 12px;
    color: #666;
}

.user-info-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.user-info-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-info-form label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.user-info-form .form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
}

.user-info-form .form-control:readonly {
    cursor: not-allowed;
    opacity: 0.7;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggest-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggest-form label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.suggest-form .form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.suggest-form textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .carousel-container {
        height: 200px;
    }
}

/* 底部样式 */
.footer {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 8px 0;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stats span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-stats .stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-dropdown img.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.user-menu a:hover {
    background: #f5f6fa;
}

.user-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

.profile-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    outline: none;
    font-family: inherit;
}

.profile-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.profile-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1976D2;
}

.profile-btn span {
    font-size: 13px;
}

.learning-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.learning-stat {
    text-align: center;
    padding: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.learning-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1976D2;
}

.learning-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.badge-item {
    text-align: center;
    padding: 15px 10px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffe082;
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.badge-name {
    font-size: 12px;
    color: #8d6e63;
}

.exam-stats {
    display: flex;
    gap: 15px;
}

.exam-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.exam-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.exam-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #1976D2;
}

.exam-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

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

.notice-list i {
    color: #28A745;
}

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

.category-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #e9ecef;
    border-color: #1976D2;
    color: #1976D2;
}

.category-item.active {
    background: #1976D2;
    border-color: #1976D2;
    color: #fff;
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
}

.achievement-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.achievement-value {
    font-size: 18px;
    font-weight: bold;
    color: #f57c00;
}

.achievement-label {
    font-size: 12px;
    color: #8d6e63;
    margin-top: 5px;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar .input-group {
    display: flex;
    gap: 10px;
}

.search-bar .form-control {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-bar .btn-primary {
    padding: 12px 25px;
    background: #1976D2;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar .btn-primary:hover {
    background: #1565C0;
}

.param-section {
    margin-bottom: 20px;
}

.param-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.param-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.param-option {
    padding: 8px 16px;
    background: #f5f6fa;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.param-option:hover {
    background: #e8f0fe;
    border-color: #1976D2;
    color: #1976D2;
}

.param-option.selected {
    background: #1976D2;
    border-color: #1976D2;
    color: #fff;
}

.subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subject-chip {
    padding: 10px 15px;
    background: #f5f6fa;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subject-chip:hover {
    background: #e8f0fe;
    border-color: #1976D2;
}

.subject-chip.selected {
    background: #1976D2;
    border-color: #1976D2;
    color: #fff;
}

.subject-chip-count {
    font-size: 12px;
    opacity: 0.7;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subject-item-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.subject-item {
    width: 100%;
    padding: 14px 16px;
    background: #f5f6fa;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-item:hover {
    background: #e8f0fe;
    border-color: #1976D2;
}

.subject-item.selected {
    background: #e3f2fd;
    border-color: #1976D2;
}

.subject-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-icon {
    font-size: 16px;
    color: #1976D2;
}

.subject-name {
    font-weight: 500;
}

.subject-count {
    font-size: 12px;
    color: #999;
}

.subject-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.subject-arrow.expanded {
    transform: rotate(180deg);
}

.knowledge-list-container {
    margin-top: 4px;
    padding-left: 40px;
    border-left: 2px solid #e8ecf1;
    margin-left: 10px;
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.knowledge-item {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kp-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.kp-name {
    color: #333;
}

.kp-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.kp-count {
    color: #999;
    font-size: 12px;
}

.kp-progress {
    color: #666;
    font-size: 12px;
}

.kp-resume-btn {
    padding: 4px 12px;
    background: #1976D2;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.kp-resume-btn:hover {
    background: #1565C0;
}

.knowledge-item.selected {
    background: #e3f2fd;
    border-color: #1976D2;
}

.knowledge-item.selected .kp-name {
    color: #1976D2;
}

.knowledge-item.selected .kp-count {
    color: #1976D2;
}

.knowledge-count {
    font-size: 12px;
    color: #999;
}

.knowledge-item.selected .knowledge-count {
    color: #1976D2;
}

.resume-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f5f6fa;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.resume-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.resume-total {
    color: #333;
}

.resume-text {
    color: #666;
}

.resume-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-resume {
    padding: 6px 16px;
    background: #1976D2;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-resume:hover {
    background: #1565C0;
}

.btn-clear-progress {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-clear-progress:hover {
    border-color: #ff9800;
    color: #ff9800;
}

.practice-exam-content {
    min-height: 500px;
}

.practice-exam-card .card-header {
    display: block;
}

.practice-exam-card .question-progress {
    margin-bottom: 15px;
    width: 100%;
}

.practice-exam-card .progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.practice-exam-card .progress-bar {
    width: 100%;
    height: 6px;
    background: #e8ecf1;
    border-radius: 3px;
    overflow: hidden;
}

.practice-exam-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976D2, #42A5F5);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.practice-exam-card .pe-question-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.practice-exam-card .pe-question-type {
    padding: 4px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 12px;
    color: #1976D2;
    font-weight: 500;
}

.practice-exam-card .pe-question-subject {
    padding: 4px 10px;
    background: #f5f6fa;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.practice-exam-card .pe-question-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

.practice-exam-card .pe-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.practice-exam-card .pe-option {
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.practice-exam-card .pe-option.selected {
    background: #e3f2fd;
    border-color: #1976D2;
}

.practice-exam-card .pe-option.correct {
    background: #e8f5e9;
    border-color: #28A745;
}

.practice-exam-card .pe-option.wrong {
    background: #ffebee;
    border-color: #DC3545;
}

.practice-exam-card .pe-option-letter {
    width: 28px;
    height: 28px;
    background: #f5f6fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.practice-exam-card .pe-option.selected .pe-option-letter {
    background: #1976D2;
    color: #fff;
}

.practice-exam-card .pe-option.correct .pe-option-letter {
    background: #28A745;
    color: #fff;
}

.practice-exam-card .pe-option.wrong .pe-option-letter {
    background: #DC3545;
    color: #fff;
}

.practice-exam-card .pe-option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    padding-top: 4px;
}

.practice-exam-card .pe-result-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.practice-exam-card .pe-result-box.correct {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.practice-exam-card .pe-result-box.wrong {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.practice-exam-card .pe-result-icon {
    font-size: 28px;
}

.practice-exam-card .pe-result-box.correct .pe-result-icon {
    color: #28A745;
}

.practice-exam-card .pe-result-box.wrong .pe-result-icon {
    color: #DC3545;
}

.practice-exam-card .pe-result-text {
    font-size: 16px;
    font-weight: 600;
}

.practice-exam-card .pe-result-box.correct .pe-result-text {
    color: #28A745;
}

.practice-exam-card .pe-result-box.wrong .pe-result-text {
    color: #DC3545;
}

.practice-exam-card .pe-result-answer {
    font-size: 14px;
    color: #666;
    margin-left: auto;
}

.practice-exam-card .pe-explanation-box {
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.practice-exam-card .pe-explanation-title {
    font-size: 14px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 8px;
}

.practice-exam-card .pe-explanation-content {
    font-size: 14px;
    color: #5d4037;
    line-height: 1.8;
}

.practice-exam-card .pe-text-answer-section {
    margin-bottom: 15px;
}

.practice-exam-card .pe-answer-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.practice-exam-card .pe-answer-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.practice-exam-card .pe-answer-input:focus {
    outline: none;
    border-color: #007bff;
}

.practice-exam-card .pe-answer-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.practice-exam-card .pe-question-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.question-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.question-actions .btn-primary {
    background: #1976D2;
    color: #fff;
}

.question-actions .btn-primary:hover {
    background: #1565C0;
}

.question-actions .btn-secondary {
    background: #f5f6fa;
    color: #666;
    border: 1px solid #e8ecf1;
}

.question-actions .btn-secondary:hover {
    background: #e8ecf1;
}

.pe-question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.pe-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf1;
}

.pe-nav-page-btn {
    width: 32px;
    height: 32px;
    background: #f5f6fa;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pe-nav-page-btn:hover:not(:disabled) {
    background: #e8f0fe;
    border-color: #1976D2;
    color: #1976D2;
}

.pe-nav-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pe-nav-page-info {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.pe-nav-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8ecf1;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.pe-qnav-item {
    width: 36px;
    height: 36px;
    background: #f5f6fa;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.pe-qnav-item:hover {
    background: #e8f0fe;
    border-color: #1976D2;
    color: #1976D2;
}

.pe-qnav-item.current {
    background: #1976D2;
    border-color: #1976D2;
    color: #fff;
}

.pe-qnav-item.answered {
    background: #e3f2fd;
    border-color: #1976D2;
    color: #1976D2;
}

.pe-qnav-item.correct {
    background: #e8f5e9;
    border-color: #28A745;
    color: #28A745;
}

.pe-qnav-item.wrong {
    background: #ffebee;
    border-color: #DC3545;
    color: #DC3545;
}

.timer-display {
    text-align: center;
    padding: 20px;
    background: #f5f6fa;
    border-radius: 8px;
}

.timer-display #timer {
    font-size: 32px;
    font-weight: bold;
    color: #1976D2;
    font-family: 'Courier New', monospace;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

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

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.summary-value.correct {
    color: #28A745;
}

.summary-value.wrong {
    color: #DC3545;
}

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

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

.result-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.result-actions .btn-primary {
    background: #1976D2;
    color: #fff;
}

.result-actions .btn-primary:hover {
    background: #1565C0;
}

.result-actions .btn-secondary {
    background: #f5f6fa;
    color: #666;
    border: 1px solid #e8ecf1;
}

.result-actions .btn-secondary:hover {
    background: #e8ecf1;
}

.practice-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 9999;
    animation: toast-fade-in 0.3s ease;
}

.practice-toast.fade-out {
    animation: toast-fade-out 0.3s ease;
}

@keyframes toast-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes toast-fade-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
}

.loading-content i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.loading-content p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.practice-exam-card .pe-question-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.practice-exam-card .pe-question-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.practice-exam-card .pe-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #999;
}

.practice-exam-card .pe-action-btn:hover {
    border-color: #9c27b0;
    color: #9c27b0;
}

.practice-exam-card .pe-action-btn.active {
    color: #ffc107;
    border-color: #ffc107;
    background: #fff8e1;
}

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

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close, .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover, .close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.apply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.apply-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    text-align: center;
}

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

.apply-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.apply-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-modal-close:hover {
    color: #333;
}

.apply-modal-body {
    padding: 24px 20px;
}

.apply-modal-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.apply-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.apply-modal-footer .btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-modal-footer .btn-default {
    background: #f5f6fa;
    border: 1px solid #ddd;
    color: #666;
}

.apply-modal-footer .btn-default:hover {
    background: #eee;
}

.apply-modal-footer .btn-primary {
    background: #1976D2;
    border: none;
    color: #fff;
}

.apply-modal-footer .btn-primary:hover {
    background: #1565C0;
}

.apply-success-icon,
.apply-error-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.apply-success-icon {
    color: #28A745;
}

.apply-error-icon {
    color: #DC3545;
}

.apply-modal h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.apply-modal p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.roomexam-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

.roomexam-title h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.roomexam-title i {
    color: #007bff;
    margin-right: 8px;
}

.roomexam-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.roomexam-paper-name {
    font-size: 14px;
    color: #666;
}

.roomexam-time {
    font-size: 16px;
    font-weight: bold;
    color: #E53935;
}

.roomexam-actions .btn {
    padding: 8px 20px;
}

.roomexam-paper-info {
    max-width: 800px;
    margin: 0 auto;
}

.roomexam-paper-info .paper-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.paper-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.paper-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.paper-body {
    padding: 24px;
}

.paper-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.paper-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.paper-meta-item i {
    color: #4CAF50;
}

.paper-meta-item strong {
    color: #333;
}

.exam-rules h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.exam-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.exam-rules li i {
    color: #FF9800;
    flex-shrink: 0;
}

.paper-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.paper-footer .btn {
    min-width: 200px;
}

.roomexam-content {
    display: flex;
    gap: 20px;
}

.roomexam-sidebar {
    width: 280px;
    flex-shrink: 0;
}

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

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

.sidebar-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.sidebar-stats {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.question-groups {
    padding: 16px;
}

.question-group {
    margin-bottom: 20px;
}

.question-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.group-item {
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.group-item:hover {
    background: #e3f2fd;
}

.group-item.current {
    background: #007bff;
    color: #fff;
}

.group-item.answered {
    background: #e3f2fd;
    color: #007bff;
}

.group-item.marked {
    border: 2px solid #f59e0b;
}

.roomexam-main {
    flex: 1;
    min-width: 0;
}

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

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid #007bff;
}

.question-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-num {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.question-type {
    font-size: 13px;
    color: #666;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.question-body {
    padding: 24px;
}

.question-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.roomexam-main .question-card .question-body .options-container {
    display: flex;
    flex-direction: column;
    gap: 20px !important;
    margin-top: 20px;
}

.roomexam-main .question-card .question-body .options-container .option-item {
    margin-bottom: 20px !important;
    padding: 16px 20px !important;
}

.options-container .option-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}

.options-container .option-item:hover {
    border-color: #90caf9;
    background: #fff;
}

.options-container .option-item.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.options-container .option-item .option-label {
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-right: 12px;
    flex-shrink: 0;
}

.options-container .option-item.selected .option-label {
    background: #007bff;
    color: #fff;
}

.options-container .option-item .option-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.text-input-section {
    padding: 15px 0;
}

.text-input-section .input-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: block;
}

.text-input-section .text-answer-input {
    width: 100%;
    min-height: 150px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
}

.text-input-section .text-answer-input:focus {
    outline: none;
    border-color: #007bff;
}

.question-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

.question-footer .btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.question-footer #prevBtn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.question-footer #prevBtn:hover {
    background: #e8e8e8;
}

.question-footer #nextBtn {
    background: #007bff;
    color: #fff;
}

.question-footer #nextBtn:hover {
    background: #0069d9;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.question-actions .btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.question-actions .btn:hover {
    background: #f5f5f5;
}

.question-actions .btn.active {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ff9800;
}

.question-actions #favoriteBtn.favorited {
    background: #fce4ec;
    border-color: #e91e63;
    color: #e91e63;
}

.roomexam-self-evaluation {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.self-evaluation-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.objective-score {
    font-size: 14px;
    color: #666;
    background: #e3f2fd;
    padding: 8px 16px;
    border-radius: 4px;
}

.subjective-list {
    padding: 20px;
}

.subjective-item {
    background: #fafafa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.subjective-item:last-child {
    margin-bottom: 0;
}

.subjective-question {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.subjective-answer {
    font-size: 13px;
    color: #666;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
}

.score-input-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-input-section span {
    font-size: 13px;
    color: #666;
}

.score-input {
    width: 120px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.score-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.self-evaluation-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.roomexam-result {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.roomexam-result .result-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 40px 60px;
    text-align: center;
    min-width: 400px;
}

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

.roomexam-result .result-title {
    font-size: 20px;
    font-weight: bold;
    color: #FF9800;
    margin-bottom: 20px;
}

.roomexam-result .result-score {
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.roomexam-result .result-status {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.roomexam-result .result-status .result-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.roomexam-result .result-status .result-link:hover {
    color: #0056b3;
}

.roomexam-result .result-message {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}

.roomexam-result .result-message-sub {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
}

.roomexam-result .result-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.roomexam-result .result-meta span {
    font-size: 13px;
    color: #666;
}

.roomexam-result .btn {
    min-width: 150px;
}

.report-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.report-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-type:hover {
    border-color: #9c27b0;
    background: #f5f0f7;
}

.report-type.selected {
    border-color: #9c27b0;
    background: #e1bee7;
    color: #7b1fa2;
}

.report-type i {
    font-size: 16px;
}

.report-type span {
    font-size: 14px;
}

.report-remark {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.report-remark:focus {
    outline: none;
    border-color: #9c27b0;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    border: none;
    background: none;
    outline: none;
}

.clear-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.02);
}

.search-btn:active {
    transform: scale(0.98);
}

.question-list {
    max-height: 500px;
    overflow-y: auto;
}

.question-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.3s ease;
    cursor: pointer;
}

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

.question-item:hover {
    background: #F8F9FA;
}

.question-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.question-info {
    flex: 1;
    min-width: 0;
}

.question-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.keyword-highlight {
    color: #ff4d4f;
    font-weight: bold;
}

.question-meta {
    font-size: 12px;
    color: #999;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #66bb6a;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    margin-right: 8px;
}

.form-row {
    display: flex;
    align-items: flex-end;
}

.question-actions {
    flex-shrink: 0;
    margin-left: 12px;
}

.question-arrow {
    font-size: 18px;
    color: #CCC;
    flex-shrink: 0;
}

.major-tag {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
    margin-left: 4px;
    white-space: nowrap;
}

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

.pagination-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: scale(1.02);
}

.pagination-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.detail-modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
}

.detail-modal-body {
    max-height: none;
    overflow-y: visible;
    padding: 20px;
}

.detail-row {
    display: flex;
    padding: 12px 16px;
}

.detail-label {
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.detail-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 0 16px;
}

.detail-question {
    font-weight: 500;
}

.detail-option-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.detail-option-letter {
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.detail-option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.detail-option-correct {
    color: #28a745;
    font-size: 16px;
    margin-left: 8px;
}

.options-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #F8F9FA;
    border-radius: 6px;
}

.option-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.answer-text {
    font-weight: bold;
    color: #4CAF50;
}

.analysis-text {
    color: #666;
}

.stats-card {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
    border: none;
}

.stats-card .card-header {
    background: none;
    border: none;
    padding-bottom: 8px;
}

.stats-card .card-title {
    color: #333;
}

.stats-grid {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.stat-item {
    text-align: center;
    background: #fff;
    padding: 20px 32px;
    border-radius: 12px;
    flex: 1;
}

.stat-value {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.recite-answer-section {
    margin-top: 20px;
    padding: 16px;
    background: #E8F5E9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 8px;
}

.answer-content {
    font-size: 16px;
    color: #1B5E20;
    font-weight: 500;
}

.recite-analysis-section {
    margin-top: 16px;
    padding: 16px;
    background: #FFF3E0;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #E65100;
    margin-bottom: 8px;
}

.analysis-content {
    font-size: 14px;
    color: #5D4037;
    line-height: 1.6;
}

.pe-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pe-option.correct {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.pe-option-letter {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #ddd;
}

.pe-option-letter.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pe-option-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.pe-option-check {
    color: #4CAF50;
    font-size: 20px;
    margin-left: 8px;
}

.answer-letter {
    font-size: 14px;
    color: #4CAF50;
    font-weight: bold;
}

.report-type.selected {
    background: #E3F2FD;
    border-color: #90CAF9;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 100%;
    max-height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.profile-card {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.profile-card.collapsed {
    padding: 12px 15px;
    margin-bottom: 15px;
}

.profile-card.collapsed .profile-header {
    flex-wrap: nowrap;
}

.profile-card.collapsed .profile-left {
    flex: 1;
}

.profile-card.collapsed .profile-right,
.profile-card.collapsed .date-row,
.profile-card.collapsed #countdownRow,
.profile-card.collapsed .exp-progress-section,
.profile-card.collapsed .profile-stats,
.profile-card.collapsed .daily-quote {
    display: none !important;
}

.profile-card.collapsed .level-icon-wrap {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.profile-card.collapsed .level-icon-wrap span {
    font-size: 20px;
}

.profile-card.collapsed .profile-tags {
    flex-wrap: nowrap;
    gap: 6px;
}

.profile-card.collapsed .profile-tags span {
    font-size: 12px;
    padding: 2px 6px;
}

.profile-card.collapsed .profile-level {
    display: none;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-left {
    display: flex;
    align-items: center;
}

.level-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9E9E9E 0%, #f3f7de 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 28px;
}

.profile-info {
    flex: 1;
}

.profile-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nickname-tag {
    background: #E8F5E9;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #4CAF50;
}

.group-tag {
    background: #E3F2FD;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #1976D2;
}

.level-badge {
    background: #4CAF50;
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.profile-level {
    display: flex;
    align-items: center;
    margin-top: 6px;
    gap: 10px;
}

.level-name {
    background: #4CAF50;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.level-desc {
    font-size: 13px;
    color: #666;
}

.profile-right {
    text-align: right;
}

.exp-info {
    background: #E8F5E9;
    padding: 12px 16px;
    border-radius: 12px;
}

.exp-label {
    font-size: 12px;
    color: #666;
    display: block;
}

.exp-value {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 4px;
    display: block;
}

.exp-unit {
    font-size: 12px;
    color: #4CAF50;
    margin-top: 3px;
    display: block;
}

.date-row {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    color: #4CAF50;
    font-weight: bold;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lucky-day {
    color: #FF9800;
}

.sign-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.sign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.sign-btn:active {
    transform: translateY(0);
}

.sign-btn.sign-btn-disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.sign-btn.sign-btn-disabled:hover {
    transform: none;
}

.friend-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.friend-link:hover {
    background: #f0f4f8;
    color: #1976D2;
}

.friend-link:focus {
    outline: none;
    box-shadow: none;
}

.countdown-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #339edb;
}

.countdown-row span {
    white-space: nowrap;
}

.exp-progress-section {
    margin-top: 15px;
}

.exp-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C8E6C9 0%, #81C784 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-stat-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-stat-item:hover {
    transform: scale(1.05);
}

.stat-icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 22px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    display: block;
}

.daily-quote {
    margin-top: 16px;
    padding: 12px 16px;
    background: #E8F5E9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4CAF50;
    gap: 8px;
}

.menu-card {
    border: none;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.menu-card-body {
    display: block;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

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

.menu-item:hover {
    background: #f8fafc;
}

.menu-item.menu-active {
    background: #e8f5e9;
}

.menu-item.menu-active .menu-item-left span:first-child {
    color: #4CAF50;
}

.main-content {
    min-height: 400px;
}

.course-list, .wrong-list, .exam-list, .suggestion-list {
    padding: 10px;
}

.course-item, .wrong-item, .exam-item, .suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background 0.2s;
}

.course-item:hover, .wrong-item:hover, .exam-item:hover, .suggestion-item:hover {
    background: #f8fafc;
}

.course-item:last-child, .wrong-item:last-child, .exam-item:last-child, .suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-detail-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.suggestion-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-detail-header .card-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.suggestion-detail-header .btn-secondary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
}

.suggestion-detail-header .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.suggestion-detail-body {
    padding: 24px;
}

.suggestion-detail-row {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.suggestion-detail-row:last-child {
    border-bottom: none;
}

.suggestion-detail-label {
    width: 110px;
    min-width: 110px;
    font-size: 14px;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.suggestion-detail-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.suggestion-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.suggestion-content {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    white-space: pre-wrap;
}

.suggestion-reply-section {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 10px;
    border: 1px solid #c8e6c9;
}

.suggestion-reply-header {
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-reply-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.suggestion-reply-time {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: right;
}

.suggestion-item {
    display: block !important;
    align-items: flex-start !important;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.suggestion-item-index {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.suggestion-item-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    margin-right: 10px;
}

.suggestion-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-expand-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.suggestion-expand-icon.rotate {
    transform: rotate(180deg);
}

.suggestion-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.suggestion-detail-panel.expanded {
    max-height: 500px;
    padding-top: 16px;
}

.suggestion-detail-inner {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
}

.suggestion-detail-info {
    margin-bottom: 16px;
}

.suggestion-detail-row {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

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

.suggestion-detail-label {
    width: 50px;
    min-width: 50px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.suggestion-detail-value {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.suggestion-detail-content {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    white-space: pre-wrap;
}

.suggestion-reply-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #c8e6c9;
}

.suggestion-reply-header {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestion-reply-text {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    white-space: pre-wrap;
}

.suggestion-reply-time {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    text-align: right;
}

.suggestion-detail-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.suggestion-detail-error {
    text-align: center;
    padding: 16px;
    color: #f44336;
    font-size: 13px;
}

.collection-list {
    padding: 0;
}

.collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

.collection-item:hover {
    background: #f8fafc;
}

.collection-item-left {
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 12px;
}

.collection-item-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.collection-item-content {
    flex: 1;
    min-width: 0;
}

.collection-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
    line-height: 1.6;
}

.collection-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.collection-item-right {
    margin-left: 15px;
    flex-shrink: 0;
}

/* 收藏详情弹窗样式 */
.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.collection-detail-modal .modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.collection-detail-modal .modal-header h3 {
    color: white;
}

.collection-detail-modal .modal-close {
    color: white;
}

.collection-detail-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.collection-detail-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
}

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

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

.detail-label {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
}

.detail-question {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.detail-option-item:hover {
    background: #e8f5e9;
}

.detail-option-letter {
    width: 28px;
    height: 28px;
    background: #9e9e9e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.detail-option-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.detail-answer {
    font-size: 15px;
    font-weight: bold;
    color: #4CAF50;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
}

.detail-analysis {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding: 12px 16px;
    background: #fff3e0;
    border-radius: 8px;
}

.course-icon, .exam-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.course-info, .exam-info {
    flex: 1;
}

.course-title, .exam-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.course-meta, .exam-meta {
    font-size: 13px;
    color: #999;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.course-arrow {
    margin-left: 10px;
    color: #ccc;
    font-size: 14px;
}

.course-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.course-stats-card .stats-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.course-stats-card .title-icon {
    font-size: 20px;
    margin-right: 8px;
}

.course-stats-card .stats-title {
    font-size: 16px;
    font-weight: bold;
}

.course-stats-card .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.course-stats-card .stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.course-stats-card .stat-item .stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.course-stats-card .stat-item .stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.course-stats-card .progress-bar-wrap {
    margin-top: 15px;
}

.course-stats-card .progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.course-stats-card .progress-bar-fill {
    height: 100%;
    background: #4ade80;
    border-radius: 4px;
    transition: width 0.3s;
}

.history-list {
    padding: 0;
}

.history-card {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.history-card:last-child {
    border-bottom: none;
}

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

.history-chapter {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.history-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.history-status.completed {
    background: #dcfce7;
    color: #22c55e;
}

.history-status.learning {
    background: #fef3c7;
    color: #f59e0b;
}

.history-lesson {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.history-bar-wrap {
    margin-top: 5px;
}

.history-bar-bg {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.history-bar-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
}

.mini-progress-bar {
    width: 80px;
    height: 6px;
    background: #e8ecf1;
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 3px;
    transition: width 0.3s;
}

.exam-status {
    margin-left: 10px;
}

.wrong-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffebee;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin-right: 15px;
}

.wrong-content {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.wrong-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wrong-major {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.wrong-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.collection-stats {
    display: flex;
    justify-content: space-around;
}

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

.collection-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.collection-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

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

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    background: #f0f0f0;
    border-color: #ccc;
}

.page-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

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

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

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn.primary {
    background: #4CAF50;
    color: white;
}

.action-btn.primary:hover {
    background: #45a049;
}

.action-btn.secondary {
    background: #FF9800;
    color: white;
}

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

.action-btn.danger {
    background: #f44336;
    color: white;
}

.action-btn.danger:hover {
    background: #da190b;
}

.action-btn.close {
    background: #e0e0e0;
    color: #666;
}

.action-btn.close:hover {
    background: #d0d0d0;
}

.source-badge {
    background: #e8f5e9;
    color: #4CAF50;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.badge-purple {
    background: #667eea;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.answer-text {
    color: #4CAF50;
    font-weight: bold;
}

.my-answer-text {
    color: #F44336;
    font-weight: bold;
}

.options-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    position: relative;
}

.option-item.my-answer {
    border-color: #F44336;
    background: #fff5f5;
}

.option-item.my-answer .option-letter {
    background: #F44336;
    color: white;
}
.option-item.my-answer .option-text {
    color: #F44336;
}

.option-item.correct-answer {
    border-color: #4CAF50;
    background: #f0fff4;
}

.option-item.correct-answer .option-letter {
    background: #4CAF50;
    color: white;
}
.option-item.correct-answer .option-text {
    color: #4CAF50;
}

.option-tag {
    position: absolute;
    right: 10px;
    background: #F44336;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.option-tag.correct {
    background: #4CAF50;
}

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

.confirm-modal {
    background: white;
    border-radius: 12px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirm-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.confirm-modal-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.confirm-modal-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.confirm-modal-btn.cancel {
    color: #999;
    border-right: 1px solid #eee;
}

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

.confirm-modal-btn.confirm {
    color: #4CAF50;
    font-weight: bold;
}

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

.score-stats-card {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.stats-center {
    text-align: center;
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
}

.stats-value {
    font-size: 48px;
    font-weight: bold;
    margin-top: 5px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

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

.stats-num {
    font-size: 24px;
    font-weight: bold;
}

.stats-text {
    font-size: 12px;
    opacity: 0.8;
}

.tab-bar {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    color: #4CAF50;
    font-weight: bold;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #4CAF50;
}

.score-list-container {
    padding: 5px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}

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

.score-left {
    flex: 1;
}

.score-subject {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.score-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.meta-divider {
    margin: 0 8px;
}

.score-right {
    text-align: right;
}

.score-section {
    display: flex;
    align-items: baseline;
}

.score-value {
    font-size: 28px;
    font-weight: bold;
}

.score-value.score-pass {
    color: #4CAF50;
}

.score-value.score-fail {
    color: #F44336;
}

.score-total {
    font-size: 14px;
    color: #999;
    margin-left: 2px;
}

.result-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 4px;
}

.result-tag.pass {
    background: #e8f5e9;
    color: #4CAF50;
}

.result-tag.fail {
    background: #ffebee;
    color: #F44336;
}

.score-detail-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f7fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e8ecf0;
    color: #333;
}

.score-detail-header h3 {
    margin: 0;
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

.score-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.summary-left {
    text-align: center;
}

.summary-score-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.summary-score {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.summary-score.pass {
    color: white;
}

.summary-score.fail {
    color: #ffeb3b;
}

.summary-total {
    font-size: 24px;
    margin-left: 8px;
    opacity: 0.9;
}

.summary-result {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

.summary-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
}

.summary-item i {
    width: 18px;
    text-align: center;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

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

.section-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.detail-table {
    overflow-x: auto;
}

.detail-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.detail-table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 13px;
}

.detail-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}

.detail-table .td-left {
    font-weight: 500;
}

.accuracy-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.accuracy-text {
    font-size: 12px;
    color: #666;
}

.accuracy-fill.weak {
    background: linear-gradient(90deg, #F44336, #ef5350);
}

.knowledge-item {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

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

.knowledge-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.knowledge-stats {
    font-size: 13px;
    color: #666;
}

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

.knowledge-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81c784);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.knowledge-progress.weak {
    background: linear-gradient(90deg, #F44336, #ef5350);
}

.wrong-detail-item {
    background: #fff8f8;
    border: 1px solid #ffebee;
    border-left: 4px solid #F44336;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrong-detail-item:hover {
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.wrong-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wrong-index.badge {
    font-size: 12px;
    color: #F44336;
    font-weight: 600;
    background: #ffebee;
    padding: 3px 10px;
    border-radius: 4px;
}

.wrong-type {
    font-size: 12px;
    color: #999;
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.wrong-score {
    font-size: 13px;
    color: #F44336;
    font-weight: 600;
    margin-left: auto;
}

.wrong-score.partial {
    color: #ff9800;
}

.wrong-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.wrong-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.answer-label {
    color: #999;
}

.user-answer {
    color: #F44336;
    font-weight: 500;
}

.correct-answer {
    color: #4CAF50;
    font-weight: 500;
}

.empty-state.success {
    text-align: center;
    padding: 40px;
    background: #f1f8e9;
    border-radius: 12px;
}

.empty-state.success i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.empty-state.success p {
    font-size: 16px;
    color: #4CAF50;
    margin: 0;
}

.suggestion-content {
    flex: 1;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-time {
    font-size: 12px;
    color: #999;
}

.scores-container {
    padding: 10px;
}

.score-section {
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

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

.score-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    font-weight: bold;
    font-size: 15px;
}

.score-list {
    padding: 0;
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

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

.score-item:hover {
    background: #f8fafc;
}

.score-info {
    flex: 1;
}

.score-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.score-meta {
    font-size: 13px;
    color: #999;
}

.score-result {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-value {
    font-size: 28px;
    font-weight: bold;
}

.score-value.score-pass {
    color: #4CAF50;
}

.score-value.score-fail {
    color: #e53935;
}

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

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.menu-item-left > div {
    display: flex;
    flex-direction: column;
}

.menu-item-desc {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.menu-arrow {
    color: #ccc;
    font-size: 16px;
}

.logout-item .menu-item-left div {
    color: #F44336;
}

.checkin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.checkin-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.level-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.level-detail-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.level-detail-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.level-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #667eea;
    color: #fff;
}

.level-detail-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.level-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-detail-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.level-detail-body {
    padding: 6px;
    max-height: 75vh;
    overflow-y: hidden;
}

.level-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.level-item.current {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.level-item.locked {
    opacity: 0.5;
}

.level-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.level-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.level-name {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.level-number {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
}

.level-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.level-exp-bar {
    width: 80px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.level-exp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.level-exp-text {
    font-size: 10px;
    color: #666;
}

.level-exp-text.mastered {
    color: #4CAF50;
    font-weight: 500;
}

.level-exp-text.locked {
    color: #999;
}

.current-badge {
    padding: 2px 8px;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

.checkin-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.checkin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.checkin-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.checkin-modal-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkin-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.checkin-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.checkin-stats-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

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

.checkin-stat-item .stat-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.checkin-stat-item .stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

.checkin-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
}

.checkin-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.checkin-calendar-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

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

.calendar-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}
.calendar-nav:hover {
    background: #e8ecf0;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 8px 0;
    font-weight: 500;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 15px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #e9ecef;
}

.day-cell.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.day-cell.checked {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.day-cell.today {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.day-cell.future {
    color: #ccc;
    cursor: not-allowed;
}

.day-cell.normal-day {
    color: #999;
}

.day-cell:hover:not(.empty):not(.future) {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

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

.calendar-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    display: block;
}

.calendar-stat .stat-text {
    font-size: 12px;
    color: #666;
}

.checkin-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.checkin-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.checked-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: #f1f8e9;
    color: #4CAF50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.checkin-right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkin-bonus-card {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 10px 12px;
}

.checkin-bonus-card h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #f57c00;
    font-weight: 600;
}

.bonus-rules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bonus-rule {
    text-align: center;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
}

.bonus-day {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.bonus-reward {
    display: block;
    font-size: 10px;
    color: #f57c00;
    margin-top: 2px;
}

.checkin-tasks-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
}

.checkin-tasks-card h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.tasks-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tasks-progress-wrap .progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.tasks-progress-wrap .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.task-item.completed {
    opacity: 0.6;
}

.task-icon {
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
}

.task-content {
    flex: 1;
}

.task-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.task-desc {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
}

.task-progress-text {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.task-status {
    min-width: 24px;
    text-align: center;
}

.status-completed {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 10px;
}

.status-progress {
    font-size: 10px;
    color: #2196F3;
    font-weight: 600;
}

.status-pending {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 10px;
}

.checkin-action-card {
    text-align: center;
    padding: 20px;
}

.checkin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.checkin-btn:active {
    transform: translateY(0);
}

.checkin-exp {
    font-size: 13px;
    opacity: 0.9;
    margin-left: 5px;
}

.checked-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f1f8e9;
    border-radius: 12px;
}

.checked-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 12px;
}

.checked-text {
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 8px;
}

.checked-exp {
    font-size: 14px;
    color: #666;
}

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

@media (max-width: 768px) {
    .checkin-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .checkin-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
}

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.login-modal-body {
    padding: 20px;
    text-align: center;
}

.login-modal-body p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.login-modal-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.login-modal-footer .btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.login-modal-footer .btn-secondary {
    color: #999;
    border-right: 1px solid #eee;
}

.login-modal-footer .btn-secondary:hover {
    background: #f5f5f5;
}

.login-modal-footer .btn-primary {
    color: #007bff;
    font-weight: bold;
}

.login-modal-footer .btn-primary:hover {
    background: #f0f7ff;
}

.article-detail-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-detail-card {
    margin-bottom: 20px;
}

.article-detail-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

.article-detail-meta .badge {
    font-size: 12px;
    padding: 4px 12px;
}

.article-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-detail-content p {
    margin-bottom: 16px;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-detail-content h5,
.article-detail-content h6 {
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
}

.article-detail-content h1 { font-size: 20px; }
.article-detail-content h2 { font-size: 18px; }
.article-detail-content h3 { font-size: 16px; }

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-detail-content li {
    margin-bottom: 8px;
}

.article-detail-content blockquote {
    border-left: 4px solid #1976D2;
    padding: 10px 15px;
    background: #f5f9ff;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.article-detail-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.article-detail-content pre {
    background: #2d2d2d;
    color: #ccc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.article-detail-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-detail-footer {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.article-sidebar .category-card,
.article-sidebar .recent-articles-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-sidebar .category-card .card-header,
.article-sidebar .recent-articles-card .card-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.article-sidebar .category-card .card-title,
.article-sidebar .recent-articles-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-sidebar .category-card .card-title i,
.article-sidebar .recent-articles-card .card-title i {
    color: #1976D2;
}

.article-sidebar .category-card .card-body,
.article-sidebar .recent-articles-card .card-body {
    padding: 15px;
}

.article-sidebar .category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.category-article-list {
    padding: 10px 0;
}

.category-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1px solid #eee;
}

.category-article-item:hover {
    background: #fafafa;
    border-color: #eee;
}

.category-article-title {
    font-size: 14px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.category-article-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.article-sidebar .recent-article-list {
    padding: 8px 0;
}

.article-sidebar .recent-article-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.article-sidebar .recent-article-item:last-child {
    border-bottom: none;
}

.article-sidebar .recent-article-item:hover {
    background: #f5f9ff;
}

.article-sidebar .recent-article-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-sidebar .recent-article-date {
    font-size: 12px;
    color: #999;
}

.message-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #F44336;
    color: #fff;
    font-size: 12px;
    border-radius: 9px;
    padding: 0 5px;
    margin-right: 8px;
}

.bank-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bank-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bank-info {
    flex: 1;
}

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

.bank-desc {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.bank-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.bank-owner {
    color: #4A90D9;
}

.bank-expire {
    color: #999;
}

.bank-stats {
    text-align: right;
}

.bank-count {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.bank-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.message-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.message-item:hover {
    background: #f8fafc;
}

.message-item.unread {
    background: #fff3e0;
}

.message-item.unread .message-title {
    font-weight: 600;
}

.message-icon {
    font-size: 28px;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

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

.message-title {
    font-size: 14px;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 10px;
}

.message-body {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.message-name {
    color: #81c784;
    font-weight: 500;
}

.message-status {
    flex-shrink: 0;
    margin-left: 10px;
}

.message-expand {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.message-detail {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.message-detail-label {
    width: 80px;
    color: #999;
    flex-shrink: 0;
}

.message-detail-value {
    flex: 1;
    color: #333;
    word-break: break-all;
}

.message-detail-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .article-detail-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
    }
}