@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);
}



/* 研学基地特定样式 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 94, 48, 0.15);
}

.course-image {
    height: 320px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.course-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.course-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.course-tags span {
    background: var(--section-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.course-tags span:hover {
    background: var(--primary-green);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.course-desc {
    flex: 1;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.facility-card {
    height: 100%;
    transition: all 0.3s ease;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 94, 48, 0.15);
}

.facility-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.facility-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.achievement-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    color: var(--dark-text);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.achievement-text {
    color: var(--dark-text);
    font-size: 1rem;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid,
    .facility-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* 板块标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-green);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card, .facility-card, .achievement-card {
    animation: fadeInUp 0.6s ease backwards;
}

.course-card:nth-child(2) {
    animation-delay: 0.2s;
}

.course-card:nth-child(3) {
    animation-delay: 0.4s;
}


/* 区块样式 */
.guide-section:nth-child(even) {
    padding: 6em 0;
    background: var(--section-bg);
}

/* 当屏幕宽度小于等于 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;
    }
    .activities-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;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 360px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: var(--light-text);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-overlay h3 {
    color: #fff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}