/* 全局变量与配色 */
:root {
    --primary-color: #1b4e32; /* 更深邃的墨绿 */
    --primary-light: #2d6a4f;
    --secondary-color: #d4a373; /* 枯竹黄，更有质感 */
    --accent-color: #bc4749; /* 砖红，低饱和度 */
    --text-main: #1d1d1f;
    --text-light: #6e6e73;
    --bg-paper: #f2f0e9; /* 米色纸纹底 */
    --white: #ffffff;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.05);
    --shadow-hard: 10px 10px 0px rgba(27, 78, 50, 0.1);
    
    /* 字体系统 - 使用系统字体 */
    --font-display: "STSong", "SimSun", "Songti SC", "NSimSun", serif;
    --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* 全局噪点纹理 */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 毛南族特色滚动条 */
::-webkit-scrollbar {
    width: 12px;
    background: var(--bg-paper);
}

::-webkit-scrollbar-track {
    background: linear-gradient(
        180deg,
        var(--bg-paper) 0%,
        rgba(27, 78, 50, 0.05) 50%,
        var(--bg-paper) 100%
    );
    border-left: 1px solid rgba(27, 78, 50, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary-color) 0%,
        var(--primary-light) 25%,
        var(--secondary-color) 50%,
        var(--primary-light) 75%,
        var(--primary-color) 100%
    );
    border-radius: 6px;
    border: 2px solid var(--bg-paper);
    background-size: 100% 200%;
    transition: background-position 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--accent-color) 0%,
        var(--secondary-color) 30%,
        var(--primary-color) 50%,
        var(--secondary-color) 70%,
        var(--accent-color) 100%
    );
    border-radius: 6px;
    border: 2px solid var(--bg-paper);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

/* Firefox 滚动条 */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-paper);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-paper);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
    scroll-behavior: smooth;
}

/* 巨大水印文字装饰 */
.watermark-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 15rem;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

/* 导航栏重构 - 极简风格 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    mix-blend-mode: difference; /* 混合模式，让导航在黑白背景都能看清 */
    color: #fff;
}

.navbar.scrolled {
    padding: 15px 50px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    color: var(--text-main);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    position: relative;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-text .main {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.logo-text .sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* 默认隐藏，配合JS在移动端显示 */
    cursor: pointer;
}

/* Hero 区域 - 杂志排版风格 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    overflow-x: clip;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* 为视差预留空间 */
    background: url('../assets/images/bg.jpg?v=001') no-repeat center center/cover;
    filter: brightness(0.7) contrast(1.1);
    z-index: -1;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-text-group {
    position: relative;
    z-index: 2;
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 20px;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

.hero-sub-title {
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 300;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 40px;
}

/* 竖排装饰文字 */
.vertical-deco {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 10px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 20px;
}

.vertical-deco::before {
    content: '';
    display: block;
    width: 1px;
    height: 100px;
    background: rgba(255,255,255,0.6);
}

/* 通用布局类 */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.container-fluid {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

/* 概况 - 重叠布局 */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: center;
    position: relative;
}

.about-img-wrapper {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.about-content-card {
    background: var(--white);
    padding: 80px 60px;
    margin-left: -150px; /* 重叠关键 */
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    line-height: 1.2;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 风光 - 错落布局 (ZigZag) */
.scenery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 150px;
    align-items: center;
}

.scenery-item:nth-child(even) {
    direction: rtl; /* 偶数项左右互换 */
}

.scenery-item:nth-child(even) .scenery-text {
    direction: ltr; /* 文字方向还原 */
}

.scenery-img-box {
    position: relative;
    height: 500px;
}

.scenery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.6s ease;
}

.scenery-img-box::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    z-index: -1;
    transition: transform 0.4s ease;
}

.scenery-item:hover .scenery-img-box img {
    filter: grayscale(0%);
}

.scenery-item:hover .scenery-img-box::before {
    transform: translate(10px, 10px);
}

.scenery-text h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.scenery-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: rgba(27, 78, 50, 0.1);
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

/* 按钮 - 极简线条 */
.btn-line {
    display: inline-block;
    margin-top: 30px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text-main);
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-line:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding-right: 10px;
}

