/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5016;
    --primary-light: #4a7c2e;
    --accent: #d4a017;
    --accent-light: #f0d68a;
    --dark: #1a1a2e;
    --text: #333;
    --text-light: #666;
    --bg: #f8f6f2;
    --bg-dark: #f0ebe0;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(45, 80, 22, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2f0a 0%, #2d5016 30%, #4a7c2e 60%, #3d6b24 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(212,160,23,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(74,124,46,0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.015) 2px,
            rgba(255,255,255,0.015) 4px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--accent-light);
    letter-spacing: 6px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    color: var(--white);
    font-weight: 900;
    letter-spacing: 16px;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    font-family: Georgia, serif;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    margin-top: 4px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 4px;
    border-radius: 30px;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--accent);
    color: #1a2f0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,160,23,0.4);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ===== 简介区域 ===== */
.intro {
    padding: 100px 0;
    background: var(--bg);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(74,124,46,0.08);
    border-radius: 20px;
}

.intro-text h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.9;
}

.intro-text strong {
    color: var(--primary);
}

.intro-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== 历史沿革 ===== */
.history {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light .section-label {
    color: var(--accent-light);
    background: rgba(255,255,255,0.1);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(212,160,23,0.2);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 2px 10px;
    background: rgba(212,160,23,0.1);
    border-radius: 12px;
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 名胜景点 ===== */
.attractions {
    padding: 100px 0;
    background: var(--bg);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.attraction-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.attraction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.attraction-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.attraction-emoji {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.attraction-info {
    padding: 20px;
}

.attraction-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.attraction-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    background: rgba(212,160,23,0.1);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.attraction-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 美食特产 ===== */
.food {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a2f0a 0%, #2d5016 50%, #1a3a0a 100%);
    color: var(--white);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.food-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.food-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.food-img-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}

.food-emoji {
    font-size: 56px;
}

.food-content {
    padding: 20px;
}

.food-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--accent-light);
}

.food-tag {
    display: inline-block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.food-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

/* ===== 民俗文化 ===== */
.culture {
    padding: 100px 0;
    background: var(--bg-dark);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.culture-item {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.culture-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.culture-item h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.culture-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 风光图集 ===== */
.gallery {
    padding: 100px 0;
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 4px;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ===== 旅游攻略 ===== */
.travel-tips {
    padding: 100px 0;
    background: var(--bg-dark);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tip-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tip-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.tip-card ul {
    list-style: none;
}

.tip-card li {
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.tip-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-links h4,
.footer-info h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .attractions-grid,
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(45, 80, 22, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transform: translateY(-120%);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .attractions-grid,
    .food-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
