/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 宇宙星空主题 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8f4fd;
    background: #0a0a0a;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: starfield 20s linear infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空动画 */
@keyframes starfield {
    from { background-position: 0 0; }
    to { background-position: 200px 100px; }
}

/* 流星效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: meteor 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes meteor {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100vw) translateY(100vh); }
}

/* 深空渐变背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #0a0a0a 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #0f3460 75%,
        #0a0a0a 100%);
    z-index: -1;
    pointer-events: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* 导航栏 - 宇宙主题 */
.navbar {
    background: linear-gradient(135deg,
        rgba(15, 52, 96, 0.98) 0%,
        rgba(22, 33, 62, 0.98) 50%,
        rgba(26, 26, 46, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #e8f4fd;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.nav-brand:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nav-brand.active {
    background-color: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.nav-brand.active i {
    color: #007bff;
}

.nav-brand i {
    margin-right: 0.5rem;
    color: #ffd700;
    transition: color 0.3s ease;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.user-name:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 按钮样式 - 宇宙主题 */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #e8f4fd;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5ba0f2 0%, #4a90e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4a90e2;
    border: 2px solid #4a90e2;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    color: #e8f4fd;
    border-color: #5ba0f2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #e8f4fd;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #e8f4fd;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* 主要内容区域 - 宇宙主题 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}

.page {
    display: none;
    padding: 2rem 0;
    background: rgba(15, 52, 96, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page.active {
    display: block;
}

/* 首页样式 - 宇宙星空主题 */
.hero {
    background: #0a0a0a;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
        linear-gradient(135deg,
            rgba(15, 52, 96, 0.8) 0%,
            rgba(22, 33, 62, 0.8) 50%,
            rgba(26, 26, 46, 0.8) 100%);
    background-repeat: repeat;
    background-size: 200px 100px, 200px 100px, 200px 100px, 200px 100px, 200px 100px, 100% 100%;
    animation: starfield 20s linear infinite;
    color: #e8f4fd;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: meteor 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(15, 52, 96, 0.6) 0%,
        rgba(22, 33, 62, 0.6) 50%,
        rgba(26, 26, 46, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.08) 0%, 
        rgba(74, 144, 226, 0.12) 50%, 
        rgba(74, 144, 226, 0.08) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

.hero-content h1 span {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e8f4fd;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-image {
    margin-top: 2rem;
    font-size: 8rem;
    color: #4a90e2;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 功能特色 */
.features {
    padding: 4rem 0;
    background: rgba(15, 52, 96, 0.05);
    backdrop-filter: blur(5px);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #e8f4fd;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(15, 52, 96, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(74, 144, 226, 0.5);
    background: rgba(15, 52, 96, 0.4);
}

.feature-card:hover h3 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.feature-card:hover p {
    color: #f0f8ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    color: #e8f4fd;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 即将到来的考试 */
.upcoming-exams {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.upcoming-exams::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 240px 20px, #fff, transparent),
        radial-gradient(2px 2px at 280px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 320px 40px, #eee, transparent),
        radial-gradient(1px 1px at 360px 80px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 400px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 0.6;
    z-index: 1;
}

.upcoming-exams::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.upcoming-exams h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 3;
}

.exams-list {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 3;
}

.exam-card {
    background: rgba(15, 52, 96, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.exam-card:hover::before {
    left: 100%;
}

.exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 144, 226, 0.3);
}

.exam-info h4 {
    color: #e8f4fd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.exam-info p {
    color: #b8d4f0;
    font-size: 0.9rem;
}

.exam-time {
    text-align: right;
    color: #4a90e2;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* 倒计时样式 */
.countdown {
    font-size: 0.9rem;
    color: #20c997;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(32, 201, 151, 0.5);
}

.countdown-text {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: #e8f4fd;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 练习页面 */
.practice-controls {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.control-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.control-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.practice-area {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.practice-header {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.practice-info {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.question-progress {
    color: #333;
    font-weight: 600;
}

.practice-score {
    color: #007bff;
}

.practice-progress {
    flex: 1;
    max-width: 300px;
    margin-left: 2rem;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.3s;
}

.question-container {
    padding: 2rem;
}

.question {
    margin-bottom: 2rem;
}

.question-id {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    gap: 8px;
}

.question-id-label {
    color: #64748b;
    font-weight: 500;
    margin-right: 0.5rem;
}

.question-id-value {
    color: #1e293b;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex: 1;
}

/* 复制题目ID按钮样式 */
.btn-copy-id {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.btn-copy-id:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-copy-id:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.3);
}

.btn-copy-id i {
    font-size: 11px;
}

/* 复制提示样式 */
.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #28a745;
    max-width: 300px;
}

.copy-toast.show {
    transform: translateX(0);
}

.copy-toast.success {
    border-left-color: #28a745;
}

.copy-toast.error {
    border-left-color: #dc3545;
}

.copy-toast i {
    font-size: 16px;
}

.copy-toast.success i {
    color: #28a745;
}

.copy-toast.error i {
    color: #dc3545;
}

.copy-toast span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 活动专栏样式 */
.activities-timeline {
    position: relative;
    padding: 20px 0;
}

.activities-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.activity-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(10px);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #667eea;
    z-index: 2;
}

.activity-item::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 40px;
    width: 4px;
    height: calc(100% + 20px);
    background: #e9ecef;
    z-index: 1;
}

.activity-item:last-child::after {
    display: none;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.activity-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.activity-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.9rem;
}

.activity-meta-item i {
    color: #667eea;
    width: 16px;
}

.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.activity-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.activity-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.activity-fee {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-fee.free {
    background: #17a2b8;
}

.activity-fee.paid {
    background: #dc3545;
}

/* 活动详情页面样式 */
.activity-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.activity-detail-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.activity-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.activity-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-detail-meta-item i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
}

.activity-detail-meta-item span {
    font-weight: 500;
    color: #2c3e50;
}

.activity-detail-content .content {
    line-height: 1.8;
    color: #495057;
}

.activity-detail-content .content h3 {
    color: #2c3e50;
    margin: 24px 0 16px 0;
}

.activity-detail-content .content p {
    margin-bottom: 16px;
}

.activity-detail-content .content ul,
.activity-detail-content .content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.activity-detail-content .content li {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-timeline::before {
        left: 20px;
    }

    .activity-item {
        padding-left: 60px;
    }

    .activity-item::before {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .activity-item::after {
        left: 16px;
    }

    .activity-header {
        flex-direction: column;
        gap: 12px;
    }

    .activity-meta {
        flex-direction: column;
        gap: 8px;
    }

    .activity-detail-meta {
        grid-template-columns: 1fr;
    }
}

/* 标签筛选样式 */
.tag-filter-container {
    margin-top: 0.5rem;
}

.tag-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    height: 260px;
    overflow-y: auto;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-stats-loading {
    color: #64748b;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.tag-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tag-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.tag-button.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.tag-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-button.selected .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-button.disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.tag-button.disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.tag-button.disabled i {
    margin-left: 0.25rem;
    color: #dc3545;
}

.selected-tags {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

.selected-tags-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0369a1;
    margin-bottom: 0.5rem;
    display: block;
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.selected-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}

.selected-tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.question h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.5;
}

.question-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.5;
}

.question-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 5px 0;
    vertical-align: middle;
}

.question-title img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-value img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 5px 0;
    vertical-align: middle;
}

.options {
    display: grid;
    gap: 0.5rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

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

.option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.option-label {
    font-weight: bold;
    color: #007bff;
    margin-right: 0.5rem;
    min-width: 1.5rem;
    display: inline-block;
}

.option-text {
    flex: 1;
    color: #000000;
}

/* 考试页面样式 */
.exam-completed {
    color: #28a745;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: inline-block;
}

/* 禁用按钮样式 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn-secondary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* 考试记录样式 */
.exam-record-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.exam-record-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.exam-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.exam-record-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.exam-record-date {
    color: #333;
    font-size: 0.9em;
}

.exam-record-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

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

.stat-label {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
}

.stat-value.score {
    color: #28a745;
}

.stat-value.accuracy {
    color: #007bff;
}

/* 未参加考试样式 */
.missed-exams {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.missed-exams h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.missed-exams-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.missed-exam-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.missed-exam-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.missed-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.missed-exam-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.missed-exam-status {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.missed-exam-info {
    margin-bottom: 15px;
}

.missed-exam-info .exam-detail {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.missed-exam-info .exam-detail strong {
    color: #333;
    margin-right: 8px;
}

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

.missed-exam-actions .btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.exam-header .exam-info {
    flex: 1;
    margin-right: 20px;
}

.exam-header .exam-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.exam-header .exam-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 600px;
}

.exam-timer {
    font-size: 1.5em;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
}

.exam-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #666;
}

.exam-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.exam-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.exam-navigation .btn {
    padding: 12px 24px;
    font-size: 16px;
}

.practice-actions {
    padding: 1rem 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

/* 练习结果 */
.practice-result {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

.result-card h3 {
    color: #28a745;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 考试页面 */
.exams-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.exam-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.exam-card:hover {
    transform: translateY(-2px);
}

.exam-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.exam-card p {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exam-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.exam-status.active {
    background-color: #d4edda;
    color: #155724;
}

.exam-status.upcoming {
    background-color: #cce5ff;
    color: #004085;
}

.exam-status.completed {
    background-color: #f8d7da;
    color: #721c24;
}

/* 第三方登录按钮样式 - 跨浏览器兼容 */
.third-party-login-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-sizing: border-box;
}

.third-party-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.third-party-login-btn i {
    font-size: 16px;
    margin-right: 5px;
}

/* 第三方登录容器样式 */
#thirdPartyLoginButtons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* 排名页面 */
.ranking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: #ccc;
    font-weight: 500;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.ranking-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.ranking-item:hover {
    background-color: #f8f9fa;
}

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

.rank-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    min-width: 50px;
}

.rank-avatar {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.rank-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.rank-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #e9ecef;
}

.rank-medal {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.rank-info {
    flex: 1;
}

.rank-username {
    font-weight: 500;
    color: #333;
}

.rank-level {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.rank-province {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
    font-weight: 400;
}

.rank-score {
    text-align: right;
    min-width: 80px;
}

.score-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 2px;
}

.score-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* 考试状态样式 */
.exam-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.exam-status.active {
    background-color: #28a745;
    color: white;
    border: 1px solid #1e7e34;
    font-weight: 600;
}

.exam-status.scheduled {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.exam-status.expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.exam-status.inactive {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* 倒计时样式 */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.countdown-time {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,123,255,0.3);
}

.exam-status.completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.exam-status.active {
    background-color: #28a745;
    color: white;
    border: 1px solid #1e7e34;
    font-weight: 600;
}

/* 关于页面样式 */
.about-modal {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.about-content {
    padding: 0;
}

.about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.about-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 题库框架网格 */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.framework-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.framework-item h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.framework-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.framework-item li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.framework-item li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

/* 系统特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 适用人群网格 */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.audience-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.audience-item h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.audience-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 技术特色 */
.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tech-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    font-size: 1.5rem;
    color: #007bff;
}

.tech-item span {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 联系信息 */
.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-info i {
    color: #007bff;
    width: 20px;
}

/* 个人中心 */
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* 考试记录样式 */
.exam-record-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.exam-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.exam-record-header h4 {
    margin: 0;
    color: #333;
}

.exam-record-date {
    color: #333;
    font-size: 0.9rem;
}

.exam-record-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.stat-value.score {
    color: #28a745;
}

.stat-value.accuracy {
    color: #007bff;
}

/* 最近考试记录样式 */
.exam-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.exam-record-info h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.exam-record-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.exam-record-stats {
    display: flex;
    gap: 1rem;
}

.exam-record-stats span {
    font-size: 0.9rem;
    color: #333;
}

/* 个人中心菜单样式 */
.profile-menu {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 0.25rem;
}

.menu-item:hover,
.menu-item.active {
    background-color: #e3f2fd;
    color: #007bff;
}

/* 统计卡片样式增强 */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
}

.stat-card:hover::before {
    background: linear-gradient(90deg, #0056b3, #1e7e34);
}

/* 最近考试记录样式 */
.recent-exams-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.recent-exams-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

/* 活动记录样式 */
.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.activity-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-content h5 {
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
}

.activity-content p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

.activity-points {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.profile-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    height: fit-content;
}

.profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.profile-avatar.hidden {
    display: none;
}

/* 头像管理相关样式 */
.profile-avatar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    pointer-events: none;
}

/* 品字布局：上方保存，左下上传，右下删除 */
.avatar-save-btn {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 12;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 12%;
    left: 16%;
}

.avatar-delete-btn {
    position: absolute;
    bottom: 12%;
    right: 16%;
}

.avatar-save-btn:hover {
    background: rgba(40, 167, 69, 1);
    transform: translateX(-50%) scale(1.05);
}

.profile-avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
    pointer-events: auto;
}

.avatar-upload-btn, .avatar-delete-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 2px;
    pointer-events: auto;
    z-index: 11;
}

.avatar-upload-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

.avatar-delete-btn:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}

/* 头像管理页面样式 */
.avatar-management {
    max-width: 800px;
    margin: 0 auto;
}

.avatar-management h4 {
    color: #000000 !important;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 保存按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:active {
    transform: translateY(0);
}

.btn-success i {
    font-size: 14px;
}

/* 强制隐藏默认头像占位符 */
#avatarPreviewPlaceholder.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.avatar-preview-placeholder.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.avatar-preview-section, .avatar-upload-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-preview-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.avatar-preview-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.avatar-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.avatar-preview-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.avatar-preview-info {
    flex: 1;
}

.avatar-preview-info p {
    margin: 5px 0;
    color: #000000 !important;
    font-weight: 500;
}

.profile-section#avatar .avatar-preview-info p {
    color: #000000 !important;
    font-weight: 500;
}

.avatar-tips {
    font-size: 12px;
    color: #333333 !important;
    font-weight: 400;
}

.profile-section#avatar .avatar-tips {
    color: #333333 !important;
    font-weight: 400;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area:hover {
    border-color: #5a6fd8;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #5a6fd8;
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.upload-content i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.upload-content p {
    margin: 8px 0;
    color: #000000 !important;
    font-weight: 500;
}

.profile-section#avatar .upload-content p {
    color: #000000 !important;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #333333 !important;
    font-weight: 400;
}

.profile-section#avatar .upload-hint {
    color: #333333 !important;
    font-weight: 400;
}

.avatar-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.avatar-actions .btn {
    flex: 1;
    min-width: 120px;
}

.avatar-history {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.history-avatar-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.history-avatar-item:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

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

.history-avatar-item .delete-history-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.history-avatar-item:hover .delete-history-btn {
    opacity: 1;
}

/* 移动端头像管理样式 */
@media (max-width: 768px) {
    .avatar-preview-container {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-actions {
        flex-direction: column;
    }
    
    .avatar-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .history-avatar-item {
        width: 60px;
        height: 60px;
    }
}

/* 老师上标样式 */
.teacher-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
}

/* 老师操作按钮样式 */
.teacher-actions {
    margin-top: 15px;
    text-align: center;
}

.teacher-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    cursor: pointer;
}

.teacher-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.teacher-actions .btn i {
    font-size: 11px;
}

.profile-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #666;
    font-size: 0.9rem;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s;
}

.menu-item:hover,
.menu-item.active {
    background-color: #e3f2fd;
    color: #007bff;
}

.profile-main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h3 {
    color: #333 !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-header h3 {
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    color: #007bff;
    margin-right: 1rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 解析模态框特殊样式 - 覆盖通用样式 */
.modal .explanation-modal-content {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 80vh !important;
    margin: 5% auto !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

/* 班级详情样式 - 确保文字清晰可读 */
.class-details {
    color: #2c3e50 !important;
    line-height: 1.6;
}

.class-details h4 {
    color: #1a252f !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.class-details p {
    color: #34495e !important;
    margin: 12px 0;
    font-size: 14px;
}

.class-details strong {
    color: #2c3e50 !important;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* 密码确认输入框样式 */
#confirmPassword {
    transition: border-color 0.3s, box-shadow 0.3s;
}

#confirmPassword.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

#confirmPassword.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
}

/* 用户信息显示样式 */
.user-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.user-info-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.user-info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-weight: 500;
    color: #666;
    margin-right: 8px;
    min-width: 80px;
}

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

@media (max-width: 768px) {
    .user-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        margin-bottom: 4px;
        min-width: auto;
    }
}

/* 加载提示 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知提示 */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    z-index: 4000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.warning {
    background: #ffc107;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 160px;
        background: rgba(15, 52, 96, 0.95);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        color: #ffffff;
        text-decoration: none;
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: translateX(-2px);
    }

    .nav-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.3);
        color: #fff;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
        border-radius: 15px;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .feature-card {
        padding: 1rem 0.5rem;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .feature-icon {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    /* 即将到来的考试移动端优化 */
    .upcoming-exams h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .exam-card {
        padding: 1rem;
        border-radius: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .exam-info h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .exam-info p {
        font-size: 0.8rem;
    }

    .exam-time {
        text-align: left;
        font-size: 0.85rem;
    }

    .countdown {
        font-size: 0.8rem;
    }

    /* 系统特色移动端字体优化 */
    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* 新闻赛事移动端字体优化 */
    .news-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .news-section {
        padding: 35px 0;
        margin-top: 25px;
    }

    .featured-news-item {
        padding: 18px;
        border-radius: 10px;
    }

    .featured-news-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .featured-news-summary {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .featured-news-meta {
        font-size: 0.75rem;
        gap: 12px;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-item {
        padding: 18px;
        border-radius: 8px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-status {
        font-size: 9px;
        padding: 2px 5px;
    }

    .practice-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        min-width: auto;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: 1;
        margin-bottom: 20px;
    }

    .profile-main {
        order: 2;
    }

    /* 移动端个人中心顶部信息 */
    .profile-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px;
        color: white;
        margin-bottom: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .profile-avatar-container {
        position: relative;
        flex-shrink: 0;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }

    .teacher-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ffd700;
        color: #333;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: bold;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

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

    .profile-info h3 {
        margin: 0 0 8px 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
    }

    .profile-info p {
        margin: 0 0 6px 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .teacher-actions {
        margin-top: 10px;
    }

    .teacher-actions .btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
    }

    .teacher-actions .btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    /* 移动端菜单栏 - 三杠下拉式 */
    .profile-menu {
        position: relative;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
        margin-bottom: 20px;
    }

    .menu-items {
        display: none;
    }

    .profile-menu.active .menu-items {
        display: block;
    }

    .profile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        cursor: pointer;
        border: none;
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .profile-menu-toggle:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    }

    .profile-menu-toggle i {
        transition: transform 0.3s ease;
    }

    .profile-menu-toggle.active i {
        transform: rotate(180deg);
    }

    .menu-item {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

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

    .menu-item:hover {
        background: #f8f9fa;
        color: #667eea;
        padding-left: 25px;
    }

    .menu-item.active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        color: #667eea;
        font-weight: 600;
        border-left: 4px solid #667eea;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .exams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .activity-detail-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .feature-card {
        padding: 0.8rem 0.3rem;
        border-radius: 6px;
        font-size: 0.8rem;
    }

    .feature-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .feature-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }

    .feature-icon {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    /* 即将到来的考试小屏幕优化 */
    .upcoming-exams h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .exam-card {
        padding: 0.8rem;
        border-radius: 8px;
        gap: 0.6rem;
    }

    .exam-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .exam-info p {
        font-size: 0.75rem;
    }

    .exam-time {
        font-size: 0.8rem;
    }

    .countdown {
        font-size: 0.75rem;
    }

    /* 系统特色小屏幕字体优化 */
    .features h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* 新闻赛事小屏幕字体优化 */
    .news-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .news-section {
        padding: 25px 0;
        margin-top: 15px;
    }

    .featured-news-item {
        padding: 12px;
        border-radius: 8px;
    }

    .featured-news-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .featured-news-summary {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .featured-news-meta {
        font-size: 0.7rem;
        gap: 10px;
    }

    .news-list {
        gap: 12px;
    }

    .news-item {
        padding: 12px;
        border-radius: 6px;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-status {
        font-size: 8px;
        padding: 1px 4px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .practice-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .practice-info {
        justify-content: space-between;
    }

    .practice-progress {
        margin-left: 0;
        max-width: none;
    }
}

/* 登录提示样式 */
.login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.login-prompt-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-prompt-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.login-prompt-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-prompt-content .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.login-prompt-content .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.login-prompt-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-prompt-content .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.login-prompt-content .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 加载状态样式 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* 用户管理表格样式优化 */
.user-management table {
    width: 100%;
    border-collapse: collapse;
}

.user-management th,
.user-management td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    color: #343a40 !important;
}

.user-management th {
    background: #e9ecef !important;
    font-weight: 600;
    color: #212529 !important;
    border-bottom: 2px solid #dee2e6;
}

.user-management td {
    background: #ffffff !important;
    color: #495057 !important;
}

.user-management tr:nth-child(even) td {
    background: #f8f9fa !important;
}

.user-management tr:hover td {
    background: #e2e6ea !important;
}

.user-management .users-table {
    background: white !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* 强制用户等级列宽度控制 */
.user-management table {
    table-layout: fixed !important;
}

.user-management th:nth-child(5),
.user-management td:nth-child(5) {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
}

.user-management th:nth-child(6),
.user-management td:nth-child(6) {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
}

/* 用户等级徽章样式优化 */
.user-management .level-badge {
    padding: 2px 4px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    min-width: 30px !important;
    max-width: 45px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.user-management .membership-badge {
    padding: 2px 4px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    min-width: 30px !important;
    max-width: 45px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 练习解析页面样式 */
.practice-analysis {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.analysis-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.analysis-header h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100px;
}

.analysis-summary .summary-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.summary-value.correct {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.summary-value.wrong {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.analysis-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.analysis-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analysis-question {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.analysis-question.correct {
    border-color: #4ade80;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.analysis-question.wrong {
    border-color: #f87171;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.analysis-question .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-points {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.question-number {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-status.correct {
    background: #4ade80;
    color: white;
}

.question-status.wrong {
    background: #f87171;
    color: white;
}

.question-content {
    margin-bottom: 1.5rem;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-item.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-item.correct {
    border-color: #4ade80;
    background: #f0fdf4;
    color: #166534;
}

.option-item.wrong {
    border-color: #f87171;
    background: #fef2f2;
    color: #991b1b;
}

.option-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.question-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.explanation-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation-title::before {
    content: "💡";
    font-size: 1.2rem;
}

.explanation-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap; /* 保持换行和空格格式 */
    word-wrap: break-word; /* 长单词自动换行 */
    word-break: break-word; /* 强制换行 */
}

.correct-answer {
    background: #f0fdf4;
    border: 1px solid #4ade80;
    border-radius: 6px;
    padding: 0.75rem;
    color: #166534;
    font-weight: 600;
}

.analysis-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

.analysis-actions .btn {
    min-width: 150px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .practice-analysis {
        padding: 1rem;
    }

    .analysis-header {
        padding: 1.5rem;
    }

    .analysis-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .analysis-content {
        padding: 1.5rem;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .analysis-actions {
        flex-direction: column;
        align-items: center;
    }

    .analysis-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 错题本页面样式 */
.wrong-questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.wrong-questions-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 错题本折叠/展开样式 */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.question-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 新的题目布局样式 - 紧凑版 */
.wrong-question-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wrong-question-item.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.question-left-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 50px;
}

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

.question-checkbox {
    transform: scale(1.2);
    margin: 0;
}

.btn-toggle-details {
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    flex-shrink: 0;
}

.btn-toggle-details:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.toggle-icon.fa-chevron-up {
    transform: rotate(180deg);
}

.question-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    animation: slideDown 0.3s ease-out;
}

.question-details[style*="display: none"] {
    animation: slideUp 0.3s ease-out;
}

/* 题目选项样式优化 */
.question-options {
    margin: 0.75rem 0;
}

.option-item {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.option-item.correct-option {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.option-letter {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #007bff;
}

.option-text {
    color: #495057;
}

/* 答案信息样式优化 */
.question-answer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.answer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.answer-info .label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.answer-info .answer-value {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
}

.user-answer .answer-value {
    color: #dc3545;
    background: #f8d7da;
}

.correct-answer .answer-value {
    color: #28a745;
    background: #d4edda;
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wrong-question-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .question-left-controls {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        min-width: auto;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .question-meta {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .question-answer-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .wrong-questions-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .wrong-questions-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* 选择统计样式 */
.selection-stats {
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
}

.stats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.stats-content {
    flex: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-value span:first-child {
    color: #4caf50;
}

.stats-value span:last-child {
    color: #666;
    font-size: 1.2rem;
}

.stats-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stats-content {
        order: 2;
    }
    
    .stats-actions {
        order: 3;
        justify-content: center;
    }
    
    .stats-icon {
        order: 1;
    }
}

.wrong-questions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stats-overview-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item .stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.125rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    flex-shrink: 0;
}

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

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.125rem;
}

.stat-item .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.stat-card.wrong-questions {
    border-color: #f87171;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f87171;
}

.stat-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.wrong-questions-entry {
    margin: 2rem 0;
}

.entry-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.entry-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.entry-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.entry-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    line-height: 1.5;
}

.entry-content .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.entry-content .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.wrong-questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wrong-question-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.wrong-question-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wrong-question-item.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.question-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.question-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

/* 错题本专用样式 */
.wrong-question-item .question-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

/* 解析按钮样式 */
.explanation-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    margin-right: 8px;
}

.explanation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.explanation-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.explanation-btn i {
    font-size: 0.9rem;
}

.question-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* 错题本专用元数据样式 */
.wrong-question-item .question-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.question-number {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
}

.question-id {
    background: #10b981;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
}

.question-custom-id {
    background: #f59e0b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
}

.question-type {
    background: #8b5cf6;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
}

/* 错题本专用属性标签样式 */
.wrong-question-item .question-number,
.wrong-question-item .question-id,
.wrong-question-item .question-custom-id {
    background: var(--bg-color, #667eea);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 28px;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

.wrong-question-item .question-number {
    --bg-color: #667eea;
}

.wrong-question-item .question-id {
    --bg-color: #adb5bd;
}

.wrong-question-item .question-custom-id {
    --bg-color: #adb5bd;
    position: relative;
    padding-right: 2.5rem;
}

.btn-copy-custom-id {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.btn-copy-custom-id:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.btn-copy-custom-id:active {
    transform: translateY(-50%) scale(0.95);
}

.question-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.question-difficulty.level-1 { background: #dcfce7; color: #166534; }
.question-difficulty.level-2 { background: #fef3c7; color: #92400e; }
.question-difficulty.level-3 { background: #fed7aa; color: #c2410c; }

.question-category {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.question-chapter {
    background: #e0f2fe;
    color: #0277bd;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.question-grade {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.question-content {
    margin-bottom: 0.75rem;
}

.question-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* 题目选项样式 */
.question-options {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 0.4rem 0.6rem;
    margin: 0.2rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid transparent;
}

.option-item:hover {
    background: #f0f4ff;
    border-color: #d1d5db;
}

.option-item.correct-option {
    background: #d1fae5;
    border-color: #10b981;
    font-weight: 600;
}

.option-letter {
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.5rem;
    min-width: 20px;
    flex-shrink: 0;
}

.option-item.correct-option .option-letter {
    color: #10b981;
}

.option-text {
    flex: 1;
    line-height: 1.4;
    color: #374151;
}

.option-item.correct-option .option-text {
    color: #065f46;
}

.question-answer-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.answer-info {
    flex: 1;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.answer-info .label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-info .answer-value {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.answer-info.user-answer {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.answer-info.correct-answer {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.answer-info .label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.question-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .page-info {
    margin: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wrong-questions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .wrong-questions-actions {
        width: 100%;
        justify-content: space-between;
    }

    .wrong-questions-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry-card {
        flex-direction: column;
        text-align: center;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .question-meta {
        flex-wrap: wrap;
    }

    .question-answer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .question-options {
        margin: 0.75rem 0;
    }
    
    .option-item {
        padding: 0.5rem 0.75rem;
    }

    .question-actions {
        justify-content: center;
    }
}

/* 过期题目样式 */
.expired-question {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    opacity: 0.7;
}

.expired-question:hover {
    background-color: #f0f0f0 !important;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

.status-badge.expired {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-badge.limited {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.status-badge.permanent {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 有效期警告样式 */
.validity-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.validity-warning .icon {
    font-size: 20px;
}

.validity-warning .content {
    flex: 1;
}

.validity-warning .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.validity-warning .message {
    font-size: 14px;
    opacity: 0.9;
}

/* 新闻板块样式 */
.news-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 60px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 30px 20px, #eee, transparent),
        radial-gradient(1px 1px at 60px 50px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 100px 30px, #fff, transparent),
        radial-gradient(1px 1px at 140px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 180px 20px, #ddd, transparent),
        radial-gradient(2px 2px at 220px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 260px 40px, #fff, transparent),
        radial-gradient(1px 1px at 300px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 340px 30px, #eee, transparent),
        radial-gradient(1px 1px at 380px 70px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 400px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 0.6;
    z-index: 1;
}

.news-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 3;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.featured-news {
    margin-bottom: 40px;
}

.featured-news-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-news-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.featured-news-item::before {
    content: '⭐ 置顶';
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.featured-news-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-news-summary {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-news-cover {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    border-radius: 0 15px 15px 0;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    align-items: start;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-item.featured {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

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

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.news-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.news-status.published {
    background: #d4edda;
    color: #155724;
}

.news-status.draft {
    background: #fff3cd;
    color: #856404;
}

.news-status.archived {
    background: #f8d7da;
    color: #721c24;
}

.news-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

.news-summary {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-actions {
    text-align: center;
    margin-top: 30px;
}

.news-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* 新闻详情模态框 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.news-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.news-modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.news-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.news-modal-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.news-modal-body {
    padding: 25px 30px;
}

.news-modal-cover {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-modal-content-text {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

/* 新闻响应式 */
@media (max-width: 1024px) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section h2 {
        font-size: 2rem;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-news-item {
        padding: 20px;
    }

    .featured-news-title {
        font-size: 1.5rem;
    }

    .featured-news-cover {
        display: none;
    }

    .news-modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .news-modal-header,
    .news-modal-body {
        padding: 20px;
    }
}

/* 密码修改模态框样式 */
#changePasswordModal .modal-content {
    max-width: 500px;
    width: 90%;
}

#changePasswordModal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#changePasswordModal .btn-outline-primary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#changePasswordModal .btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

#changePasswordModal .btn-outline-primary i {
    margin-right: 5px;
}

#changePasswordModal .error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

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

#changePasswordModal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#changePasswordModal .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#changePasswordModal .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 备案和版权信息样式 */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icp-info {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.icp-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #007bff;
    text-decoration: underline;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 会员权益页面样式 */
.membership-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.membership-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.membership-plan {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.membership-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.membership-plan.featured {
    border-color: #007bff;
    transform: scale(1.05);
}

.membership-plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.plan-level {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.plan-price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.feature-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
}

.feature-item i.fa-check {
    color: #28a745;
}

.feature-item i.fa-times {
    color: #dc3545;
}

.feature-item i.fa-gift {
    color: #ffc107;
}

.feature-item span {
    flex: 1;
    color: #555;
    line-height: 1.4;
}

.plan-action {
    text-align: center;
}

.plan-action .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.membership-comparison {
    margin-bottom: 4rem;
}

.membership-comparison h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.comparison-table {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #333; /* 增加字体颜色对比度 */
    font-weight: 500; /* 增加字体粗细 */
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 700; /* 表头字体更粗 */
    color: #2c3e50; /* 表头字体颜色更深 */
    font-size: 1.1rem; /* 表头字体稍大 */
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 700; /* 第一列字体更粗 */
    color: #2c3e50; /* 第一列字体颜色更深 */
}

.comparison-table td {
    color: #2c3e50; /* 表格内容字体颜色更深 */
    font-size: 1rem; /* 确保字体大小合适 */
    line-height: 1.5; /* 增加行高提高可读性 */
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table tr:hover td {
    color: #1a252f; /* 悬停时字体颜色更深 */
    font-weight: 600; /* 悬停时字体稍粗 */
}

/* 为表格添加更好的视觉层次 */
.comparison-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.3);
}

.comparison-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

/* 优化表格边框和间距 */
.comparison-table table {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th:not(:last-child),
.comparison-table td:not(:last-child) {
    border-right: 1px solid #e9ecef;
}

.membership-faq {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.membership-faq h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .membership-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .membership-plan.featured {
        transform: none;
    }

    .membership-plan.featured:hover {
        transform: translateY(-5px);
    }

    .membership-plan {
        padding: 1.5rem;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        color: #2c3e50; /* 移动端也保持深色字体 */
        font-weight: 500; /* 移动端保持字体粗细 */
    }

    .comparison-table th {
        font-weight: 700; /* 移动端表头字体更粗 */
        color: #1a252f; /* 移动端表头字体更深 */
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        font-weight: 700; /* 移动端第一列字体更粗 */
        color: #1a252f; /* 移动端第一列字体更深 */
    }
}

/* 邀请码管理样式 */
.invite-code-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* 邀请权限规则样式 */
.invite-rules-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rules-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.rules-header h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.rule-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.rule-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
}

.rule-item strong {
    color: #1a252f;
    font-weight: 600;
}

.invite-code-section h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invite-code-section h4::before {
    content: "🎁";
    font-size: 1.2rem;
}

.invite-code-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.invite-stat-card {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.invite-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.invite-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.invite-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.invite-stat-card .stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.invite-code-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.invite-code-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.invite-code-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.invite-code-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.invite-code-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.invite-code-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.invite-code-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.invite-code-actions .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.invite-codes-list {
    margin-bottom: 1.5rem;
}

.invite-code-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.invite-code-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.invite-code-info {
    flex: 1;
}

.invite-code-code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.invite-code-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.invite-code-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invite-code-status.used {
    color: #28a745;
}

.invite-code-status.unused {
    color: #6c757d;
}

.invite-code-status.expired {
    color: #dc3545;
}

.invite-code-actions-item {
    display: flex;
    gap: 0.5rem;
}

.invite-code-actions-item .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invite-code-actions-item .btn-copy {
    background: #17a2b8;
    color: white;
}

.invite-code-actions-item .btn-copy:hover {
    background: #138496;
}

.invite-code-actions-item .btn-delete {
    background: #dc3545;
    color: white;
}

.invite-code-actions-item .btn-delete:hover {
    background: #c82333;
}

.invited-users-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.invited-users-section h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invited-users-section h5::before {
    content: "👥";
    font-size: 1rem;
}

.invited-users-list {
    display: grid;
    gap: 1rem;
}

.invited-user-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.invited-user-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.invited-user-info {
    flex: 1;
}

.invited-user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.invited-user-email {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.invited-user-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 1rem;
}

.invited-user-invite-code {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* 空状态样式 */
.invite-codes-empty,
.invited-users-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.invite-codes-empty i,
.invited-users-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        gap: 6px;
    }

    .icp-info,
    .copyright {
        font-size: 13px;
    }

    .invite-code-stats {
        flex-direction: column;
    }

    .invite-code-actions {
        flex-direction: column;
    }

    .invite-code-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .invite-code-actions-item {
        width: 100%;
        justify-content: flex-end;
    }

    .invited-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 支付模态框样式 */
.payment-modal {
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
}

.payment-content {
    padding: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
}

.payment-product {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.4rem;
    border: 1px solid #e9ecef;
    grid-column: 1;
    grid-row: 1;
}

.payment-methods {
    margin-bottom: 0;
    grid-column: 2;
    grid-row: 1;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.4rem;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
    grid-column: 1 / -1;
    grid-row: 2;
}

.payment-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: end;
}

/* 购买会员弹出框内部文本颜色和排版调整 */
.payment-product .description {
    color: #000 !important;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.payment-product .features h5 {
    color: #000 !important;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.payment-product .features ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.payment-product .features ul li {
    color: #000 !important;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    font-size: 0.75rem;
}

/* 动态生成的商品信息样式 */
.product-description {
    color: #000 !important;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.product-features h5 {
    color: #000 !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-features ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.product-features ul li {
    color: #000 !important;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-size: 0.9rem;
}

/* 订单摘要标题颜色 */
.payment-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #000 !important;
    font-size: 1rem;
}

.payment-product h4 {
    margin: 0 0 0.5rem 0;
    color: #000 !important;
    font-size: 1.1rem;
}

.payment-product .product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000 !important;
    margin: 0.5rem 0;
}

.payment-product .product-description {
    color: #000 !important;
    font-size: 0.9rem;
    margin: 0;
}

.payment-methods {
    margin-bottom: 0.5rem;
}

.payment-methods h4 {
    margin: 0 0 0.3rem 0;
    color: #000 !important;
    font-size: 0.9rem;
}

.payment-options {
    display: flex;
    gap: 0.5rem;
}

.payment-option {
    flex: 1;
    cursor: pointer;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    color: #007bff;
}

.payment-option input[type="radio"]:checked ~ .payment-option {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
}

.payment-option-content i {
    font-size: 1rem;
    color: #007bff;
}

.payment-option-content span {
    font-weight: 500;
    font-size: 0.8rem;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
}

.payment-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.summary-item {
    display: block;
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.85rem;
    line-height: 1.3;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: normal;
    font-size: 0.85rem;
    color: #2c3e50;
}

.summary-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0 0.5rem;
}

.summary-values {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.summary-label {
    color: #000000;
    font-size: 0.85rem;
    display: inline;
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.summary-value {
    color: #000000;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline;
    flex: 1;
    text-align: center;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.payment-actions .btn {
    min-width: 100px;
    font-weight: 600;
}

/* 老师账户订单摘要样式 */
.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.order-summary h6 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-summary p {
    color: #333;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.order-summary strong {
    color: #000;
    font-weight: 600;
}

/* 订单页面样式 */
.orders-container {
    max-width: 100%;
}

.orders-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.orders-list {
    margin-bottom: 1.5rem;
}

.order-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-info {
    flex: 1;
}

.order-number {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-status.paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-status.cancelled {
    background: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-product-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.order-product-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.order-product-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.order-amount {
    text-align: right;
}

.order-amount .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.25rem;
}

.order-amount .payment-method {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.order-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .orders-filter {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-amount {
        text-align: left;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }
}

/* 会员状态显示 */
.current-membership-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.current-membership-status h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.membership-status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.membership-level-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.membership-expiry {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 购买记录样式 */
.membership-purchases {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.membership-purchases h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.purchase-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-info h5 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.purchase-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.purchase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.purchase-status.active {
    background: #d4edda;
    color: #155724;
}

.purchase-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.purchase-status.cancelled {
    background: #fff3cd;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-options {
        flex-direction: column;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .btn {
        width: 100%;
    }

    .membership-status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .purchase-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 邀请进度卡片样式 */
.invite-progress-section {
    margin: 1.5rem 0;
}

.invite-progress-card {
    background: linear-gradient(135deg, #fff9c4 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.invite-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    animation: shimmer 2s infinite;
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-header {
    margin-bottom: 1rem;
}

.progress-header h4 {
    color: #92400e;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-text {
    color: #92400e;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.progress-text.encouragement {
    color: #dc3545;
    font-weight: 600;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #fef3c7;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f59e0b;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-label {
    color: #92400e;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.reward-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #f59e0b;
}

.reward-info h5 {
    color: #92400e;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reward-info p {
    color: #92400e;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.reward-info .reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 1px solid #fbbf24;
}

.reward-info .reward-item.unlocked {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #166534;
}

.reward-info .reward-item.unlocked .reward-icon {
    color: #22c55e;
}

.reward-icon {
    font-size: 1.1rem;
    color: #f59e0b;
}

.reward-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}

.reward-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.reward-status.unlocked {
    background: #22c55e;
    color: white;
}

.reward-status.pending {
    background: #f59e0b;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .invite-progress-card {
        padding: 1rem;
    }

    .progress-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .progress-label {
        text-align: center;
        min-width: auto;
    }

    .reward-info .reward-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 解析媒体样式 */
.explanation-images,
.explanation-videos {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.explanation-image-item,
.explanation-video-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.explanation-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explanation-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.explanation-image.expanded {
    max-height: none;
    max-width: 90vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.explanation-video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.image-caption,
.video-caption {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
    word-break: break-all;
}

/* 解析媒体响应式设计 */
@media (max-width: 768px) {
    .explanation-images,
    .explanation-videos {
        flex-direction: column;
        align-items: center;
    }

    .explanation-image-item,
    .explanation-video-item {
        max-width: 100%;
        width: 100%;
    }

    .explanation-image.expanded {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* 解析锁定样式 */
.explanation-locked {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.explanation-locked .lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.explanation-locked .lock-message h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.explanation-locked .lock-message p {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.upgrade-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 锁定媒体内容样式 */
.explanation-image-item.locked,
.explanation-video-item.locked {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
}

.locked-overlay .lock-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.locked-overlay .lock-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
}

.explanation-image-item.locked img,
.explanation-video-item.locked video {
    filter: blur(2px);
    opacity: 0.5;
}

/* 解析文本样式增强 */
.explanation-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin: 15px 0;
    line-height: 1.8;
    font-size: 1rem;
    color: #495057;
    white-space: pre-wrap; /* 保持换行和空格格式 */
    word-wrap: break-word; /* 长单词自动换行 */
    word-break: break-word; /* 强制换行 */
}

/* 升级模态框样式增强 */
.upgrade-modal .membership-level {
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgrade-modal .membership-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upgrade-modal .membership-level.recommended {
    border: 2px solid #28a745 !important;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.upgrade-modal .membership-level.recommended h4 {
    color: #155724 !important;
}

.upgrade-modal .membership-level.recommended p {
    color: #155724 !important;
}

/* 解析媒体占位符样式 */
.explanation-media-placeholder {
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    text-align: center;
}

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

.placeholder-icon {
    font-size: 48px;
    opacity: 0.7;
}

.placeholder-text h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.placeholder-text p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 考试权限信息样式 */
.exam-permissions-container {
    margin-bottom: 30px;
}

.permissions-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

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

.permissions-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-level-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-level-badge.level-1 {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.user-level-badge.level-2 {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid #007bff;
    color: #007bff;
}

.user-level-badge.level-3 {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.permissions-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.permission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.permission-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.permission-label {
    flex: 1;
    font-weight: 500;
}

.permission-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.permission-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.permission-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.upgrade-suggestion {
    text-align: center;
    padding-top: 10px;
}

.upgrade-suggestion .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.upgrade-suggestion .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .permission-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .permissions-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .permissions-card {
        padding: 20px;
    }
}

/* 增强的考试权限显示样式 */
.exam-permissions-container {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.exam-permissions-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.permissions-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.permissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.user-level-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-level-badge.level-1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.user-level-badge.level-2 {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.user-level-badge.level-3 {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.permission-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.permission-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.permission-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.permission-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.permission-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.unlimited-text {
    color: #4ecdc4;
    font-weight: bold;
}

.exhausted-text {
    color: #ff6b6b;
    font-weight: bold;
}

.remaining-text {
    color: #feca57;
    font-weight: bold;
}

.usage-progress {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.progress-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.progress-text {
    font-weight: bold;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.permission-description {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.permission-description p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.upgrade-suggestion {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upgrade-icon {
    font-size: 2rem;
    color: #feca57;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text h4 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 1.1rem;
}

.upgrade-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.btn-upgrade {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

/* 考试按钮容器样式 */
.exam-button-container {
    position: relative;
    display: inline-block;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.permission-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.permission-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.exam-button-container:hover .permission-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 文本样式类 */
.text-center {
    text-align: center;
}

.text-muted {
    color: #333 !important;
}

/* 确保考试记录相关文字颜色正确 */
.exam-records p,
.recent-exams-list p,
#examRecordsList p,
#recentExamsList p {
    color: #333 !important;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .permission-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .permissions-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .permissions-card {
        padding: 20px;
    }
}

/* 补考权限限制样式 */
.permission-restricted {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
}

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

.restricted-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.restricted-text h4 {
    color: #495057;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.restricted-text p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.restricted-text .btn {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.restricted-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}



/* 练习权限信息框样式 */
.practice-permissions-container {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.practice-permissions-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
}

/* 练习权限网格布局 */
.practice-permissions-container .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* 练习权限项目样式 */
.practice-permissions-container .permission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.practice-permissions-container .permission-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.practice-permissions-container .permission-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.practice-permissions-container .permission-icon i {
    font-size: 18px;
}

.practice-permissions-container .permission-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.practice-permissions-container .permission-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.practice-permissions-container .permission-value {
    font-size: 16px;
    color: #212529;
    font-weight: 600;
}

/* 颜色样式 */
.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .practice-permissions-container {
        margin-top: 30px;
        padding-top: 15px;
    }
}

/* 价格显示样式 */
.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 10px;
    font-size: 0.9em;
}

.sale-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

/* 分两行显示的价格样式 */
.price-line {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1.2;
}

.price-line span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.original-price-line {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.5rem;
}

.original-price-line span {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}

.sale-price-line {
    color: #007bff;
    font-size: 2rem;
    font-weight: bold;
}

.sale-price-line span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

/* ===== 活动专栏样式 ===== */

/* 活动时间线容器 */
.activities-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 时间线主体 */
.timeline {
    position: relative;
    padding: 20px 0 20px 100px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

/* 时间线项目 */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 时间显示 */
.timeline-time {
    position: absolute;
    left: -90px;
    top: 20px;
    width: 70px;
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 8px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    z-index: 3;
}

.timeline-time .time-date {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    line-height: 1.2;
    margin-bottom: 2px;
}

.timeline-time .time-time {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline {
        padding: 20px 0 20px 50px;
    }

    .timeline-time {
        left: -45px;
        width: 40px;
        padding: 4px 2px;
    }

    .timeline-time .time-date {
        font-size: 10px;
        font-weight: 600;
        line-height: 1.1;
    }

    .timeline-time .time-time {
        font-size: 8px;
        line-height: 1.1;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 30px;
    }

    .activity-card {
        margin-left: 0;
        padding: 16px;
    }

    .activity-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .activity-image {
        height: 150px;
        object-fit: cover;
        border-radius: 6px;
    }

    .activity-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .info-item {
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .info-item i {
        width: 12px;
        font-size: 0.7rem;
    }

    .activity-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .activity-meta {
        gap: 8px;
        margin-bottom: 12px;
    }

    .activity-meta-item {
        font-size: 0.75rem;
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #667eea;
    z-index: 2;
}

.timeline-item.featured::before {
    background: #ffd700;
    box-shadow: 0 0 0 3px #ffd700;
}

/* 活动卡片 */
.activity-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex: 1;
    margin-left: 0;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.activity-card.featured {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

/* 活动图片 */
.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-image {
    transform: scale(1.05);
}

/* 活动内容 */
.activity-content {
    padding: 25px;
}

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

.activity-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.activity-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-status.upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.activity-status.ongoing {
    background: #e8f5e8;
    color: #2e7d32;
}

.activity-status.ended {
    background: #f3e5f5;
    color: #7b1fa2;
}

.activity-status.cancelled {
    background: #ffebee;
    color: #c62828;
}

/* 活动信息 */
.activity-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.info-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* 活动描述 */
.activity-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 活动标签 */
.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.activity-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 活动操作 */
.activity-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 0.9rem;
}

.participant-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fee-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.fee-info.free {
    color: #28a745;
}

.fee-info.paid {
    color: #dc3545;
}

.fee-info.donation {
    color: #ffc107;
}

/* 活动详情页面 */
.activity-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.activity-detail-content {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 全局图片溢出修复 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* 活动详情图片特殊处理 */
.activity-detail-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block !important;
    box-sizing: border-box !important;
}

.activity-detail-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.activity-detail-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.activity-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item i {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 2px;
}

.meta-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

/* 活动内容 */
.activity-detail-body {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.activity-detail-body h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.activity-detail-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 参与者列表 */
.participants-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 报名按钮 */
.register-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.register-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-button.registered {
    background: #28a745;
}

.register-button.registered:hover {
    background: #218838;
}

/* 空状态 */
.activities-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.activities-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.activities-empty h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 加载状态 */
.activities-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.activities-loading i {
    font-size: 2rem;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 强制所有容器不溢出 */
    .container {
        padding: 0 10px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .activity-detail-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 5px;
        width: 12px;
        height: 12px;
    }

    .activity-info {
        grid-template-columns: 1fr;
    }

    .activity-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .activity-detail-meta {
        grid-template-columns: 1fr;
    }

    .participants-list {
        grid-template-columns: 1fr;
    }

    .activity-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 活动详情图片移动端优化 */
    .activity-detail-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
        border-radius: 8px;
        margin-bottom: 20px;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .activity-detail-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .activity-detail-info {
        padding: 20px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .activity-detail-content {
        padding: 0 10px;
        overflow: hidden;
    }
}

/* 活动管理样式 */
.activity-management {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.activity-management-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.activity-management-header h2 {
    margin: 0;
    font-size: 2rem;
}

.activity-management-actions {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.activity-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .filter-group label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #e8f4fd;
    }
}

/* 宇宙星空主题通用样式 */
.space-theme {
    background: rgba(15, 52, 96, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.space-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 144, 226, 0.3);
}

/* 宇宙主题文字颜色 */
.space-text-primary {
    color: #e8f4fd;
}

.space-text-secondary {
    color: #b8d4f0;
}

.space-text-accent {
    color: #4a90e2;
}

/* 宇宙主题背景渐变 */
.space-bg-gradient {
    background: linear-gradient(135deg,
        rgba(15, 52, 96, 0.1) 0%,
        rgba(22, 33, 62, 0.1) 50%,
        rgba(26, 26, 46, 0.1) 100%);
}

/* 宇宙主题按钮 */
.space-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #e8f4fd;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.space-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.space-btn:hover::before {
    left: 100%;
}

.space-btn:hover {
    background: linear-gradient(135deg, #5ba0f2 0%, #4a90e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* 宇宙主题输入框 */
.space-input {
    background: rgba(15, 52, 96, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #e8f4fd;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.space-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    background: rgba(15, 52, 96, 0.2);
}

.space-input::placeholder {
    color: #b8d4f0;
}

/* 宇宙主题表格 */
.space-table {
    background: rgba(15, 52, 96, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.space-table th {
    background: rgba(15, 52, 96, 0.2);
    color: #e8f4fd;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.space-table td {
    color: #b8d4f0;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.space-table tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* 宇宙主题模态框 */
.space-modal {
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.space-modal-header {
    background: linear-gradient(135deg,
        rgba(15, 52, 96, 0.8) 0%,
        rgba(22, 33, 62, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8f4fd;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.space-modal-body {
    color: #b8d4f0;
    padding: 1.5rem;
}

/* 宇宙主题进度条 */
.space-progress {
    background: rgba(15, 52, 96, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.space-progress-bar {
    background: linear-gradient(90deg, #4a90e2, #20c997);
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.space-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 宇宙主题加载动画 */
.space-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    border-top-color: #4a90e2;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 宇宙主题发光效果 */
.space-glow {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes glow {
    from { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(74, 144, 226, 0.3);
        background: linear-gradient(135deg, 
            rgba(74, 144, 226, 0.08) 0%, 
            rgba(74, 144, 226, 0.12) 50%, 
            rgba(74, 144, 226, 0.08) 100%);
    }
    to { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(74, 144, 226, 0.5);
        background: linear-gradient(135deg, 
            rgba(74, 144, 226, 0.12) 0%, 
            rgba(74, 144, 226, 0.18) 50%, 
            rgba(74, 144, 226, 0.12) 100%);
    }
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.activity-list {
    padding: 20px 30px;
}

.activity-list-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.activity-list-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.activity-list-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.activity-list-content {
    flex: 1;
}

.activity-list-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.activity-list-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-list-description {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: #007bff;
    color: white;
}

.action-btn.edit:hover {
    background: #0056b3;
}

.action-btn.delete {
    background: #dc3545;
    color: white;
}

.action-btn.delete:hover {
    background: #c82333;
}

.action-btn.publish {
    background: #28a745;
    color: white;
}

.action-btn.publish:hover {
    background: #218838;
}

.action-btn.draft {
    background: #6c757d;
    color: white;
}

.action-btn.draft:hover {
    background: #5a6268;
}

/* 富文本编辑器样式 */
.rich-text-editor {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: #e9ecef;
}

.editor-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.editor-content {
    min-height: 300px;
    padding: 15px;
    font-size: 1rem;
    line-height: 1.6;
    outline: none;
}

.editor-content:empty::before {
    content: '请输入活动内容...';
    color: #999;
    font-style: italic;
}

/* 老师账户样式 */
.teacher-account-section {
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h3 i {
    font-size: 2.2rem;
    color: #ffd700;
}

.section-description {
    font-size: 1.1rem;
    color: #b8c5d6;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.teacher-features {
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: #e8f4fd;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #b8c5d6;
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

.teacher-pricing {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
}

.pricing-header h4 {
    font-size: 1.8rem;
    color: #e8f4fd;
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-price {
    font-size: 3rem;
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-price span {
    font-size: 1.2rem;
    color: #b8c5d6;
    font-weight: 400;
}

.pricing-description {
    color: #b8c5d6;
    margin-bottom: 30px;
    font-size: 1rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #e8f4fd;
    font-size: 0.95rem;
}

.pricing-feature i {
    color: #28a745;
    margin-right: 12px;
    font-size: 1rem;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.teacher-process {
    text-align: center;
}

.teacher-process h4 {
    font-size: 1.8rem;
    color: #e8f4fd;
    margin-bottom: 30px;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.1rem;
    color: #e8f4fd;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #b8c5d6;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .teacher-account-section {
        margin: 40px 0;
        padding: 30px 20px;
    }

    .section-header h3 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* 活动详情图片小屏幕优化 */
    .activity-detail-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        object-fit: cover !important;
        border-radius: 6px;
        margin-bottom: 15px;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .activity-detail-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .activity-detail-info {
        padding: 15px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .activity-detail-content {
        padding: 0 5px;
        overflow: hidden;
    }

    .activity-detail-meta {
        gap: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .teacher-account-section {
        padding: 20px 15px;
    }

    .section-header h3 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 25px 15px;
    }

    .pricing-price {
        font-size: 2rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 老师账户模态框样式 */
.teacher-account-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.teacher-account-content {
    padding: 30px;
}

.teacher-intro {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.intro-header h4 {
    font-size: 1.5rem;
    color: #e8f4fd;
    margin-bottom: 10px;
    font-weight: 700;
}

.intro-description {
    color: #b8c5d6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #e8f4fd;
    font-size: 0.95rem;
}

.feature-item i {
    color: #28a745;
    margin-right: 10px;
    font-size: 1rem;
}

.teacher-process {
    margin-bottom: 30px;
}

.teacher-process h4 {
    font-size: 1.3rem;
    color: #e8f4fd;
    margin-bottom: 20px;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1rem;
    color: #e8f4fd;
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    color: #b8c5d6;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-info {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h4 {
    font-size: 1.3rem;
    color: #e8f4fd;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.qr-code {
    flex-shrink: 0;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b8c5d6;
}

.qr-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.qr-placeholder p {
    font-size: 0.9rem;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-text p {
    color: #b8c5d6;
    margin-bottom: 10px;
    line-height: 1.5;
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4 {
    font-size: 1.2rem;
    color: #e8f4fd;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #e8f4fd;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.payment-option-content i {
    font-size: 1.5rem;
}

.payment-summary {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-summary h4 {
    font-size: 1.2rem;
    color: #e8f4fd;
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-item {
    display: block;
    margin-bottom: 5px;
    color: #b8c5d6;
    font-size: 0.85rem;
    line-height: 1.3;
}

.summary-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0 0.5rem;
}

.summary-values {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.summary-label {
    color: #000000;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.summary-value {
    color: #000000;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8f4fd;
}

.teacher-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .teacher-account-modal {
        max-width: 95%;
        margin: 5% auto;
    }

    .teacher-account-content {
        padding: 20px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .payment-options {
        flex-direction: column;
    }

    .teacher-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .teacher-account-content {
        padding: 15px;
    }

    .teacher-intro,
    .contact-info {
        padding: 20px;
    }

    .qr-placeholder {
        width: 120px;
        height: 120px;
    }

    .qr-placeholder i {
        font-size: 1.5rem;
    }
}

/* 购买会员分栏布局移动端响应式 */
@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .payment-product {
        grid-column: 1;
        grid-row: 1;
    }

    .payment-methods {
        grid-column: 1;
        grid-row: 2;
    }

    .payment-summary {
        grid-column: 1;
        grid-row: 3;
    }

    .payment-actions {
        grid-column: 1;
        grid-row: 4;
        justify-content: center;
    }
}
/* CSS Updated Wed Oct 15 11:11:55 PM CST 2025 */
/* CSS Updated Wed Oct 15 11:18:28 PM CST 2025 - Avatar text color changed to black */
/* CSS Updated Wed Oct 15 11:26:48 PM CST 2025 - Avatar management improvements */
/* CSS Updated Wed Oct 15 11:31:49 PM CST 2025 - Force hide default avatar placeholder */

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.lazy-load.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
