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

/* 性能优化：使用 CSS 变量 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --text-light: #999;
    --card-bg: #fff;
    --bottom-nav-height: 56px;
    --bottom-nav-padding: 16px;
}

/* 全局滚动条隐藏 */
* {
    /* 隐藏滚动条但保留滚动功能 */
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: -moz-scrollbars-none;
}

/* 隐藏WebKit浏览器的滚动条 */
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /* 性能优化：启用硬件加速 */
    transform: translateZ(0);
    /* 隐藏滚动条但保留滚动功能 */
    overflow-y: auto;
    /* 确保body也隐藏滚动条 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 确保所有容器都隐藏滚动条 */
.main-container,
.content-container,
.user-center,
.container {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 隐藏WebKit浏览器的滚动条 */
.main-container::-webkit-scrollbar,
.content-container::-webkit-scrollbar,
.user-center::-webkit-scrollbar,
.container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 确保主容器也适配无滚动条样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏切换按钮 */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 预测列表样式 */
.prediction-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prediction-list {
        grid-template-columns: 1fr;
    }
    
    /* 移动端优化：调整字体大小 */
    .logo {
        font-size: 18px;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    /* 小屏幕优化 */
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,123,255,0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误和成功消息 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* 会员标识 */
.member-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 5px;
}

/* 代理标识 */
.agent-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #28a745;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 5px;
}

/* 置顶标识 */
.top-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
}

/* 付费标识 */
.paid-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #6f42c1;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
}

/* 阅读量样式 */
.views {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

/* 价格样式 */
.price {
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
    margin-top: 10px;
}

/* 首页特定样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 20px;
    margin-bottom: 2cm;
}

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

.header-left > div {
    display: inline-block;
    max-width: 100%;
}

.logo-icon {
    font-size: 24px;
    margin-right: 10px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.logo-description {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
}

.online-count {
    font-size: 14px;
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 4px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
}

.nav {
    background-color: #f0f2f5;
    padding: 10px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.nav-left {
    display: flex;
    justify-content: center;
}

.nav-link {
    padding: 0 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #1890ff;
}

.search-container {
    padding: 15px 20px;
    background-color: #f0f2f5;
    border-bottom: 1px solid #e8e8e8;
}

.search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 10px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.search-box:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.content-container {
    padding: 20px;
    padding-bottom: 90px; /* 为底部导航栏留出足够空间 */
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* 主容器，确保所有元素居中对齐 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    /* 确保主容器不会裁剪底部导航栏 */
    overflow: visible;
}

/* 确保所有容器元素正确对齐 */
.header,
.nav,
.search-container,
.content-container {
    width: 100%;
    box-sizing: border-box;
}

/* 导航栏链接样式优化 */
.nav-link {
    padding: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    line-height: 1.5;
}

/* 文章项样式优化 */
.article-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.article-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: #e3f2fd;
}

/* 底部导航栏样式 - 参考微信等APP设计 */
.bottom-nav {
    /* 固定定位，始终显示在视口底部 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 微信风格：白色背景，顶部边框 */
    background-color: var(--card-bg);
    border-top: 1px solid #e8e8e8;
    /* Flex布局，均匀分布导航项 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* 固定高度，确保在各种设备上显示一致 */
    height: var(--bottom-nav-height);
    /* 确保导航栏在最顶层，不被其他内容遮挡 */
    z-index: 999999;
    /* 顶部阴影，增强层次感 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    /* 重置默认样式 */
    margin: 0;
    padding: 0;
    /* 确保导航栏宽度充满屏幕 */
    width: 100%;
    /* 防止导航栏被其他元素遮挡 */
    pointer-events: auto;
    /* 确保导航栏始终可见 */
    visibility: visible;
    opacity: 1;
    /* 确保导航栏不会跟随滚动 */
    transform: translateY(0);
    /* 确保导航栏不受其他定位元素影响 */
    overflow: visible;
    /* 确保导航栏不被任何容器裁剪 */
    contain: none;
    /* 确保导航栏不会被body或其他元素的overflow属性影响 */
    clip-path: none;
    /* 确保导航栏在所有设备上都能正确显示 */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    /* 确保导航栏在iOS设备上正确显示 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 导航项样式 */
.nav-item {
    /* Flex布局，垂直排列图标和文字 */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 文字颜色 */
    color: var(--text-light);
    /* 移除下划线 */
    text-decoration: none;
    /* 字体大小 */
    font-size: 12px;
    /* 内边距，增加点击区域 */
    padding: 8px 0;
    /* 过渡效果，提升用户体验 */
    transition: var(--transition);
    /* 确保导航项占据相等空间 */
    flex: 1;
    /* 最小宽度，确保在小屏幕上也能正常显示 */
    min-width: 60px;
}

/* 激活状态的导航项 */
.nav-item.active {
    /* 激活状态的文字颜色 */
    color: var(--primary-color);
}

/* 导航图标样式 */
.nav-icon {
    /* 图标大小 */
    font-size: 20px;
    /* 图标与文字的间距 */
    margin-bottom: 4px;
}

/* 确保所有页面的容器都为底部导航栏留出空间 */
/* 使用CSS变量统一管理导航栏高度，便于维护 */
:root {
    --bottom-nav-height: 56px;
    --bottom-nav-padding: 16px;
}

/* 为不同容器添加底部内边距，防止内容被导航栏遮挡 */
.container,
.main-container,
.content-container,
.user-center {
    padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-padding)) !important;
}

