/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 优化动画性能 */
html {
    scroll-behavior: smooth;
    /* 确保html元素可以正常滚动 */
    overflow-x: auto;
    overflow-y: auto;
}

/* 减少重绘和回流 */
*,
*::before,
*::after {
    will-change: auto;
}

/* 为动画元素启用硬件加速和优化性能 */
.animated-element,
.tour-card,
.story-card,
.value-card,
.btn,
.nav-link,
.traditional-building {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* 防止hover时的抖动 */
.tour-card,
.story-card,
.value-card,
.traditional-building {
    transform-origin: center center;
    contain: layout style paint;
}

/* 优化过渡效果，减少重绘 */
.tour-card:hover,
.story-card:hover,
.value-card:hover,
.traditional-building:hover {
    will-change: transform, box-shadow;
}

:root {
    /* 浅蓝色主题色彩 */
    --primary-blue: #4A90E2;    /* 主蓝色 */
    --light-blue: #E3F2FD;      /* 浅蓝色 */
    --dark-blue: #1565C0;       /* 深蓝色 */
    --accent-blue: #2196F3;     /* 强调蓝色 */
    --gold: #FFD700;            /* 金黄 */
    --ink-black: #1C1C1C;       /* 墨黑 */
    --warm-white: #F8FBFF;      /* 浅蓝白色 */
    --light-gray: #F5F8FA;
    --text-gray: #546E7A;
    --border-color: #E1F5FE;
    
    /* 字体 */
    --font-family: 'Noto Serif SC', serif;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--ink-black);
    background-color: var(--warm-white);
    /* 修复滚动问题：移除overflow-x限制，确保所有浏览器都能正常滚动 */
    overflow-x: auto;
    /* 确保页面可以正常滚动 */
    min-height: 100vh;
}

/* 修复模态框滚动问题：使用更兼容的方式 */
body.modal-open {
    overflow: hidden;
    /* 防止iOS Safari的滚动问题 */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* 确保所有浏览器的滚动兼容性 */
* {
    /* 移除可能导致滚动问题的CSS属性 */
    -webkit-overflow-scrolling: touch;
}

/* 修复某些浏览器的滚动条问题 */
html, body {
    /* 确保滚动条始终可见和可用 */
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

/* 修复WebKit浏览器的滚动问题 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 120px;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    animation: buttonPulse 0.6s ease-out;
    will-change: transform, box-shadow;
    transform-origin: center center;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.2);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* 导航栏 - 屏蔽特效动画，防止抖动 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 251, 255, 0.98);
    /* 移除模糊效果，可能导致性能问题 */
    /* backdrop-filter: blur(15px); */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    /* 移除过渡效果，防止抖动 */
    /* transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), backdrop-filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    box-shadow: 0 2px 20px rgba(74, 144, 226, 0.08);
    transform: translateZ(0);
    /* 移除will-change，减少GPU内存使用 */
    /* will-change: background, box-shadow; */
    transform-origin: center top;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    contain: layout style paint;
}

/* 屏蔽滚动时的特效变化，防止抖动 */
.navbar.scrolled {
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 4px 24px rgba(74, 144, 226, 0.12);
    /* 移除模糊效果，可能导致性能问题 */
    /* backdrop-filter: blur(20px); */
    /* 保持相同的性能优化属性，但移除可能导致抖动的属性 */
    transform: translateZ(0);
    /* 移除will-change，减少GPU内存使用 */
    /* will-change: background, box-shadow; */
    transform-origin: center top;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    contain: layout style paint;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h2 {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-lg);
}

/* 导航链接 - 屏蔽特效，防止抖动 */
.nav-link {
    text-decoration: none;
    color: var(--ink-black);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    /* 移除过渡效果，防止抖动 */
    /* transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    position: relative;
    /* 移除overflow:hidden，可能导致重绘 */
    /* overflow: hidden; */
    /* 移除3D变换，减少GPU使用 */
    /* transform: translateZ(0); */
    /* 移除will-change，减少GPU内存使用 */
    /* will-change: color, background, box-shadow; */
    /* transform-origin: center center; */
    /* backface-visibility: hidden; */
    -webkit-font-smoothing: antialiased;
    /* contain: layout style paint; */
}

/* 完全屏蔽导航链接的伪元素特效，防止抖动 */
/* .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.nav-link:hover::before {
    background-color: rgba(74, 144, 226, 0.05);
} */

/* 屏蔽导航链接hover和active状态的特效，防止抖动 */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.08);
    /* 移除所有可能导致抖动的效果 */
    /* box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15); */
    /* will-change: color, background, box-shadow; */
    /* transform-origin: center center; */
}

