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

/* 状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.status-active {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.status-tag.status-inactive {
    background-color: #f5f7fa;
    color: #909399;
    border: 1px solid #ebeef5;
}

.status-tag.status-recycled {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fbc4c4;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #303133;
    display: flex;
    min-height: 100vh;
    font-size: 14px;
}

/* 去掉所有a标签的下划线 */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* 左侧导航栏 */
.sidebar {
    width: 220px;
    background-color: #f5f5f5;
    color: #333;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}

.sidebar-logo {
    padding: 15px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 5px 0;
}

.sidebar-menu li {
    margin: 2px 10px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 4px;
}

.sidebar-menu a:hover {
    background-color: #e8e8e8;
    color: #409EFF;
}

.sidebar-menu a.active {
    background-color: #409EFF;
    color: white;
}

/* 顶部导航栏 */
.top-header {
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #606266;
}

.user-info .balance {
    font-weight: 600;
    font-size: 16px;
}

.balance-red {
    color: #F56C6C;
}

.balance-orange {
    color: #E6A23C;
}

.balance-green {
    color: #67C23A;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions a {
    color: #409EFF;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.user-actions a:hover {
    background-color: #ecf5ff;
}

/* 主内容区域 */
.main-content {
    margin-left: 220px;
    margin-top: 60px;
    padding: 24px;
    flex: 1;
    min-height: calc(100vh - 60px);
    background-color: #f0f2f5;
}

/* 内容区域 */
.content-section {
    background-color: white;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

/* 容器 */
.container {
    background-color: white;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.container h2 {
    margin-bottom: 24px;
    color: #303133;
    font-size: 18px;
    font-weight: 500;
}

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

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

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

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

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #409EFF;
    color: white;
}

.btn-primary:hover {
    background-color: #66b1ff;
}

/* 确保a标签按钮与button标签按钮样式一致 */
a.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

a.btn-primary {
    color: white;
}

a.btn-primary:hover {
    color: white;
    text-decoration: none;
    background-color: #66b1ff;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

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

.btn-success {
    background-color: #67C23A;
    color: white;
}

.btn-success:hover {
    background-color: #85ce61;
}

.btn-danger {
    background-color: #F56C6C;
    color: white;
}

.btn-danger:hover {
    background-color: #f78989;
}

.btn-warning {
    background-color: #E6A23C;
    color: white;
}

.btn-warning:hover {
    background-color: #ebb563;
}

/* 统计卡片 */
.stats-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
}

.stat-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.stat-card.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 表格样式 */
.table-container {
    margin: 24px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
}

table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #606266;
    padding: 14px 16px;
}

table td {
    color: #606266;
}

table tr:hover {
    background-color: #f5f7fa;
}

/* 表格操作按钮 */
table .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #e1f3d8;
    color: #67C23A;
    border: 1px solid #d1edc4;
}

.status-inactive {
    background-color: #f4f4f5;
    color: #909399;
    border: 1px solid #e9e9eb;
}

.status-revoked {
    background-color: #fef0f0;
    color: #F56C6C;
    border: 1px solid #fbc4c4;
}

