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

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

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 240px;
    height: 120px;
    margin-right: 15px;
    border-radius: 4px;
}

.logo h1 {
    font-size: 24px;
    color: #1a73e8;
    font-weight: bold;
    margin: 0;
}

.contact-info {
    display: none;
}

/* 导航菜单 */
.nav {
    padding: 10px 0;
}

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

.nav-item {
    position: relative;
    margin-right: 30px;
}

.nav-item a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #1a73e8;
}

.nav-item.active a {
    color: #1a73e8;
    font-weight: bold;
    position: relative;
}

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

/* 下拉菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.nav-item:hover .sub-menu {
    display: block;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    padding: 8px 20px;
    font-size: 14px;
}

.sub-menu li a:hover {
    background-color: #f5f5f5;
}

/* 轮播样式 */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./images/北京文化深度游.webp');
    background-size: cover;
    background-position: center;
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./images/长城脚下的时光.webp');
    background-size: cover;
    background-position: center;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./images/北京全景之旅.webp');
    background-size: cover;
    background-position: center;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #1a73e8;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 轮播控制按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 新闻资讯 */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-header h2 {
    font-size: 24px;
    color: #ff3c00;
    margin: 0;
}

.more-news {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.more-news:hover {
    text-decoration: underline;
}

.news-content-wrapper {
    display: flex;
    gap: 30px;
}

.news-left {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.news-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-main-image {
    height: 300px;
    overflow: hidden;
}

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

.news-left:hover .news-main-image img {
    transform: scale(1.05);
}

.news-main-content {
    padding: 20px;
}

.news-main-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.news-main-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.news-right {
    flex: 1;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.news-list li:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-list li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #1a73e8;
}

.news-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 旅游线路 */
.routes-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.routes-tabs {
    display: flex;
    align-items: center;
}

.routes-title {
    font-size: 24px;
    color: #ff3c00;
    margin: 0;
    margin-right: 30px;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    margin-right: 20px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.tab-item:hover {
    color: #1a73e8;
}

.tab-item.active {
    color: #ff3c00;
    font-weight: bold;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.tab-content.active {
    display: flex;
}

.more-routes {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-routes:hover {
    color: #1a73e8;
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.route-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.route-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.route-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

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

.route-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.route-info h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
}

.route-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.route-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
}

.price-unit {
    font-size: 14px;
    font-weight: normal;
    color: #999;
}

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

.tag {
    font-size: 12px;
    color: #666;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
}

.tag::before {
    content: '#';
    margin-right: 2px;
}

/* 页面标题 */
.page-header {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.page-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

/* 所有标题悬停效果 */
h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    color: #ff3c00 !important;
    transition: color 0.3s ease;
}

.page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 常见问题 FAQ */
.faq-section {
    padding: 60px 0;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-page-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.faq-page-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-page-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 首页常见问题 FAQ */
.home-faq {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.home-faq .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.home-faq .section-header h2 {
    color: #ff3c00;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item:hover {
    background-color: #f0f0f0;
    border: 1px solid #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.faq-item:hover .faq-question {
    color: #ff3c00;
}

.faq-question {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 好评反馈 */
.home-testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.home-testimonials .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.home-testimonials .section-header h2 {
    color: #ff3c00;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.testimonial-item:hover {
    background-color: #f0f0f0;
    border: 1px solid #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.testimonial-avatar {
    font-size: 16px;
    margin-right: 8px;
}

.testimonial-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.testimonial-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.more-faq {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-faq:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .logo h1 {
        margin-bottom: 10px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .news-content-wrapper {
        flex-direction: column;
    }

    .news-left {
        margin-bottom: 20px;
    }

    .news-main-image {
        height: 200px;
    }

    .news-header h2 {
        font-size: 20px;
    }

    .routes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
        margin-right: 0;
    }

    .tabs-list {
        flex-wrap: wrap;
    }

    .route-item {
        flex-direction: column;
    }

    .route-image {
        flex: 0 0 auto;
        height: 200px;
    }

    .routes-title {
        font-size: 20px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-category h3 {
        font-size: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-card {
        padding: 20px;
    }
}