/* 完全屏蔽导航链接的下划线特效，防止抖动 */
/* .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: width;
}

.nav-link:hover::after {
    width: 100%;
} */

/* 语言选择下拉框 - 屏蔽特效，防止抖动 */
.language-switch select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-family);
    color: var(--ink-black);
    /* 移除所有可能导致抖动的效果 */
    /* transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    /* transform: translateZ(0); */
    /* will-change: border-color; */
    /* transform-origin: center center; */
    /* backface-visibility: hidden; */
    -webkit-font-smoothing: antialiased;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink-black);
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--light-blue) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 添加中国传统建筑背景图案 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" fill="none"><g opacity="0.08" fill="%234A90E2"><path d="M100 600 Q150 580 200 600 L250 590 Q300 570 350 590 L400 580 Q450 560 500 580 L550 570 Q600 550 650 570 L700 560 Q750 540 800 560 L850 550 Q900 530 950 550 L1000 540 Q1050 520 1100 540 L1200 530 L1200 800 L0 800 Z"/><rect x="150" y="400" width="80" height="200" rx="5"/><rect x="140" y="380" width="100" height="20" rx="10"/><rect x="130" y="360" width="120" height="20" rx="10"/><polygon points="190,320 130,360 250,360"/><rect x="300" y="450" width="60" height="150" rx="3"/><rect x="290" y="430" width="80" height="20" rx="8"/><polygon points="330,390 290,430 370,430"/><rect x="500" y="420" width="100" height="180" rx="5"/><rect x="490" y="400" width="120" height="20" rx="10"/><rect x="480" y="380" width="140" height="20" rx="10"/><polygon points="550,340 480,380 620,380"/><rect x="700" y="480" width="70" height="120" rx="4"/><rect x="690" y="460" width="90" height="20" rx="8"/><polygon points="735,420 690,460 780,460"/><rect x="900" y="440" width="90" height="160" rx="5"/><rect x="890" y="420" width="110" height="20" rx="10"/><polygon points="945,380 890,420 1000,420"/><ellipse cx="200" cy="300" rx="15" ry="8" fill="%234A90E2" opacity="0.06"/><ellipse cx="400" cy="250" rx="20" ry="10" fill="%234A90E2" opacity="0.06"/><ellipse cx="600" cy="280" rx="18" ry="9" fill="%234A90E2" opacity="0.06"/><ellipse cx="800" cy="220" rx="22" ry="11" fill="%234A90E2" opacity="0.06"/><path d="M50 650 Q100 630 150 650 Q200 630 250 650 Q300 630 350 650 Q400 630 450 650 Q500 630 550 650 Q600 630 650 650 Q700 630 750 650 Q800 630 850 650 Q900 630 950 650 Q1000 630 1050 650 Q1100 630 1150 650" stroke="%234A90E2" stroke-width="2" fill="none" opacity="0.1"/></g></svg>');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.traditional-building {
    width: 400px;
    height: 300px;
    background-image: url('images/主页样式.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.traditional-building:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(74, 144, 226, 0.1);
    will-change: transform, box-shadow;
    transform-origin: center center;
}

.traditional-building::before {
    content: '';
}

.traditional-building::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.2) 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    transform: rotate(45deg);
    margin: 8px auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    40% {
        transform: translateY(-12px) rotate(45deg);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    }
    60% {
        transform: translateY(-6px) rotate(45deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
}

/* 增强滚动指示器动画 */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    transform: rotate(45deg);
    margin: 8px auto;
    animation: bounce 2s infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
    }
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-2xl);
    color: var(--ink-black);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold));
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们 */
.about {
    padding: var(--spacing-2xl) 0;
    background: white;
    position: relative;
    overflow: hidden;
}

