/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 100%;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 标题区域 */
.main-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    position: relative;
}

.title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 音频播放器区域 */
.audio-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.audio-player {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.audio-player:hover::before {
    left: 100%;
}

.audio-player:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.player-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.player-header h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

#bgMusic {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    outline: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.player-info {
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

/* 文章内容区域 */
.main-article {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.article-content {
    position: relative;
}

.article-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: #e9ecef;
    font-family: serif;
    line-height: 1;
}

.intro {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7e6, #ffe4b3);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    position: relative;
}

.intro::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
    font-size: 1.1rem;
    color: #444;
    text-indent: 2em;
    transition: color 0.3s ease;
}

.article-content p:hover {
    color: #2c3e50;
}

.closing {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    position: relative;
}

.closing::before {
    content: '❀';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 15px;
    color: #95a5a6;
    font-size: 1.5rem;
}

.signature {
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
    text-indent: 0;
}

/* 敬请期待样式 */
.coming-soon {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 107, 107, 0.1), transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(78, 205, 196, 0.1), transparent 50%);
    pointer-events: none;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.coming-soon-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.coming-soon-text {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.coming-soon-decoration {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.coming-soon-decoration span {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.coming-soon-decoration span:nth-child(1) { animation-delay: 0s; }
.coming-soon-decoration span:nth-child(2) { animation-delay: 0.3s; }
.coming-soon-decoration span:nth-child(3) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

/* 页脚 */
.page-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #95a5a6;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 备案信息 */
.icp-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(149, 165, 166, 0.2);
}

.icp-info p {
    font-size: 0.85rem;
    color: #bdc3c7;
    font-style: normal;
    margin: 0;
}

.icp-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #95a5a6;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px 10px;
        padding: 30px 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-article {
        padding: 25px 20px;
    }
    
    .intro {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    #bgMusic {
        max-width: 280px;
    }
    
    .icp-info p {
        font-size: 0.8rem;
    }
    
    .coming-soon {
        padding: 40px 20px;
    }
    
    .coming-soon-title {
        font-size: 2rem;
    }
    
    .coming-soon-decoration {
        gap: 20px;
    }
    
    .coming-soon-decoration span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .audio-player {
        padding: 20px 15px;
    }
    
    .main-article {
        padding: 20px 15px;
    }
    
    .article-content p {
        text-indent: 1.5em;
    }
}

/* 动画效果 */
.container {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audio-player {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-article {
    animation: slideInRight 0.8s ease-out 0.6s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
