/* ========================================
   AI 探险家 - 补充样式
   ======================================== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-message {
    margin-top: 20px;
    color: white;
    font-size: 1rem;
}

/* Toast 消息 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--error-color);
}

.toast-warning {
    background: var(--warning-color);
}

.toast-info {
    background: var(--primary-color);
}

/* 无关卡提示 */
.no-levels {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* 代码编辑器高亮 */
.code-editor::-moz-selection {
    background: rgba(0, 102, 204, 0.3);
}

.code-editor::selection {
    background: rgba(0, 102, 204, 0.3);
}

/* 输出区域样式 */
.output-content:empty::before {
    content: '等待运行...';
    color: var(--text-muted);
    font-style: italic;
}

/* 测验解析显示 */
.quiz-explanation.show {
    animation: fadeIn 0.3s ease;
}

/* 关卡卡片锁定状态 */
.level-card.locked .btn-start-level {
    display: none !important;
}

/* 关卡进度徽章 */
.level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 步骤内容动画 */
.step-content {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 成就系统 */
.achievement-system {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.achievement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.achievement-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.achievement-item.unlocked {
    border: 2px solid var(--success-color);
    box-shadow: var(--shadow-sm);
}

.achievement-item.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-item.unlocked .achievement-icon {
    background: var(--success-color);
    color: white;
}

.achievement-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.achievement-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 排行榜 */
.leaderboard {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.leaderboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.leaderboard-item:hover {
    background: var(--bg-primary);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #ffd700;
}

.leaderboard-rank.silver {
    color: #c0c0c0;
}

.leaderboard-rank.bronze {
    color: #cd7f32;
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-score {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 统计数据面板 */
.stats-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.15rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.time {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.event {
    background: var(--bg-primary);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 历史时间线 */
.history-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.history-item {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition-normal);
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.history-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.history-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 交互测验 */
.interactive-quiz {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.interactive-quiz h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.interactive-quiz .quiz-option {
    background: var(--bg-card);
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-bottom: 0.75rem;
    text-align: left;
}

.interactive-quiz .quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

.interactive-quiz .quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

.interactive-quiz .quiz-option.correct {
    border-color: var(--success-color);
    background: rgba(0, 200, 81, 0.15);
    animation: correct-answer 0.5s ease-out;
}

.interactive-quiz .quiz-option.incorrect {
    border-color: var(--error-color);
    background: rgba(255, 68, 68, 0.15);
    animation: incorrect-answer 0.5s ease-out;
}

.interactive-quiz .quiz-explanation {
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.interactive-quiz .quiz-explanation.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.interactive-quiz .quiz-explanation h4 {
    color: var(--success-color);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.interactive-quiz .quiz-explanation p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 代码块样式 */
.highlight-code {
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.highlight-code pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

code {
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
}

pre code {
    background: transparent;
    padding: 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--text-muted);
}

th {
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--primary-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(0, 102, 204, 0.05);
}

/* 提示信息 */
.hint-box {
    background: rgba(255, 187, 51, 0.1);
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
}

.hint-box h4 {
    color: var(--warning-color);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.hint-box li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.hint-box li:last-child {
    margin-bottom: 0;
}

/* 示例框 */
.example-box {
    background: var(--bg-primary);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.example-box h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.example-mini {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.example-mini pre {
    margin: 0;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.anatomy-box {
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.anatomy-box pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* 测验结果 */
.quiz-results {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.result-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.result-summary h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.score-total {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.score-message {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

.score-message.success {
    color: var(--success-color);
}

.score-message.error {
    color: var(--error-color);
}

.result-details {
    margin-top: 2rem;
}

.result-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-item.correct {
    border-left: 4px solid var(--success-color);
}

.result-item.incorrect {
    border-left: 4px solid var(--error-color);
}

.result-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-answer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.result-explanation {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .loading-overlay {
        justify-content: flex-end;
        padding-bottom: 20vh;
    }

    .toast {
        top: 60px;
        left: 10px;
        right: 10px;
        transform: translateY(-20px);
        max-width: none;
    }

    .toast.show {
        transform: translateY(0);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-timeline {
        grid-template-columns: 1fr;
    }

    .interactive-quiz .quiz-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* 打印样式 */
@media print {
    .loading-overlay,
    .debug-panel,
    .btn-back,
    .btn-run,
    .btn-reset,
    .btn-clear-output {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .screen {
        display: block !important;
    }
}

/* ========================================
   漫画查看器样式
   ======================================== */
.comic-viewer {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
}

.comic-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comic-prev,
.comic-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comic-prev:hover,
.comic-next:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.comic-page {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 80px;
    text-align: center;
}

.comic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.comic-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comic-captions {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.comic-captions p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.comic-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.comic-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
}

.comic-dots .dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.comic-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 漫画查看器响应式 */
@media (max-width: 768px) {
    .comic-viewer {
        padding: 1rem;
    }

    .comic-nav {
        gap: 0.5rem;
    }

    .comic-prev,
    .comic-next {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .comic-page {
        font-size: 1rem;
        min-width: 60px;
    }

    .comic-container {
        max-height: 350px;
    }

    .comic-container img {
        max-height: 350px;
    }

    .comic-captions p {
        font-size: 1rem;
    }

    .comic-dots {
        gap: 0.5rem;
    }

    .comic-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* ========================================
   主题选择卡片样式
   ======================================== */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.theme-card {
    position: relative;
    background: var(--warm-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 2px solid var(--warm-border);
    cursor: pointer;
    transition: var(--transition-normal);
    overflow: hidden;
    text-align: center;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition-normal);
}

.theme-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.theme-card:hover::before { opacity: 1; }

.theme-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.15), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card:hover .theme-card-glow {
    opacity: 1;
}

.theme-icon-wrap {
    margin-bottom: 1.5rem;
}

.theme-icon-lg {
    font-size: 4rem;
    display: block;
    margin: 0 auto;
}

.theme-card h3.theme-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.theme-card .theme-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.theme-tags .tag {
    background: var(--warm-bg);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-tags .tag.tag-ai {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
}

.theme-tags .tag.tag-warm {
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
}

.btn-theme {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 年级统计样式 */
.levels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.level-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.level-stats .stat-icon {
    font-size: 1.25rem;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--warm-border);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-cn);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(255, 107, 107, 0.05);
}

/* 主题选择响应式 */
@media (max-width: 768px) {
    .theme-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .theme-card {
        padding: 1.5rem;
    }
    
    .theme-icon-lg {
        font-size: 3rem;
    }
    
    .theme-card h3.theme-name {
        font-size: 1.25rem;
    }
    
    .levels-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   首页大标题样式
   ======================================== */
.course-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    width: 100%;
}

.course-title {
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 30%, #4ECDC4 70%, #7EDDD6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 30px rgba(255, 107, 107, 0.4);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.5));
    }
}

.course-subtitle {
    font-size: 1.75rem;
    color: #636E72;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.course-description {
    font-size: 1.125rem;
    color: #B2BEC3;
    margin: 0;
}

/* ========================================
   主题网格布局 - 每行4个，两行
   ======================================== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.theme-grid .theme-card {
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-grid .theme-icon-wrap {
    margin-bottom: 1rem;
}

.theme-grid .theme-icon-lg {
    font-size: 3.5rem;
}

.theme-grid .theme-card h3.theme-name {
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
}

.theme-grid .theme-card .theme-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.theme-grid .theme-tags {
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.theme-grid .theme-tags .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.25rem;
}

.theme-grid .btn-theme {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    margin-top: auto;
    width: 100%;
}

/* ========================================
   版权信息样式
   ======================================== */
.home-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--warm-border);
    text-align: center;
}

.footer-content {
    padding: 1rem 0;
}

.footer-content .company-info {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.footer-content .copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* 响应式适配 - 平板 */
@media (max-width: 1150px) {
    .theme-grid {
        grid-template-columns: repeat(3, 260px);
        gap: 1.5rem;
    }
    
    .course-title {
        font-size: 2.5rem;
    }
    
    .course-subtitle {
        font-size: 1.25rem;
    }
}

/* 响应式适配 - 手机 */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 150px);
        gap: 1rem;
    }
    
    .theme-grid .theme-card {
        min-height: auto;
        padding: 1rem;
    }
    
    .theme-grid .theme-icon-lg {
        font-size: 2.5rem;
    }
    
    .theme-grid .theme-card h3.theme-name {
        font-size: 1rem;
    }
    
    .theme-grid .theme-card .theme-subtitle {
        font-size: 0.75rem;
    }
    
    .theme-grid .theme-tags {
        gap: 0.2rem;
    }
    
    .theme-grid .theme-tags .tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .course-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .course-title {
        font-size: 2rem;
    }
    
    .course-subtitle {
        font-size: 1rem;
    }
    
    .home-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .footer-content .company-info {
        font-size: 0.875rem;
    }
    
    .footer-content .copyright {
        font-size: 0.75rem;
    }
}