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

:root {
    --primary-gold: #c9a959;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f0;
    --text-dark: #2c2c2c;
    --text-light: #f5f5f0;
    --accent-red: #c8102e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', 'SimSun', serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 8px;
}

.brand-sub {
    font-size: 12px;
    color: var(--primary-gold);
    letter-spacing: 4px;
    margin-top: -5px;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ==================== 首屏英雄区 ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imanges/航拍.png') center/cover no-repeat;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 80px;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-size: 180px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    text-shadow: 0 10px 50px rgba(0,0,0,0.5);
    letter-spacing: 20px;
    animation: titleReveal 1.5s ease-out;
}

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

.hero-subtitle {
    font-size: 28px;
    color: var(--primary-gold);
    letter-spacing: 15px;
    margin-top: 20px;
    margin-left: 30px;
}

.hero-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 80px;
}

.hero-description p {
    color: #fff;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    z-index: 10;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 56px;
    font-weight: bold;
    color: var(--text-dark);
    letter-spacing: 10px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    letter-spacing: 5px;
}

.section-header.light .section-title {
    color: #fff;
}

.section-header.light .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* ==================== 美景区 - 错位卡片 ==================== */
.scenery-section {
    background: var(--light-bg);
}

.scenery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 80px);
    gap: 20px;
    padding: 0 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.scenery-card {
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scenery-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.scenery-card .card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s;
}

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

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.5s;
}

.scenery-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.card-content p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 卡片布局 */
.scenery-card.large {
    grid-column: 1 / 7;
    grid-row: 1 / 7;
}

.scenery-card.small {
    grid-column: 7 / 10;
    grid-row: 1 / 5;
}

.scenery-card.medium {
    grid-column: 7 / 13;
    grid-row: 5 / 9;
}

.scenery-card.tall {
    grid-column: 10 / 13;
    grid-row: 1 / 7;
}

.scenery-card.wide {
    grid-column: 1 / 13;
    grid-row: 7 / 11;
}

.scenery-card.left.offset {
    grid-column: 1 / 6;
    grid-row: 7 / 13;
}

/* ==================== 文化区 - S型溪流路径 ==================== */
.culture-section {
    position: relative;
    background: linear-gradient(180deg,
        #1a2f3a 0%,
        #2d4a5c 30%,
        #3d5a6a 50%,
        #2d4a5c 70%,
        #1a2f3a 100%);
    overflow: visible;
    padding: 80px 0;
}

.culture-river-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 2000px;
}

/* 河流路径SVG */
.river-path {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 主河流 */
.river-main {
    filter: drop-shadow(0 5px 15px rgba(74, 144, 164, 0.5));
    animation: riverPulse 4s ease-in-out infinite;
}

@keyframes riverPulse {
    0%, 100% { stroke-width: 80; }
    50% { stroke-width: 90; }
}

/* 波纹动画 */
.ripple {
    animation: rippleExpand 3s ease-out infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 0.5s; }
.ripple-3 { animation-delay: 1s; }
.ripple-4 { animation-delay: 1.5s; }
.ripple-5 { animation-delay: 2s; }
.ripple-6 { animation-delay: 2.5s; }
.ripple-7 { animation-delay: 3s; }

@keyframes rippleExpand {
    0% {
        r: 5;
        opacity: 0.8;
    }
    100% {
        r: 40;
        opacity: 0;
    }
}

/* 水流线条动画 */
.water-flow {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: waterFlow 2s linear infinite;
}

.flow-1 { animation-delay: 0s; }
.flow-2 { animation-delay: 0.4s; }
.flow-3 { animation-delay: 0.8s; }
.flow-4 { animation-delay: 1.2s; }
.flow-5 { animation-delay: 1.6s; }

@keyframes waterFlow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* 溪流旁的内容点 */
.river-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.river-point {
    position: absolute;
    width: 320px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.river-point.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.river-point.left {
    left: 5%;
}

.river-point.right {
    right: 5%;
}

/* 标记点 */
.point-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(201, 169, 89, 0.3);
    animation: markerPulse 2s ease-in-out infinite;
    z-index: 5;
}

.river-point.left .point-marker {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.river-point.right .point-marker {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(201, 169, 89, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(201, 169, 89, 0.1);
    }
}

/* 内容卡片 */
.point-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
}

.point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.point-info {
    padding: 20px;
}

.point-tag {
    display: inline-block;
    padding: 4px 15px;
    background: linear-gradient(135deg, var(--primary-gold), #d4af5a);
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.point-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.point-info p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 连接线 */
.river-point.left::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
}

.river-point.right::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(270deg, var(--primary-gold), transparent);
}

/* 漂浮落叶 */
.floating-leaf {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: leafFloat 20s linear infinite;
    z-index: 3;
}

.leaf-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.leaf-2 {
    top: 40%;
    right: 15%;
    animation-delay: 7s;
}

.leaf-3 {
    top: 70%;
    left: 25%;
    animation-delay: 14s;
}

@keyframes leafFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(100px, 500px) rotate(360deg);
        opacity: 0;
    }
}

