/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f5f6fa;
    --dark-text: #2d3436;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.05);
    --transition-speed: 0.3s;
    
    /* 优化导航样式变量 */
    --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --submenu-bg: rgba(0, 0, 0, 0.02);
    --menu-hover: rgba(255, 140, 0, 0.07);
    --nav-text: #2d3748;
    --nav-text-muted: rgba(45, 55, 72, 0.65);
    --active-item: linear-gradient(90deg, #ff8c00, #ffb347);
    --active-item-border: linear-gradient(90deg, #ffb347, #ff8c00);
    --active-item-glow: 0 0 10px rgba(255, 140, 0, 0.15);
    --border-color: rgba(0, 0, 0, 0.04);
    --accent-color: #ff8c00;
    --primary-font: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.container {
    display: flex;
    min-height: 100vh;
}

.logo {
    padding: 15px 20px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* 修改LOGO区域的装饰 */
.logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.7;
}

.logo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    color: var(--nav-text);
    letter-spacing: 0.5px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu ul {
    list-style: none;
}

.menu > ul > li {
    position: relative;
    margin: 3px 8px;
    border-radius: 6px;
    overflow: hidden;
}

.menu li {
    transition: all var(--transition-speed);
}

.menu > ul > li > a {
    padding: 11px 14px;
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.menu li:hover > a {
    background-color: var(--menu-hover);
}

.menu li.active > a {
    background: var(--active-item);
    color: white;
    box-shadow: var(--active-item-glow);
    border-radius: 6px;
}

.menu a {
    color: var(--nav-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
}

.menu a i {
    margin-right: 10px;
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
    transition: all var(--transition-speed);
    color: var(--accent-color);
}

.menu li.active a i {
    color: white;
}

/* 二级菜单样式 */
.submenu-arrow {
    position: absolute;
    right: 15px;
    transition: transform var(--transition-speed);
    font-size: 0.8rem !important;
    opacity: 0.8;
    color: var(--nav-text-muted) !important;
}

.has-submenu.open > a > .submenu-arrow {
    transform: rotate(180deg);
}

.has-submenu > a {
    position: relative;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) cubic-bezier(0, 1, 0, 1);
    background-color: var(--submenu-bg);
    opacity: 1;
    margin: 0 4px;
    border-radius: 0 0 6px 6px;
}

.has-submenu.open .submenu {
    max-height: 1000px;
    transition: max-height var(--transition-speed) ease-in-out;
}

/* 子菜单展开/收起动画 */
.submenu-opening {
    animation: fadeIn 0.3s ease-in-out;
}

.submenu-closing {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* 菜单项点击动画 */
.menu-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0);
    animation: menuRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes menuRipple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.menu-highlight {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: menuHighlight 0.6s ease-out;
    pointer-events: none;
}

@keyframes menuHighlight {
    0% { opacity: 0.5; }
    100% { opacity: 0; }
}

.submenu li a {
    padding: 9px 10px 9px 42px;
    font-size: 0.85rem;
    color: var(--nav-text-muted);
    transition: all var(--transition-speed);
    position: relative;
    font-weight: 400;
}

.submenu li a::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--nav-text-muted);
    transform: translateY(-50%);
    transition: all var(--transition-speed);
}

.submenu li:hover a {
    color: var(--nav-text);
    background-color: var(--menu-hover);
}

.submenu li:hover a::before {
    background-color: var(--accent-color);
}

.submenu li.active a {
    color: #ffffff;
    background-color: var(--accent-color);
    font-weight: 500;
}

.submenu li.active a::before {
    background-color: #ffffff;
}

/* 父菜单状态样式 */
.has-submenu.has-active-child > a {
    color: var(--accent-color);
    background-color: rgba(255, 140, 0, 0.04);
    font-weight: 500;
}

.has-submenu.has-active-child > a > i {
    color: var(--accent-color);
}

/* 主要内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏样式 */
.top-bar {
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.left-section {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    margin-right: 15px;
    cursor: pointer;
}

.breadcrumb {
    font-weight: 500;
    color: var(--secondary-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.user-company {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-company i {
    font-size: 12px;
    color: #666;
}

.user-phone {
    font-size: 13px;
    color: #444;
    margin-bottom: 2px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-phone i {
    font-size: 12px;
    color: #666;
}

.user-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.user-avatar i {
    font-size: 18px;
    color: #666;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#username {
    font-weight: 500;
    font-size: 12px;
    color: #333;
}

/* #logoutBtn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#logoutBtn:hover {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ccc;
} */

/* 内容区域样式 */
.content {
    padding: 20px;
    flex: 1;
    background-color: var(--light-bg);
}

/* 欢迎区域样式 */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 欢迎区域日期显示 */
.date-display {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    text-align: right;
    padding-right: 10px;
}

/* 数据概览卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: #fff;
}

.card-icon.blue {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.card-icon.orange {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
}

.card-icon.green {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.card-info {
    flex: 1;
}

.card-info h3 {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-info p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* 模块部分样式 */
.module-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.module-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 15px;
    position: relative;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.module-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e0e0e0, transparent);
}

/* 功能网格样式 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 功能卡片样式 */
.function-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* transition: all var(--transition-speed); */
    cursor: pointer;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    min-width: 80px;
    flex: 0 0 80px;
    scroll-snap-align: start;
    margin-right: 6px;
}

/* .function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.function-card.clicked {
    animation: card-click 0.3s ease;
}

@keyframes card-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.function-card::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.7) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.function-card:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
} */

.function-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.function-grid a:nth-child(2) .function-icon {
    background: linear-gradient(135deg, #ff7675, #d63031);
}

.function-grid a:nth-child(3) .function-icon {
    background: linear-gradient(135deg, #55efc4, #00b894);
}

.function-grid a:nth-child(4) .function-icon {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.function-title {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 平板适配 */
@media (max-width: 768px) {
    /* 全局容器样式 */
    .container {
        flex-direction: column;
    }
    
    /* 侧边栏改为浮动面板 */
    /* .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-right: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 10px;
    }
    
    .sidebar.expanded {
        left: 0;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    } */
    
    /* Logo区域优化 */
    .logo {
        padding: 18px 22px;
        margin-bottom: 10px;
        justify-content: center;
        position: relative;
    }
    
    .logo::after {
        width: 60%;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    }
    
    .logo h2 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    /* 菜单样式优化 */
    .menu {
        padding: 5px 0;
    }
    
    /* 主内容区域 */
    .main-content {
        flex: 1;
        width: 100%;
        margin-left: 0;
        transition: all 0.3s ease;
    }
    
    /* 顶部导航栏样式 */
    .top-bar {
        padding: 12px 15px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        font-size: 1.3rem;
    }
    
    /* 面包屑导航 */
    .breadcrumb {
        font-size: 1.2rem;
    }
    
    /* 内容区域内边距调整 */
    .content {
        padding: 15px;
        overflow-x: hidden;
    }
    
    /* 欢迎区域样式 */
    .welcome-section {
        margin-bottom: 20px;
        padding: 15px 20px;
        background: linear-gradient(135deg, rgba(255,140,0,0.08) 0%, rgba(255,180,78,0.05) 100%);
        border-radius: 12px;
        border-left: 3px solid var(--accent-color);
        position: relative;
        overflow: hidden;
    }
    
    .welcome-section::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, transparent 0%, rgba(255,140,0,0.1) 100%);
        border-radius: 0 0 12px 0;
    }
    
    .welcome-section h1 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    /* 统计卡片布局 - 同一行显示 */
    .stats-cards {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 20px;
        overflow-x: auto;
        padding: 5px 2px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 卡片样式 */
    .card {
        flex: 1;
        min-width: 0;
        padding: 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.03);
        max-height: 80px;
    }
    
    .card::before {
        display: none;
    }
    
    /* 卡片图标 */
    .card-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 1.2rem;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    /* 卡片信息区 */
    .card-info {
        min-width: 0;
        overflow: hidden;
    }
    
    .card-info h3 {
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .card-info p {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    /* 功能卡片网格 */
    .function-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
        overflow: hidden;
    }
    
    /* 功能卡片样式 */
    .function-card {
        /* background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); */
        border-radius: 10px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /* transition: all 0.3s ease; */
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.03);
        text-align: center;
        min-height: 100px;
        aspect-ratio: 1/1;
    }
    
    /* .function-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    } */
    
    /* 功能图标 */
    .function-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        font-size: 1.5rem;
        color: white;
        /* background: linear-gradient(135deg, var(--accent-color) 0%, #ffb347 100%); */
        box-shadow: 0 4px 10px rgba(255, 140, 0, 0.25);
    }
    
    /* 功能卡片标题 */
    .function-title {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--dark-text);
        text-align: center;
        margin-top: 5px;
    }
}

/* 区域标题样式 */
.section-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* 手机适配 */
@media (max-width: 480px) {
    .stats-cards {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .card {
        padding: 10px;
        border-radius: 8px;
        max-height: 70px;
    }
    
    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-right: 6px;
    }
    
    .card-info h3 {
        font-size: 0.75rem;
        margin-bottom: 1px;
    }
    
    .card-info p {
        font-size: 1.2rem;
    }
    
    /* 移除卡片闪光动画，减少性能消耗 */
    .card::after {
        display: none;
    }
    
    /* 功能卡片网格布局 */
    .function-grid {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: initial;
        gap: 6px;
        overflow-x: hidden;
        padding: 0;
        margin: 0;
        width: 100%;
        position: relative;
        scrollbar-width: none; /* Firefox */
        /* -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; */
        justify-content: space-between;
    }
    
    /* 卡片内容垂直居中优化 */
    .function-card {
        padding: 8px 2px 6px 2px;
        border-radius: 8px;
        min-height: 72px;
        min-width: 0;
        max-width: none;
        height: 72px;
        flex: 0 0 calc(25% - 5px);
        /* scroll-snap-align: start; */
        margin-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        aspect-ratio: 1/1;
        border: 1px solid rgba(0,0,0,0.04);
        /* background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%); */
    }
    
    /* 功能图标样式优化 */
    .function-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 6px;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        transition: all 0.2s;
    }
    
    /* 添加滚动反馈效果 */
    @keyframes cardPulse {
        0% { transform: scale(1); }
        50% { transform: scale(0.98); }
        100% { transform: scale(1); }
    }
    
    /* .function-card:active {
        animation: cardPulse 0.3s ease;
    } */
    
    /* 隐藏滚动条但保留滚动功能 */
    .function-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* 滚动指示器优化 */
    .module-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 58%;
        width: 25px;
        height: 30px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03) 60%);
        border-radius: 0 8px 8px 0;
        pointer-events: none;
        z-index: 2;
        transform: translateY(-50%);
    }
    
    /* 添加左侧滚动指示器 */
    .module-section::before {
        content: '';
        position: absolute;
        left: 0;
        top: 58%;
        width: 10px;
        height: 30px;
        background: linear-gradient(270deg, transparent, rgba(0,0,0,0.02) 70%);
        border-radius: 8px 0 0 8px;
        pointer-events: none;
        z-index: 2;
        transform: translateY(-50%);
    }
    
    /* 图标点击效果 */
    .function-card:active .function-icon {
        transform: scale(0.92);
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }
    
    /* 模块标题与内容间距优化 */
    .module-header {
        margin-bottom: 10px;
    }
    
    .module-header h2 {
        font-size: 1rem;
        padding-left: 12px;
    }
    
    /* 功能卡片内部元素优化 */
    .function-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 8px 2px;
        padding-bottom: 6px;
    }
    
    /* 功能图标和标题间距调整 */
    .function-icon {
        margin-bottom: 6px;
    }
    
    /* 模块区域间距 */
    .module-section {
        margin-bottom: 20px;
        position: relative;
        border-radius: 8px;
        padding: 15;
    }
    
    /* 功能标题文字 */
    .function-title {
        font-size: 0.75rem;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }
    
    /* 添加卡片内容间距调整 */
    .function-card > * {
        margin: 0;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard {
    animation: fadeIn 0.5s ease;
}

/* 欢迎区域内容样式 */
.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,0,0.08) 0%, rgba(255,140,0,0.02) 60%, rgba(255,140,0,0) 100%);
    z-index: 0;
}

