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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 笔记本容器 */
.notebook {
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    min-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notebook:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 80px rgba(0, 0, 0, 0.08);
}

/* 笔记本纸张质感 */
.notebook::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(#e6e6e6 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 24px, 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* 笔记本页眉 */
.notebook-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LOGO样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '✨';
    font-size: 28px;
    animation: twinkle 2s infinite ease-in-out;
}

.logo h1 {
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* 音乐控制按钮 */
.music-control {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

#musicBtn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#musicBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#musicBtn.playing {
    background: rgba(144, 238, 144, 0.3);
    border-color: rgba(144, 238, 144, 0.8);
}

#musicIcon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

#musicBtn.playing #musicIcon {
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 笔记本内容 */
.notebook-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* 宇宙文章样式 */
.cosmic-article {
    line-height: 1.8;
    color: #333;
    position: relative;
    padding-bottom: 100px;
}

.cosmic-article h2 {
    font-size: 32px;
    margin-bottom: 35px;
    color: #2c3e50;
    text-align: center;
    font-family: 'Times New Roman', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 15px;
}

.cosmic-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.cosmic-article p {
    margin-bottom: 28px;
    text-align: justify;
    position: relative;
    transition: transform 0.2s ease;
}

.cosmic-article p:hover {
    transform: translateX(5px);
}

/* 签名样式 */
.signature {
    font-family: 'Ma Shan Zheng', cursive, 'STKaiti', 'KaiTi', serif;
    font-size: 24px;
    color: #667eea;
    text-align: right;
    margin-top: 40px;
    padding-right: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 底部托底图 */
.notebook::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #87ceeb 0%, transparent 100%);
    z-index: 0;
}

/* 草地 */
.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #4caf50 0%, #8bc34a 100%);
    z-index: 1;
}

/* 小花 */
.flowers {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
}

.flower {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff9800;
    border-radius: 50%;
    animation: flower-bloom 3s infinite ease-in-out;
}

.flower::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: #f44336;
    border-radius: 50%;
}

.flower::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 8px;
    width: 4px;
    height: 15px;
    background-color: #4caf50;
}

/* 底部星星 */
.bottom-stars {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 1;
}

.bottom-star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: star-twinkle 4s infinite ease-in-out;
}

/* 星空背景效果 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: star-float 6s infinite ease-in-out;
}

/* 动画效果 */
@keyframes flower-bloom {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes star-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* 翻页导航 */
.pagination {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pagination a:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 页脚信息 */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-label {
    font-weight: 500;
    margin-right: 5px;
}

.contact-value {
    color: #333;
}

.record-item {
    display: flex;
    align-items: center;
}

.record-label {
    font-weight: 500;
    margin-right: 5px;
}

.record-value {
    color: #333;
}

/* 分享功能 */
.share-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-qq {
    background-color: #4CAF50;
    color: white;
}

.share-wechat {
    background-color: #07C160;
    color: white;
}

.share-weibo {
    background-color: #E6162D;
    color: white;
}

.share-qzone {
    background-color: #FDB300;
    color: white;
}

.share-btn:active {
    transform: translateY(-1px);
}

/* 阅读计数器 */
.read-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666;
    z-index: 10;
}

.read-counter img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.read-counter span {
    font-weight: 500;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notebook {
        min-height: 95vh;
    }
    
    .notebook-content {
        padding: 25px;
    }
    
    .cosmic-article h2 {
        font-size: 26px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .pagination {
        padding: 0 25px;
    }
    
    .pagination a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .contact-item,
    .record-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    .share-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* 响应式设计 */@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .notebook-header {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .notebook-content {
        padding: 20px;
    }
    
    .cosmic-article h2 {
        font-size: 22px;
    }
    
    .cosmic-article p {
        margin-bottom: 24px;
    }
    
    .pagination {
        padding: 0 20px;
    }
    
    .pagination a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer {
        padding: 15px;
    }
    
    .contact-info {
        font-size: 11px;
    }
    
    .share-section {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .share-label {
        font-size: 12px;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}