/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 隐藏滚动条但保留滚动效果 */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    background-attachment: fixed;
    font-weight: 300;
    letter-spacing: 0.015em;
}

/* 移除所有链接的下划线 */
a {
    text-decoration: none;
}

/* 全局科技感增强 */
:root {
    --neon-blue: #00ffff;
    --neon-green: #00ff00;
    --neon-red: #a05063;
    --neon-yellow: #ffff00;
    --deep-space: #070c17;
    --glow-intensity: 0 0 10px;
}

/* 页面容器 */
.page-content {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.page-content.active {
    display: block;
}

/* ===== INDEX PAGE STYLES ===== */
#index-page .header {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 30px;
}

#index-page .header h1 {
    font-size: 80px;
    letter-spacing: 20px;
    margin: 0;
    color: #00ffff;
    font-weight: normal;
}

#index-page .date, #index-page .number {
    color: #00ffff;
    font-size: 24px;
    margin: 10px 0;
}

/* 内容网格样式 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 80px;
}

.grid-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(15, 25, 45, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item .cover-image {
    height: 160px;
    overflow: hidden;
}

.grid-item .cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .cover-image img {
    transform: scale(1.05);
}

.grid-item .title {
    padding: 15px;
    color: #fff;
    font-size: 16px;
}

/* 趋势部分样式 */
.trends-part {
    background-color: var(--deep-space);
    background-image: 
        radial-gradient(circle at 100px 100px, rgba(0, 255, 255, 0.05) 10px, transparent 80px),
        radial-gradient(circle at 90% 10%, rgba(0, 255, 0, 0.05) 10px, transparent 80px),
        linear-gradient(rgba(0, 0, 0, 0.9) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 1px, transparent 1px);
    background-size: auto, auto, 50px 50px, 50px 50px;
    background-position: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* 添加日期选择器样式 */
.date-selector {
    margin: 10px 0;
    text-align: center;
}

.date-selector select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #00ffff;
    background-color: rgba(0, 0, 0, 0.5);
    color: #00ffff;
    font-size: 18px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2300ffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.date-selector select:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.date-selector select option {
    background-color: #070c17;
    color: #00ffff;
}

/* 图片查看器 */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer-modal.active {
    display: flex;
    opacity: 1;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.close-image-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-image-viewer:hover {
    background: rgba(0, 255, 255, 0.3);
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

/* 视频弹窗内容样式 */
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 横屏视频容器 */
.video-modal-content.landscape {
    aspect-ratio: 16/9;
}

/* 竖屏视频容器 */
.video-modal-content.portrait {
    aspect-ratio: 9/16;
    max-height: 80vh;
    width: auto;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    background: #000;
    object-fit: contain;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #index-page .header h1 {
        font-size: 40px;
        letter-spacing: 10px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
} 