/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 雪花背景 */
.snowflake {
    position: fixed;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10%);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header h1 {
    color: #1e40af;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    color: #3b82f6;
    font-size: 1.2rem;
}

/* 充值卡片样式 */
.payment-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
    text-align: center;
}

.payment-card h2 {
    color: #1e40af;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tier-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.tier-btn {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: #374151;
    text-align: center;
}

.tier-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tier-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-btn {
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: #374151;
    text-align: center;
}

.time-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.time-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.pay-btn {
    width: 100%;
    padding: 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.pay-btn:hover {
    background: #2563eb;
}

.pay-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* 成功页面样式 */
.success-container {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #2563eb;
}

/* 后台登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.login-container h2 {
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2563eb;
}

/* 后台管理页面样式 */
.admin-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.admin-header h2 {
    color: #1e40af;
}

.logout-btn {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #dc2626;
}

/* 订单表格样式 */
.orders-section {
    margin-bottom: 40px;
}

.orders-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    background: #f3f4f6;
    font-weight: bold;
    color: #374151;
}

.orders-table tr:hover {
    background: #f9fafb;
}

.status-pending {
    color: #f59e0b;
    font-weight: bold;
}

.status-paid {
    color: #10b981;
    font-weight: bold;
}

/* 配置表单样式 */
.config-section {
    margin-top: 40px;
}

.config-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
}

.config-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.config-group {
    display: flex;
    flex-direction: column;
}

.config-group label {
    margin-bottom: 5px;
    color: #374151;
    font-weight: bold;
}

.config-group input,
.config-group select {
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 0.9rem;
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-btn {
    grid-column: 1 / -1;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.save-btn:hover {
    background: #2563eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .payment-card {
        padding: 20px;
    }
    
    .tier-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .payment-card {
        padding: 15px;
    }
    
    .tier-options {
        grid-template-columns: 1fr;
    }
}