/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #444;
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.btn:hover {
    background: #45a049;
}

.btn-cancel {
    background: #f44336;
}

.btn-cancel:hover {
    background: #d32f2f;
}

/* 消息样式 */
.message, .error {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* 导航样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

nav a {
    margin-left: 15px;
    color: #333;
    text-decoration: none;
}

nav a:hover {
    color: #4CAF50;
}

/* 统计卡片 */
.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    margin: 0 10px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 授权码样式 */
.authcode-display, .authcode-list {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

code {
    display: inline-block;
    padding: 5px 10px;
    background: #333;
    color: #fff;
    border-radius: 3px;
    font-family: monospace;
    margin: 5px 0;
}

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

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

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

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

/* 编辑表单 */
.edit-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
    }
    
    .stat-card {
        margin: 10px 0;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav a {
        margin-left: 0;
        margin-right: 15px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #4CAF50;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* 在文件末尾添加充值页面样式 */

.trans-container {
    max-width: 1000px;
    margin: 0 auto;
}

.current-balance {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.current-balance h2 {
    color: white;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.payment-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.qrcode-container {
    margin: 20px 0;
}

.payment-qrcode {
    max-width: 250px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.payment-tip {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

.payment-instructions {
    text-align: left;
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.payment-instructions h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

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

.payment-instructions li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.payment-instructions li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.manual-assign-section {
    background: #fff3cd;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ffeeba;
}

.manual-assign-section h2 {
    color: #856404;
}

.info-text {
    color: #856404;
    margin-bottom: 20px;
}

.manual-form {
    max-width: 500px;
}

.manual-form .form-group {
    margin-bottom: 15px;
}

.manual-form label {
    color: #856404;
}

.manual-form input {
    border: 1px solid #ffeeba;
}

.manual-form input:focus {
    border-color: #856404;
    outline: none;
}

.trans-history {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.trans-history h2 {
    margin-bottom: 20px;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 4px;
}

.status-success {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .balance-amount {
        font-size: 36px;
    }
    
    .payment-qrcode {
        max-width: 200px;
    }
    
    .manual-form {
        max-width: 100%;
    }
}

.register-form, .forgot-form, .reset-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.register-form .btn, .forgot-form .btn, .reset-form .btn {
    margin-right: 10px;
}

.register-form small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.register-form input[type="text"]:focus,
.register-form input[type="password"]:focus,
.forgot-form input[type="text"]:focus,
.reset-form input[type="password"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.password-strength.weak {
    color: #f44336;
}

.password-strength.medium {
    color: #ff9800;
}

.password-strength.strong {
    color: #4CAF50;
}

/* 在文件末尾添加价格表样式 */

.price-table-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.price-table th {
    background: #4CAF50;
    color: white;
    padding: 12px;
    text-align: center;
}

.price-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.price-table tr:nth-child(even) {
    background: #f9f9f9;
}

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

.price-note {
    color: #666;
    font-size: 13px;
    text-align: right;
    font-style: italic;
}

.price-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: white;
}

.price-calculator h2 {
    color: white;
    margin-bottom: 20px;
}

.calculator-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.calculator-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.calculator-form label {
    width: 100px;
    color: white;
    font-weight: normal;
}

.calculator-form input {
    width: 150px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    margin-right: 15px;
}

.total-price, .total-points {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.current-balance p {
    margin: 5px 0;
}

.current-balance small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

@media (max-width: 768px) {
    .price-table {
        font-size: 12px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 5px;
    }
    
    .calculator-form .form-group {
        flex-wrap: wrap;
    }
    
    .calculator-form label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .calculator-form input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .total-price, .total-points {
        font-size: 20px;
    }
}

.price-highlight {
    background: #ffd700 !important;
    color: #333;
    font-weight: bold;
}

.points-display {
    font-size: 18px;
    color: #4CAF50;
    font-weight: bold;
}

.trans-history td:nth-child(4) {
    font-weight: bold;
    color: #4CAF50;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

/* 确保页脚在内容较少时也能固定在底部 */
html, body {
    height: 100%;
}

.container {
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer {
        padding: 15px;
        margin-top: 30px;
        font-size: 12px;
    }
}