/* 卡片加载动画 */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: cardFadeIn 0.5s ease-out forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 功能卡片加载动画 */
.function-card {
    animation: cardFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.function-grid .function-card:nth-child(1) {
    animation-delay: 0.3s;
}

.function-grid .function-card:nth-child(2) {
    animation-delay: 0.4s;
}

.function-grid .function-card:nth-child(3) {
    animation-delay: 0.5s;
}

.function-grid .function-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* 修改移动端欢迎区域样式 */
@media (max-width: 768px) {
    .welcome-section {
        margin-bottom: 20px;
        padding: 15px 20px;
        background: linear-gradient(135deg, rgba(255,140,0,0.08) 0%, rgba(255,180,78,0.05) 100%);
        border-radius: 12px;
        border-left: 3px solid var(--accent-color);
        position: relative;
        overflow: hidden;
    }

    .welcome-section::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, transparent 0%, rgba(255,140,0,0.1) 100%);
        border-radius: 0 0 12px 0;
    }
    
    /* 改进卡片样式 */
    .card {
        position: relative;
        overflow: hidden;
    }
    
    .card::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
        top: 0;
        left: -100%;
        animation: cardShine 3s infinite;
    }
    
    @keyframes cardShine {
        0% {
            left: -100%;
            opacity: 0.6;
        }
        20% {
            left: 100%;
            opacity: 0.6;
        }
        100% {
            left: 100%;
            opacity: 0;
        }
    }
}

