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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6c5ce7;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #5a4fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary {
    background-color: #6c5ce7;
}

.btn-secondary {
    background-color: #00b894;
}

.btn-secondary:hover {
    background-color: #00a085;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #6c5ce7;
}

.logo i {
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6c5ce7;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6c5ce7;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #00b894 100%);
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

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

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

/* 章节标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    color: #2d3436;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    margin-right: 15px;
    color: #6c5ce7;
}

/* 最新文章样式 */
.latest-articles {
    padding: 80px 0;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.article-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.1);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #636e72;
}

.article-category {
    background-color: #e8f5e8;
    color: #00b894;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
    line-height: 1.4;
}

.article-excerpt {
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 音乐推荐样式 */
.music-recommendation {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.music-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.music-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.music-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.music-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.music-card:hover .music-img img {
    transform: scale(1.1);
}

.music-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(108, 92, 231, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.music-card:hover .music-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.music-play-btn:hover {
    background-color: #5a4fd8;
    transform: translate(-50%, -50%) scale(1.2);
}

.music-info {
    padding: 20px;
}

.music-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3436;
}

.music-artist {
    color: #636e72;
    margin-bottom: 15px;
    font-size: 14px;
}

.music-rating {
    color: #fdcb6e;
    font-size: 16px;
}

/* 关于博主样式 */
.about-blogger {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-img {
    flex: 1;
    max-width: 400px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    color: #636e72;
    line-height: 1.8;
    font-size: 16px;
}

.about-social {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #636e72;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #6c5ce7;
    color: #fff;
    transform: translateY(-5px);
}

/* 页脚样式 */
.footer {
    background-color: #2d3436;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #6c5ce7;
}

.footer-info p {
    color: #b2bec3;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #6c5ce7;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
}

.footer-social .social-link {
    background-color: #3d4649;
    color: #b2bec3;
}

.footer-social .social-link:hover {
    background-color: #6c5ce7;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3d4649;
    color: #b2bec3;
}

/* 文章列表页面样式 */
.articles-page {
    padding: 150px 0 80px;
    background-color: #fff;
}

.articles-page .section-title {
    margin-bottom: 60px;
}

/* 音乐页面样式 */
.music-page {
    padding: 150px 0 80px;
    background-color: #f8f9fa;
}

.music-page .section-title {
    margin-bottom: 60px;
}

/* 关于页面样式 */
.about-page {
    padding: 150px 0 80px;
    background-color: #fff;
}

.about-page .about-content {
    margin-top: 50px;
}

/* 联系页面样式 */
.contact-page {
    padding: 150px 0 80px;
    background-color: #f8f9fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3436;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 文章详情页面样式 */
.article-detail {
    padding: 150px 0 80px;
    background-color: #fff;
}

.article-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 40px;
}

.article-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3436;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #636e72;
}

.article-detail-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #2d3436;
    font-size: 16px;
}

.article-detail-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #2d3436;
}

.article-detail-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #2d3436;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 30px;
    }
    
    .about-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .articles-grid,
    .music-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .article-detail-title {
        font-size: 28px;
    }
    
    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-detail-meta > * {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .article-detail-content {
        padding: 0 20px;
    }
}