/* 基础样式 */
html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域 */
.main-content {
    flex: 1;
}

/* 顶部工具栏样式 */
.top-utility-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 14px;
}

.top-utility-bar a {
    color: #495057;
    text-decoration: none;
    margin: 0 8px;
}

.top-utility-bar a:hover {
    color: #1e3a8a;
}

.separator {
    color: #6c757d;
    margin: 0 5px;
}

/* 主头部区域样式 */
.main-header {
    background-color: white;
    padding: 15px 0;
    border-bottom: 2px solid #1e3a8a;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
}

.main-header .row {
    align-items: center;
}

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

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

/* 搜索框样式 */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.search-input {
    border: none;
    border-bottom: 2px solid #1e3a8a;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    width: 70%;
    max-width: 100%;
    outline: none;
    color: #374151;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    border: none;
    font-size: 18px;
    color: #ffffff;
    margin-left: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.contact-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* 主导航栏样式 */
.main-navigation {
    background-color: white;
    padding: 15px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links li {
    flex: 1;
    text-align: center;
    min-width: auto;
}

.nav-links li a {
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 8px;
    transition: color 0.3s;
    display: block;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #1e3a8a;
}

/* 主导航栏active状态样式 */
.nav-links li.active a {
    background-color: #1e3a8a;
    color: #ffffff;
    border-radius: 6px 0 6px 0;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

.nav-links li.active a:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

/* 页脚样式 */
.footer {
    background-color: #0011a7;
    color: #ffffff;
    margin-top: auto;
    flex-shrink: 0;
}

/* 合作伙伴Logo区域 */
.footer-partners {
    background-color: #16213e;
    padding: 30px 0;
    border-bottom: 1px solid #2a2a3e;
    overflow: hidden;
}

.partners-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-left-image {
    flex-shrink: 0;
    margin-right: 30px;
    z-index: 10;
}

.partners-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* 将图片变为白色 */
    transition: all 0.3s ease;
}

.partners-left-image:hover .partners-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(120deg); /* 悬停时变为绿色 */
}

.partners-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    padding: 0 20px;
}

.partner-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 将图片变为白色 */
    transition: all 0.3s ease;
}

.partner-placeholder {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    min-width: 100px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.partner-logo span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(120deg); /* 悬停时变为绿色 */
}

.partner-logo:hover .partner-placeholder {
    transform: translateY(-2px);
}

/* 主要页脚内容 */
.footer-main {
    background: linear-gradient(135deg, #1a1a2e 0%, #2050bc 100%);
    padding: 50px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* 公司信息区域 */
.footer-company {
    gap: 25px;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.company-description {
    font-size: 15px;
    line-height: 1.7;
    color: #e0e0e0;
    text-align: left;
    max-width: 500px;
}

/* 链接区域 */
.footer-links {
    align-items: center;
    justify-content: center;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.links-content {
    font-size: 24px;
    color: #ffffff;
}

/* 联系信息区域 */
.footer-contact {
    gap: 25px;
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.contact-email {
    font-size: 14px;
    color: #e0e0e0;
}

.contact-phone {
    font-size: 14px;
    color: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .main-navigation {
        margin-top: 20px;
    }
    
    /* 确保手机端页脚正常显示 */
    body {
        min-height: 100vh;
    }
    
    .main-content {
        flex: 1;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .partners-left-image {
        margin-right: 20px;
    }
    
    .partners-logo-img {
        height: 35px;
    }
    
    .partner-logo {
        flex: 1;
    }
    
    .partner-logo img {
        max-height: 35px;
        max-width: 100px;
    }
    
    .partner-placeholder {
        font-size: 11px;
        padding: 6px 12px;
        min-width: 80px;
    }
    
    .partner-logo span {
        font-size: 12px;
    }
    
    .company-logo {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .company-description {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .top-utility-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .top-utility-bar .row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .top-utility-bar .col-md-6 {
        flex: 1;
        max-width: none;
    }
    
    .top-utility-bar .d-flex {
        justify-content: flex-start;
    }
    
    .top-utility-bar .justify-content-end {
        justify-content: flex-end;
    }
    
    .top-utility-bar a {
        margin: 0 4px;
        font-size: 11px;
    }
    
    .separator {
        margin: 0 2px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 25px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-btn {
        font-size: 14px;
    }
    
    .contact-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .nav-links li a {
        font-size: 14px;
        padding: 8px 6px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* 手机端页脚优化 */
    .footer {
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .footer-main {
        padding: 30px 0;
    }
    
    
    .footer-partners {
        padding: 20px 0;
    }
    
    .partners-left-image {
        margin-right: 15px;
    }
    
    .partners-logo-img {
        height: 30px;
    }
    
    .partner-logo {
        flex: 1;
    }
    
    .partner-logo img {
        max-height: 30px;
        max-width: 80px;
    }
    
    .partner-placeholder {
        font-size: 10px;
        padding: 5px 10px;
        min-width: 70px;
    }
    
    .partner-logo span {
        font-size: 10px;
    }
    
    .footer-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}