/* 欢迎区域用户信息样式 */
.user-info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    min-width: 75px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
}

.upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--accent-color), #ffb347);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(255, 140, 0, 0.25);
    transition: all 0.3s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.upgrade-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(255, 140, 0, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-section {
        padding: 15px;
    }
    
    .user-info-row {
        gap: 10px;
    }
    
    .info-label {
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .upgrade-btn {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .user-info-item {
        margin-bottom: 2px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 380px) {
    /* 功能卡片网格布局 */
    .function-grid {
        gap: 4px;
    }
    
    /* 功能卡片样式 */
    .function-card {
        min-width: 0;
        max-width: none;
        height: 62px;
        flex: 0 0 calc(25% - 3px);
        min-height: 62px;
        padding: 6px 2px 4px 2px;
        border-radius: 6px;
    }
    
    /* 功能图标 */
    .function-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-bottom: 5px;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* 功能标题 */
    .function-title {
        font-size: 0.7rem;
        line-height: 1;
    }
    
    /* 模块标题大小调整 */
    .module-header h2 {
        font-size: 0.95rem;
        padding-left: 10px;
    }
    
    /* 滚动指示器尺寸调整 */
    .module-section::after {
        width: 15px;
        height: 25px;
    }
    
    .module-section::before {
        width: 8px;
        height: 25px;
    }
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    /* opacity: 0;
    visibility: hidden; */
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-visible {
    opacity: 1;
    visibility: visible;
}

.modal-closing {
    opacity: 0;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-visible .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* 升级选项样式 */
.upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.upgrade-item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.upgrade-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.upgrade-item.recommended {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.15);
}

.recommend-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(90deg, var(--accent-color), #ffb347);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.upgrade-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.upgrade-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
}

.upgrade-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #555;
}

.upgrade-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.upgrade-select-btn {
    background: linear-gradient(90deg, var(--accent-color), #ffb347);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(255, 140, 0, 0.2);
    width: 100%;
}

.upgrade-select-btn:hover {
    box-shadow: 0 5px 12px rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

.upgrade-select-btn:active {
    box-shadow: 0 2px 5px rgba(255, 140, 0, 0.2);
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        max-width: 400px;
    }
    
    .upgrade-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upgrade-item {
        padding: 15px;
    }
    
    .upgrade-title {
        font-size: 1rem;
    }
    
    .upgrade-price {
        font-size: 1.2rem;
    }
    
    .upgrade-features li {
        font-size: 0.85rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
} 

/* 顶部导航栏样式更新 */
.top-bar {
    background-color: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
    height: 58px;
}

.left-section {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.2rem;
    margin-right: 10px;
    cursor: pointer;
    color: var(--accent-color);
	width: 40px;
	height: 40px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background-color: rgba(255, 140, 0, 0.08);
}

.breadcrumb {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-profile-row {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-color);
    margin-right: 10px;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.user-avatar i {
    font-size: 16px;
    color: var(--accent-color);
}

.user-company, .user-phone {
    font-size: 12px;
    color: var(--nav-text-muted);
    margin-bottom: 1px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#logoutBtn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

#logoutBtn:hover {
    background: var(--danger-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

/* 主内容区域调整 */
.main-content {
    flex: 1;
    margin-left: 230px;
    padding: 0;
    min-height: calc(100vh - 50px);
    transition: all 0.3s ease;
    position: relative;
	padding-bottom: 45px!important;
}

/* 移动端适配优化 */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .container.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 移动端菜单按钮 */
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-color);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 15px;
    }
    
    .user-profile {
        display: none;
    }
    
    #logoutBtn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 侧边栏样式增强 - 更新为与首页一致 */
.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    color: var(--nav-text);
    transition: all var(--transition-speed);
    z-index: 1000;
    overflow-y: auto;
    height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    font-family: var(--primary-font);
}

/* 添加侧边栏装饰 */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, #ffbe76 100%);
    pointer-events: none;
}

.logo {
    padding: 15px 20px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* 修改LOGO区域的装饰 */
.logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.7;
}

.logo h2 {
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    color: var(--nav-text);
    letter-spacing: 0.5px;
    margin: 0;
}

.hidden {
    display: none;
}