/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景容器 */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 登录页面样式 */
.login-container {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 100, 255, 0.1);
    padding: 40px;
    text-align: center;
    margin-top: 100px;
    backdrop-filter: blur(10px);
}

.login-container h1 {
    color: #e0e0e0;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.3);
}

.login-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.login-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.user-login {
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.user-login:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.admin-login {
    background: linear-gradient(45deg, #1a4d80, #2196F3);
    color: white;
    border: 1px solid #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.admin-login:hover {
    background: linear-gradient(45deg, #2196F3, #42a5f5);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

/* 登录表单样式 */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0b0b0;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    background: rgba(40, 40, 40, 0.9);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.back-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #8b1a1a, #f44336);
    color: white;
    border: 1px solid #f44336;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.back-btn:hover {
    background: linear-gradient(45deg, #f44336, #ef5350);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

/* 控制台样式 */
.dashboard {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 100, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dashboard-header h1 {
    font-size: 1.8em;
    font-weight: 300;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.change-password-btn {
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.3);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.change-password-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-content {
    padding: 30px;
}

/* 余额部分 */
.balance-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.balance-section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.balance-display {
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 3em;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.recharge-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.recharge-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* ECID部分 */
.ecid-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ecid-section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.ecid-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ecid-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 1em;
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.ecid-form input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    background: rgba(40, 40, 40, 0.9);
}

.submit-ecid-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #1a4d80, #2196F3);
    color: white;
    border: 1px solid #2196F3;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.submit-ecid-btn:hover {
    background: linear-gradient(45deg, #2196F3, #42a5f5);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.ecid-status {
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.ecid-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ecid-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 历史记录 */
.history-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.history-section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.history-item {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: #666;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.history-item .ecid {
    font-family: monospace;
    font-weight: bold;
    color: #e0e0e0;
}

.history-item .status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.history-item .status.pending {
    background: #fff3cd;
    color: #856404;
}

.history-item .status.registered {
    background: #d4edda;
    color: #155724;
}

.history-item .status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* 管理员表格样式 */
.section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-user-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.add-user-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

#userSearch {
    padding: 8px 12px;
    border: 2px solid #444;
    border-radius: 6px;
    width: 200px;
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

#userSearch:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    background: rgba(40, 40, 40, 0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #555;
    color: #e0e0e0;
}

th {
    background: rgba(60, 60, 60, 0.8);
    font-weight: 600;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

tr:hover {
    background: rgba(50, 50, 50, 0.9);
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: linear-gradient(45deg, #1a4d80, #2196F3);
    color: white;
    border: 1px solid #2196F3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.edit-btn:hover {
    background: linear-gradient(45deg, #2196F3, #42a5f5);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.delete-btn {
    background: linear-gradient(45deg, #8b1a1a, #f44336);
    color: white;
    border: 1px solid #f44336;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(45deg, #f44336, #ef5350);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-btn {
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.status-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 100, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #e0e0e0;
    text-align: center;
    text-shadow: 0 0 5px rgba(100, 100, 255, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #2d5a2d, #4CAF50);
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.confirm-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #66bb6a);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.cancel-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #8b1a1a, #f44336);
    color: white;
    border: 1px solid #f44336;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #f44336, #ef5350);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

/* 支付二维码样式 */
.payment-info {
    text-align: center;
}

.payment-info p {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #e0e0e0;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 2px solid #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 40, 40, 0.8);
}

.payment-tip {
    color: #b0b0b0;
    font-size: 0.9em;
}

/* 筛选器样式 */
.ecid-filters {
    margin-bottom: 20px;
}

.ecid-filters select {
    padding: 8px 12px;
    border: 2px solid #444;
    border-radius: 6px;
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecid-filters select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    background: rgba(40, 40, 40, 0.9);
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-container {
        margin-top: 50px;
        padding: 20px;
    }
    
    .login-options {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ecid-form {
        flex-direction: column;
    }
    
    .section-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    #userSearch {
        width: 100%;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