/* 路线推荐 - 卡片时间轴风 */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.route-card {
    background: var(--white);
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.route-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.route-card:hover::after {
    transform: scaleX(1);
}

.route-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.route-days {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.route-list {
    list-style: none;
    margin-left: 20px;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.route-list li {
    margin-bottom: 15px;
    position: relative;
}

.route-list li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* 实用指南 - 极简图标网格 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.guide-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.guide-item:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.guide-icon {
    margin-bottom: 20px;
    opacity: 0.8;
}

.guide-icon .icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* 通用图标图片样式 */
.icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.guide-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.guide-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 文化 - 横向滚动画廊风格 */
.culture-section {
    background: var(--primary-color);
    color: #fff;
    padding: 150px 0;
    overflow: hidden;
}

.culture-scroll-wrapper {
    display: flex;
    gap: 40px;
    padding-left: 10vw;
    overflow-x: auto;
    padding-bottom: 50px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.culture-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.culture-card {
    flex: 0 0 350px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease;
}

.culture-card:hover {
    transform: translateY(-20px);
    background: rgba(255,255,255,0.1);
}

.culture-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.culture-img-wrapper {
    width: 120px;
    aspect-ratio: 200 / 300;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
}

.culture-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.culture-card:hover .culture-img {
    transform: scale(1.08);
}

.culture-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 美食 - 拼贴网格 (Masonry-like) */
.food-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 20px;
}

.food-item {
    position: relative;
    overflow: hidden;
}

.food-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 2; }
.food-item:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 2; }
.food-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 3; } /* 竖长图 */
.food-item:nth-child(4) { grid-column: 1 / 9; grid-row: 2 / 3; } /* 横长图 */

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.food-item:hover .food-img {
    transform: scale(1.05);
}

.food-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    color: var(--text-main);
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-content-card {
        margin-left: 0;
        margin-top: -100px;
        margin-right: 20px;
        width: calc(100% - 20px);
    }
    
    .hero-main-title {
        font-size: 5rem;
    }
    
    .scenery-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .scenery-item:nth-child(even) {
        direction: ltr;
    }
    
    .food-grid {
        display: block;
    }
    
    .food-item {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .routes-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-layout {
        grid-template-columns: 1fr;
    }
    
    .visual-break {
        height: 60vh;
    }
    
    .quote-text {
        font-size: 2rem;
    }
}

/* 视觉暂留 - 全屏视差引用 */
.visual-break {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.visual-break-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('../assets/images/huanjiang.jpg?v=001') no-repeat center center/cover;
    filter: brightness(0.6);
    z-index: -1;
}

.quote-box {
    max-width: 800px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

.quote-author {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

/* 匠人故事 - 人物卡片 */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.story-card {
    background: var(--white);
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s;
    box-shadow: var(--shadow-soft);
}

.story-card:hover {
    transform: translateY(-10px);
}

.story-img-wrapper {
    height: 300px;
    overflow: hidden;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.story-card:hover .story-img {
    transform: scale(1.1);
}

.story-content {
    padding: 30px;
}

.story-role {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.story-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.story-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 栖居山水 - 杂志排版 */
.accommodation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hotel-info {
    padding: 40px;
    background: #fff;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.hotel-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hotel-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-main);
}

.hotel-tag {
    font-size: 0.8rem;
    padding: 5px 10px;
    background: var(--bg-paper);
    color: var(--text-light);
}

.hotel-img-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.hotel-img-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.hotel-img-sub {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-main) !important;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        z-index: 1000;
    }
    
    .navbar.scrolled .menu-toggle {
        color: var(--text-main);
    }
    
    /* Logo */
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-text .main {
        font-size: 1rem;
    }
    
    .logo-text .sub {
        font-size: 0.55rem;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .hero-main-title {
        font-size: 4rem;
    }
    
    .hero-sub-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .vertical-deco {
        display: none;
    }
    
    /* 概况 */
    .about-img-wrapper {
        height: 350px;
    }
    
    .about-content-card {
        padding: 40px 30px;
        margin-top: -80px;
    }
    
    .section-heading {
        font-size: 2.5rem;
    }
    
    /* 风光 */
    .scenery-img-box {
        height: 300px;
    }
    
    .scenery-text h3 {
        font-size: 1.8rem;
    }
    
    .scenery-number {
        font-size: 4rem;
    }
    
    /* 文化 */
    .culture-section {
        padding: 80px 0;
    }
    
    .culture-card {
        flex: 0 0 280px;
        padding: 30px;
    }
    
    .culture-img-wrapper {
        width: 100px;
    }
    
    /* 美食 */
    .food-item {
        height: 250px;
    }
    
    /* 栖居 */
    .hotel-info {
        padding: 30px;
    }
    
    .hotel-img-group {
        grid-template-columns: 1fr;
    }
    
    .hotel-img-main {
        grid-column: 1;
        height: 220px;
    }
    
    .hotel-img-sub {
        height: 160px;
    }
    
    /* 路线 */
    .route-card {
        padding: 30px;
    }
    
    .route-title {
        font-size: 1.4rem;
    }
    
    /* 指南 */
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .guide-item {
        padding: 25px 15px;
    }
    
    .guide-icon {
        font-size: 2rem;
    }
    
    /* 页脚 */
    footer {
        padding: 60px 0 !important;
    }
    
    footer h2 {
        font-size: 2rem !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .hero-main-title {
        font-size: 3rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-card {
        flex: 0 0 240px;
    }
}
