/* ==========================================================================
   基础布局
   ========================================================================== */
:root {
    --primary-color: #990000;  /* 故宫红 */
    --text-color: #FFFFFF;
    --bg-dark: #990000;
    --bg-light: #990000;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* ==========================================================================
   头部导航
   ========================================================================== */
header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

/* 当页面滚动时添加的类 */
header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
    font-size: 1.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--white);
    opacity: 0.8;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 当前页面激活状态 */
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    width: 100%;
}

/* 调整主要内容区域的上边距，为固定导航栏留出空间 */
main {
    padding-top: 80px;
    min-height: calc(100vh - 60px);
}

/* 响应式导航栏调整 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   首页样式
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #333333;
}

.hero-upper {
    height: 50vh;
    background: linear-gradient(rgba(51, 51, 51, 0.3), rgba(51, 51, 51, 0.3)), url('../images/主界面.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    backdrop-filter: blur(0px);
}

.hero-title h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.hero-title .subtitle {
    font-size: 2rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeIn 1s ease 0.5s both;
}

.hero-lower {
    background-color: #404040;
    min-height: 50vh;
}

.hero-article {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--white);
}

.article-text {
    column-count: 2;
    column-gap: 4rem;
    margin-bottom: 3rem;
}

.article-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.2rem;
}

/* ==========================================================================
   探索按钮
   ========================================================================== */
.explore-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.explore-button {
    text-decoration: none;
    animation: fadeIn 1s ease 1.5s both;
}

.explore-button span {
    display: inline-block;
    padding: 1.2rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-button:hover span {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    background: #1557b0;
}

/* ==========================================================================
   五岳部分
   ========================================================================== */
.five-mountains {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/五岳背景.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: calc(100vh - 80px);
    padding: var(--section-padding);
}

.five-mountains .page-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.five-mountains-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.mountain-card {
    background: rgba(153, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    display: block;
}

.mountain-card:hover {
    transform: translateY(-10px);
    background: rgba(153, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mountain-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.mountain-card h3 {
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--white);
}

.mountain-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #e0e0e0;
}

.mountain-card .read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.mountain-card .read-more:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .five-mountains-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .mountain-card {
        padding: 1.5rem;
    }
    
    .mountain-card h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   风景胜地
   ========================================================================== */
.scenic-spots {
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.card p {
    padding: 0 1rem 1rem;
    color: var(--text-color);
}

/* ==========================================================================
   文化遗产
   ========================================================================== */
.culture {
    background-color: var(--bg-dark);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture .page-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.culture .content {
    max-width: var(--container-width);
    margin: 0 auto;
    background: rgba(153, 0, 0, 0.9);
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    column-count: 2;
    column-gap: 4rem;
    column-rule: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.culture .content p {
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.3rem;
    line-height: 2.2;
    color: #e0e0e0;
    text-align: justify;
    margin-bottom: 2rem;
    break-inside: avoid;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================================================
   页脚
   ========================================================================== */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    animation: shimmer 2s infinite;
}

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   山岳详情页面
   ========================================================================== */
.mountain-detail {
    min-height: calc(100vh - 80px);
}

.mountain-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/taishan-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.mountain-hero h1 {
    font-size: 4rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mountain-hero .subtitle {
    font-size: 2rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mountain-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.mountain-content section {
    margin-bottom: 4rem;
}

.mountain-content h2 {
    font-size: 2.5rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.mountain-content .intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-color);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-item h3 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.feature-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.culture p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-color);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.info-item p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mountain-hero h1 {
        font-size: 3rem;
    }
    
    .mountain-hero .subtitle {
        font-size: 1.5rem;
    }
    
    .mountain-content {
        padding: 2rem 1rem;
    }
    
    .mountain-content h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   响应式设计
   ========================================================================== */
@media (max-width: 1200px) {
    :root {
        --container-width: 100%;
        --section-padding: 4rem 1.5rem;
    }

    .article-text,
    .culture .content {
        column-count: 1;
        font-size: 1.2rem;
        line-height: 2;
    }

    .hero-article,
    .culture .content {
        padding: 3rem;
    }

    .page-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .hero-title h1 {
        font-size: 2.5rem;
    }

    .hero-title .subtitle {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none; /* 在移动端需要添加汉堡菜单 */
    }

    .explore-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .explore-button span {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .mountains-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .culture .content {
        padding: 2rem;
    }

    .culture .content p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* 页面容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* 通用页面标题样式 */
.page-title {
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 1rem auto 0;
}

/* 通用section样式 */
section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.image-gallery {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.gallery-item {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.2rem;
    text-align: center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-item p {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    max-height: 200px;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.gallery-item p::-webkit-scrollbar {
    width: 6px;
}

.gallery-item p::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-item p::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gallery-item p::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .gallery-caption {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}

/* 山岳概况图片样式 */
.mountain-images {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.mountain-images h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.mountain-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mountain-image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.mountain-image-card:nth-child(1) { animation-delay: 0.3s; }
.mountain-image-card:nth-child(2) { animation-delay: 0.5s; }
.mountain-image-card:nth-child(3) { animation-delay: 0.7s; }

.mountain-image-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mountain-image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mountain-image-card:hover img {
    transform: scale(1.08);
}

.mountain-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    font-size: 1.1rem;
    text-align: center;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.mountain-image-card:hover .mountain-image-caption {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.2rem 1rem;
    backdrop-filter: blur(8px);
}

/* 添加滚动触发动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加平滑滚动效果 */
.section {
    scroll-margin-top: 80px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .mountain-images-grid {
        grid-template-columns: 1fr;
    }

    .mountain-image-card {
        margin-bottom: 1rem;
    }

    .mountain-image-card img {
        height: 250px;
    }

    .mountain-image-caption {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .mountain-image-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .mountain-image-card:hover img {
        transform: scale(1.05);
    }
}

/* 添加暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .mountain-image-card {
        background: var(--bg-dark);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .mountain-image-caption {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .mountain-image-card:hover .mountain-image-caption {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* 山岳概况模块样式 */
.mountain-overview {
    padding: 4rem 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.overview-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.overview-text {
    text-align: justify;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.overview-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.scenic-spots {
    margin-top: 3rem;
}

.spots-title {
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.spot-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.spot-card:nth-child(1) { animation-delay: 0.3s; }
.spot-card:nth-child(2) { animation-delay: 0.5s; }
.spot-card:nth-child(3) { animation-delay: 0.7s; }

.spot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.spot-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-card:hover .spot-image img {
    transform: scale(1.1);
}

.spot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.spot-card:hover .spot-overlay {
    opacity: 1;
}

.spot-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.spot-card:hover .spot-overlay h4,
.spot-card:hover .spot-overlay p {
    transform: translateY(0);
}

.spot-info {
    padding: 1.5rem;
}

.spot-info h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.spot-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .mountain-overview {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .overview-text {
        margin-bottom: 2rem;
    }

    .spots-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .spots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spot-image {
        height: 200px;
    }

    .spot-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.5);
    }

    .spot-overlay h4,
    .spot-overlay p {
        transform: translateY(0);
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .spot-card {
        background: var(--bg-dark);
    }

    .spot-info h4 {
        color: var(--white);
    }

    .spot-info p {
        color: rgba(255,255,255,0.9);
    }
} 

#about {
    background: url('images/网站背景一.jpg') repeat fixed; /* 图片平铺+固定 */
    background-size: auto; /* 保持原图尺寸，避免拉伸变形 */
    color: #333; /* 文字颜色适配背景（可根据实际调整） */
}