/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(135, 206, 250, 0.8) 0%,
        rgba(70, 130, 180, 0.9) 30%,
        rgba(25, 25, 112, 1) 70%,
        rgba(0, 0, 139, 1) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* 背景渐变动画 */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 主容器 */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 鱼缸样式 */
.fish-tank {
    position: relative;
    width: 400px;
    height: 300px;
    background: linear-gradient(180deg, 
        rgba(135, 206, 250, 0.3) 0%,
        rgba(70, 130, 180, 0.4) 50%,
        rgba(25, 25, 112, 0.5) 100%);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 40px;
    animation: tank-float 6s ease-in-out infinite;
}

/* 鱼缸浮动动画 */
@keyframes tank-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* 水波纹效果 */
.water-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: ripple 4s linear infinite;
}

@keyframes ripple {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 小鱼样式 */
.fish {
    position: absolute;
    font-size: 24px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.fish-1 {
    top: 20%;
    left: 10%;
    animation: swim-1 8s infinite;
}

.fish-2 {
    top: 50%;
    right: 15%;
    animation: swim-2 10s infinite;
    transform: scaleX(-1);
}

.fish-3 {
    bottom: 30%;
    left: 20%;
    animation: swim-3 12s infinite;
}

.fish-4 {
    top: 70%;
    right: 25%;
    animation: swim-4 9s infinite;
    transform: scaleX(-1);
}

/* 鱼游泳动画 */
@keyframes swim-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -20px) rotate(5deg); }
    50% { transform: translate(100px, 10px) rotate(-3deg); }
    75% { transform: translate(150px, -10px) rotate(2deg); }
}

@keyframes swim-2 {
    0%, 100% { transform: scaleX(-1) translate(0, 0) rotate(0deg); }
    33% { transform: scaleX(-1) translate(-80px, 30px) rotate(-5deg); }
    66% { transform: scaleX(-1) translate(-40px, -20px) rotate(3deg); }
}

@keyframes swim-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(30px, -15px) rotate(8deg); }
    40% { transform: translate(80px, 5px) rotate(-4deg); }
    60% { transform: translate(120px, -25px) rotate(6deg); }
    80% { transform: translate(60px, 10px) rotate(-2deg); }
}

@keyframes swim-4 {
    0%, 100% { transform: scaleX(-1) translate(0, 0) rotate(0deg); }
    50% { transform: scaleX(-1) translate(-100px, -30px) rotate(4deg); }
}

/* 气泡样式 */
.bubble {
    position: absolute;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(173, 216, 230, 0.6) 50%, 
        rgba(135, 206, 250, 0.3) 100%);
    border-radius: 50%;
    animation: bubble-rise linear infinite;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.bubble-1 {
    width: 8px;
    height: 8px;
    left: 15%;
    bottom: 0;
    animation-duration: 6s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 12px;
    height: 12px;
    left: 35%;
    bottom: 0;
    animation-duration: 8s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 6px;
    height: 6px;
    left: 55%;
    bottom: 0;
    animation-duration: 7s;
    animation-delay: 4s;
}

.bubble-4 {
    width: 10px;
    height: 10px;
    left: 75%;
    bottom: 0;
    animation-duration: 9s;
    animation-delay: 1s;
}

.bubble-5 {
    width: 14px;
    height: 14px;
    left: 85%;
    bottom: 0;
    animation-duration: 10s;
    animation-delay: 3s;
}

/* 气泡上升动画 */
@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-30px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(-280px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-300px) scale(0);
        opacity: 0;
    }
}

/* 水草样式 */
.seaweed {
    position: absolute;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to top, 
        #228B22 0%, 
        #32CD32 50%, 
        #90EE90 100%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom center;
    animation: sway ease-in-out infinite;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.seaweed-1 {
    left: 10%;
    height: 80px;
    animation-duration: 4s;
    animation-delay: 0s;
}

.seaweed-2 {
    left: 25%;
    height: 100px;
    animation-duration: 5s;
    animation-delay: 1s;
}

.seaweed-3 {
    right: 15%;
    height: 90px;
    animation-duration: 4.5s;
    animation-delay: 2s;
}

/* 水草摇摆动画 */
@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

/* 加载内容区域 */
.loading-content {
    text-align: center;
    color: white;
    z-index: 10;
}

/* 标题样式 */
.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, 
        #ff6b6b, 
        #4ecdc4, 
        #45b7d1, 
        #96ceb4, 
        #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-gradient 4s ease infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes title-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 副标题样式 */
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 进度条容器 */
.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 进度条 */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #ff6b6b 0%, 
        #4ecdc4 25%, 
        #45b7d1 50%, 
        #96ceb4 75%, 
        #feca57 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* 进度文字 */
.progress-text {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
}

/* 加载信息 */
.loading-messages {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.8;
}

/* 浮动装饰元素 */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float-around 20s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.floating-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.floating-item:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: -12s;
    animation-duration: 22s;
}

.floating-item:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-delay: -8s;
    animation-duration: 28s;
}

.floating-item:nth-child(4) {
    bottom: 30%;
    right: 10%;
    animation-delay: -18s;
    animation-duration: 24s;
}

.floating-item:nth-child(5) {
    bottom: 10%;
    left: 20%;
    animation-delay: -3s;
    animation-duration: 26s;
}

.floating-item:nth-child(6) {
    top: 40%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 23s;
}

.floating-item:nth-child(7) {
    top: 80%;
    left: 60%;
    animation-delay: -9s;
    animation-duration: 27s;
}

.floating-item:nth-child(8) {
    top: 30%;
    left: 70%;
    animation-delay: -21s;
    animation-duration: 25s;
}

/* 浮动动画 */
@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 40px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(-50px, -20px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fish-tank {
        width: 320px;
        height: 240px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .floating-item {
        font-size: 1.5rem;
    }
}