* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 代理等级标题颜色 - 添加文字颜色 */
header.trainee { 
    background: linear-gradient(135deg, #a0a0a0 0%, #c0c0c0 100%) !important; 
    color: white;
}

header.silver { 
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%) !important; 
    color: #333;  /* 深色文字在浅色背景上 */
}

header.gold { 
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important; 
    color: #333;  /* 深色文字在金色背景上 */
}

header.diamond { 
    background: linear-gradient(135deg, #b9f2ff 0%, #e6f7ff 100%) !important; 
    color: #0066cc;  /* 蓝色文字在浅蓝背景上 */
}

header.king { 
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%) !important; 
    color: white;
}

/* 管理员和普通用户保持不变 */
header.admin, header.user { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; 
    color: white;
}

/* 原有的header样式保留，但优先级较低 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
}

.user-info {
    font-size: 14px;
}

.user-info {
    font-size: 14px;
}

.user-info a {
    color: inherit;
    text-decoration: none;
    margin-left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影提高可读性 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加按钮阴影 */
}

.user-info a:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 悬停时加深阴影 */
    transform: translateY(-1px); /* 轻微上浮效果 */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

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

.form-group.inline {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
}

.form-group.inline label {
    display: inline-block;
    margin-right: 5px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

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

.btn.danger {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

.btn.small {
    padding: 5px 15px;
    font-size: 14px;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.order-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.orders-container {
    margin-top: 20px;
}

.order-row {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.remove-btn {
    background: #f56565;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: auto;
}

.remove-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.instructions {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.instructions ol {
    margin-left: 20px;
    margin-top: 15px;
}

.instructions li {
    margin-bottom: 10px;
}

.alert {
    background: #fed7d7;
    color: #c53030;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c53030;
}

/* 标签页样式 */
.admin-tabs {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-buttons {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #4a5568;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background: white;
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

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

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

th {
    background: #f7fafc;
    font-weight: bold;
    color: #4a5568;
}

tr:hover {
    background: #f7fafc;
}

/* 工具卡片 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* 日志条目 */
.log-entry {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f7fafc;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.log-type {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

/* 不同日志类型的颜色 */
.log-type.type-登录 { background: #48bb78; }
.log-type.type-退出 { background: #f56565; }
.log-type.type-提交订单 { background: #4299e1; }
.log-type.type-请求修改 { background: #ed8936; }
.log-type.type-批准修改 { background: #9f7aea; }
.log-type.type-添加用户 { background: #38b2ac; }
.log-type.type-添加选项 { background: #ecc94b; }
.log-type.type-更新选项 { background: #667eea; }
.log-type.type-生成激活码 { background: #ed64a6; }
.log-type.type-导入激活码 { background: #a0aec0; }
.log-type.type-清理过期 { background: #c53030; }
.log-type.type-更新提交数 { background: #4a5568; }
.log-type.type-拒绝修改 { background: #fc8181; }

.log-user {
    font-weight: bold;
    margin-right: 15px;
    color: #4a5568;
}

.log-time {
    color: #718096;
    margin-right: 15px;
}

.log-ip {
    color: #a0aec0;
    font-size: 12px;
    margin-left: auto;
}

.log-content {
    padding: 15px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
}

/* 修改条目 */
.modification-item {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.mod-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 10px;
}

.mod-details p {
    margin-bottom: 8px;
    color: #4a5568;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .order-row {
        display: block;
    }

    .form-group.inline {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .form-group.inline input,
    .form-group.inline select {
        width: 100%;
    }

    .remove-btn {
        float: none;
        margin-top: 10px;
        width: 100%;
    }

    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .log-ip {
        margin-left: 0;
    }
}

/* 新增样式 */
.confirm-dialog, .result-dialog {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.order-details, .result-orders {
    margin: 15px 0;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 15px;
    background: #f7fafc;
}

.order-item, .result-item {
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.order-item p, .result-item p {
    margin: 5px 0;
}

.result-item p {
    font-weight: bold;
    color: #2d3748;
}

.codes-used, .codes-unused, .removed-files {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #38b2ac;
}

.codes-used {
    background: #fff5f5;
    border-left: 3px solid #f56565;
}

.codes-unused {
    background: #f0fff4;
    border-left: 3px solid #48bb78;
}

.codes-used h4, .codes-unused h4, .removed-files h4 {
    margin-bottom: 10px;
}

.used-code code {
    display: block;
    font-family: monospace;
    background: #fed7d7;
    color: #c53030;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 5px 0;
    word-break: break-all;
}

.unused-code code {
    display: block;
    font-family: monospace;
    background: #c6f6d5;
    color: #22543d;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 5px 0;
    word-break: break-all;
}

/* 日志相关样式 */
.logs-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logs-filters select, .logs-filters input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

/* 修改审批相关样式 */
.modification-item.status-待审批 {
    border-left: 4px solid #f6ad55;
}

.modification-item.status-已批准 {
    border-left: 4px solid #68d391;
}

.modification-item.status-已拒绝 {
    border-left: 4px solid #fc8181;
}

.mod-id, .mod-user, .mod-time {
    margin-right: 20px;
    color: #4a5568;
}

.mod-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 20px;
}

.mod-status.status-待审批 { background: #fbd38d; color: #744210; }
.mod-status.status-已批准 { background: #c6f6d5; color: #22543d; }
.mod-status.status-已拒绝 { background: #fed7d7; color: #742a2a; }

.mod-details {
    padding: 15px;
    background: white;
}

.mod-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.mod-col {
    flex: 1;
    padding: 15px;
    background: #f7fafc;
    border-radius: 5px;
}

.mod-col h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2d3748;
}

.mod-arrow {
    font-size: 24px;
    color: #a0aec0;
}

.mod-actions {
    padding: 15px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.approve-btn {
    background: linear-gradient(135deg, #68d391 0%, #38a169 100%);
}

.reject-btn {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}

/* 用户管理样式 */
.count-edit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submission-count-edit {
    width: 80px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
}

/* 激活码管理样式 */
.codes-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .codes-management {
        grid-template-columns: 1fr;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-card h4 {
    margin-top: 0;
    color: #4a5568;
    font-size: 14px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2d3748;
    margin: 10px 0;
}

/* 工具卡片样式 */
.system-stats {
    text-align: left;
}

.system-stats p {
    margin: 8px 0;
    color: #4a5568;
}

.system-stats strong {
    color: #2d3748;
}

/* 修改订单页面样式 */
.modify-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #4a5568;
}

.modify-history {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-list {
    margin-top: 20px;
}

.history-item {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f7fafc;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item.status-待审批 {
    border-left: 4px solid #f6ad55;
}

.history-item.status-已批准 {
    border-left: 4px solid #68d391;
}

.history-item.status-已拒绝 {
    border-left: 4px solid #fc8181;
}

.status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status.待审批 { background: #fbd38d; color: #744210; }
.status.已批准 { background: #c6f6d5; color: #22543d; }
.status.已拒绝 { background: #fed7d7; color: #742a2a; }

.history-details p {
    margin: 5px 0;
    color: #4a5568;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-style: italic;
}

/* 按钮样式增强 */
.check-btn {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.submit-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.back-btn {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

/* 弹窗自定义样式 */
.price-popup .swal2-popup,
.confirm-popup .swal2-popup,
.result-popup .swal2-popup {
    max-height: 80vh;
    overflow-y: auto;
}

.swal2-popup pre {
    text-align: left;
    font-family: monospace;
    max-height: 400px;
    overflow-y: auto;
    background: #f7fafc;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 防挂保护价格显示样式 */
.protection-price, .protection-check {
    font-family: 'Microsoft YaHei', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.protection-price {
    background: #e6fffa;
    border: 1px solid #38b2ac;
}

.protection-check {
    background: #fff5f5;
    border: 1px solid #fc8181;
}

/* 激活码详情表格样式 */
.codes-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.codes-table th {
    background: #4a5568;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.codes-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.codes-table tr:nth-child(even) {
    background: #f7fafc;
}

.codes-table tr:hover {
    background: #edf2f7;
}

.codes-table code {
    font-family: monospace;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status.used {
    background: #c6f6d5;
    color: #22543d;
}

.status.unused {
    background: #bee3f8;
    color: #2a4365;
}



/* 在现有的 <style> 标签中添加以下样式 */
.search-result {
    text-align: center;
}

.search-result h4 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.search-result p {
    margin: 8px 0;
    font-size: 16px;
}

.search-result strong {
    color: #555;
}

.matches-list {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.matches-list ul {
    list-style-type: none;
    padding-left: 0;
}

.matches-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.matches-list li:hover {
    background-color: #e8f5e9;
    transform: translateX(5px);
}

.no-matches {
    color: #f44336;
    font-weight: bold;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 8px;
    border: 1px solid #f44336;
}

.search-result-popup .swal2-popup {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}





/* 在 style.css 中添加以下样式 */
.codes-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover {
    background: #5a67d8;
}

.pagination span {
    color: #4a5568;
    font-size: 14px;
}

/* 代理后台样式 */
.agent-stats {
    margin-bottom: 30px;
}

.agent-stats .stat-card {
    max-width: 400px;
    margin: 0 auto;
}

.submission-history {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-height: 50px !important;
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

/* label + input 横向对齐 */
.form-group.inline {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* 控件宽度固定，避免挤压换行 */
.worker-input,
.option-select,
.time-select {
    width: 155px !important;
    height: 32px !important;
    font-size: 14px !important;
    padding: 4px 8px !important;
}

/* 删除按钮永远靠最右 */
.remove-btn {
    margin-left: auto !important;
    background: #f56565 !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* 禁止因外层 CSS 导致按钮移位 */
.remove-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* 订单整个区块保持单行效果 */
#orderRows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 选项状态样式 */
.status-normal {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-left: 3px solid #4CAF50 !important;
}

.status-abnormal {
    background-color: rgba(244, 67, 54, 0.1) !important;
    border-left: 3px solid #F44336 !important;
}

/* 选项下拉框样式 */
.option-select.status-normal {
    background-color: #e8f5e9 !important;
}

.option-select.status-abnormal {
    background-color: #ffebee !important;
}

.option-select.status-normal option {
    background-color: #e8f5e9 !important;
}

.option-select.status-abnormal option {
    background-color: #ffebee !important;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-normal-indicator {
    background-color: #4CAF50;
}

.status-abnormal-indicator {
    background-color: #F44336;
}

/* 管理员页面样式 */
.order-input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    width: 70px;
    margin-right: 5px;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    width: 100px;
}

.btn.small {
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
}

/* 状态文本样式 */
.status-normal-text {
    color: #4CAF50;
    font-weight: bold;
}

.status-abnormal-text {
    color: #F44336;
    font-weight: bold;
}

/* 选项说明区域 */
.option-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #2196F3;
}

.option-instructions ul {
    margin-top: 10px;
    padding-left: 20px;
}

.option-instructions li {
    margin-bottom: 5px;
}

/* 状态图例 */
.status-legend {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.status-legend p {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

/* 批量操作按钮 */
.batch-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.batch-actions .btn {
    padding: 8px 16px;
}

/* 待更新标记 */
.pending-update {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.pending-update td {
    position: relative;
}

.pending-update td::after {
    content: "待更新";
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ffc107;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* 排序指示器 */
.sort-order-info {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

/* 代理等级背景色 */
.agent-level-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.agent-level-trainee { background: #a0a0a0; color: white; }
.agent-level-silver { background: #c0c0c0; color: #333; }
.agent-level-gold { background: #ffd700; color: #333; }
.agent-level-diamond { background: #b9f2ff; color: #0066cc; }
.agent-level-king { background: #ff6b6b; color: white; }

/* 日志详情样式 */
.log-details {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 13px;
}

.log-details-item {
    margin: 5px 0;
    padding: 5px;
    background: white;
    border-radius: 3px;
    border-left: 3px solid #4CAF50;
}

.log-details-key {
    font-weight: bold;
    color: #333;
}

.log-details-value {
    color: #666;
    margin-left: 5px;
}

/* 修改审批筛选 */
.modification-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e9ecef;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 用户管理统计 */
.today-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2d3748;
}

/* 用户操作按钮 */
.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-user-btn, .delete-user-btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.edit-user-btn {
    background: #4CAF50;
    color: white;
}

.edit-user-btn:hover {
    background: #45a049;
}

.delete-user-btn {
    background: #f44336;
    color: white;
}

.delete-user-btn:hover {
    background: #d32f2f;
}

.delete-user-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* 异常修改订单样式 */
.emergency-mod {
    border-left: 4px solid #FF9800 !important;
    background: #fff3e0 !important;
}

.emergency-badge {
    background: #FF9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
}

/* 取消挂人审批样式 */
.cancel-mod {
    border-left: 4px solid #9C27B0 !important;
    background: #f3e5f5 !important;
}

/* 今日统计突出显示 */
.today-highlight {
    color: #FF9800;
    font-weight: bold;
    font-size: 16px;
}

/* 代理等级颜色指示器 */
.level-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.level-trainee-indicator { background-color: #a0a0a0; }
.level-silver-indicator { background-color: #c0c0c0; }
.level-gold-indicator { background-color: #ffd700; }
.level-diamond-indicator { background-color: #b9f2ff; }
.level-king-indicator { background-color: #ff6b6b; }

/* 激活码状态徽章 */
.code-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.code-status-unused { background: #4CAF50; color: white; }
.code-status-used { background: #2196F3; color: white; }
.code-status-notfound { background: #f44336; color: white; }

/* 响应式调整 */
@media (max-width: 768px) {
    .today-stats {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .log-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}