/* 响应式设计，确保在不同设备上显示一致 */
@media (max-width: 768px) {
    .bottom-nav {
        /* 移动端优化，调整高度和阴影 */
        height: var(--bottom-nav-height);
        box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
    }
    
    .nav-icon {
        /* 移动端优化，调整图标大小 */
        font-size: 22px;
    }
    
    .nav-item {
        /* 移动端优化，调整字体大小 */
        font-size: 11px;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .bottom-nav {
        /* 小屏幕优化，调整高度 */
        height: calc(var(--bottom-nav-height) - 4px);
    }
    
    .nav-icon {
        /* 小屏幕优化，调整图标大小 */
        font-size: 20px;
    }
    
    .nav-item {
        /* 小屏幕优化，调整字体大小和内边距 */
        font-size: 10px;
        padding: 6px 0;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) {
    .bottom-nav {
        /* 横屏模式下保持导航栏高度一致 */
        height: var(--bottom-nav-height);
    }
}

.hot-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff9800;
    color: white;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    border-bottom-left-radius: 16px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 0;
}

.article-price-container {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.article-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
    margin-left: 10px;
}

.article-free {
    font-size: 18px;
    font-weight: bold;
    color: #26de81;
    background-color: #f0fff4;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(38, 222, 129, 0.1);
}

.article-content {
    margin-bottom: 0;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.article-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
    margin-top: 8px;
}

.hit-rate {
    font-size: 13px;
    margin-left: 12px;
}

.paid-count {
    font-size: 13px;
    margin-left: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #1890ff;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 分享按钮 */
.share-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1da1f2;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share-btn:hover {
    background-color: #0d8bf2;
}

/* 代理邀请码 */
.agent-code {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* 充值金额选项 */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.recharge-option {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recharge-option:hover,
.recharge-option.active {
    border-color: #007bff;
    background-color: #e7f3ff;
}

/* 支付方式选择 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.payment-method {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: #007bff;
    background-color: #e7f3ff;
}

/* 后台管理样式 */
.admin-sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-sidebar h3 {
    padding: 0 20px;
    margin-bottom: 30px;
    font-size: 18px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    margin-bottom: 5px;
}

.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: #495057;
    color: #fff;
}

.admin-content {
    margin-left: 250px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.admin-header h2 {
    font-size: 24px;
    color: #333;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f5f5f5;
}



/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn.edit {
    background-color: #ffc107;
    color: #212529;
}

.action-btn.edit:hover {
    background-color: #e0a800;
}

.action-btn.delete {
    background-color: #dc3545;
    color: #fff;
}

.action-btn.delete:hover {
    background-color: #c82333;
}

.action-btn.view {
    background-color: #17a2b8;
    color: #fff;
}

.action-btn.view:hover {
    background-color: #138496;
}

/* 用户管理表格样式 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.table-container th,
.table-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.table-container th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
}

.table-container tr:hover {
    background-color: #f5f5f5;
}

/* 用户等级和状态样式 */
.user-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-level.level-normal {
    background-color: #e9ecef;
    color: #495057;
}

.user-level.level-member {
    background-color: #fff3cd;
    color: #856404;
}

.user-level.level-agent {
    background-color: #d4edda;
    color: #155724;
}

.user-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-status.status-active {
    background-color: #d4edda;
    color: #155724;
}

.user-status.status-disabled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 搜索框样式优化 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #0069d9;
}

/* 侧边栏导航样式 */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
    width: 64px;
}

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

.sidebar-brand {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #a0aec0;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    gap: 4px;
}

.sidebar-toggle::before, .sidebar-toggle::after, .sidebar-toggle span {
    content: '';
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    gap: 12px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #4299e1;
}

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: #fff;
    padding: 16px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4a5568;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.logout-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #edf2f7;
}

.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: #718096;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.card-body {
    padding: 24px;
}

