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

body {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* 水族箱包装器 */
.aquarium-wrapper {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 水族箱头部 */
.aquarium-header {
    text-align: center;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aquarium-header.compact {
    padding: 10px 5px;
}

.aquarium-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.aquarium-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin: 5px 0 0 0;
}

/* 水族箱容器 */
.aquarium-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.aquarium-container.compact {
    gap: 10px;
    padding: 10px;
}

/* 鱼塘信息面板 */
.tank-info-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tank-info-panel.compact {
    padding: 10px;
}

.tank-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tank-stats.compact {
    margin-bottom: 10px;
    gap: 5px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

#tank-status {
    padding: 3px 10px;
    border-radius: 15px;
    background: rgba(100, 150, 255, 0.2);
    font-size: 0.9rem;
}

.tank-controls {
    display: flex;
    gap: 10px;
}

.tank-controls.compact {
    gap: 8px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 70px;
}

.btn-primary {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tank-progress-container {
    margin-top: 10px;
}

.tank-progress-container.compact {
    margin-top: 5px;
}

progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: none;
    background: rgba(0, 0, 0, 0.2);
}

progress::-webkit-progress-bar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 5px;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 5px;
}

.progress-label {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* 水族箱展示区 */
.aquarium-display {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#fish-tank {
    width: 100%;
    height: 500px;
    display: block;
    background: linear-gradient(180deg, #1a2980, #26d0ce);
}

/* 水族箱边框 */
.aquarium-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* 水面效果 */
.water-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    animation: waterMovement 20s infinite linear;
}

@keyframes waterMovement {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 1000px 1000px, -1000px -1000px;
    }
}

/* 水族箱底部 */
.aquarium-footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aquarium-wrapper {
        margin: 5px;
        border-radius: 12px;
    }
    
    .aquarium-title {
        font-size: 1.5rem;
    }
    
    .aquarium-container {
        padding: 10px;
    }
    
    .tank-stats {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .tank-controls {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    #fish-tank {
        height: 400px;
    }
    
    .frame-corner {
        width: 15px;
        height: 15px;
    }
    
    .top-left {
        top: 8px;
        left: 8px;
    }
    
    .top-right {
        top: 8px;
        right: 8px;
    }
    
    .bottom-left {
        bottom: 8px;
        left: 8px;
    }
    
    .bottom-right {
        bottom: 8px;
        right: 8px;
    }
    
    .stat-item {
        min-width: 50px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .aquarium-wrapper {
        border-radius: 10px;
    }
    
    .aquarium-title {
        font-size: 1.3rem;
    }
    
    .aquarium-header {
        padding: 8px 5px;
    }
    
    .tank-info-panel {
        padding: 8px;
    }
    
    .tank-stats {
        gap: 3px;
    }
    
    .stat-item {
        min-width: 45px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    #fish-tank {
        height: 300px;
    }
    
    .progress-label {
        font-size: 0.7rem;
    }
}