/* 滚动时的河流流动效果 */
.culture-section.scrolling .river-main {
    animation: riverFlowScroll 0.5s linear;
}

@keyframes riverFlowScroll {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -50; }
}

/* ==================== 建筑画廊 ==================== */
.architecture-section {
    background: var(--light-bg);
}

.architecture-slider {
    display: flex;
    gap: 20px;
    padding: 0 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.architecture-slider::-webkit-scrollbar {
    display: none;
}

.arch-slide {
    min-width: 350px;
    scroll-snap-align: start;
}

.arch-card {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s, box-shadow 0.5s;
}

.arch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.arch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: transform 0.5s;
}

.arch-card:hover .arch-overlay {
    transform: translateY(0);
}

.arch-overlay h3 {
    color: #fff;
    font-size: 28px;
    letter-spacing: 5px;
}

/* ==================== 习俗区 ==================== */
.customs-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, #e8e8e0 100%);
}

.customs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 60px;
}

.customs-circle {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.circle-image.main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 10;
}

.circle-content {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.circle-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.circle-content p {
    font-size: 14px;
    color: #666;
}

.circle-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    top: 50%;
    left: 50%;
    margin-left: -60px;
    margin-top: -60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: rotateCircle 30s linear infinite;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

.customs-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.custom-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s;
}

.custom-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.custom-item h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 3px;
    position: relative;
}

.custom-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--primary-gold);
}

.custom-item p {
    font-size: 16px;
    line-height: 2;
    color: #666;
}

/* ==================== 航拍视差区 ==================== */
.aerial-section {
    padding: 0;
    height: 80vh;
    overflow: hidden;
}

.aerial-parallax {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.aerial-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.aerial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.aerial-content h2 {
    font-size: 72px;
    letter-spacing: 15px;
    margin-bottom: 20px;
    text-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.aerial-content p {
    font-size: 24px;
    letter-spacing: 8px;
    text-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.aerial-parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--dark-bg);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.footer-brand h3 {
    font-size: 36px;
    color: #fff;
    letter-spacing: 8px;
}

.footer-brand p {
    font-size: 16px;
    color: var(--primary-gold);
    letter-spacing: 3px;
    margin-top: 10px;
}

.footer-links p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .scenery-grid {
        grid-template-rows: repeat(15, 80px);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 0 30px;
    }

    .hero-title {
        font-size: 100px;
        letter-spacing: 10px;
    }

    .hero-description {
        padding-left: 0;
    }

    .scenery-grid {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .scenery-card {
        min-height: 250px;
    }

    .customs-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .customs-circle {
        width: 300px;
        height: 300px;
    }

    .circle-image.main {
        width: 200px;
        height: 200px;
    }

    .circle-item {
        width: 80px;
        height: 80px;
        margin-left: -40px;
        margin-top: -40px;
        animation: rotateCircleMobile 30s linear infinite;
    }

    @keyframes rotateCircleMobile {
        from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-item.reverse {
        direction: ltr;
    }

    .timeline-image {
        height: 250px;
    }

    .section-title {
        font-size: 36px;
    }

    .aerial-content h2 {
        font-size: 42px;
    }
}
