@import url('./normalize.css');
@import url('./reset.css');
@import url('./common.css');

/* 修改配色方案 */
:root {
    --primary-green: #2c5e30;     /* 主题深绿色，用于重点强调 */
    --accent-green: #4a8b50;      /* 强调绿色，用于次要强调 */
    --dark-text: #333333;         /* 主要文字颜色 */
    --light-text: #fff;           /* 浅色文字 */
    --bg-color: #fff;             /* 页面背景色改为白色 */
    --card-bg: #fff;              /* 卡片背景色 */
    --section-bg: #f8f9fa;        /* 部分区块背景色 */
    --border-color: #eaeaea;      /* 边框颜色 */
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--bg-color);
}

/* 景区指南分类导航 */
.activities-nav {
    background: #fff;
    padding: 2rem 0;
    position: sticky;
    top: 100px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}
 
.nav-item a {
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-item a:hover,
.nav-item.active a {
    background: var(--primary-green);
    color: var(--light-text);
}


/* 内容部分 */
.guide-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #000;
}

/* 交通指南卡片 */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.transport-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.transport-content {
    padding: 1.5rem;
}

.transport-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.3;
}

.transport-icon {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* 游览路线 */
.route-timeline {
    padding-left: 2rem;
    margin-bottom: 4rem;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.route-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.route-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #000;
}

.route-time {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 注意事项列表 */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.notice-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.notice-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: #000;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
}

html {
    scroll-behavior: smooth;
}

/* 住宿卡片样式 */
.stay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stay-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stay-image {
    height: 360px;
    overflow: hidden;
}

.stay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.stay-card:hover .stay-image img {
    transform: scale(1.1);
}

.stay-content {
    padding: 1.5rem;
}

.stay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    line-height: 1.3;
}

.stay-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.stay-tags span {
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.stay-desc {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stay-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.book-btn {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* 美食指南样式 */
.food-section {
    margin-bottom: 6rem;
}

.food-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #000;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.food-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.food-image {
    height: 320px;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.food-card:hover .food-image img {
    transform: scale(1.1);
}

.food-content {
    padding: 1.5rem;
}

.food-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    line-height: 1.3;
}

.food-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.food-tags {
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

/* 导航栏样式优化 */
.guide-nav .container {
    margin: 0 auto;
}

.route-section {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 70px;
}

.route-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.route-card-title {
    font-size: 1.5rem;
    color: #333;
}

.route-duration {
    background: #f0f4f8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.route-timeline {
    position: relative;
    padding-left: 2rem;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e0e6ed;
}

.route-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.route-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
}

.route-time {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.route-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.route-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.route-content p {
    color: #666;
    line-height: 1.6;
}

.route-tags {
    margin-top: 0.8rem;
}

.route-tags span {
    display: inline-block;
    background: #e8f5e9;
    color: #4caf50;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.route-list {
    list-style: none;
    padding: 0;
}

.route-list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.route-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* 当屏幕宽度小于等于 767px 时（通常是手机设备），应用以下样式 */
@media only screen and (max-width: 767px) {
    .banner img {
        width: 200%;
    }
    .banner-title {
        font-size: 20px;
    }
    .banner-subtitle {
        font-size: 12px;
    }
    .activities-nav {
        display: none;
    }
    .guide-section {
        padding: 20px 10px !important;
    }
    .section-title {
        margin-bottom: 10px;
    }
    .transport-grid,
    .stay-grid,
    .food-grid,
    .notice-grid {
        grid-template-columns: 1fr;
        gap: 20px !important;
        margin-bottom: 20px;
    }
    .activity-content {
        transform: translateY(0);
    }
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px!important;
    }

    .introduction,
    .scenic-spot-info,
    .footer-helper .nav {
        display: none;
    }
    .footer {
        margin-top: 0 !important;
    }
    .about-content,
    .location-content,
    .footer-content,
    .footer-helper .contact,
    .coryright {
        flex-direction: column;
        gap: 10px;
    }
}
/* 针对平板电脑的样式 */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .about,
    .features,
    .gallery,
    .location,
    .section {
        padding: 10px !important;
    }
    .features-grid,
    .gallery-container,
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px!important;
    }
    .features-grid,
    .gallery-container,
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px!important;
    }
}