/* 全局与卡通主题样式 */
:root {
    --primary-green: #57C05B;
    --primary-green-hover: #48a54c;
    --bg-light-green: #E8F5E9;
    --accent-orange: #FF9800;
    --accent-orange-hover: #F57C00;
    --accent-yellow: #FFEB3B;
    --wood-brown-light: #8D6E63;
    --wood-brown-dark: #5D4037;
    --border-color: #3e2723;
    --text-dark: #3e2723;
    --bubble-bg: #FFFFFF;
    
    /* 手绘描边与圆角 */
    --hand-drawn-border: 4px solid var(--border-color);
    --hand-drawn-radius: 20px 15px 20px 15px / 15px 20px 15px 20px;
    --hand-drawn-radius-small: 12px 10px 12px 10px / 10px 12px 10px 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Fredoka', 'Microsoft YaHei', 'PingFang SC', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #A5D6A7 0%, #E8F5E9 100%); /* 更具绿野特征的卡通背景渐变 */
    color: var(--text-dark);
    min-height: 100vh;
    padding: 20px 10px;
    overflow-x: hidden;
    position: relative;
}

/* 装饰背景元素 */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    border: 3px solid #CFD8DC;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    border: 3px solid #CFD8DC;
}
.cloud-1 {
    width: 120px;
    height: 40px;
    top: 50px;
    left: 10%;
    animation: drift 25s linear infinite;
}
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 15px; border-bottom: none; }
.cloud-1::after { width: 70px; height: 70px; top: -35px; right: 15px; border-bottom: none; }

.cloud-2 {
    width: 160px;
    height: 50px;
    top: 120px;
    right: 15%;
    animation: drift 35s linear infinite reverse;
}
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 20px; border-bottom: none; }
.cloud-2::after { width: 90px; height: 90px; top: -45px; right: 20px; border-bottom: none; }

.leaf {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: sway 6s ease-in-out infinite;
}
.leaf-1 { top: 80px; left: 5%; animation-delay: 0s; }
.leaf-2 { top: 200px; right: 6%; animation-delay: 2s; }
.leaf-3 { bottom: 100px; left: 8%; animation-delay: 4s; }
.leaf-4 { bottom: 220px; right: 8%; animation-delay: 1s; font-size: 28px; }
.leaf-5 { top: 350px; left: 4%; animation-delay: 3.5s; font-size: 22px; }

/* 整体卡片容器 */
.game-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #FFFDE7; /* 温暖明亮的暖黄背景 */
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    box-shadow: 8px 8px 0px var(--border-color);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

/* 卡通植物挂件装饰 */
.game-container::before {
    content: '🍀';
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 2rem;
    filter: drop-shadow(2px 2px 0px var(--border-color));
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}
.game-container::after {
    content: '🌿';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2rem;
    filter: drop-shadow(-2px 2px 0px var(--border-color));
    animation: float 4s ease-in-out infinite 2s;
    z-index: 10;
}

/* 头部样式 */
.game-header {
    text-align: center;
    margin-bottom: 25px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E7D32; /* 浓郁的森林卡通绿 */
    text-shadow: 2px 2px 0px var(--accent-yellow);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--wood-brown-light);
    font-weight: 600;
}

/* 关卡导航（木质路标与叶子卡片结合风格） */
.level-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.nav-btn {
    background: linear-gradient(135deg, #9E7E73 0%, #5D4037 100%);
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius-small);
    color: #FFFFFF;
    padding: 14px 8px;
    cursor: pointer;
    box-shadow: 0 6px 0 var(--border-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.255);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--border-color);
    background: linear-gradient(135deg, #B08E83 0%, #6E4D43 100%);
}

.nav-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--border-color);
}

