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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

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

a:hover {
    color: #A0522D;
}

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

.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 32px;
    color: #8B4513;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B0000;
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #8B4513;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* 头部导航 */
header {
    background-color: rgba(139, 69, 19, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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 svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

/* 轮播图 */
.banner {
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 80%;
}

.slide-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.slider-controls span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-controls span:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* 关于玉门 */
.about {
    background-color: #fff;
}

.image-text-box {
    display: flex;
    align-items: center;
    gap: 30px;
}

.image-text-box.reverse {
    flex-direction: row-reverse;
}

.image-text-box .text {
    flex: 1;
}

.image-text-box .text p {
    margin-bottom: 15px;
    text-align: justify;
}

.image-text-box .image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-text-box .image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-text-box .image:hover img {
    transform: scale(1.05);
}

/* 千年渡红 */
.song {
    background-color: #f9f5f0;
}

.music-player {
    margin-top: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.player-container {
    padding: 20px;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.song-info h3 {
    font-size: 24px;
    color: #8B4513;
    margin-bottom: 5px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #8B4513;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background-color: #A0522D;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    position: relative;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #8B0000;
    border-radius: 3px;
    width: 30%;
}

.time {
    font-size: 14px;
    color: #666;
}

/* 图片欣赏 */
.gallery {
    background-color: #fff;
}

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

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

.gallery-item:hover {
    transform: translateY(-5px);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-more {
    text-align: center;
    margin-top: 30px;
}

/* 丝路文化 */
.culture {
    background-color: #f9f5f0;
}

.culture-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.culture-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;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.culture-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

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

.card-content p {
    color: #666;
    text-align: justify;
}

/* 文章推荐 */
.articles {
    background-color: #fff;
}

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

.article-item {
    display: flex;
    gap: 30px;
    background-color: #f9f5f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
    flex: 0 0 300px;
    overflow: hidden;
}

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

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

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h3 {
    font-size: 22px;
    color: #8B4513;
    margin-bottom: 10px;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #8B0000;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* APP下载 */
.app-download {
    background-color: #f9f5f0;
    background-image: linear-gradient(rgba(249, 245, 240, 0.9), rgba(249, 245, 240, 0.9)), url('');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.app-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.app-features {
    flex: 1;
}

.app-features h3 {
    font-size: 24px;
    color: #8B4513;
    margin-bottom: 20px;
}

.app-features ul {
    list-style: none;
}

.app-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.app-features li i {
    margin-right: 10px;
    color: #8B0000;
}

.app-download-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.app-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.download-btn.android {
    background-color: #3DDC84;
}

.download-btn.ios {
    background-color: #000;
}

.download-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.app-preview {
    text-align: center;
    margin-top: 30px;
}

.app-preview img {
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 联系我们 */
.contact {
    background-color: #fff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f5f0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 36px;
    color: #8B0000;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 20px;
    color: #8B4513;
    margin-bottom: 10px;
}

.contact-form {
    background-color: #f9f5f0;
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 24px;
    color: #8B4513;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #A0522D;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo svg {
    margin-right: 10px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-link-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f9f5f0;
    position: relative;
}

.footer-link-group h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #8B0000;
}

.footer-link-group ul {
    list-style: none;
}

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

.footer-link-group ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

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

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

.social-link {
    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;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #8B0000;
    color: #fff;
}

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

.copyright {
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
}

.friend-links {
    margin-bottom: 20px;
}

.friend-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f9f5f0;
    text-align: center;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.links-container a {
    color: #ccc;
    transition: color 0.3s ease;
}

.links-container a:hover {
    color: #fff;
}

.other-links {
    text-align: center;
    color: #ccc;
}

/* 图标 */
[class^="icon-"] {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .culture-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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;
        margin-top: 120px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .image-text-box,
    .image-text-box.reverse {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .culture-cards {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        flex: 0 0 200px;
    }
    
    .app-info {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}
