/**
 * math-practice.css
 * 口算练习工具 - 样式文件
 */

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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 浮动装饰背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(74, 144, 217, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(126, 211, 33, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFF;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.header h1 {
    font-size: 1.5em;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFF;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 主容器 */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
}

/* 视图容器 */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 首页视图 ==================== */
.home-view {
    text-align: center;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-avatar {
    font-size: 4em;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.user-details h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 4px;
}

.user-details p {
    color: #666;
    font-size: 1em;
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

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

.score-value {
    font-size: 2em;
    font-weight: bold;
    color: #4A90D9;
}

.score-label {
    font-size: 0.9em;
    color: #666;
}

.mode-selection {
    margin-top: 30px;
}

.section-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 16px;
    font-weight: bold;
}

/* 年级选择卡片 */
.grade-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.grade-card {
    background: linear-gradient(135deg, #FFF 0%, #F5F5F5 100%);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.grade-card.selected {
    border-color: #4A90D9;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.grade-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.grade-name {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    margin-bottom: 4px;
}

.grade-desc {
    font-size: 0.85em;
    color: #666;
}

/* 模式选择卡片 */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mode-card {
    background: linear-gradient(135deg, #FFF 0%, #F5F5F5 100%);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

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

.mode-card.selected {
    border-color: #7ED321;
    background: linear-gradient(135deg, #F1F8E9 0%, #DCEDC8 100%);
}

.mode-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.mode-name {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
}

.mode-desc {
    font-size: 0.8em;
    color: #666;
}

/* 难度选择 */
.difficulty-selector {
    margin: 20px 0;
}

.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.diff-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.diff-btn.easy {
    background: #E8F5E9;
    color: #7ED321;
}

.diff-btn.medium {
    background: #FFF9E6;
    color: #FFD93D;
}

.diff-btn.hard {
    background: #FFEBEE;
    color: #FF6B6B;
}

.diff-btn:hover {
    transform: scale(1.05);
}

.diff-btn.selected {
    box-shadow: 0 0 0 3px currentColor;
}

/* 开始按钮 */
.start-btn {
    background: linear-gradient(135deg, #7ED321 0%, #68A50D 100%);
    color: #FFF;
    border: none;
    padding: 16px 60px;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 6px 20px rgba(126, 211, 33, 0.4);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(126, 211, 33, 0.5);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* 模式选项 */
.mode-options {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}

.mode-options.active {
    display: block;
}

.mode-options h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 12px;
}

.option-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 20px;
    border: 2px solid #4A90D9;
    border-radius: 10px;
    background: #FFF;
    color: #4A90D9;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: #E3F2FD;
}

.option-btn.selected {
    background: #4A90D9;
    color: #FFF;
}

/* ==================== 练习视图 ==================== */
.practice-view {
    text-align: center;
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.progress-info {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

.timer {
    font-size: 1.3em;
    color: #FF6B6B;
    font-weight: bold;
}

/* 连击显示 */
.streak-display {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: #FFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 50;
}

.streak-display.show {
    opacity: 1;
    transform: scale(1);
}

/* 题目显示 */
.question-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

/* 陪伴角色 */
.companion {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3em;
    opacity: 0.3;
}

.question {
    font-size: 4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 4px;
}

.question.correct {
    animation: correctAnswer 0.5s ease;
}

.question.wrong {
    animation: wrongAnswer 0.5s ease;
}

@keyframes correctAnswer {
    0% { transform: scale(1); color: #333; }
    50% { transform: scale(1.2); color: #7ED321; }
    100% { transform: scale(1); color: #333; }
}

@keyframes wrongAnswer {
    0%, 100% { transform: translateX(0); color: #333; }
    25% { transform: translateX(-20px); color: #FF6B6B; }
    75% { transform: translateX(20px); color: #FF6B6B; }
}

/* 鼓励语 */
.encouragement {
    font-size: 1.5em;
    color: #4A90D9;
    font-weight: bold;
    margin: 20px 0;
    min-height: 40px;
}

/* 答案输入区域 */
.answer-section {
    margin-top: 30px;
}

.answer-input {
    width: 200px;
    padding: 15px 20px;
    font-size: 2em;
    text-align: center;
    border: 3px solid #4A90D9;
    border-radius: 16px;
    font-weight: bold;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.answer-input:focus {
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.2);
}

.answer-input.correct {
    border-color: #7ED321;
    background: #E8F5E9;
    color: #7ED321;
}

.answer-input.wrong {
    border-color: #FF6B6B;
    background: #FFEBEE;
    color: #FF6B6B;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 特效动画 */
@keyframes confettiFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes starPop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0; }
}

@keyframes arcExpand {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0;
    }
}

@keyframes textPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes wrongMark {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 数字键盘 */
.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 300px;
    margin: 20px auto 0;
}

.num-btn {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    color: #FFF;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(74, 144, 217, 0.3);
    transition: all 0.2s ease;
}

.num-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 144, 217, 0.4);
}

.num-btn:active {
    transform: translateY(-1px);
}

.num-btn.clear {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.num-btn.submit {
    background: linear-gradient(135deg, #7ED321 0%, #68A50D 100%);
    box-shadow: 0 4px 10px rgba(126, 211, 33, 0.3);
}

.num-btn.voice {
    background: linear-gradient(135deg, #A78BFA 0%, #9C27B0 100%);
    box-shadow: 0 4px 10px rgba(167, 139, 250, 0.3);
}

/* 停止按钮 */
.stop-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: #FFF;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* ==================== 结果视图 ==================== */
.result-view {
    text-align: center;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.result-title {
    font-size: 2em;
    color: #4A90D9;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 20px;
    border-radius: 16px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #4A90D9;
}

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

.new-badges {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFECB3 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.new-badges h4 {
    font-size: 1.2em;
    color: #FF8F00;
    margin-bottom: 15px;
}

.badge-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-item {
    background: #FFF;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 1.8em;
}

.badge-name {
    font-weight: bold;
    color: #333;
}

/* 错题展示 */
.wrong-questions {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.wrong-questions h4 {
    font-size: 1.2em;
    color: #FF6B6B;
    margin-bottom: 15px;
}

.wrong-item {
    background: #FFEBEE;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrong-content {
    text-align: left;
}

.wrong-question {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.wrong-answer {
    color: #FF6B6B;
    margin-top: 5px;
}

.retry-btn {
    background: #4A90D9;
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #357ABD;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #7ED321 0%, #68A50D 100%);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* ==================== 闯关视图 ==================== */
.level-view {
    text-align: center;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.level-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.level-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.level-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
}

.level-card:not(.locked):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.level-card.completed {
    border: 3px solid #7ED321;
}

.level-number {
    font-size: 2em;
    font-weight: bold;
    color: #4A90D9;
    margin-bottom: 5px;
}

.level-name {
    font-size: 0.85em;
    color: #333;
    font-weight: bold;
    margin-bottom: 3px;
}

.level-stars {
    font-size: 1.2em;
    margin-top: 5px;
}

.level-stars .star {
    color: #FFD93D;
}

.level-stars .star.empty {
    color: #E0E0E0;
}

/* ==================== 个人中心视图 ==================== */
.profile-view {
    text-align: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-avatar-section {
    margin-bottom: 30px;
}

.current-avatar {
    font-size: 6em;
    margin-bottom: 15px;
}

.nickname-input {
    padding: 10px 20px;
    font-size: 1.2em;
    border: 2px solid #4A90D9;
    border-radius: 10px;
    text-align: center;
    width: 200px;
}

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

.summary-item {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 15px;
    border-radius: 12px;
}

.summary-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4A90D9;
}

.summary-label {
    font-size: 0.8em;
    color: #666;
}

/* 勋章墙 */
.badge-wall {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.badge-wall h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

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

.badge-cell {
    background: #FFF;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.badge-cell.earned {
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-cell .icon {
    font-size: 2em;
    margin-bottom: 5px;
}

.badge-cell .name {
    font-size: 0.75em;
    color: #333;
    font-weight: bold;
}

/* 设置选项 */
.settings-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
}

.settings-section h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F5F5F5;
    border-radius: 10px;
    margin-bottom: 10px;
}

.setting-label {
    font-size: 1em;
    color: #333;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #7ED321;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.clear-btn {
    background: #FF6B6B;
    color: #FFF;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header h1 {
        font-size: 1.2em;
    }

    .main-container {
        padding: 70px 15px 30px;
    }

    .grade-cards,
    .mode-cards {
        grid-template-columns: 1fr;
    }

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

    .question {
        font-size: 3em;
    }

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

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

    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 217, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 217, 0.7);
}
