/* 音乐控制按钮样式 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.music-control i {
    color: white;
    font-size: 18px;
}

.music-control.playing i {
    animation: rotating 3s linear infinite;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 内容区域背景图片 */
#booknotes {
    background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('../img/读书分享.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#booknotes .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 18px;
}

#booknotes .section-header h2 {
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

#photography {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/摄影.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#photography .section-header h2 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#articles {
    background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('../img/诗作.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#articles .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 18px;
}

#articles .section-header h2 {
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 基础样式 */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #666;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #000;
    --background-color: #fff;
    --border-color: #eee;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 4px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header-scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: white;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin-bottom: 5px;
    transition: var(--transition);
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* 首屏区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* 区域样式 */
.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    color: white;
}

.section-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-dark .section-header h2::after {
    background-color: white;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* 书籍展示区样式 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.book-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.book-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-item:hover .book-image img {
    transform: scale(1.05);
}

.book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.book-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.book-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.book-link.book-note-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* 阅读笔记按钮统一高度 */
.book-note-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    height: 38px;
    line-height: 22px;
}

.book-note-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.book-note-btn::after {
    display: none;
}

/* 摄影作品展示样式 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 250px;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* 诗集展示区样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-item {
    background-color: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.article-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.article-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.article-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.article-link:hover::after {
    margin-left: 10px;
}

/* 关于我样式 */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 联系方式样式 */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* 底部区域样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        padding: 20px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links ul {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .book-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* 关于我背景 */
#about {
    background: linear-gradient(rgba(10,10,30,0.7),rgba(10,10,30,0.7)), url('../img/wallhaven-j58y6y.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
#about .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 18px;
}

/* 联系我背景 */
#contact {
    background: linear-gradient(rgba(10,30,10,0.7),rgba(10,30,10,0.7)), url('../img/wallhaven-eo378r.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
#contact .container {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 32px 18px;
} 