@import url("https://www.eol.cn/e_css/global/share-modal.css");

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* ==================== 顶部导航 ==================== */

/* 顶部导航行 */
.header-top {
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-top-links {
    display: flex;
    gap: 32px;
}

.top-link {
    font-size: 13px;
    text-decoration: none;
}

.top-link.red {
    color: #393F4A;
}

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

/* 主导航行 */
.header-main {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    color: #101010;
    font-weight: 600;
}

.header-divider {
    color: #ccc;
    font-size: 18px;
    margin: 0 4px;
}

.header-subtitle {
    font-size: 20px;
    color: #2D6CDE;
    font-weight: 700;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav .nav-item {
    padding: 0 14px;
    font-size: 15px;
}

.btn-login,
.btn-register {
    padding: 9px 21px;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    color: #2a7de1;
    border: 1px solid #2a7de1;
}

.btn-login:hover {
    background-color: #2a7de1;
    color: #fff;
}

.btn-register {
    background-color: #2a7de1;
    color: #fff;
    border: 1px solid #2a7de1;
}

.btn-register:hover {
    background-color: #1a6bc9;
}

/* ==================== 移动端菜单侧边栏 ==================== */
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}

.mobile-menu-drawer.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-placeholder {
    width: 32px;
}

.mobile-menu-content {
    padding: 12px 16px 24px;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.menu-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.menu-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menu-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.menu-tag.active {
    background-color: #2a7de1;
    color: #fff;
}

.menu-tag .hot-tag {
    font-size: 10px;
    margin-left: 2px;
}

.n {
    display: block;
}

/* 底部导航行 */
.header-nav-bar {
    background-color: #fff;
}

.header-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    flex-wrap: nowrap;
}

.nav-item {
    display: inline-block;
    padding: 0 18px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-item:first-child {
    padding-left: 0;
}

.nav-item:hover {
    color: #2D6CDE;
}

.nav-item.active {
    color: #2D6CDE;
}

/* 下拉菜单 */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
    padding: 0;
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-item-link {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    color: #393F4A;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 18px;
    font-size: 16px;
}

.nav-item-dropdown:first-child .nav-item-link {
    padding-left: 0;
}

.nav-item-dropdown:hover .nav-item-link {
    color: #2D6CDE;
}

.nav-arrow {
    font-size: 12px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.nav-item-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-item {
    display: block;
    padding: 0px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-dropdown-item:hover {
    background-color: #f0f5ff;
    color: #2D6CDE;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb-wrapper {
    background-color: #f5f5f5;
    padding: 20px 0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #a7a7a7;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2a7de1;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

/* ==================== 底部 ==================== */
.footer {
    height: 80px;
    background-color: #fff;
    color: #666;
    padding: 20px 15px;
    text-align: center;
    margin-top: 0;
    font-size: 13px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    font-size: 13px;
}

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

.footer-sep {
    color: #ddd;
    margin: 0 12px;
    font-size: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: #949698;
}

/* 移动端底部 - 默认隐藏 */
.mobile-footer {
    display: none;
}

/* ==================== 移动端顶部导航 ==================== */
.mobile-header {
    display: none;
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0; */
    height: 44px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 200;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
    color: #101010;
    font-size: 16px;
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-logo {
    height: 24px;
    width: auto;
}

.mobile-logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mobile-header-right {
    display: flex;
    gap: 12px;
}

.mobile-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    padding: 4px;
    cursor: pointer;
}

/* ==================== 移动端面包屑 ==================== */
.mobile-breadcrumb {
    display: none;
    background-color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    color: #666;
}

.mobile-breadcrumb a {
    color: #333;
    text-decoration: none;
}

.mobile-breadcrumb .breadcrumb-sep {
    /* margin: 0 6px;
    color: #999; */
}

/* ==================== 移动端横向滚动导航栏 ==================== */
.mobile-nav-scroll {
    display: none;
    /* position: fixed;
    top: 44px;
    left: 0;
    right: 0; */
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 190;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.mobile-nav-wrapper {
    display: none;
}

.mobile-dropdown-panel {
    display: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: inline-block;
    flex-shrink: 0;
    padding: 0 14px;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: #2D6CDE;
    font-weight: 600;
    position: relative;
}

.mobile-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background-color: #2D6CDE;
    border-radius: 1px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {

    /* 隐藏PC端元素 */
    .header-top {
        display: none;
    }

    .header-main {
        display: none;
    }

    .header-nav-bar {
        display: none;
    }

    .breadcrumb-wrapper {
        display: none;
    }

    /* 显示移动端元素 */
    .mobile-header {
        display: flex;
    }

    /* 移动端导航包装 */
    .mobile-nav-wrapper {
        display: block;
        position: relative;
        z-index: 190;
    }

    .mobile-nav-scroll {
        display: flex;
    }

    /* 移动端下拉菜单 */
    .mobile-nav-dropdown {
        padding: 0;
    }

    .mobile-nav-link {
        display: inline-block;
        height: 60px;
        line-height: 60px;
        padding: 0 14px;
        font-size: 16px;
        color: #666;
        text-decoration: none;
        white-space: nowrap;
    }

    .m-nav-arrow {
        font-size: 12px;
        margin-left: 2px;
        transition: transform 0.2s;
    }

    .mobile-nav-dropdown.open .m-nav-arrow {
        transform: rotate(180deg);
    }

    /* 下拉面板 - 在滚动容器外 */
    .mobile-dropdown-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        display: none;
        z-index: 200;
    }

    .mobile-dropdown-panel.open {
        display: block;
    }

    .mobile-dropdown-content {
        display: none;
    }

    .mobile-dropdown-content.active {
        display: block;
    }

    .mobile-dropdown-item {
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f5f5f5;
    }

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

    .mobile-dropdown-item:active {
        background-color: #f5f8ff;
        color: #2D6CDE;
    }

    /* 移动端面包屑 */
    .mobile-breadcrumb {
        display: block;
        width: 100%;
        padding: 13px 16px;
        background-color: #f5f5f5;
        font-size: 13px;
        color: #666;
    }

    /* 移动端底部 */
    .footer {
        display: none;
    }

    .mobile-footer {
        display: block;
        background-color: #fff;
        padding: 16px 12px;
        text-align: center;
        color: #999;
        font-size: 12px;
        line-height: 1.8;
        border-top: 1px solid #eee;
    }

    .mobile-footer-links {
        margin-bottom: 4px;
    }

    .mobile-footer-links a {
        color: #666;
        text-decoration: none;
    }

    .mobile-footer-sep {
        margin: 0 6px;
        color: #ddd;
    }

    .mobile-footer-email {
        margin-bottom: 2px;
    }

    .mobile-footer-copyright {
        margin: 0;
    }
}