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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo span {
    color: #FFD700;
    font-size: 14px;
    display: block;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
    color: #FFD700;
}

/* 轮播图样式 */
.carousel-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-content {
    position: absolute;
    bottom: 80px;
    left: 50px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 20px;
    max-width: 500px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

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

.dot.active,
.dot:hover {
    background: #FFD700;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 介绍区域样式 */
.intro-section {
    padding: 80px 0;
    background: white;
}

.intro-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8B4513;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

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

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

/* 特色展示区域 */
.features-section {
    padding: 80px 0;
    background: #f8f6f0;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8B4513;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8B4513;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 时间轴样式 */
.history-section {
    padding: 80px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #D2691E;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 55%;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8B4513;
}

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

.timeline-content img {
    width: 100%;
    border-radius: 10px;
}

/* 文化价值区域 */
.culture-section {
    padding: 80px 0;
    background: #f8f6f0;
}

.culture-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8B4513;
}

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

.culture-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.culture-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8B4513;
}

.culture-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* 保护传承区域 */
.protection-section {
    padding: 80px 0;
    background: white;
}

.protection-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8B4513;
}

.protection-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.protection-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8B4513;
}

.protection-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.protection-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 画廊样式 */
.gallery-nav {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f8f6f0;
    border: 2px solid #D2691E;
    color: #8B4513;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #D2691E;
    color: white;
}

.gallery-section {
    padding: 50px 0;
    background: white;
}

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

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

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

.gallery-image {
    position: relative;
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.view-btn {
    background: #D2691E;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: #8B4513;
}

/* 技法介绍区域 */
.technique-section {
    padding: 80px 0;
    background: #f8f6f0;
}

.technique-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8B4513;
}

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

.technique-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.technique-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 80%;
    max-height: 80%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    opacity: 0.7;
}

#modalImage {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 30px;
    text-align: center;
}

.modal-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #8B4513;
}

.modal-info p {
    font-size: 18px;
    color: #666;
}

/* 页脚样式 */
footer {
    background: #8B4513;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .nav-menu {
        margin-top: 20px;
        gap: 15px;
    }
    
    .carousel-content h2 {
        font-size: 32px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .intro-content,
    .protection-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 20px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .gallery-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .features-section h2,
    .culture-section h2,
    .protection-section h2,
    .technique-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel-content {
        left: 20px;
        bottom: 40px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .carousel-btn.prev {
        left: 15px;
    }
    
    .carousel-btn.next {
        right: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }
}