/* 为关于我们区块添加传统建筑背景装饰 */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 600" fill="none"><g opacity="0.04" fill="%234A90E2"><rect x="50" y="400" width="60" height="150" rx="3"/><rect x="40" y="380" width="80" height="20" rx="8"/><rect x="30" y="360" width="100" height="20" rx="10"/><polygon points="80,320 30,360 130,360"/><rect x="150" y="350" width="80" height="200" rx="5"/><rect x="140" y="330" width="100" height="20" rx="10"/><rect x="130" y="310" width="120" height="20" rx="10"/><polygon points="190,270 130,310 250,310"/><ellipse cx="100" cy="250" rx="15" ry="8" fill="%234A90E2" opacity="0.03"/><ellipse cx="200" cy="200" rx="20" ry="10" fill="%234A90E2" opacity="0.03"/><path d="M20 500 Q50 480 80 500 Q110 480 140 500 Q170 480 200 500 Q230 480 260 500" stroke="%234A90E2" stroke-width="1" fill="none" opacity="0.05"/></g></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text h3 {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.business-list {
    list-style: none;
    padding: 0;
}

.business-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-gray);
    font-size: var(--font-size-lg);
    border-bottom: 1px solid var(--light-gray);
}

.about-values {
    display: grid;
    gap: var(--spacing-lg);
}

.value-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 215, 0, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 0 16px rgba(74, 144, 226, 0.08);
    border-color: rgba(74, 144, 226, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform-origin: center center;
}

