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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f4f9;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 移除body::before的樱花效果，改为通过JavaScript动态创建真正的飘落效果 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f4f9;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景装饰 */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 150px;
    background-color: #f8d0d9;
    border-radius: 0 0 0 100%;
    opacity: 0.5;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 100px;
    background-color: #f8d0d9;
    border-radius: 0 100% 0 0;
    opacity: 0.5;
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.logo {
    width: 150px;
    height: auto;
}

/* 主内容样式 */
.main-content {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(248, 208, 217, 0.3);
    margin-bottom: 30px;
}

.comic-entry {
    margin-bottom: 30px;
}

.comic-entry h2 {
    color: #e91e63;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    width: 100%;
    height: 100%;
    background-color: #e91e63;
    text-align: center;
    line-height: 10px;
    color: white;
    font-size: 8px;
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

.visit-btn {
    width: 100%;
    padding: 12px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.visit-btn:hover {
    background-color: #c2185b;
}

.status {
    text-align: center;
    color: #e91e63;
    font-size: 14px;
}

/* 公告样式 */
.announcements {
    margin-top: 20px;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fef3f7;
    border-radius: 5px;
    font-size: 14px;
}

.icon {
    color: #e91e63;
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap;
}

.content {
    color: #666;
    flex: 1;
    line-height: 1.5;
}

/* 页脚样式 */
.footer {
    text-align: center;
    color: #e91e63;
    margin-top: auto;
    padding: 20px 0;
}

/* 弹窗样式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
}

.popup-icon {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 20px;
}

.popup-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.popup-content p {
    color: #666;
    margin-bottom: 20px;
}

#popup-btn {
    padding: 10px 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#popup-btn:hover {
    background-color: #c2185b;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .comic-entry h2 {
        font-size: 20px;
    }
}