/**
 * 首页专用样式
 * 中国民航官网风格
 */

/* ========== 顶部 Header ========== */
.home-header {
    background-image: url('/h5/assets/images/index_background.png');
    background-position: center top;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.header-left {
    flex: 1;
    padding: 10px 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: #1677ff;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    padding: 8px 12px;
}

.nav-link:first-child {
    color: #1677ff;
}

.nav-link:hover {
    color: #1677ff;
}

/* ========== Hero 主视觉区 - 轮播图 ========== */
.hero-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 左右箭头 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    color: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.carousel-btn:hover {
    opacity: 0;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ========== 四大功能入口 ========== */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    background: #f5f5f5;
}

/* ========== 宣传横幅区 ========== */
.banner-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
    background: #fff;
    box-sizing: border-box;
}

.banner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.banner-item {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
}

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

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.15);
    border-color: #1677ff;
    transform: translateY(-2px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    stroke-width: 1.5;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========== 新闻资讯区 ========== */
.news-section {
    background: #f7f9fc;
    padding: 40px 24px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.news-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.news-tab {
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.news-tab.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
    font-weight: 600;
}

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

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

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f7f9fc;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

.news-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: block;
    transition: color 0.3s;
}

.news-title:hover {
    color: #1677ff;
    text-decoration: underline;
}

.news-date {
    font-size: 13px;
    color: #999;
    margin-left: 16px;
    flex-shrink: 0;
}

/* ========== Footer 平台声明 ========== */
.home-footer {
    background: #003d7a;
    padding: 40px 24px;
    margin-top: 40px;
    border-radius: 8px 8px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    color: #fff;
}

.footer-left {
    flex: 1;
    min-width: 0;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-plane-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-site-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #5a9fd4;
    margin: 4px 0;
}

.footer-site-chinese {
    font-size: 14px;
    color: #fff;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-icp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-middle {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    font-size: 13px;
}

.footer-address,
.footer-management,
.footer-code {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-badge,
.footer-error-report {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon,
.error-report-icon {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .banner-section {
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .banner-container {
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .banner-item {
        width: 100%;
        max-width: 100%;
    }

    .banner-image {
        width: 100%;
        max-width: 100%;
    }

    .header-nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .nav-link {
        flex: 1;
        padding: 8px 6px;
        font-size: 13px;
    }

    .carousel-wrapper {
        height: 250px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .services-section {
        padding: 40px 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 20px 12px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .service-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .service-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 10px;
    }

    .service-card {
        padding: 18px 10px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .service-title {
        font-size: 14px;
    }

    .service-desc {
        font-size: 11px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-left,
    .footer-middle {
        width: 100%;
    }

    .footer-right {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .badge-icon,
    .error-report-icon {
        max-width: 100px;
    }
}

/* ========== 工作证样式 ========== */
.staff-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.staff-card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.staff-card-logo-left,
.staff-card-logo-right {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-card-title {
    flex: 1;
    text-align: center;
}

.staff-card-title-cn {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 4px;
}

.staff-card-title-en {
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
}

.staff-card-content {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.staff-card-photo {
    width: 330px !important;
    height: 240px !important;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
    min-width: 330px;
    min-height: 240px;
}

.staff-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 0;
    border-bottom: none;
}

.staff-info-item:last-child {
    border-bottom: none;
}

.staff-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.staff-info-value {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

@media (max-width: 768px) {
    .staff-card-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .staff-card-photo {
        width: 270px !important;
        height: 200px !important;
        margin: 0 auto;
        min-width: 270px;
        min-height: 200px;
    }

    .staff-card-header {
        padding: 15px;
    }

    .staff-card-title-cn {
        font-size: 16px;
    }

    .staff-card-title-en {
        font-size: 10px;
    }

    .staff-info-value {
        font-size: 16px;
    }
}