/* 移除可能导致抖动的cardFloat动画 */
@keyframes cardFloat {
    0% {
        transform: translateY(-6px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(-8px);
    }
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.value-card h4 {
    color: var(--dark-blue);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 旅游线路 */
.tours {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

/* 为旅游线路区块添加传统建筑背景装饰 */
.tours::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 400px;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 800" fill="none"><g opacity="0.03" fill="%234A90E2"><rect x="50" y="200" width="100" height="250" rx="5"/><rect x="40" y="180" width="120" height="20" rx="10"/><rect x="30" y="160" width="140" height="20" rx="10"/><polygon points="100,120 30,160 170,160"/><rect x="200" y="300" width="80" height="200" rx="4"/><rect x="190" y="280" width="100" height="20" rx="8"/><rect x="180" y="260" width="120" height="20" rx="10"/><polygon points="240,220 180,260 300,260"/><rect x="80" y="500" width="60" height="150" rx="3"/><rect x="70" y="480" width="80" height="20" rx="8"/><polygon points="110,440 70,480 150,480"/><rect x="250" y="550" width="90" height="180" rx="5"/><rect x="240" y="530" width="110" height="20" rx="10"/><polygon points="295,490 240,530 350,530"/><ellipse cx="150" cy="100" rx="20" ry="10" fill="%234A90E2" opacity="0.02"/><ellipse cx="300" cy="150" rx="25" ry="12" fill="%234A90E2" opacity="0.02"/><ellipse cx="120" cy="400" rx="18" ry="9" fill="%234A90E2" opacity="0.02"/><path d="M20 700 Q60 680 100 700 Q140 680 180 700 Q220 680 260 700 Q300 680 340 700" stroke="%234A90E2" stroke-width="1.5" fill="none" opacity="0.04"/></g></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.tour-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    position: relative;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform-origin: center center;
}

/* 优化后的tour卡片动画，移除3D变换 */
@keyframes tourCardHover {
    0% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.tour-card:hover::before {
    opacity: 1;
}

.tour-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-image.ancestry {
    background: url('images/寻根问祖之旅.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tour-image.culture {
    background: url('images/文化体验之旅.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tour-image.food {
    background: url('images/美食寻味之旅.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tour-image.heritage {
    background: url('images/非遗研学之旅.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .tour-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
} */

.tour-content {
    padding: var(--spacing-lg);
}

.tour-content h3 {
    color: var(--ink-black);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.tour-content > p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.tour-highlights {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.tour-highlights li {
    color: var(--text-gray);
    font-size: 14px;
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.tour-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* 华侨故事 */
.stories {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.stories-container {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(255, 215, 0, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-gold);
    will-change: transform, box-shadow;
    transform-origin: center center;
}

.story-card:hover::before {
    opacity: 1;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    flex-shrink: 0;
    position: relative;
}

.story-avatar::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.story-content h4 {
    color: var(--dark-blue);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.story-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.story-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 12px;
    color: var(--text-gray);
}

.story-meta span {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 13px;
}

.story-read-more {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(74, 144, 226, 0.05);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

.story-card:hover .story-read-more {
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(4px);
}

.read-more-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.read-more-icon {
    will-change: transform;
    transform-origin: center center;
}

.story-card:hover .read-more-icon {
    transform: translateY(-1px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 联系我们 */
.contact {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

/* 为联系我们区块添加传统建筑背景装饰 */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: -150px;
    width: 500px;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 600" fill="none"><g opacity="0.04" fill="%234A90E2"><rect x="100" y="150" width="120" height="300" rx="6"/><rect x="90" y="130" width="140" height="20" rx="10"/><rect x="80" y="110" width="160" height="20" rx="10"/><polygon points="160,70 80,110 240,110"/><rect x="300" y="200" width="100" height="250" rx="5"/><rect x="290" y="180" width="120" height="20" rx="10"/><rect x="280" y="160" width="140" height="20" rx="10"/><polygon points="350,120 280,160 420,160"/><rect x="50" y="350" width="80" height="200" rx="4"/><rect x="40" y="330" width="100" height="20" rx="8"/><polygon points="90,290 40,330 140,330"/><rect x="350" y="400" width="70" height="150" rx="3"/><rect x="340" y="380" width="90" height="20" rx="8"/><polygon points="385,340 340,380 430,380"/><ellipse cx="200" cy="50" rx="25" ry="12" fill="%234A90E2" opacity="0.03"/><ellipse cx="400" cy="80" rx="30" ry="15" fill="%234A90E2" opacity="0.03"/><ellipse cx="150" cy="250" rx="20" ry="10" fill="%234A90E2" opacity="0.03"/><path d="M30 500 Q80 480 130 500 Q180 480 230 500 Q280 480 330 500 Q380 480 430 500" stroke="%234A90E2" stroke-width="2" fill="none" opacity="0.05"/><path d="M50 520 Q100 500 150 520 Q200 500 250 520 Q300 500 350 520 Q400 500 450 520" stroke="%234A90E2" stroke-width="1" fill="none" opacity="0.03"/></g></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.contact-info h3,
.contact-form h3 {
    color: var(--dark-blue);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-icon {
    font-size: 24px;
    margin-top: 4px;
}

.contact-item strong {
    color: var(--ink-black);
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

.contact-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--ink-black);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus),
.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

textarea.form-control,
.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

select.form-control,
.form-group select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    z-index: 2001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close {
    will-change: transform;
    transform-origin: center center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-body {
    padding: var(--spacing-xl);
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.story-detail-header {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.story-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.story-detail-avatar::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.story-detail-info h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-dark);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.story-detail-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.story-detail-meta span,
.story-detail-meta time {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-red);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.story-detail-content > div {
    margin-bottom: var(--spacing-xl);
}

.story-quote blockquote {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
    margin: 0;
    font-style: italic;
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--text-dark);
}

.story-detail-content h5 {
    color: var(--primary-red);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.story-detail-content h5::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.story-full-content p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.story-highlights ul {
    list-style: none;
    padding: 0;
}

.story-highlights li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.story-highlights li:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.story-highlights li::before {
    content: '✨';
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.photo-item {
    aspect-ratio: 4/3;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item {
    will-change: transform;
    transform-origin: center center;
    contain: layout style paint;
}

.photo-item:hover {
    transform: translateY(-3px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-item::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: var(--text-gray);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: var(--spacing-sm);
    font-size: 13px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--ink-black), #1a1a1a);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* 为页脚添加传统建筑背景装饰 */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" fill="none"><g opacity="0.06" fill="%23FFD700"><path d="M0 150 Q100 130 200 150 Q300 130 400 150 Q500 130 600 150 Q700 130 800 150 Q900 130 1000 150 Q1100 130 1200 150 L1200 200 L0 200 Z"/><rect x="150" y="80" width="60" height="120" rx="3"/><rect x="140" y="60" width="80" height="20" rx="8"/><polygon points="180,40 140,60 220,60"/><rect x="350" y="90" width="80" height="110" rx="4"/><rect x="340" y="70" width="100" height="20" rx="10"/><polygon points="390,50 340,70 440,70"/><rect x="550" y="70" width="100" height="130" rx="5"/><rect x="540" y="50" width="120" height="20" rx="10"/><polygon points="600,30 540,50 660,50"/><rect x="750" y="85" width="70" height="115" rx="3"/><rect x="740" y="65" width="90" height="20" rx="8"/><polygon points="785,45 740,65 830,65"/><rect x="950" y="75" width="90" height="125" rx="4"/><rect x="940" y="55" width="110" height="20" rx="10"/><polygon points="995,35 940,55 1050,55"/><ellipse cx="200" cy="20" rx="15" ry="8" fill="%23FFD700" opacity="0.04"/><ellipse cx="400" cy="25" rx="18" ry="9" fill="%23FFD700" opacity="0.04"/><ellipse cx="600" cy="15" rx="20" ry="10" fill="%23FFD700" opacity="0.04"/><ellipse cx="800" cy="30" rx="16" ry="8" fill="%23FFD700" opacity="0.04"/><ellipse cx="1000" cy="20" rx="22" ry="11" fill="%23FFD700" opacity="0.04"/></g></svg>');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.footer-section {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.footer-section h4 {
    color: var(--gold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.2);
}

.social-links a:hover::before {
    left: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    margin: 0 calc(-1 * var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* 潮汕文化展示区域 */
.culture-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.culture-section {
    margin-bottom: 80px;
}

.culture-section:last-child {
    margin-bottom: 0;
}

.culture-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.culture-section.reverse .culture-content {
    flex-direction: row-reverse;
}

.culture-text {
    flex: 1;
    max-width: 500px;
}

.culture-text h3 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.culture-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.culture-features {
    list-style: none;
    padding: 0;
}

.culture-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-gray);
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.culture-features li:hover {
    color: var(--primary-red);
}

.culture-gallery {
    flex: 1;
    max-width: 600px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: 400px;
}

.gallery-grid .gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-item {
    will-change: transform;
    transform-origin: center center;
    contain: layout style paint;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* 潮汕文化图片背景 */
.chenci-house {
    background: url('images/陈慈簧故居.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ancestral-hall {
    background: url('images/己略黄公祠.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ancient-village {
    background: url('images/龙湖古寨.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.chaoshan-embroidery {
    background: url('images/潮汕刺绣.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wood-carving {
    background: url('images/潮汕木雕.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ceramics {
    background: url('images/潮汕陶瓷.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.beef-hotpot {
    background: url('images/牛肉火锅.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kungfu-tea {
    background: url('images/潮汕功夫茶.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.traditional-snacks {
    background: url('images/潮汕小吃.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.chaozhou-opera {
    background: url('images/潮剧.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.traditional-music {
    background: url('images/潮汕音乐.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.folk-dance {
    background: url('images/潮汕英歌舞.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 潮汕文化模态框样式 */
.culture-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.culture-modal-header h3 {
    margin: 0;
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 600;
}

.culture-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.culture-modal-close:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

.culture-modal-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.culture-modal-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.culture-modal-text {
    flex: 1;
}

.culture-modal-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.culture-modal-details {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

/* 模态框响应式设计 */
@media (max-width: 768px) {
    .culture-modal-content {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    .culture-modal-header {
        padding: 15px 20px;
    }
    
    .culture-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .culture-modal-body {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .culture-modal-image {
        width: 100%;
        height: 200px;
    }
    
    .culture-modal-text p {
        font-size: 1rem;
    }
    
    .culture-modal-details {
        font-size: 0.9rem;
        padding: 15px;
    }
}

/* 可访问性样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* 焦点样式增强 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .traditional-building {
        width: 300px;
        height: 200px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .story-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    /* 潮汕文化展示区域响应式 */
    .culture-showcase {
        padding: 40px 0;
    }
    
    .culture-section {
        margin-bottom: 50px;
    }
    
    .culture-content {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .culture-section.reverse .culture-content {
        flex-direction: column;
    }
    
    .culture-text {
        max-width: 100%;
        text-align: center;
    }
    
    .culture-text h3 {
        font-size: 1.8rem;
    }
    
    .culture-text p {
        font-size: 1rem;
    }
    
    .culture-gallery {
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }
    
    .gallery-grid .gallery-item:first-child {
        grid-row: span 1;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-overlay {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.7);
    }
    
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .traditional-building {
        width: 250px;
        height: 180px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .nav-container {
        height: 60px;
    }
    
    .nav-logo h2 {
        font-size: var(--font-size-lg);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 动画和过渡效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.slide-in-top {
    animation: slideInFromTop 0.8s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* 加载状态 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* 微交互效果 */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.interactive-element:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 按钮点击波纹效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* 卡片悬停效果增强 */
.enhanced-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: transform, box-shadow;
    transform-origin: center center;
}

/* 文字打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-red);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-red);
    }
}

/* 进度条动画 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
    border-radius: 2px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* 数字计数动画 */
.counter {
    font-weight: bold;
    color: var(--primary-red);
}

/* 滚动触发动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal.delay-4 {
    transition-delay: 0.4s;
}

/* 浮动动画 */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 旋转动画 */
.rotate {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 心跳动画 */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* 摇摆动画 */
.swing {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

/* 弹跳动画 */
.bounce-in {
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    70% {
        transform: translateY(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载指示器 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 点状加载指示器 */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 页面过渡效果 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 页面加载状态 */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s ease 1s forwards;
}

body:not(.loaded)::after {
    content: '盼达旅游';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    z-index: 10000;
    animation: pulse 1s ease-in-out infinite, fadeOut 0.5s ease 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU加速优化 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* 滚动优化 */
.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 图片懒加载优化 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* 动画完成状态优化 */
.fade-in-up.finished {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

/* JavaScript动画类，避免内联样式冲突 */
.nav-link-clicked {
    transform: scale(0.95) !important;
    transition: transform 0.15s ease !important;
}

.element-reveal {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.element-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.modal-scale-in {
    transform: scale(1) !important;
    transition: transform 0.3s ease !important;
}

.modal-scale-out {
    transform: scale(0.8) !important;
    transition: transform 0.3s ease !important;
}

/* 通知消息动画类 */
.notification-show {
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
}

.notification-hide {
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
}

/* 提升关键渲染路径 */
.critical-content {
    contain: layout style paint;
}

/* 减少重排重绘 */
.optimized-element {
    contain: layout;
    will-change: transform;
}

.optimized-element:hover {
    contain: layout style paint;
}

/* 模态框动画 */
.modal-fade-in {
    animation: modalFadeIn 0.3s ease;
}

.modal-fade-out {
    animation: modalFadeOut 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 悬停效果 */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* 文化装饰元素 */
.cultural-pattern {
    position: relative;
    overflow: hidden;
}

.cultural-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--gold) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--primary-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

/* 增强的微交互动画 */
.micro-interaction {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-interaction:hover {
    transform: translateY(-1px);
}

.micro-interaction:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* 流畅的页面滚动 */
html {
    scroll-padding-top: 80px;
}

/* 优化的焦点状态 */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 提升触摸体验 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 20px;
    }
}

/* 动画性能监控 */
@supports (animation-timeline: scroll()) {
    .scroll-driven-animation {
        animation-timeline: scroll();
        animation-range: entry 0% cover 50%;
    }
}