/* ===== Header 和 Navigation 样式 ===== */

/* 导航栏 */
.navbar {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #EBEEF5;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.85rem;
    color: #4E5969;
    font-weight: 400;
    border-left: 1px solid #E5E6EB;
    padding-left: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #1D2129;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: #165DFF;
}

.nav-links > .nav-dropdown:first-child {
    margin-left: -100px;
}

.nav-links > li:nth-child(4) {
    margin-right: 100px;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1D2129;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown-link {
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-link:hover {
    background: #f0f6ff;
    color: #1677ff;
}

/* 企业智能体巨型下拉菜单 */
.nav-dropdown-mega {
    position: relative;
}

.nav-dropdown-mega-menu {
    position: absolute;
    top: 100%;
    left: -300px;
    width: 900px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 8px;
    overflow: hidden;
    z-index: 100;
}

.nav-dropdown-mega:hover .nav-dropdown-mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-left {
    width: 200px;
    background: #f8fafc;
    padding: 16px 0;
    border-right: 1px solid #eee;
}

.mega-menu-group-title {
    padding: 8px 24px 4px;
    font-size: 14px;
    font-weight: 700;
    color: #86909C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-category {
    padding: 12px 24px;
    font-size: 15px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mega-menu-category:hover,
.mega-menu-category.active {
    background: #eaf4ff;
    color: #1677ff;
}

.mega-menu-right {
    flex: 1;
    padding: 24px;
    display: none;
}

.mega-menu-right.active {
    display: block;
}

.mega-menu-right-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mega-menu-agent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.mega-menu-agent-item:hover {
    background: #f8fafc;
}

.mega-menu-agent-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mega-menu-agent-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-agent-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #1D2129;
    font-weight: 600;
}

.agent-name-cn {
    font-size: 12px;
    color: #165DFF;
    margin-bottom: 4px;
}

.mega-menu-agent-en {
    font-size: 11px;
    color: #C9CDD4;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
}

.mega-menu-agent-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* === 三产概览 - 金融卡 hover 展开 === */
.industry-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: relative;
}

.industry-overview-card {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.industry-overview-card.finance {
    background: linear-gradient(135deg, #FFF8E7 0%, #f7f8fa 100%);
    border: 1.5px solid rgba(201, 162, 75, 0.4);
}

.industry-overview-grid:has(.industry-overview-card.finance:hover) .industry-overview-card:not(.finance) {
    opacity: 0.3;
    pointer-events: none;
}

/* === 主体 - 金融行业 全部视图 - 金色卡片（放大版） === */
.finance-overview-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFFFFF 100%);
    border: 1.5px solid #C9A24B;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 8px 24px rgba(201, 162, 75, 0.18);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.finance-overview-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.finance-overview-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.finance-overview-icon svg {
    width: 100%;
    height: 100%;
}

.finance-overview-header-text h3 {
    margin: 0;
    font-size: 22px;
    color: #1D2129;
    font-weight: 700;
}

.finance-overview-header-text p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.finance-overview-section-title {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.finance-overview-agents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.finance-overview-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 75, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.finance-overview-agent:hover {
    background: #FFF8E7;
    border-color: #C9A24B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 75, 0.2);
}

.finance-overview-agent-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 20px;
}

.finance-overview-agent-name {
    font-weight: 600;
    font-size: 15px;
    color: #1D2129;
    line-height: 1.3;
}

.finance-overview-agent-en {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.finance-overview-cta {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #C9A24B 0%, #E0BD6F 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 4px;
}

.finance-overview-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 75, 0.3);
}

/* ===== Top Banner 样式 ===== */
.top-banner {
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.top-banner-logo {
    height: 24px;
    width: auto;
    margin-right: 0;
}

.top-banner-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-download {
    margin-left: auto;
    background: #fff;
    color: #165DFF;
    border: none;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-download:hover {
    background: #F0F4FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-close {
    margin-left: 40px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
    line-height: 1;
}

.banner-close:hover {
    color: #fff;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .nav-dropdown-mega-menu {
        position: static;
        width: 100%;
        left: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-dropdown-mega:hover .nav-dropdown-mega-menu {
        display: block;
    }

    .mega-menu-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .mega-menu-right-grid {
        grid-template-columns: 1fr;
    }

    .top-banner-inner {
        gap: 8px;
        padding: 10px 16px;
        font-size: 0.78rem;
    }

    .btn-download {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .banner-close {
        margin-left: 8px;
    }
}
