/* 页面通用样式 */
.page-content {
    min-height: 100vh;
    padding-top: 80px; /* 原100px，收紧顶部空隙 */
    padding-bottom: 50px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: #ffffff;
}
.page-title svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* 加载和错误状态 */
.loading,
.error-message,
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.icon-wrap {
    background-color: #ffffff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.loading .icon-wrap { margin: 0 auto; }
.error-message .icon-wrap,
.no-content .icon-wrap { margin: 0 auto 20px auto; }

.spinner { width: 40px; height: 40px; animation: spin 1s linear infinite; }
.spinner .path { stroke: #000; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 0; fill: none; stroke-width: 5; }

.info-svg { width: 40px; height: 40px; }
.error-svg { width: 40px; height: 40px; }

.loading span,
.error-message p,
.no-content p {
    font-size: 1.2rem;
}

/* 兼容旧的 i 图标（如果还有残留） */
.loading i,
.error-message i,
.no-content i { display: none; }

/* 公告页面样式 */
.announcement-container {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px 40px 20px;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.announcement-text {
    font-size: 1.1rem;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 30px;
    white-space: pre-line;
}

.announcement-date {
    text-align: right;
    color: #00ff00; /* 公告日期改为绿色 */
    font-size: 1.3rem;
    font-weight: bold;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* 更新日志页面样式 */
.changelog-container {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.changelog-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 移除悬停效果 - 和公告一样不显示任何样式 */

.changelog-header {
    background-color: #222;
    padding: 12px 20px; /* 缩小头部高度 */
    border-bottom: 1px solid #333;
}

.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff00; /* 版本号改为绿色 */
}

.update-date {
    color: #ffffff; /* 发布时间全白 */
    font-size: 1.3rem;
    font-weight: bold;
}

.changelog-content {
    padding: 0px 20px 25px;
    color: #fff;
    line-height: 1.6;
    white-space: pre-line;
    text-align: left;
}

/* 每日打图页面样式 */
.gallery-container {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px); /* 保留抬升动画 */
    border-color: #333; /* 取消绿色边框，保持与默认一致 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* 改为中性阴影，保留动效 */
}

.gallery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff; /* 日期改为白色 */
    padding: 15px 20px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    width: 100%;
}

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 绿色 X 内嵌到图片内部右上角，无背景，仅一个 X */
.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffffff; /* 默认白色 */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: auto;
    height: auto;
    display: inline-block;
    background: transparent; /* 无背景 */
    border: none;
    border-radius: 0;
    line-height: 1;
    padding: 0;
    text-shadow: 0 0 6px rgba(0,0,0,0.6); /* 提升在浅色区域的可读性 */
}

.close-btn:hover {
    color: #d9d9d9; /* 悬停浅灰，不用绿色 */
    text-shadow: 0 0 8px rgba(0,0,0,0.75);
}

/* 固定位置完整显示图片（contain） */
.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 不再显示上传时间信息，保留占位但不使用 */
.modal-info { display: none; }

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-content {
        padding-top: 120px;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .announcement-content,
    .changelog-header,
    .changelog-content {
        padding: 20px;
    }
    
    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close-btn {
        top: -40px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-content,
    .changelog-header,
    .changelog-content {
        padding: 15px;
    }
}