.nav-btn.active {
    background: linear-gradient(135deg, #81C784 0%, #388E3C 100%);
    border-color: #1B5E20;
    box-shadow: 0 6px 0 #1B5E20, 0 0 15px rgba(76, 175, 80, 0.4);
    transform: translateY(2px);
}

.nav-btn.active:hover {
    transform: translateY(0px);
    box-shadow: 0 8px 0 #1B5E20, 0 0 20px rgba(76, 175, 80, 0.6);
}

/* 头像与 Logo 容器 */
.nav-icon-container {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 2px 2px 0px var(--border-color);
    position: relative;
    background: #FFFFFF;
    transition: transform 0.25s ease;
}

/* 各关卡独立的粉彩背景色，使头像更突出可爱 */
.nav-btn:nth-child(1) .nav-icon-container { background: #E8F5E9; }
.nav-btn:nth-child(2) .nav-icon-container { background: #FFF9C4; }
.nav-btn:nth-child(3) .nav-icon-container { background: #E3F2FD; }
.nav-btn:nth-child(4) .nav-icon-container { background: #FCE4EC; }

.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

/* 微调有些头像的显示位置 */
.nav-btn:nth-child(2) .nav-avatar {
    transform: scale(1.05) translateY(2px);
}
.nav-btn:nth-child(3) .nav-avatar {
    transform: scale(1.1) translateY(1px);
}
.nav-btn:nth-child(4) .nav-avatar {
    transform: scale(1.1) translateY(1px);
}

.nav-logo {
    width: 85%;
    height: 85%;
}

/* 悬停与激活时，头像微缩图有跳跃感 */
.nav-btn:hover .nav-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.nav-btn.active .nav-icon-container {
    border-color: #1B5E20;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 2px 3px 0px #1B5E20;
    animation: bounceMini 2s infinite ease-in-out;
}

/* 文字群组样式 */
.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.btn-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.btn-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFE082;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.nav-btn.active .btn-subtitle {
    color: #FFF9C4;
}

@keyframes bounceMini {
    0%, 100% { transform: scale(1.1) rotate(-5deg) translateY(0); }
    50% { transform: scale(1.1) rotate(-5deg) translateY(-4px); }
}

/* 关卡展示面板 */
.game-content {
    background: #FFFFFF;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    padding: 25px;
    min-height: 450px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.level-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.level-panel.active {
    display: block;
}

.level-intro {
    margin-bottom: 25px;
    border-bottom: 2px dashed #D7CCC8;
    padding-bottom: 15px;
}

.level-intro h2 {
    font-size: 1.6rem;
    color: var(--primary-green-hover);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.level-intro h2::before {
    content: '🌱';
    margin-right: 8px;
    font-size: 1.8rem;
}

.level-intro p {
    font-size: 1rem;
    color: #795548;
    font-weight: 500;
}

/* ==========================================================================
   第一关：作品展示 (蔬菜卡片 Grid)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.card-item {
    background: #FFF;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius-small);
    padding: 12px;
    box-shadow: 4px 4px 0px var(--border-color);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-item:hover {
    transform: scale(1.05) rotate(1.5deg);
    background: #E8F5E9; /* 悬浮时带淡绿色背景，体现绿野感 */
    box-shadow: 8px 8px 0px var(--border-color);
}

/* 轮流微小倾斜度增加手绘随性风格 */
.card-item:nth-child(even):hover {
    transform: scale(1.05) rotate(-1.5deg);
    background: #E8F5E9;
}

.card-img-wrapper {
    width: 100%;
    height: 180px;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #E8F5E9;
    margin-bottom: 12px;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-tag {
    background: var(--accent-yellow);
    border: 2px solid var(--border-color);
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px var(--border-color);
}

/* ==========================================================================
   角色与气泡对话样式 (通用设计)
   ========================================================================== */
.character-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: var(--hand-drawn-border);
    background: #FFF9C4;
    padding: 5px;
    box-shadow: 4px 4px 0px var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.avatar-container img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

.bubble-speech {
    background: var(--bubble-bg);
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    padding: 18px 22px;
    box-shadow: 4px 4px 0px var(--border-color);
    position: relative;
    width: 100%;
    max-width: 380px;
}

.bubble-arrow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 15px solid var(--border-color);
}

.bubble-arrow::after {
    content: '';
    position: absolute;
    top: 4px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid var(--bubble-bg);
}

.bubble-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

.bubble-text strong {
    color: var(--accent-orange-hover);
}

/* ==========================================================================
   视频展示区通用样式
   ========================================================================== */
.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.video-frame {
    width: 100%;
    max-width: 540px;
    aspect-ratio: 16 / 9;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 6px 6px 0px var(--border-color);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: var(--accent-orange);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 0 var(--border-color);
    transition: transform 0.15s ease, background-color 0.15s ease;
    margin-bottom: 12px;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid #FFFFFF;
}

.video-overlay:hover .play-btn {
    transform: scale(1.1);
    background: var(--accent-orange-hover);
}

.overlay-text {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* ==========================================================================
   第二关：自吸水盆双栏布局
   ========================================================================== */
.designer-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 30px;
    align-items: start;
    margin-top: 15px;
}

@media (max-width: 820px) {
    .designer-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   第三关：种植蔬菜教程
   ========================================================================== */
.coach-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 30px;
    align-items: start;
    margin-top: 15px;
}

@media (max-width: 820px) {
    .coach-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 进度条指示器 */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    margin-bottom: 25px;
    position: relative;
    padding: 0 10px;
}

.step-dot {
    width: 34px;
    height: 34px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--border-color);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 2px 0px var(--border-color);
}

.step-dot.active {
    background: var(--accent-orange);
    color: #FFF;
    transform: scale(1.15);
    box-shadow: 3px 3px 0px var(--border-color);
}

.step-dot.completed {
    background: var(--primary-green);
    color: #FFF;
}

.step-line {
    flex-grow: 1;
    height: 5px;
    background: var(--border-color);
    margin: 0 -2px;
    z-index: 1;
}

/* AI种植教练闪烁动效及指示 */
#coach-avatar-container {
    transition: transform 0.2s ease;
}

.click-pulse {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--accent-orange);
    animation: pulse 1.5s infinite;
    pointer-events: none;
}

/* 控制按钮区域 */
.control-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    width: 100%;
}

.action-btn {
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius-small);
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--border-color);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.action-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-color);
}

