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

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.logo h1 {
    font-size: 28px;
    color: #c41230;
}

nav {
    width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 20px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    color: #c41230;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* 焦点图样式 */
.banner {
    width: 1200px;
    height: 400px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.banner-images {
    display: flex;
    transition: transform 0.5s;
}

.banner-images img {
    width: 1200px;
    height: 400px;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.banner-dots span.active {
    background-color: #fff;
}

/* 内容区域样式 */
main {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.intro h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #c41230;
}

.culture-items {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.item {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 在原有样式基础上添加传统艺术页面样式 */

.art-page {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.art-intro {
    text-align: center;
    margin-bottom: 60px;
}

.art-intro h2 {
    font-size: 36px;
    color: #c41230;
    margin-bottom: 20px;
}

.art-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.art-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
}

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

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

.gallery-image {
    position: relative;
    width: 100%;
    height: 500px;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    padding: 30px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.gallery-overlay p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* 在原有样式基础上添加联系我们页面样式 */

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

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.contact-intro p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.info-item {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.info-item .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #c41230;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.info-item h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
    font-size: 1em;
    line-height: 1.4;
}

.contact-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c41230;
    box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn {
    background: #c41230;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background: #a30f28;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-intro h2 {
        font-size: 2em;
    }
    
    .contact-intro p {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    .submit-btn {
        padding: 12px 25px;
    }
}

/* 在原有样式基础上添加传统节日页面样式 */

.festival-page {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.festival-banner {
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 8px;
}

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

.festival-intro {
    text-align: center;
    margin-bottom: 40px;
}

.festival-intro h2 {
    font-size: 28px;
    color: #c41230;
    margin-bottom: 20px;
}

.festival-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.festival-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.festival-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.festival-item img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.festival-content {
    flex: 1;
    padding: 30px;
}

.festival-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.festival-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.festival-customs h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.festival-customs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.festival-customs li {
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

/* 在原有样式基础上添加传统美食页面样式 */

.food-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.food-intro {
    text-align: center;
    margin-bottom: 60px;
}

.food-intro h2 {
    font-size: 2.5em;
    color: #c41e3a;
    margin-bottom: 20px;
}

.food-intro p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px;
}

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

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

.food-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.food-info {
    padding: 25px;
}

.food-info h3 {
    font-size: 1.8em;
    color: #c41e3a;
    margin-bottom: 15px;
}

.food-info p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.food-tags span {
    background: #f8f0f1;
    color: #c41e3a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .food-grid {
        grid-template-columns: 1fr;
    }
    
    .food-image {
        height: 250px;
    }
}

/* 在原有样式基础上添加传统服饰页面样式 */

.costume-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.costume-intro {
    text-align: center;
    margin-bottom: 60px;
}

.costume-intro h2 {
    font-size: 2.5em;
    color: #c41e3a;
    margin-bottom: 20px;
}

.costume-intro p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.costume-showcase {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.costume-slider {
    flex: 1;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

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

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

.slider-nav button {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: #fff;
    color: #c41e3a;
}

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

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

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.costume-details {
    flex: 1;
    padding: 20px;
}

.detail-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.detail-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-content h3 {
    font-size: 2em;
    color: #c41e3a;
    margin-bottom: 20px;
}

.detail-content p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.costume-features h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tags span {
    background: #f8f0f1;
    color: #c41e3a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .costume-showcase {
        flex-direction: column;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .costume-details {
        padding: 0;
    }
}

/* 在原有样式基础上添加传统建筑页面样式 */

.architecture-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.architecture-intro {
    text-align: center;
    margin-bottom: 60px;
}

.architecture-intro h2 {
    font-size: 2.5em;
    color: #c41e3a;
    margin-bottom: 20px;
}

.architecture-intro p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

.masonry-content {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
}

.masonry-content img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-content:hover img {
    transform: scale(1.1);
}

.masonry-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7), transparent);
    padding: 30px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.masonry-content:hover .masonry-info {
    transform: translateY(0);
}

.masonry-info h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fff;
}

.masonry-info p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.architecture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.architecture-tags span {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .architecture-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .masonry-info {
        position: relative;
        transform: none;
        background: #fff;
        color: #333;
    }
    
    .masonry-info h3 {
        color: #c41e3a;
    }
    
    .masonry-info p {
        color: #333;
    }
    
    .architecture-tags span {
        background: #f8f0f1;
        color: #c41e3a;
    }
}

/* 传统礼仪页面样式 */
.etiquette-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.etiquette-intro {
    text-align: center;
    margin-bottom: 40px;
}

.etiquette-intro h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.etiquette-intro p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.card-header {
    position: relative;
}

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

.card-header h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 1.5em;
}

.card-content {
    padding: 20px;
}

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

.etiquette-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.etiquette-tags span {
    background: #f0f0f0;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.learn-more {
    background: #c41230;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: background 0.3s ease;
}

.learn-more:hover {
    background: #a30f28;
}

.card-details {
    display: none;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.card-details h4 {
    color: #333;
    margin-bottom: 15px;
}

.card-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-details li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.card-details li:last-child {
    border-bottom: none;
}

.close-details {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.close-details:hover {
    background: #555;
}

.etiquette-card.expanded {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .etiquette-grid {
        grid-template-columns: 1fr;
    }
    
    .etiquette-intro h2 {
        font-size: 2em;
    }
    
    .etiquette-intro p {
        font-size: 1.1em;
    }
    
    .card-header h3 {
        font-size: 1.3em;
    }
} 