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

body {
    font-family: 'SimSun', 'STSong', serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f5f0;
}

a {
    text-decoration: none;
    color: #8b4513;
    transition: color 0.3s ease;
}

a:hover {
    color: #d2691e;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 图标字体 */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 5px;
}

.icon-book:before {
    content: "📚";
}

.icon-comment:before {
    content: "💬";
}

.icon-video:before {
    content: "🎬";
}

.icon-community:before {
    content: "👥";
}

.icon-android:before {
    content: "📱";
}

.icon-apple:before {
    content: "🍎";
}

.icon-email:before {
    content: "✉️";
}

.icon-phone:before {
    content: "📞";
}

.icon-address:before {
    content: "🏢";
}

.icon-weibo:before {
    content: "微";
}

.icon-wechat:before {
    content: "信";
}

.icon-douyin:before {
    content: "抖";
}

.icon-zhihu:before {
    content: "知";
}

/* 头部样式 */
header {
    background-color: #8b0000;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 横幅样式 */
.banner {
    height: 500px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1200 500"><defs><pattern id="pattern" patternUnits="userSpaceOnUse" width="20" height="20" patternTransform="rotate(45)"><rect width="10" height="10" fill="%23f9f5f0" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="%238b0000"/><rect width="100%" height="100%" fill="url(%23pattern)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1200 500"><rect width="100%" height="100%" fill="%238b0000" opacity="0.7"/></svg>');
    z-index: 1;
}

.banner-text {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'STZhongsong', 'SimSun', serif;
}

.banner p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 章节标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #8b0000;
    margin-bottom: 10px;
    font-family: 'STZhongsong', 'SimSun', serif;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #8b0000;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

/* 介绍部分样式 */
.intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 经典文学部分样式 */
.classic-literature {
    padding: 80px 0;
    background-color: #f9f5f0;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #8b0000;
}

.card-content p {
    margin-bottom: 15px;
    color: #666;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #8b0000;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #a52a2a;
    color: #fff;
}

/* 戏曲艺术部分样式 */
.opera-art {
    padding: 80px 0;
    background-color: #fff;
}

.opera-content {
    display: flex;
    gap: 40px;
}

.opera-text {
    flex: 1;
}

.opera-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.opera-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.opera-card {
    background-color: #f9f5f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.opera-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.opera-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #8b0000;
}

.opera-card p {
    font-size: 14px;
    color: #666;
}

/* 文章部分样式 */
.articles {
    padding: 80px 0;
    background-color: #f9f5f0;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #8b0000;
}

.article-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.article-content {
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* APP下载部分样式 */
.app-download {
    padding: 80px 0;
    background-color: #fff;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-info {
    flex: 1;
}

.app-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8b0000;
}

.app-info p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    font-size: 24px;
    margin-right: 10px;
    color: #8b0000;
}

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

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #8b0000;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #a52a2a;
    color: #fff;
}

.btn-download i {
    font-size: 20px;
    margin-right: 10px;
}

.app-image {
    flex: 1;
}

.app-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 文化图库部分样式 */
.cultural-gallery {
    padding: 80px 0;
    background-color: #f9f5f0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(139, 0, 0, 0.8);
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #8b0000;
}

.footer-column p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
}

.contact-info li i {
    margin-right: 10px;
    color: #8b0000;
    font-size: 16px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #8b0000;
}

.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friendly-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friendly-links ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friendly-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content, .opera-content, .app-content {
        flex-direction: column;
    }
    
    .opera-cards {
        margin-top: 30px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 30px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .opera-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
