/* 全局设置 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Roboto+Mono:wght@300;400&display=swap');

:root {
    --primary-color: #03a9f4;
    --dark-bg: #000;
    --text-color: #e0e0e0;
    --accent-color: #2196f3;
    --danger-color: #f44336;
    --glow-color: rgba(0, 150, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0e23 0%, #000000 70%);
    z-index: -1;
    overflow: hidden;
}

.stars:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 5px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 6px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: twinkle 15s ease infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.65; }
    50% { opacity: 0.95; }
    100% { opacity: 0.7; }
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px var(--glow-color); }
    50% { text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color); }
    100% { text-shadow: 0 0 10px var(--glow-color); }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* 水滴信息区域 */
.droplet-info {
    display: flex;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(5, 17, 41, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
    backdrop-filter: blur(5px);
}

.droplet-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.droplet {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9), rgba(0, 40, 80, 0.6));
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    box-shadow: 
        0 0 15px #0080ff,
        0 0 30px rgba(0, 128, 255, 0.5),
        inset 10px -10px 20px rgba(255, 255, 255, 0.2),
        inset -10px 10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-15px); }
    100% { transform: rotate(45deg) translateY(0px); }
}

.droplet:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(5px);
}

.droplet-desc {
    flex: 2;
    padding: 0 2rem;
}

.droplet-desc h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.droplet-desc p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 事件时间线区域 */
.incident {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(10, 20, 40, 0.6);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.2);
}

.incident h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--glow-color);
}

.event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 150px;
}

.event:last-child {
    margin-bottom: 0;
}

.event .time {
    position: absolute;
    left: 0;
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    font-weight: bold;
    width: 110px;
    text-align: right;
}

.event:before {
    content: '';
    position: absolute;
    left: 115px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
    z-index: 1;
}

.event:last-child:before {
    background: var(--danger-color);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.7);
}

.event .text {
    display: block;
    background: rgba(30, 40, 60, 0.8);
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.event:last-child .text {
    border-left: 3px solid var(--danger-color);
    color: var(--danger-color);
}

.event:hover .text {
    transform: translateX(5px);
    background: rgba(40, 50, 70, 0.9);
}

/* 描述部分 */
.description {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(5, 15, 35, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
}

.description h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(100, 150, 200, 0.2);
}

.quote {
    font-style: italic;
    color: #aaa;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* 音频控制按钮 */
.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.audio-btn {
    background: rgba(10, 20, 40, 0.8);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

.audio-btn:hover {
    background: rgba(20, 30, 50, 0.9);
    box-shadow: 0 0 15px var(--glow-color);
}

.audio-btn .play-icon,
.audio-btn .pause-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.audio-btn.playing .play-icon {
    display: none;
}

.audio-btn.paused .pause-icon {
    display: none;
}

.audio-btn.playing .btn-text {
    content: "停止解说";
}

.audio-btn.paused .btn-text {
    content: "播放解说";
}

/* 主图展示 */
.main-image {
    margin: 1rem 0 3rem;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.3);
    position: relative;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform 1s ease;
}

.featured-image:hover {
    transform: scale(1.03);
}

/* 图片展示区域 */
.gallery {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(5, 17, 41, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
}

.gallery h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--glow-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* 视频区域样式 */
.video-section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(5, 17, 41, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.4);
}

.video-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--glow-color);
}

.video-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 100, 200, 0.3);
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: 4px;
    background-color: #000;
}

.video-caption {
    padding: 1.5rem;
    background: rgba(10, 25, 50, 0.8);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid rgba(0, 150, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.video-caption p {
    flex: 2;
    margin: 0;
    font-family: 'Roboto Mono', monospace;
}

.play-video-btn {
    flex: 1;
    margin-left: 1rem;
    background: rgba(0, 100, 200, 0.3);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    padding: 8px 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.play-video-btn:hover {
    background: rgba(0, 120, 220, 0.4);
    box-shadow: 0 0 10px var(--glow-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .droplet-info {
        flex-direction: column;
    }
    
    .droplet-image {
        margin-bottom: 2rem;
    }
    
    .droplet-desc {
        padding: 0;
    }
    
    .audio-controls {
        top: 10px;
        right: 10px;
    }
    
    .audio-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-caption {
        flex-direction: column;
    }
    
    .play-video-btn {
        margin: 1rem 0 0 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .event {
        padding-left: 60px;
    }
    
    .event .time {
        position: relative;
        left: -50px;
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .event:before {
        left: 25px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .incident, .description, .droplet-info {
        padding: 1.5rem 1rem;
    }
    
    .audio-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .audio-btn .play-icon,
    .audio-btn .pause-icon {
        margin-right: 5px;
    }
    
    .gallery-item .caption {
        transform: translateY(0);
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.4);
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-caption {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 150, 255, 0.3);
}