/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #27ae60;
    margin: 1rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* 导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: #27ae60;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* 首页横幅 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/meiling_hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 梅岭简介 */
.intro {
    padding: 4rem 0;
    background-color: white;
}

.intro p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* 徒步路线 */
.routes {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.route-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.route-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.route-header {
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.route-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: radial-gradient(circle, rgba(127,127,127,0.2) 10%, transparent 10%), radial-gradient(circle, rgba(127,127,127,0.2) 10%, transparent 10%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.route-header h3 {
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
}

.difficulty {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.2);
}

.route-content {
    padding: 25px;
}

.distance {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: #555;
    margin-bottom: 1.5rem;
}

.route-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
}

.feature i {
    margin-right: 5px;
    color: #27ae60;
}

/* 不同难度路线的颜色 */
.beginner .route-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.intermediate .route-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.advanced .route-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 景点介绍 */
.attractions {
    padding: 5rem 0;
    background-color: white;
}

.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.attraction-item {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.attraction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.attraction-image {
    height: 200px;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-item:hover .attraction-image img {
    transform: scale(1.1);
}

.attraction-info {
    padding: 20px;
}

.attraction-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.attraction-info p {
    color: #555;
    font-size: 0.95rem;
}

/* 装备指南 */
.gear {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.gear-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.gear-category {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gear-category h3 {
    display: flex;
    align-items: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f1f1;
}

.gear-category h3 i {
    margin-right: 10px;
    color: #27ae60;
    font-size: 1.5rem;
}

.gear-category ul {
    list-style: none;
}

.gear-category li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #555;
}

.gear-category li i {
    color: #27ae60;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* 交通指南 */
.transport {
    padding: 5rem 0;
    background-color: white;
}

.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.transport-option {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.transport-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.transport-icon {
    width: 80px;
    height: 80px;
    background-color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

.transport-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.transport-info p {
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.transport-info strong {
    color: #2c3e50;
}

/* 注意事项 */
.tips {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.tip-card {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.tip-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.tip-content ul {
    list-style: none;
}

.tip-content li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #555;
    font-size: 0.95rem;
}

.tip-content li i {
    color: #27ae60;
    margin-right: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* 不同类型提示的颜色 */
.safety .tip-icon {
    background-color: #e74c3c;
}

.weather .tip-icon {
    background-color: #3498db;
}

.environment .tip-icon {
    background-color: #27ae60;
}

.practical .tip-icon {
    background-color: #f39c12;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-about p {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #27ae60;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #27ae60;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 10px;
    color: #27ae60;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .route-cards,
    .attraction-grid,
    .gear-categories,
    .transport-options,
    .tips-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .route-content,
    .attraction-info,
    .gear-category,
    .transport-option,
    .tip-card {
        padding: 20px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动时导航栏变化 */
.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}