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

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FFD700;
}

/* 主横幅 */
.hero-section {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1rem;
    color: #777;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* 概览部分 */
.overview-section {
    padding: 4rem 0;
    background: white;
}

.overview-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 3rem;
}

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

.overview-card {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 纺织部分 */
.textile-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f8f8, #eeeeee);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.textile-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.intro-text h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.intro-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.craft-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 1.2rem;
}

.intro-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* 时间线 */
.process-timeline {
    margin-bottom: 3rem;
}

.process-timeline h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
}

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

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-marker {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: #8B0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.timeline-content h4 {
    color: #8B0000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* 画廊 */
.textile-gallery h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
}

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

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    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;
}

.gallery-item:hover 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: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
}

/* 祠堂部分 */
.ancestral-hall-section {
    padding: 4rem 0;
    background: white;
}

.hall-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.hall-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #8B0000;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 文化元素 */
.cultural-elements {
    margin-bottom: 3rem;
}

.cultural-elements h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.element-card {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.element-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.element-image {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.element-card h4 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 建筑特色 */
.architectural-features h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
}

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

.feature-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.feature-content {
    padding: 1.5rem;
}

.feature-content h4 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

/* VR体验 */
.vr-experience {
    margin-top: 3rem;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    padding: 3rem;
    border-radius: 15px;
}

.vr-experience h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
}

.vr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vr-info h4 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.vr-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.vr-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vr-icon {
    font-size: 1.5rem;
}

.vr-preview {
    text-align: center;
    position: relative;
}

.vr-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.vr-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 0, 0, 0.9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vr-button:hover {
    background: rgba(139, 0, 0, 1);
}

/* 文化瑰宝展示 */
.cultural-treasures-section {
    padding: 4rem 0;
    background: white;
}

.treasures-content {
    margin-top: 3rem;
}

.treasures-category {
    margin-bottom: 4rem;
}

.treasures-category h3 {
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.treasures-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #DC143C);
    border-radius: 2px;
}

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

.treasure-item {
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.treasure-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

.treasure-info {
    padding: 1.5rem;
}

.treasure-info h4 {
    font-size: 1.3rem;
    color: #8B0000;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.treasure-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .treasures-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .treasure-item img {
        height: 200px;
    }
}

/* 保护部分 */
.protection-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f8f8, #eeeeee);
}

.protection-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 3rem;
}

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

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

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

.protection-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.protection-card h3 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFD700;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-image img {
        max-width: 350px;
    }

    .textile-intro,
    .hall-intro,
    .vr-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .hall-stats {
        justify-content: center;
    }

    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-image img {
        max-width: 300px;
    }
}
