/* 基础样式 - 兼容IE */
* {
    margin: 0;
    padding: 0;
}
table tr td{
	font-size:14px;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.8;
    color: #333333;
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    cursor: pointer;
}

ul {
    list-style: none;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 - 固定顶部 */
header {
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 80px;
}

.header-container {
    display: block;
    padding: 15px 0;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.logo {
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #0066ff;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    line-height: 45px;
    margin-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 3px 8px rgba(0, 102, 255, 0.3);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e3a5f;
}

.logo-text span {
    color: #0066ff;
}

/* 头部右侧用户信息 */
.header-user {
    float: right;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    height: 100%;
}

.user-info {
    display: inline-flex;
    align-items: center;
    padding: 0px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s;
}

.user-info:hover {
    background: #eaf3ff;
    border-color: #c3e0ff;
}

.user-avatar {
    height: 32px;
    padding: 5px;
    color: #7c0000;
    display: inline-block;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 16px;
}

.user-name {
    font-weight: bold;
    color: #1e3a5f;
    font-size: 0.9rem;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 17px;
    margin: 0 10px;
    background: #0066ff;
    color: white;
    border: 1px solid #0066ff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    gap: 6px;
    height: 36px;
    white-space: nowrap;
}

.header-link:hover {
    background: #0052d4;
    border-color: #0052d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* 主内容区域 - 修复布局问题 */
.main-content {
    padding: 25px 0;
    overflow: hidden;
    min-height: calc(100vh - 180px);
}

/* 移动端侧边栏开关 */
.mobile-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 16px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.mobile-sidebar-toggle:hover {
    background: #0052d4;
}

/* 左侧边栏 */

/* 管理中心首页样式 - 与其他菜单项风格一致 */
.sidebar-section:first-child {
    margin-bottom: 5px;
    border-bottom: 1px solid #eaeaea;
}

.sidebar-section:first-child .menu-link {
    background-color: #f8f9fa;
    border-left: 3px solid #1976d2;
    color: #2c3e50;
    font-weight: 600;
}

.sidebar-section:first-child .menu-link:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.sidebar-section:first-child .menu-link.active {
    background-color: #1976d2;
    color: white;
	border-radius: 10px;
}

.sidebar-section:first-child .menu-link.active:hover {
    background-color: #1565c0;
    color: white;
}

.sidebar-section:first-child .menu-link i {
    color: #1976d2;
}

.sidebar-section:first-child .menu-link.active i {
    color: white;
}


.left-sidebar {
    width: 15%;
    float: left;
    background: white;
    border-radius: 12px;
    padding: 25px 0;
    margin-right: 2%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3a5f;
    padding: 0 25px 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sidebar-menu {
    padding: 0;
}

.menu-item {
    padding: 0;
    margin-bottom: 5px;
}

.menu-link {
    display: block;
    padding: 14px 25px;
    color: #555;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    line-height: 1.8;
}

.menu-link:hover {
    background: #f5f9ff;
    color: #0066ff;
    border-left-color: #0066ff;
    padding-left: 30px;
    transform: translateX(5px);
}

.menu-link.active {
    background: #f0f7ff;
    color: #0066ff;
    border-left-color: #0066ff;
    font-weight: bold;
}

.menu-link i {
    width: 20px;
    color: #666;
    font-size: 1.1rem;
    margin-right: 12px;
}

.menu-link:hover i,
.menu-link.active i {
    color: #0066ff;
}

/* 右侧内容区域 - 修复宽度问题 */
.right-content {
    width: 83%;
    float: left;
    background: white;
    border-radius: 12px;
    padding: 30px;
    min-height: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.content-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3a5f;
    line-height: 1.4;
}

/* 欢迎面板 - 修改为flex布局以容纳二维码 */
.welcome-panel {
    background: linear-gradient(to right, #f5f9ff, #eaf3ff);
    border: 1px solid #c3e0ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 6px solid #0066ff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.welcome-content {
    flex: 1;
    min-width: 300px;
}

.welcome-title {
    font-size: 1.6rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.welcome-text {
    color: #555;
    line-height: 3;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* 公众号二维码区域 */
.qrcode-section {
    width: 180px;
    text-align: center;
    flex-shrink: 0;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-img img {
    width: 100%;
    height: 100%;
    border: 10px solid #FFF;
    border-radius: 10px;
    box-shadow: 0 0 10px 10px white;
    object-fit: cover;
}

.qrcode-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
	margin-top: 30px;
}

/* 数据统计卡片 - 左右布局 */
        .stats-grid {
            margin-bottom: 30px;
            width: 100%;
            display: block;
        }

        .stat-card {
            width: 23%;
            float: left;
            background: white;
            border-radius: 12px;
            padding: 40px;
			margin: 40px 11px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
            line-height: 1.6;
            box-sizing: border-box;
            display: flex;
            align-items: center;
			cursor:pointer;
            border-top: 5px solid #daecff;
        }
        
        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border-top: 5px solid #0066ff;
        }

        .stat-card:nth-child(4n) {
            margin-right: 0;
        }

        .stat-icon {
            width: 60px;
            height: 60px;
            background: #f0f7ff;
            border-radius: 10px;
            text-align: center;
            line-height: 60px;
            color: #0066ff;
            font-size: 1.8rem;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .stat-info {
            flex: 1;
        }

        .stat-info h3 {
            font-size: 0.95rem;
            color: #666;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #1e3a5f;
            line-height: 1.2;
        }



/* 提示信息 */
.info-panel {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
    line-height: 1.8;
}

/* 页脚 */
footer {
    background-color: #1e3a5f;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    overflow: hidden;
    margin-bottom: 30px;
}

.footer-col {
    width: 30%;
    float: left;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 10px;
    line-height: 1.4;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    transition: all 0.3s;
    cursor: pointer;
    line-height: 1.8;
}

.footer-links a:hover {
    color: #00d4ff;
    padding-left: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a5f;
    background: #f0f7ff;
    width: 45px;
    height: 45px;
    border: 1px solid #c3e0ff;
    border-radius: 6px;
    text-align: center;
    line-height: 45px;
    float: right;
    margin-top: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #0066ff;
    color: white;
    border-color: #0066ff;
}

/* 充值链接样式 */
.recharge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 17px;
    background: linear-gradient(to right, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    gap: 6px;
    height: 36px;
    white-space: nowrap;
}

.recharge-link:hover {
    background: linear-gradient(to right, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .left-sidebar {
        width: 20%;
        margin-right: 2%;
    }
    
    .right-content {
        width: 78%;
    }
    
    .stat-card {
        width: 48%;
        margin-right: 2%;
    }
    
    .stat-card:nth-child(2n) {
        margin-right: 0;
    }
    
    .footer-col {
        width: 45%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    header {
        height: 70px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .left-sidebar {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 25px;
        display: none;
    }
    
    .right-content {
        width: 100%;
        float: none;
    }
    
    .footer-col {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
    
    .header-user {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .header-link, .recharge-link {
        padding: 6px 12px;
        font-size: 0.85rem;
        height: 32px;
    }
    
    .welcome-panel {
        flex-direction: column;
    }
    
    .qrcode-section {
        width: 100%;
        margin-left: 0;
        margin-top: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .log-table th,
    .log-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .stat-card {
        width: 100%;
        margin-right: 0;
    }
    
    .right-content {
        padding: 25px;
    }
    
    .content-title {
        font-size: 1.6rem;
    }
    
    .welcome-panel {
        padding: 20px;
    }
    
    .qrcode-img {
        width: 130px;
        height: 130px;
    }
    
    .log-table th,
    .log-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 576px) {
    body {
        padding-top: 65px;
    }
    
    header {
        height: 65px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .right-content {
        padding: 20px;
    }
    
    .welcome-panel {
        padding: 18px;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
    
    .welcome-text {
        line-height: 2.5;
        font-size: 1rem;
    }
    
    .qrcode-section {
        margin-top: 20px;
    }
    
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .info-panel {
        padding: 20px;
    }
}