#app [v-cloak] {
    display: none;
}

#app .app-container {
    width: 100%;
}

#app .app-container .main {
    padding: 10px 6% 20px;
}

.menu-container{
    background: linear-gradient(135deg, #1a2b6d 0%, #0646a0 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* 菜单栏基础样式 */
.menuBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    position: relative;
    z-index: 1000;
    margin: 0 6%;
}

/* Logo样式 */
.logo-link {
    display: inline-block;
    margin-right: 40px;
}

.menuBar .logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.menuBar .logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-menu-toggle .menu-icon {
    font-size: 20px;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

/* 自定义菜单容器 */
.custom-menu {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 菜单列表 */
.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

/* 菜单项基础样式 */
.menu-item {
    position: relative;
    height: 100%;
    margin: 0;
}

/* 菜单链接样式 */
.menu-link {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
}

.menu-text {
    display: inline-block;
    vertical-align: middle;
}

/* 菜单悬停效果 */
.menu-item:not(.active):hover  {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* 激活状态的菜单项 */
.menu-item.active  {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(241, 86, 41, 0.15), transparent);
    border-bottom-color: #f15629;
    font-weight: 600;
}

/* 激活状态动画指示器 */
.menu-item.active::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #f15629, transparent);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 子菜单箭头 */
.submenu-arrow {
    margin-left: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.menu-item:hover .submenu-arrow,
.menu-item.active .submenu-arrow {
    color: #ffffff;
    transform: translateY(2px);
}

/* 子菜单样式 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: linear-gradient(135deg, #1a2b6d 0%, #0646a0 100%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    margin: 5px 0 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 子菜单项 */
.submenu-item {
    margin: 0;
}

/* 子菜单链接 */
.submenu-link {
    display: block;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submenu-link:hover {
    color: #ffffff;
    background: rgba(241, 86, 41, 0.15);
    padding-left: 32px;
}

.submenu-item.active .submenu-link {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(241, 86, 41, 0.3), transparent);
    font-weight: 500;
}

/* 操作区域样式 */
.operations {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

/* 用户信息容器 */
.user-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 用户头像 */
.avatar {
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar:hover {
    border-color: #f15629;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(241, 86, 41, 0.3);
}

/* 用户名 */
.user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 退出按钮 */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 切换/退出图标 */
.switch {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logout-btn:hover .switch {
    opacity: 1;
    transform: rotate(30deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

/* 响应式设计 - 大屏幕适配 */
@media (max-width: 1200px) {
    .menuBar {
        padding: 0 16px;
    }

    .menu-link {
        padding: 0 12px;
        font-size: 14px;
    }

    .logo-link {
        margin-right: 20px;
    }
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 992px) {
    .menuBar {
        height: 56px;
    }

    .menu-link {
        height: 56px;
        padding: 0 10px;
        font-size: 13px;
    }

    .operations {
        gap: 12px;
        margin-left: 20px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .user-name {
        max-width: 80px;
        font-size: 13px;
    }

    .switch {
        width: 20px;
        height: 20px;
    }
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .menuBar {
        padding: 0 12px;
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
    }

    .logo-link {
        margin-right: auto;
    }

    .menuBar .logo {
        height: 30px;
    }

    .custom-menu {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .custom-menu.menu-active {
        display: block;
    }

    .menu-list {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 8px 0;
    }

    .menu-item {
        height: auto;
        width: 100%;
    }

    .menu-link {
        height: 48px;
        padding: 0 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: none;
    }

    .menu-item.has-submenu.active .submenu {
        display: block;
    }

    .submenu-link {
        padding-left: 32px;
    }

    .operations {
        margin-left: 0;
    }

    .user-name {
        display: none;
    }
}

.option_container {
    background: #FFFFFF;
    box-shadow: 0px 8px 41px 0px rgba(144, 150, 164, 0.54);
    border-radius: 10px;
    padding: 20px 20px 20px;
}

.option_container .date_range, .option_container .compare_range {
    display: flex;
    align-items: center;
}


.option_container .date_range, .option_container .metrics_range {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}


.option_container .sub_title {
    font-size: 16px;
    margin-right: 10px;
    font-weight: bold;
    color: #414245;
    line-height: 30px;
    letter-spacing: 1px;
}

.option_container .tabsList {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 6px 10px;
    box-sizing: border-box;
    border: 1px solid #DCDFE6;
}

.option_container .tabsList .tab-item {
    padding: 0px 10px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: .3s all;
    user-select: none;
    margin-right: 10px;
    float: left;
}

.option_container .tabsList .tab-item span {
    font-size: 14px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #414245;
    line-height: 28px;
}

.option_container .tabsList .active {
    background: #0066FF;
    transition: .3s all;
}

.option_container .tabsList .active span {
    color: #FFFFFF;
}

.el-cascader {
    padding-left: 10px
}

.option_container.fixed {
    position: fixed;
    margin-top: 0px;
    top:10px;
    z-index: 999;
}

.gpt_analysis_btn {
    cursor: pointer;
}

.header .module_head_img {
    width: 55px;
    height: 50px;
    object-fit: contain;
    bottom: -6px;
    left: 16px;
}

.section .line {
    height: 2px;
    background-color: #1F4885;
    left: 54px;
    right: 26px;
    bottom: 3px;
}

.flex_end{
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

