body.game-layout {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    --title-color: #1e90ff;
    --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, #1e90ff 0%, #0066cc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

/* 游戏区域 */
.game-area {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 天空 */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(180deg, #87CEEB 0%, #a8d8f0 60%, #b8e0f8 100%);
}

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

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

.sun-rays-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    animation: sun-rotate 20s linear infinite;
}

.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, rgba(255, 202, 40, 0.8) 0%, transparent 100%);
    transform-origin: center top;
    border-radius: 2px;
}

.sun-ray:nth-child(1) { transform: translate(-50%, 0) rotate(0deg) translateY(-30px); }
.sun-ray:nth-child(2) { transform: translate(-50%, 0) rotate(45deg) translateY(-30px); }
.sun-ray:nth-child(3) { transform: translate(-50%, 0) rotate(90deg) translateY(-30px); }
.sun-ray:nth-child(4) { transform: translate(-50%, 0) rotate(135deg) translateY(-30px); }
.sun-ray:nth-child(5) { transform: translate(-50%, 0) rotate(180deg) translateY(-30px); }
.sun-ray:nth-child(6) { transform: translate(-50%, 0) rotate(225deg) translateY(-30px); }
.sun-ray:nth-child(7) { transform: translate(-50%, 0) rotate(270deg) translateY(-30px); }
.sun-ray:nth-child(8) { transform: translate(-50%, 0) rotate(315deg) translateY(-30px); }

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

@keyframes sun-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 云朵 */
.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: 120px;
    height: 70px;
    top: 25px;
    left: 5%;
    animation: cloud-drift 35s linear infinite;
}

.cloud-2 {
    width: 100px;
    height: 60px;
    top: 50px;
    left: 40%;
    animation: cloud-drift 45s linear infinite;
    animation-delay: -15s;
}

.cloud-3 {
    width: 80px;
    height: 50px;
    top: 15px;
    left: 70%;
    animation: cloud-drift 30s linear infinite;
    animation-delay: -10s;
}

@keyframes cloud-drift {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(calc(100vw + 150px)); }
}

/* 海鸥 */
.seagulls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.seagull {
    position: absolute;
    animation: seagull-fly 12s ease-in-out infinite;
}

.seagull-svg {
    width: 30px;
    height: 15px;
    animation: seagull-flap 0.4s ease-in-out infinite;
}

.seagull-1 {
    top: 30px;
    left: 20%;
    animation-delay: 0s;
}

.seagull-2 {
    top: 50px;
    left: 35%;
    animation-delay: -4s;
    transform: scale(0.8);
}

.seagull-3 {
    top: 25px;
    left: 55%;
    animation-delay: -8s;
    transform: scale(0.6);
}

@keyframes seagull-fly {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(50px) translateY(-10px); }
    50% { transform: translateX(100px) translateY(5px); }
    75% { transform: translateX(50px) translateY(-5px); }
}