.next-step-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #FFB74D 100%);
    color: #FFFFFF;
    padding: 14px 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.next-step-btn:hover {
    background: linear-gradient(135deg, var(--accent-orange-hover) 0%, #FFA726 100%);
}

.reset-btn {
    background: linear-gradient(135deg, #CFD8DC 0%, #90A4AE 100%);
    color: var(--text-dark);
    padding: 12px 22px;
    font-size: 1.05rem;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #B0BEC5 0%, #78909C 100%);
}

/* ==========================================================================
   第四关：AI 医生 (腾讯元启链接跳转)
   ========================================================================== */
.doctor-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 30px;
    align-items: center;
    margin-top: 15px;
}

@media (max-width: 820px) {
    .doctor-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.doctor-action-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.doctor-btn {
    background: linear-gradient(135deg, #81C784 0%, #4CAF50 100%);
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    padding: 22px 30px;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 6px 6px 0px var(--border-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 360px;
    width: 100%;
}

.doctor-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 8px 10px 0px var(--border-color);
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
}

.doctor-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--border-color);
}

.doctor-btn-icon {
    font-size: 2.8rem;
    animation: float 3s ease-in-out infinite;
}

.doctor-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.doctor-btn-text span {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.doctor-btn-text small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================================================
   第一关 Lightbox 遮罩弹框
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 18, 11, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out forwards;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: var(--hand-drawn-border);
    border-radius: var(--hand-drawn-radius);
    background-color: #FFF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    z-index: 1002;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 35px;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 1001;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--accent-orange);
    border-color: var(--border-color);
    color: var(--border-color);
    box-shadow: 0 0 10px rgba(255,152,0,0.5);
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--wood-brown-dark);
    padding: 6px 20px;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

/* ==========================================================================
   动画定义
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drift {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(0); }
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-8px); }
}

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

.animate-bounce-slow {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        transform: scale(1.08);
        opacity: 0.3;
        box-shadow: 0 0 0 15px rgba(255, 152, 0, 0);
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* 适配大屏幕与平板时的对话气泡调整 */
@media (min-width: 821px) {
    .bubble-arrow {
        top: 50%;
        left: -15px;
        transform: translateY(-50%);
        border-bottom: 12px solid transparent;
        border-top: 12px solid transparent;
        border-right: 15px solid var(--border-color);
        border-left: none;
    }
    .bubble-arrow::after {
        top: -10px;
        left: 4px;
        border-bottom: 10px solid transparent;
        border-top: 10px solid transparent;
        border-right: 12px solid var(--bubble-bg);
        border-left: none;
    }
    .character-section {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .bubble-speech {
        max-width: 320px;
    }
}

/* 移动端关卡导航自适应 */
@media (max-width: 680px) {
    .level-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .nav-btn {
        padding: 12px 6px;
        gap: 6px;
    }
    .nav-icon-container {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    .btn-title {
        font-size: 0.95rem;
    }
    .btn-subtitle {
        font-size: 0.75rem;
    }
}
