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



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

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

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.site-name:hover {
    color: #ff6700;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #f5f5f5;
    color: #ff6700;
}

.nav-item.active {
    color: #ff6700;
    font-weight: bold;
}

/* 公告栏 */
.announcement {
    background-color: #ff6700;
    padding: 10px 0;
    overflow: hidden;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-icon {
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.announcement-text {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.announcement:hover .announcement-text {
    animation-play-state: paused;
}

/* 轮播图 */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

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

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

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

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

.image-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 103, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3;
}

/* 动态区域 */
.dynamic-section,
.dynamic-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dynamic-section h2,
.dynamic-content h1 {
    margin-bottom: 20px;
    color: #333;
}

.dynamic-link {
    color: #ff6700;
    text-decoration: none;
    font-size: 24px;
}

.dynamic-link:hover {
    text-decoration: underline;
}

.dynamic-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.dynamic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dynamic-item p {
    padding: 15px;
    font-size: 14px;
    color: #666;
}

/* 动态详情页 */
.dynamic-content h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.news-item {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-item h2 {
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-item h2:hover {
    color: #ff6700;
}

.news-image {
    position: relative;
    overflow: hidden;
}

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

.news-details {
    padding: 20px;
}

.news-details h2 {
    margin-bottom: 10px;
    color: #333;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-details p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

/* 机票查询 */
.ticket-search {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ticket-search-page {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.ticket-search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticket-search h2,
.ticket-search-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.ticket-search-container h1 {
    font-size: 28px;
}

.large-form {
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.search-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.search-btn {
    background-color: #ff6700;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.large-btn {
    padding: 16px 60px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
}

.search-btn:hover {
    background-color: #e65c00;
}

/* 联系我们 (已移至页脚) */
/* 页脚中的联系信息 */
.footer-content .contact-info {
    text-align: center;
    margin: 20px 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

/* 新闻详情页特定样式 */
.news-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-detail-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-detail-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.news-image-large {
    position: relative;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    line-height: 1.8;
    color: #666;
}

.news-content p {
    margin-bottom: 20px;
}

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

.news-content li {
    margin-bottom: 10px;
}

.back-to-news {
    text-align: center;
    margin-top: 30px;
}

.back-to-news a {
    color: #ff6700;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #ff6700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-to-news a:hover {
    background-color: #ff6700;
    color: white;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 社交媒体图标样式 */
.social-media {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 2px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.about-links a:hover {
    color: #ff6700;
}

.footer-content .contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.copyright {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* 机票查询结果样式 */
.flight-results {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.flight-results .container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#searchSummary {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.flight-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ff6700;
}

.flight-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #ff6700;
    border: 1px solid #ddd;
}

.flight-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.flight-arrow {
    font-size: 20px;
    color: #999;
    margin: 0 10px;
}

.flight-time {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.flight-duration {
    color: #666;
    font-size: 14px;
}

.flight-price {
    text-align: right;
    min-width: 150px;
}

.price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #ff6700;
    margin-bottom: 10px;
}

.book-btn {
    background-color: #ff6700;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-btn:hover {
    background-color: #e65c00;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff6700;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    padding-right: 30px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 10px;
    color: #666;
}

.modal-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* 显示弹窗按钮样式 */
.promo-button-container {
    text-align: center;
    margin: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    
    .main-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel {
        height: 200px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flight-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .flight-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .flight-details {
        width: 100%;
        justify-content: space-between;
    }
    
    .flight-price {
        width: 100%;
        text-align: center;
    }
    
    /* 弹窗响应式样式 */
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .modal-content h3 {
        font-size: 20px;
        padding-right: 25px;
    }
    
    .close-modal {
        font-size: 24px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 社交媒体图标响应式 */
    .social-icon {
        width: 32px;
        height: 32px;
    }
}

/* 平板设备优化 */
@media (min-width: 600px) and (max-width: 768px) {
    .social-icon {
        width: 34px;
        height: 34px;
    }
}