@keyframes seagull-flap {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

/* 海面 */
.sea {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58%;
    background: linear-gradient(180deg, #4169E1 0%, #1e90ff 30%, #0066cc 70%, #004d99 100%);
    overflow: hidden;
}

/* 多层波浪 */
.waves-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
}

.wave {
    position: absolute;
    width: 200%;
    height: 60px;
    left: 0;
}

.wave-back {
    top: 0;
    animation: wave-move 8s linear infinite;
    opacity: 0.5;
}

.wave-mid {
    top: 10px;
    animation: wave-move 6s linear infinite reverse;
    opacity: 0.6;
}

.wave-front {
    top: 20px;
    animation: wave-move 4s linear infinite;
    opacity: 0.7;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 水面光斑 */
.water-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 赛道 */
.race-track {
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
    height: 120px;
    transform: translateY(-50%);
}

/* 起点/终点线 */
.start-line,
.finish-line {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-line {
    left: 30px;
}

.finish-line {
    right: 30px;
}

.line-pole {
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, #fff 10%, #ff0 10%, #ff0 20%, #fff 20%, #fff 30%, #ff0 30%, #ff0 40%, #fff 40%, #fff 50%, #ff0 50%, #ff0 60%, #fff 60%, #fff 70%, #ff0 70%, #ff0 80%, #fff 80%, #fff 90%, #ff0 90%, #ff0 100%);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.finish-line .line-pole {
    background: linear-gradient(180deg, #fff 0%, #fff 10%, #000 10%, #000 20%, #fff 20%, #fff 30%, #000 30%, #000 40%, #fff 40%, #fff 50%, #000 50%, #000 60%, #fff 60%, #fff 70%, #000 70%, #000 80%, #fff 80%, #fff 90%, #000 90%, #000 100%);
}

.line-flag {
    position: absolute;
    top: -25px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.start-flag {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.finish-flag {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 帆船 */
.sailboat {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 112px;
    transition: left 0.1s linear;
}

.boat-svg {
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

/* 帆的动画 */
.sail {
    transition: d 0.3s, fill 0.3s;
}

.sailboat.sailing .sail {
    d: path("M52,15 L52,85 Q80,50 52,15");
    fill: url(#sailFilledGradient);
}

.sailboat.sailing .sail-stripe {
    animation: stripe-wave 0.3s ease-in-out infinite;
}

@keyframes stripe-wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* 旗帜飘动 */
.flag {
    animation: flag-wave 0.5s ease-in-out infinite;
    transform-origin: 50px 14px;
}

@keyframes flag-wave {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.85); }
}

/* 帆船摇摆 */
.sailboat.sailing {
    animation: boat-bob 0.6s ease-in-out infinite;
}

@keyframes boat-bob {
    0%, 100% {
        transform: translateY(-50%) rotate(-3deg);
    }
    50% {
        transform: translateY(calc(-50% - 8px)) rotate(3deg);
    }
}

/* 水花效果 */
.splash-container {
    position: absolute;
    bottom: 10px;
    left: -15px;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.splash {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(173, 216, 230, 0.5) 50%, transparent 70%);
    border-radius: 50%;
    animation: splash-burst 0.6s ease-out forwards;
}

@keyframes splash-burst {
    0% {
        transform: scale(0.3) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-20px);
        opacity: 0;
    }
}

/* 水花滴 */
.splash-drop {
    position: absolute;
    width: 6px;
    height: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(173, 216, 230, 0.7) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: drop-fly 0.5s ease-out forwards;
}

@keyframes drop-fly {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) translateX(var(--drop-x)) scale(0.5);
    }
}

/* 进度条 */
.progress-bar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
}

.progress-track {
    position: relative;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #32CD32 0%, #00FF00 50%, #7FFF00 100%);
    border-radius: 13px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.progress-boat-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    transition: left 0.1s linear;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

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

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

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

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

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

/* 音量指示器 */
.volume-meter {
    width: 200px;
    height: 20px;
    background: rgba(30, 144, 255, 0.2);
    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, #1e90ff 0%, #00bfff 50%, #87ceeb 100%);
    border-radius: 10px;
    transition: width 0.05s;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

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

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

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

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

/* 胜利特效 */
.victory-splash {
    position: absolute;
    pointer-events: none;
    font-size: 2rem;
    animation: victory-pop 1s ease-out forwards;
}

@keyframes victory-pop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
}

/* 风效果指示器 */
.wind-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #555;
    opacity: 0;
    transition: opacity 0.3s;
}

.wind-indicator.active {
    opacity: 1;
}

.wind-arrows {
    display: flex;
    gap: 3px;
}

.wind-arrow {
    color: #1e90ff;
    animation: wind-pulse 0.5s ease-in-out infinite;
}

.wind-arrow:nth-child(2) { animation-delay: 0.1s; }
.wind-arrow:nth-child(3) { animation-delay: 0.2s; }

@keyframes wind-pulse {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}
