/* 语文森林 - 竹简阶梯独立入口样式 */

.chinese-forest {
    position: relative;
    min-height: 100vh;
    padding: 16px;
    background: linear-gradient(180deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chinese-forest-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(76, 175, 80, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 30% at 20% 90%, rgba(129, 199, 132, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 90%, rgba(129, 199, 132, 0.2) 0%, transparent 60%);
    z-index: 0;
}

.chinese-forest-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; gap: 8px;
    padding: 8px 16px; margin-bottom: 8px;
}

.chinese-forest-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 18px;
    color: #2E7D32;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chinese-forest-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1B5E20;
}

.chinese-forest-icon {
    font-size: 26px;
}

.chinese-forest-wubao {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    color: #2E7D32;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wubao-icon {
    font-size: 16px;
}

.chinese-forest-subtitle {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 14px;
    color: #558B2F;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.chinese-forest-tree {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.chinese-forest-tree::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #8D6E63 0%, #6D4C41 100%);
    border-radius: 3px;
    transform: translateX(-50%);
    opacity: 0.3;
}

.chinese-forest-levels {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chinese-forest-level {
    position: relative;
    width: 70%;
    margin: 0 auto;
    min-height: 110px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.chinese-forest-level:nth-child(odd) {
    margin-left: 5%;
}

.chinese-forest-level:nth-child(even) {
    margin-right: 5%;
}

.chinese-forest-level:active {
    transform: scale(0.98);
}

.bamboo-top,
.bamboo-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

.bamboo-top {
    top: 4px;
}

.bamboo-bottom {
    bottom: 4px;
}

.level-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    opacity: 0.5;
}

.level-content {
    position: relative;
    padding: 14px 16px;
    text-align: center;
    color: #1B5E20;
}

.level-number {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 2px;
}

.level-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.level-grade {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.level-stars {
    font-size: 14px;
    margin-bottom: 6px;
}

.level-stars .star {
    margin: 0 2px;
}

.level-progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: #1B5E20;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 状态样式 */
.chinese-forest-level.level-locked {
    filter: grayscale(0.6);
    opacity: 0.7;
}

.chinese-forest-level.level-completed {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.chinese-forest-level.level-completed .level-content {
    color: #1B5E20;
}

.chinese-forest-level.level-current {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: bamboo-glow 2s ease-in-out infinite;
}

@keyframes bamboo-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.12); }
}

/* 小屏幕适配 */
@media (max-width: 360px) {
    .chinese-forest-level {
        width: 80%;
        min-height: 100px;
    }

    .level-name {
        font-size: 16px;
    }
}

.chinese-forest-header .cf-icon { font-size: 28px; }
.chinese-forest-header .cf-name { font-size: 20px; font-weight: 700; color: #2e7d32; }
.chinese-forest-header .cf-wubao { margin-left: auto; font-size: 14px; font-weight: 600; color: #2e7d32; }