.status-recharged {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-normal {
    color: #67C23A;
}

.status-frozen {
    color: #F56C6C;
}

/* 搜索表单 */
.search-form {
    margin: 0 0 24px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.search-form .form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
}

.search-form .btn {
    align-self: flex-end;
    margin-bottom: 0;
    height: 36px;
    padding: 0 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

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

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #1890ff;
    color: #1890ff;
}

.pagination a.active {
    background-color: #1890ff;
    border-color: #1890ff;
    color: white;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    /* 使用flex布局实现居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 当modal显示时 */
.modal[style*="display: block"],
.modal.show {
    display: flex !important;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    /* 移除margin，使用flex居中 */
    margin: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f0f2f5;
    color: #1890ff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

/* 系统设置样式 */
.settings-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.api-key-section {
    margin: 20px 0;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.api-key-display input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.api-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.security-tip {
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.security-tip ul {
    margin: 10px 0;
    padding-left: 20px;
}

.api-doc-section {
    margin: 20px 0;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.api-endpoint input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.api-example {
    margin: 20px 0;
    position: relative;
}

.api-example pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

.api-example button {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s ease !important;
        background-color: #f5f5f5 !important;
        border-right: none !important;
        box-shadow: none !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .top-header {
        padding-left: 60px !important;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 16px;
    }
    
    .content-section {
        padding: 16px;
    }
    
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .top-header {
        left: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .stats-cards {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-bottom: 10px;
    }
    
    .top-header {
        left: 0;
        margin-top: 0;
        height: 50px;
        padding: 0 16px;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 12px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .stats-cards {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-group {
        width: 100%;
    }
    
    .search-form .btn {
        align-self: stretch;
        margin-bottom: 0;
    }
    
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .game-image {
        height: 80px !important;
    }
    
    .game-info {
        padding: 8px !important;
    }
    
    .game-info h3 {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .game-info p {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .game-info span {
        font-size: 12px !important;
    }
    
    .game-info button {
        padding: 2px 8px !important;
        font-size: 10px !important;
    }
    
    .user-info {
        font-size: 12px !important;
        gap: 10px !important;
    }
    
    .user-info .balance {
        font-size: 14px !important;
    }
    
    .user-actions a {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    .modal-content {
        width: 95% !important;
        max-width: 400px !important;
        padding: 16px !important;
    }
    
    table th,
    table td {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    table .btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    .sidebar-menu li {
        margin: 1px 5px !important;
    }
    
    .sidebar-menu a {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .top-header {
        height: 45px !important;
    }
    
    .main-content {
        margin-top: 55px !important;
        padding: 8px !important;
    }
    
    .content-section {
        padding: 8px !important;
    }
    
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .game-image {
        height: 70px !important;
    }
    
    .game-info {
        padding: 6px !important;
    }
    
    .game-info h3 {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }
    
    .game-info p {
        font-size: 9px !important;
        margin-bottom: 6px !important;
    }
    
    .game-info span {
        font-size: 11px !important;
    }
    
    .game-info button {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    .user-info {
        font-size: 11px !important;
        gap: 8px !important;
    }
    
    .user-info .balance {
        font-size: 12px !important;
    }
    
    .user-actions a {
        padding: 2px 6px !important;
        font-size: 11px !important;
    }
    
    .modal-content {
        width: 98% !important;
        max-width: 350px !important;
        padding: 12px !important;
    }
    
    table th,
    table td {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    
    table .btn {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px !important;
    }
    
    .pagination button {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    .pagination input {
        width: 40px !important;
        padding: 2px 4px !important;
        font-size: 12px !important;
    }
}

/* 激活码状态样式 */
.activation-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-used {
    background-color: #52c41a;
    color: white;
}

.status-unused {
    background-color: #1890ff;
    color: white;
}

/* 回收按钮样式 */
.recycle-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.recycle-btn.green {
    background-color: #52c41a;
    color: white;
}

.recycle-btn.red {
    background-color: #ff4d4f;
    color: white;
}

.recycle-btn:hover {
    opacity: 0.8;
}

/* 生成激活码表单 */
.generate-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.generate-form h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 可用AppID列表 */
.appid-list {
    margin: 20px 0;
}

.appid-list h3 {
    margin-bottom: 10px;
    color: #333;
}

.appid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.appid-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.appid-item:hover {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}

/* 生成的激活码列表 */
.generated-codes {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.generated-codes h3 {
    margin-bottom: 10px;
    color: #333;
}

.generated-codes ul {
    list-style: none;
    margin: 10px 0;
}

.generated-codes li {
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generated-codes .copy-btn {
    padding: 2px 6px;
    font-size: 12px;
}

/* 批量回收按钮 */
.batch-recycle {
    margin: 20px 0;
    text-align: right;
}

/* 每页显示条数选择 */
.per-page-selector {
    margin: 10px 0;
    text-align: right;
}

.per-page-selector label {
    margin-right: 10px;
    font-size: 14px;
}

.per-page-selector select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 代理分销样式 */
.agent-section {
    margin: 20px 0;
}

.agent-search-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.agent-search-form h3 {
    margin-bottom: 15px;
    color: #333;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.user-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.user-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.user-card .user-info {
    margin: 10px 0;
    font-size: 14px;
}

.user-card .user-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.user-card .user-actions button {
    flex: 1;
    min-width: 100px;
}

/* 充值按钮 */
.recharge-btn {
    margin: 10px 0;
}

/* 充值模态框 */
.recharge-modal .form-group {
    margin-bottom: 15px;
}

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

.recharge-modal .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

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

/* 成功消息 */
.success-message {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success-icon {
    font-size: 24px;
    font-weight: bold;
}

.success-text {
    font-size: 16px;
    font-weight: 500;
}

/* 激活码列表 */
.activation-list {
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
    padding-top: 15px;
}

.activation-list h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.code-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 10px;
    background-color: #fafafa;
}

.code-item {
    padding: 5px 0;
    font-family: monospace;
    font-size: 13px;
    color: #333;
    border-bottom: 1px dashed #e0e0e0;
}

.code-item:last-child {
    border-bottom: none;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

/* 错误消息 */
.error-message {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* 标题样式 */
h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

/* 段落样式 */
p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 10px;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/* 链接样式 */
a {
    color: #1890ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* 代码块样式 */
pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 文本右对齐 */
.text-right {
    text-align: right;
}

/* 文本左对齐 */
.text-left {
    text-align: left;
}

/* 加粗文本 */
.font-bold {
    font-weight: bold;
}

/* 斜体文本 */
.font-italic {
    font-style: italic;
}

/* 小字体 */
.text-sm {
    font-size: 12px;
}

/* 大字体 */
.text-lg {
    font-size: 18px;
}

/* 更大字体 */
.text-xl {
    font-size: 24px;
}

/* 间距 */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

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

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

.mb-5 {
    margin-bottom: 2rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 1rem;
}

.ml-4 {
    margin-left: 1.5rem;
}

.ml-5 {
    margin-left: 2rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 1rem;
}

.mr-4 {
    margin-right: 1.5rem;
}

.mr-5 {
    margin-right: 2rem;
}

/* 内边距 */
.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 2rem;
}

/* 圆角 */
.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

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

/* 阴影 */
.shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 隐藏 */
.hidden {
    display: none;
}

/* 显示 */
.block {
    display: block;
}

/* 行内 */
.inline {
    display: inline;
}

/* 行内块 */
.inline-block {
    display: inline-block;
}

/* 弹性布局 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

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

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

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

/* 网格布局 */
.grid {
    display: grid;
}

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

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

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 2rem;
}

/* 响应式网格 */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 颜色 */
.text-primary {
    color: #1890ff;
}

.text-success {
    color: #52c41a;
}

.text-warning {
    color: #faad14;
}

.text-danger {
    color: #ff4d4f;
}

.text-info {
    color: #13c2c2;
}

.text-dark {
    color: #333;
}

.text-light {
    color: #666;
}

.text-muted {
    color: #999;
}

/* 背景颜色 */
.bg-primary {
    background-color: #1890ff;
}

.bg-success {
    background-color: #52c41a;
}

.bg-warning {
    background-color: #faad14;
}

.bg-danger {
    background-color: #ff4d4f;
}

.bg-info {
    background-color: #13c2c2;
}

.bg-light {
    background-color: #f8f9fa;
}

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

.bg-gray {
    background-color: #f0f2f5;
}

/* 边框 */
.border {
    border: 1px solid #ddd;
}

.border-primary {
    border-color: #1890ff;
}

.border-success {
    border-color: #52c41a;
}

.border-warning {
    border-color: #faad14;
}

.border-danger {
    border-color: #ff4d4f;
}

.border-info {
    border-color: #13c2c2;
}

/* 边框半径 */
.rounded {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

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

/* 过渡 */
.transition {
    transition: all 0.3s ease;
}

/* 悬停效果 */
.hover\:bg-primary:hover {
    background-color: #1890ff;
}

.hover\:bg-success:hover {
    background-color: #52c41a;
}

.hover\:bg-warning:hover {
    background-color: #faad14;
}

.hover\:bg-danger:hover {
    background-color: #ff4d4f;
}

.hover\:bg-info:hover {
    background-color: #13c2c2;
}

.hover\:text-primary:hover {
    color: #1890ff;
}

.hover\:text-success:hover {
    color: #52c41a;
}

.hover\:text-warning:hover {
    color: #faad14;
}

.hover\:text-danger:hover {
    color: #ff4d4f;
}

.hover\:text-info:hover {
    color: #13c2c2;
}

/* 焦点效果 */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 禁用状态 */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 激活状态 */
.active {
    background-color: #1890ff;
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 打印样式 */
@media print {
    .sidebar,
    .top-header,
    .btn,
    .pagination {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        border: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    body {
        background-color: black;
        color: white;
    }
    
    .content-section,
    .top-header {
        background-color: #1a1a1a;
        color: white;
    }
    
    .sidebar {
        background-color: #000;
    }
}

/* 链接样式 */
.link {
    color: #409EFF;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.link-success {
    color: #67C23A;
    background-color: #f0f9eb;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.link-success:hover {
    color: #67C23A;
    text-decoration: none;
    opacity: 0.8;
}

.link-danger {
    color: #F56C6C;
}

.link-danger:hover {
    color: #f78989;
}

.recycle-link {
    color: #67C23A;
    background-color: #f0f9eb;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.recycle-link.recycle-red {
    color: #F56C6C;
    background-color: #fef0f0;
}

.recycle-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 批量回收结果样式 */
.recycle-result {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.recycle-result.success {
    background-color: #f0f9eb;
    border: 1px solid #b3e19d;
    color: #67c23a;
}

.recycle-result.error {
    background-color: #fef0f0;
    border: 1px solid #fbc4c4;
    color: #f56c6c;
}

.recycle-result ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.recycle-result li {
    margin: 5px 0;
}
    
    .table th {
        background-color: #333;
        color: white;
    }
    
    .table tr:hover {
        background-color: #333;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 登录页面样式 */
body.login-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.login-page .container {
    width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 90%;
}

body.login-page h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
}

body.login-page .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

body.login-page .form-group {
    margin-bottom: 15px;
}

body.login-page input[type="text"], 
body.login-page input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

body.login-page button {
    background-color: #2a5298;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

body.login-page button:hover {
    background-color: #1e3c72;
}

body.login-page .flash {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

body.login-page .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* 修改密码页面样式 */
body.change-password-page {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.change-password-page .modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    display: block;
    position: relative;
}

body.change-password-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-top: none;
}

body.change-password-page .modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

body.change-password-page .close {
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

body.change-password-page .close:hover {
    color: #333;
}

body.change-password-page .modal-body {
    padding: 20px;
}

body.change-password-page .form-group {
    margin-bottom: 15px;
}

body.change-password-page label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

body.change-password-page input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

body.change-password-page input[type="password"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

body.change-password-page .modal-footer {
    text-align: right;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    padding-top: 10px;
}

body.change-password-page .btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

body.change-password-page .flash {
    background-color: #fff2f0;
    color: #cf1322;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #ff4d4f;
}

/* 文件列表页面样式 */
body.file-list-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

body.file-list-page .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.file-list-page h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

body.file-list-page h2 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 15px;
}

body.file-list-page .flash {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

body.file-list-page ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

body.file-list-page li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

body.file-list-page li:last-child {
    border-bottom: none;
}

body.file-list-page .download-link {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
}

body.file-list-page .download-link:hover {
    text-decoration: underline;
}

body.file-list-page .back-link {
    display: inline-block;
    margin-top: 20px;
    color: #6c757d;
    text-decoration: none;
}

body.file-list-page .back-link:hover {
    text-decoration: underline;
}

/* 游戏卡片悬停效果 */
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #d9d9d9;
}

/* 游戏卡片图片悬停放大效果 */
.game-card:hover .game-image img {
    transform: scale(1.25);
    transition: transform 0.3s ease;
}

.game-image img {
    transition: transform 0.3s ease;
}