/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8f5;
    background-image: linear-gradient(to bottom, #f0f8f5, #e6f3ef);
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo h1 {
    color: #1a5276;
    font-size: 1.5rem;
}

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

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #1a5276;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a5276;
}

/* 汉堡菜单样式 */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a5276 0%, #2e8b57 100%);
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    padding: 0 20px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #2e8b57;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #267347;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 特色景点区域样式 */
.featured-attractions {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a5276;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2e8b57;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.attraction-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #1a5276;
}

.card-content p {
    margin-bottom: 1rem;
    color: #666;
    flex-grow: 1;
}

.btn-secondary {
    display: inline-block;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: auto;
}

.btn-secondary:hover {
    background-color: #2e8b57;
    color: white;
}

/* 关于济南区域样式 */
.about-jinan {
    padding: 5rem 0;
    background-color: #f9fdfb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: #1a5276;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页面标题区域样式 */
.page-header {
    background: linear-gradient(135deg, #1a5276 0%, #2e8b57 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 页面内容区域样式 */
.page-content {
    padding: 5rem 0;
    background-color: #f5fbf9;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse .content-text {
    direction: ltr;
}

.content-section.reverse .content-image {
    direction: ltr;
}

.content-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-text h2 {
    color: #1a5276;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.info-box {
    background-color: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2e8b57;
    margin-top: 1.5rem;
}

.info-box h3 {
    color: #1a5276;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '•';
    color: #2e8b57;
    position: absolute;
    left: 0;
}

/* 联系页面样式 */
.contact-section {
    padding: 5rem 0;
    background-color: #f5fbf9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: #1a5276;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.faq-section h3 {
    color: #1a5276;
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* 表单样式 */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e8b57;
}

/* 页脚样式 */
.footer {
    background-color: #1a5276;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 占位图片样式 */
.placeholder-image {
    font-weight: bold;
    text-align: center;
}

/* 响应式设计 - 使用纯CSS实现移动端菜单 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    /* 当复选框被选中时显示菜单 */
    .nav-toggle:checked ~ .nav-menu {
        left: 0;
    }

    /* 汉堡菜单动画 */
    .nav-toggle:checked ~ .hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .hamburger .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .hamburger .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section,
    .content-section.reverse,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .content-section.reverse {
        direction: ltr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 小屏幕设备优化 */
@media screen and (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text h2,
    .content-text h2 {
        font-size: 1.6rem;
    }
}