/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #0066cc;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover, .navbar a.active {
    background-color: #0052a3;
    text-decoration: none;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    padding: 30px 0;
    background-color: white;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-title h1 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 28px;
}

.page-title p {
    color: #666;
    font-size: 16px;
}

/* 主内容区样式 */
main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 简介部分 */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.intro h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 24px;
}

.intro p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* 季节提示样式 */
.season-tips {
    margin-bottom: 40px;
}

.season-tips h2 {
    text-align: center;
    color: #0066cc;
    margin-bottom: 30px;
    font-size: 24px;
}

.season-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.season-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 280px;
    transition: transform 0.3s;
}

.season-card:hover {
    transform: translateY(-5px);
}

.season-card h3 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 搜索框样式 */
.search-box {
    text-align: center;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    padding: 12px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #0052a3;
}

/* 目的地卡片样式 */
.destinations {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.destination-card {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.destination-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
}

.destination-info {
    flex: 1;
    padding: 20px;
}

.destination-info h2 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 22px;
}

.destination-info p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.location, .opening-hours, .ticket {
    color: #666;
    font-size: 15px;
}

.description {
    margin-top: 15px;
    color: #333;
}

/* 行程模板样式 */
.itinerary-section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.itinerary-section h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.itinerary-days {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-card {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid #0066cc;
}

.day-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.schedule {
    list-style: none;
}

.schedule li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.schedule li:before {
    content: "•";
    color: #0066cc;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.time {
    font-weight: bold;
    color: #0066cc;
    display: inline-block;
    width: 120px;
}

.more-days {
    border-left: 4px solid #666;
}

.more-days ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* 住宿推荐样式 */
.accommodation-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.accommodations {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.accommodation-card {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accommodation-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
}

.accommodation-info {
    flex: 1;
    padding: 20px;
}

.accommodation-info h2 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 22px;
}

.rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffcc00;
    font-size: 18px;
}

.score {
    font-weight: bold;
    color: #333;
}

.reviews {
    color: #666;
    font-size: 14px;
}

/* 旅行贴士样式 */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tips-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tips-section h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tip-card {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.tip-card:last-child {
    margin-bottom: 0;
}

.tip-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.tip-card ul {
    padding-left: 20px;
}

.tip-card li {
    margin-bottom: 8px;
}

.tip-card li:last-child {
    margin-bottom: 0;
}

.tip-card p {
    line-height: 1.7;
}

/* 表单样式 */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.submit-btn, .reset-btn, .back-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn {
    background-color: #0066cc;
    color: white;
    margin-right: 10px;
}

.submit-btn:hover {
    background-color: #0052a3;
}

.reset-btn {
    background-color: #f0f0f0;
    color: #333;
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

.back-btn {
    background-color: #0066cc;
    color: white;
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h2 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 24px;
}

.success-message p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-content a {
    color: #99ccff;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 767px) {
    /* 手机端样式 */
    .carousel {
        height: 250px;
    }
    
    .carousel-caption h2 {
        font-size: 18px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .destination-img, .accommodation-img {
        max-width: 100%;
        height: 200px;
    }
    
    .time {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .intro h2, .season-tips h2, .itinerary-section h2, .tips-section h2 {
        font-size: 20px;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .itinerary-section, .form-container {
        padding: 20px 15px;
    }
    
    .season-card {
        width: 100%;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* 平板端样式 */
    .carousel {
        height: 350px;
    }
    
    .destination-img, .accommodation-img {
        max-width: 300px;
        height: 250px;
    }
}

@media (min-width: 1200px) {
    /* PC端样式 */
    /* 已在默认样式中定义 */
}
