/* 首页公共样式 - 严格按照UI设计稿颜色 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5F5;
}

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

/* ==========================================
   头部导航 - 深蓝色主题
   ========================================== */
.header {
    height: 70px;
    background: #0D2B4E;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1890FF;
}

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

.title h1 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.nav-list a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.nav-list a.active {
    color: #FFFFFF;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #1890FF;
    border-radius: 2px 2px 0 0;
}

.login-btn {
    background: #1890FF !important;
    border-radius: 4px;
}

.login-btn:hover {
    background: #4CA7FF !important;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ==========================================
   面包屑导航
   ========================================== */
.breadcrumb-section {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1890FF;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #1890FF;
    font-weight: 600;
}

/* ==========================================
   主要内容区域
   ========================================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* ==========================================
   Footer页脚 - 深蓝色主题
   ========================================== */
.footer {
    background: #0D2B4E;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer-main {
    padding: 50px 0 30px;
}

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

.footer-section h3 {
    font-size: 16px;
    color: #1890FF;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    color: #1890FF;
    flex-shrink: 0;
}

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

.links-grid a,
.service-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
    transition: all 0.3s ease;
    display: block;
}

.links-grid a:hover {
    color: #1890FF;
}

.service-links a {
    padding: 4px 0;
}

.service-links a:hover {
    color: #1890FF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 5px 0;
}

.copyright-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 30px;
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
        height: auto;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0D2B4E;
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 12px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .title h1 {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section:last-child {
        grid-column: auto;
    }

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

    .copyright-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

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

    .breadcrumb {
        font-size: 12px;
    }
}

/* ==========================================
   滚动条样式
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}
