body.game-layout {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    --title-color: #5a9a5a;
    --title-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    --back-btn-bg: rgba(255, 255, 255, 0.8);
    --back-btn-color: #555;
    --text-secondary: #555;
}

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

.difficulty-selector label {
    font-size: 1.2rem;
    color: #555;
    margin-right: 10px;
}

.diff-btn {
    padding: 8px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    background: #ddd;
    color: #555;
    transition: all 0.3s;
}

.diff-btn:hover {
    background: #ccc;
}

.diff-btn.active {
    background: linear-gradient(135deg, #7ec850 0%, #5a9a5a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(90, 154, 90, 0.4);
}

/* 游戏区域 */
.game-area {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #87CEEB 0%, #a8d8f0 40%, #c5e8b7 60%, #7ec850 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 多层背景 */
.background-layer {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* 阳光光晕 */
.sun-rays {
    top: 0;
    height: 200px;
    background: radial-gradient(ellipse at 75% 0%, rgba(255, 236, 179, 0.6) 0%, transparent 50%);
}

/* 远山 */
.mountains {
    bottom: 38%;
    height: 100px;
    background:
        linear-gradient(135deg, transparent 40%, #9bc88b 40%, #9bc88b 42%, transparent 42%),
        linear-gradient(225deg, transparent 38%, #8ab87a 38%, #8ab87a 42%, transparent 42%),
        linear-gradient(150deg, transparent 35%, #a5d495 35%, #a5d495 40%, transparent 40%);
    opacity: 0.6;
}

/* 小丘陵 */
.hills {
    bottom: 35%;
    height: 60px;
    background:
        radial-gradient(ellipse 120% 100% at 20% 100%, #8bc77a 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 100%, #9ad48a 0%, transparent 45%),
        radial-gradient(ellipse 80% 100% at 80% 100%, #8bc77a 0%, transparent 50%);
}

/* 天空和云 */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
}

/* 太阳 */
.sun {
    position: absolute;
    top: 25px;
    right: 60px;
    width: 70px;
    height: 70px;
}

.sun-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #fff9c4 0%, #ffee58 40%, #ffca28 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 202, 40, 0.8), 0 0 100px rgba(255, 238, 88, 0.5);
    animation: sun-pulse 4s ease-in-out infinite;
}

.sun-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255, 238, 88, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: sun-glow 3s ease-in-out infinite;
}

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

@keyframes sun-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 云朵 */
.cloud {
    position: absolute;
    opacity: 0.95;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.cloud-svg {
    width: 100%;
    height: 100%;
}

.cloud-1 {
    width: 100px;
    height: 60px;
    top: 40px;
    left: 5%;
    animation: float-cloud 25s ease-in-out infinite;
}

.cloud-2 {
    width: 130px;
    height: 75px;
    top: 80px;
    right: 20%;
    animation: float-cloud 30s ease-in-out infinite reverse;
}

.cloud-3 {
    width: 85px;
    height: 55px;
    top: 30px;
    left: 40%;
    animation: float-cloud 20s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes float-cloud {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-5px); }
    50% { transform: translateX(35px) translateY(0); }
    75% { transform: translateX(15px) translateY(5px); }
}

/* 飘动的花瓣 */
.floating-petal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff 0%, #fce4ec 100%);
    border-radius: 50% 50% 50% 0;
    opacity: 0.7;
    animation: petal-float 15s linear infinite;
}

.petal-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.petal-2 {
    top: 35%;
    left: 70%;
    animation-delay: -5s;
    width: 6px;
    height: 6px;
}

.petal-3 {
    top: 15%;
    left: 50%;
    animation-delay: -10s;
    width: 10px;
    height: 10px;
}

@keyframes petal-float {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translate(300px, 150px) rotate(720deg); opacity: 0; }
}

/* 地面 */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
}

.grass-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 小花装饰 */
.ground-flowers {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 40px;
}

.small-flower {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: flower-sway 3s ease-in-out infinite;
}

.small-flower::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #4a8c42;
    transform: translateX(-50%);
}

.small-flower::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #ff9ecd 30%, #ff69b4 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    border-radius: 50%;
    z-index: 1;
}