.search-box {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 51.45px;
    max-width: 102.9px;
    width: 17.15%;
    height: 20px;
    padding: 5px 2.744px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4299e1;
    color: #fff;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(66,153,225,0.2);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.btn-danger {
    background: #f56565;
    color: #fff;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(245,101,101,0.2);
}

.btn-success {
    background: #38a169;
    color: #fff;
}

.btn-success:hover {
    background: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(56,161,105,0.2);
}

.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fff5f5;
    color: #9b2c2c;
    border-left: 4px solid #f56565;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    white-space: nowrap;
}

tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

tbody tr:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #c6f6d5;
    color: #276749;
}

.status-inactive {
    background: #fed7d7;
    color: #9b2c2c;
}

.status-pending {
    background: #feebc8;
    color: #c05621;
}

.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.pagination a.active {
    background: #4299e1;
    color: #fff;
    border-color: #4299e1;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #718096;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.empty-state-description {
    font-size: 14px;
    margin-bottom: 24px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4a5568;
}

/* 工具类 */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.space-y-3 {
    margin-top: -0.75rem;
    margin-bottom: -0.75rem;
}

.space-y-3 > * {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.space-x-2 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.space-x-2 > * {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-700 {
    color: #4b5563;
}

.text-gray-600 {
    color: #6b7280;
}

.text-gray-500 {
    color: #9ca3af;
}

.text-gray-900 {
    color: #111827;
}

.text-red-600 {
    color: #dc2626;
}

.text-green-600 {
    color: #059669;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.text-purple-800 {
    color: #6b21a8;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.text-red-800 {
    color: #991b1b;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-800 {
    color: #1f2937;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.text-xs {
    font-size: 0.75rem;
}

.leading-5 {
    line-height: 1.25rem;
}

.inline-flex {
    display: inline-flex;
}

.max-w-xs {
    max-width: 20rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:text-blue-900:hover {
    color: #1e40af;
}

.hover\:text-red-900:hover {
    color: #7f1d1d;
}

.duration-150 {
    transition-duration: 150ms;
}

.divide-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.divide-gray-200 {
    border-color: #e5e7eb;
}

.min-w-full {
    min-width: 100%;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.focus\:ring:focus {
    ring: 2px;
    ring-color: rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-200:focus {
    ring-color: #bfdbfe;
}

.focus\:ring-opacity-50:focus {
    ring-opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar.expanded {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
    }
    
    .top-bar {
        padding: 16px;
    }
    
    .content {
        padding: 16px;
    }
    
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: unset;
    }
    
    .btn {
        justify-content: center;
    }
    
    th, td {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .table-container {
        font-size: 14px;
    }
    
    .table-container th,
    .table-container td {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* 表格样式增强 */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    white-space: nowrap;
}

tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

tbody tr:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

/* 卡片样式增强 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 24px;
    border-top: 1px solid #edf2f7;
    background-color: #f9fafb;
}

/* 按钮样式增强 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4299e1;
    color: #fff;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(66,153,225,0.2);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.btn-danger {
    background: #f56565;
    color: #fff;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(245,101,101,0.2);
}

.btn-success {
    background: #38a169;
    color: #fff;
}

.btn-success:hover {
    background: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(56,161,105,0.2);
}

.btn-warning {
    background: #ed8936;
    color: #fff;
}

.btn-warning:hover {
    background: #dd6b20;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(237,137,54,0.2);
}

/* 表单样式增强 */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 页面标题样式 */
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: #718096;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
}
