/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a; /* 中国红 */
    --secondary-color: #d4a056; /* 金色 */
    --dark-bg: #1a1a2e; /* 深色背景 */
    --light-bg: #f8f5e9; /* 米白色背景 */
    --text-color: #333333;
    --text-light: #666666;
    --ink-black: #0a0a0a; /* 水墨黑 */
    --border-color: #d4a056;
}

body {
    font-family: 'Microsoft YaHei', 'SimSun', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'KaiTi', 'STKaiti', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

/* ===== 主视觉区域 ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(212,160,86,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: 80px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    font-family: 'KaiTi', 'STKaiti', serif;
    letter-spacing: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'KaiTi', 'STKaiti', serif;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
    animation: fadeInUp 1s ease-out 0.6s both;
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
    background: linear-gradient(135deg, #8b0000 0%, var(--primary-color) 100%);
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(26, 26, 46, 1) 0%, transparent 100%);
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(20px);
}

.cloud-1 {
    width: 300px;
    height: 100px;
    top: 20%;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.cloud-2 {
    width: 250px;
    height: 80px;
    top: 30%;
    right: -80px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 通用区块样式 ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--ink-black);
    margin-bottom: 10px;
    font-family: 'KaiTi', 'STKaiti', serif;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* ===== 传统文化板块 ===== */
.culture-section {
    background: linear-gradient(to bottom, var(--light-bg) 0%, #fff 100%);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.culture-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.culture-card h3 {
    font-size: 24px;
    color: var(--ink-black);
    margin-bottom: 15px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.culture-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.learn-more {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.learn-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== 非遗文化板块 ===== */
.heritage-section {
    background: var(--dark-bg);
    color: #fff;
    position: relative;
}

.heritage-section .section-title {
    color: var(--secondary-color);
}

.heritage-section .section-subtitle {
    color: #ccc;
}

.heritage-carousel {
    position: relative;
    min-height: 400px;
    margin-bottom: 40px;
}

.heritage-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.heritage-item.active {
    opacity: 1;
    pointer-events: auto;
}

.heritage-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 160, 86, 0.3);
}

.heritage-content h3 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.heritage-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.heritage-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 20px;
}

.heritage-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.heritage-tags span {
    background: rgba(212, 160, 86, 0.2);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background: var(--secondary-color);
    color: var(--dark-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--primary-color);
}

/* ===== 精品赏析板块 ===== */
.gallery-section {
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    text-align: center;
}

.gallery-image {
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-label {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-item h3 {
    font-size: 20px;
    color: var(--ink-black);
    margin-bottom: 10px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.gallery-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== 经典诗词板块 ===== */
.poetry-section {
    background: linear-gradient(135deg, #f5f0e6 0%, #fff 100%);
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.poetry-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0d4b8;
    position: relative;
}

.poetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.poetry-card h3 {
    font-size: 28px;
    color: var(--ink-black);
    margin-bottom: 10px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.poet {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

.poetry-content {
    background: #faf8f0;
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.poetry-content p {
    font-size: 18px;
    color: var(--text-color);
    margin: 5px 0;
    font-family: 'KaiTi', 'STKaiti', serif;
    letter-spacing: 3px;
}

/* ===== 联系我们板块 ===== */
.contact-section {
    background: var(--dark-bg);
    color: #fff;
}

.contact-section .section-title {
    color: var(--secondary-color);
}

.contact-section .section-subtitle {
    color: #ccc;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(212, 160, 86, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 160, 86, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f0f1a;
    color: #fff;
    padding: 60px 0 20px;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.footer-section p {
    color: #999;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .heritage-content h3 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .poetry-grid {
        grid-template-columns: 1fr;
    }

    .poetry-content p {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .culture-card {
        padding: 30px 20px;
    }
}

/* ===== 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