.flower-1 { left: 8%; animation-delay: 0s; }
.flower-2 { left: 25%; animation-delay: -0.5s; transform: scale(0.8); }
.flower-3 { right: 20%; animation-delay: -1s; }
.flower-4 { right: 5%; animation-delay: -1.5s; transform: scale(0.7); }

@keyframes flower-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* 蒲公英容器 */
.dandelion-container {
    position: absolute;
    bottom: 32%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dandelion-svg {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
}

/* 蒲公英 */
.dandelion {
    position: relative;
}

.head {
    position: relative;
    width: 130px;
    height: 130px;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #f5e6d3 0%, #d4c4a8 50%, #bfaa8c 100%);
    border-radius: 50%;
    z-index: 5;
    box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.center-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #c9b896 0%, #a99776 100%);
    border-radius: 50%;
}

/* 种子容器 */
.seeds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 单个种子 - 精美绒毛伞设计 */
.seed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transition: opacity 0.3s;
}

.seed-stem {
    width: 2px;
    height: 35px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(220,220,210,0.7) 100%);
    margin: 0 auto;
    border-radius: 1px;
}

/* 精美绒毛伞 */
.seed-fluff {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
}

.seed-fluff::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.8) 0%, transparent 30%),
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.8) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.8) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.8) 0%, transparent 30%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0%, transparent 25%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.7) 0%, transparent 25%),
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.7) 0%, transparent 25%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.7) 0%, transparent 25%);
    filter: blur(0.5px);
}

.seed-fluff::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(240,240,235,0.8) 100%);
    border-radius: 50%;
    box-shadow:
        0 -8px 0 2px rgba(255,255,255,0.6),
        0 8px 0 2px rgba(255,255,255,0.6),
        8px 0 0 2px rgba(255,255,255,0.6),
        -8px 0 0 2px rgba(255,255,255,0.6),
        5.5px -5.5px 0 1.5px rgba(255,255,255,0.5),
        -5.5px -5.5px 0 1.5px rgba(255,255,255,0.5),
        5.5px 5.5px 0 1.5px rgba(255,255,255,0.5),
        -5.5px 5.5px 0 1.5px rgba(255,255,255,0.5);
}

/* 飞走的种子动画 */
.seed.flying {
    animation: fly-away 4s ease-out forwards;
}

@keyframes fly-away {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--fly-rotate));
    }
}

/* 摇摆动画 */
.dandelion.shaking .seed {
    animation: shake 0.15s ease-in-out infinite;
}

.dandelion.shaking .dandelion-svg .stem {
    animation: stem-shake 0.2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(var(--base-rotate)) translateY(0);
    }
    50% {
        transform: rotate(calc(var(--base-rotate) + 5deg)) translateY(-3px);
    }
}

@keyframes stem-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* 状态区域 */
.status {
}

.instruction {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.start-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #90EE90 0%, #5a9a5a 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(90, 154, 90, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 154, 90, 0.5);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 音量指示器 */
.volume-meter {
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
    display: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.volume-meter.active {
    display: block;
}

.volume-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #81c784 0%, #4caf50 50%, #388e3c 100%);
    border-radius: 10px;
    transition: width 0.05s;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-text {
    font-size: 1.1rem;
    color: #555;
    display: none;
}

.progress-text.active {
    display: block;
}

/* 成功消息 */
.success-message {
    font-size: 2rem;
    color: #5a9a5a;
    animation: bounce 0.5s ease infinite;
}

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

/* 飘走的种子(全屏) */
.floating-seed {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    animation: float-across 10s linear forwards;
}

@keyframes float-across {
    0% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) rotate(1080deg) scale(0.5);
    }
}

/* 种子飘动路径变化 */
.floating-seed:nth-child(odd) {
    animation: float-across-wavy 12s ease-in-out forwards;
}

@keyframes float-across-wavy {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(calc(var(--end-x) * 0.25), calc(var(--end-y) * 0.3 - 30px)) rotate(180deg);
    }
    50% {
        transform: translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5 + 20px)) rotate(360deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(calc(var(--end-x) * 0.75), calc(var(--end-y) * 0.7 - 15px)) rotate(540deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) rotate(720deg) scale(0.3);
    }
}
