/*导航菜单*/
.navbar{ margin:0px; background-color:#fff; border: none;
    box-shadow: 0px 3px 4px rgba(0, 0, 0,0.1);}
#app_menudown{position: absolute; top:0px; right:0px; font-size: 16px;}
#app_menudown:hover{background-color: #0080ff;}

/* ========================================
  二级菜单 - Tabs 标签页 + 竖排混合布局
  ======================================== */
   .dropdown-mega {
       position: static !important;
   }

.dropdown-submenu {
    width: 100%;
    max-width: 100%;
    padding: 25px 0;
    margin-top: 0;
    border: none;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    background-color: #fff;
    display: none;
    z-index: 1000;
}

.dropdown-mega:hover .dropdown-submenu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新增：父级菜单项高亮显示 */
.dropdown-mega:hover > a {
    color: #0080ff;
}

.dropdown-mega:hover > a .glyphicon-menu-down {
    color: #0080ff;
}

/* ========================================
   Tabs 标签页样式（有三级菜单时）
   ======================================== */
.tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.tab-item {
    flex: 0 0 auto;
    margin: 0;
}

.tab-link {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-item.active .tab-link {
    color: #0080ff;
    border-bottom-color: #0080ff;
    background-color: #f9f9f9;
}

.tab-title {
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   无子菜单：竖排显示
   ======================================== */
.second-level-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.second-level-item.no-children {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.3s ease;
}

.second-level-item.no-children:hover {
    background-color: #fafafa;
    padding-left: 10px;
}

.second-level-item.no-children .second-level-link {
    display: block;
    text-decoration: none;
}

.second-level-item.no-children .second-level-title {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: left;
    padding: 0;
    letter-spacing: 0;
}

.second-level-item.no-children:hover .second-level-title {
    color: #0080ff;
}

/* ========================================
   第三层级：2 行 3 列网格布局
   ======================================== */
.third-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
}

.third-level-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.third-level-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #0080ff;
}

.third-level-card a {
    display: block;
    text-decoration: none;
}

/* 左图右文布局 */
.card-layout {
    display: flex;
    height: 120px;
}

.card-image-col {
    flex: 0 0 140px;
    overflow: hidden;
    border-right: 1px solid #f0f0f0;
}

.card-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 图片区域 - 固定大小压缩显示 */
.card-image-box {
    width: 100%;
    height: 100%;
    min-height: 120px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.third-level-card:hover .card-image-box img {
    transform: scale(1.05);
}

.no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}

/* 内容区域 - 上标题下描述 */
.card-content-box {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title-row {
    min-height: 22px;
    display: flex;
    align-items: center;
}

.card-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc-row {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.card-description {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.third-level-card:hover .card-title {
    color: #0080ff;
}

/* ========================================
   响应式调整
   ======================================== */
@media screen and (max-width: 1200px) {
    .third-level-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .tab-link {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media screen and (max-width: 992px) {
    .third-level-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }

    .card-layout {
        height: 100px;
    }

    .card-image-col {
        flex: 0 0 100px;
    }

    .card-image-box {
        min-height: 100px;
    }

    .tabs-nav {
        gap: 8px;
    }

    .tab-link {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .dropdown-submenu {
        position: relative;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding: 10px 0;
    }

    .tabs-wrapper {
        padding: 0 15px;
    }

    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-item {
        border-bottom: 1px solid #eee;
    }

    .tab-link {
        padding: 10px 0;
        border-bottom: none !important;
    }

    .tab-item.active .tab-link {
        background-color: #f0f7ff;
        color: #0080ff;
    }

    .third-level-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .card-layout {
        height: auto;
        flex-direction: column;
    }

    .card-image-col {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .card-image-box {
        min-height: 120px;
    }

    .card-content-col {
        padding: 10px 0;
    }

    .card-title {
        font-size: 14px;
        white-space: normal;
    }

    .card-description {
        font-size: 12px;
    }
}