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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 30px 20px 10px;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    padding: 0 20px 15px;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* MOD在线数量样式 */
.mod-online-status {
    text-align: center;
    padding: 15px 20px 30px;
    font-size: 1.1em;
}

.mod-label {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 5px;
}

.mod-count {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.2em;
    padding: 5px 15px;
    background: linear-gradient(135deg, #d4f1e8 0%, #e8f5e9 100%);
    border-radius: 20px;
    display: inline-block;
    min-width: 60px;
    transition: all 0.3s ease;
}

.step-container {
    padding: 0 30px 30px;
}

.step {
    margin-bottom: 30px;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step.active {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.step.completed {
    border-color: #2ecc71;
    background: #f8fff9;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #bdc3c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3498db;
}

.step.completed .step-number {
    background: #2ecc71;
}

.step h3 {
    color: #2c3e50;
    font-size: 1.3em;
}

.step-content {
    padding: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn.primary {
    background: #3498db;
    color: white;
}

.btn.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn.success {
    background: #2ecc71;
    color: white;
}

.btn.success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

#qr-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px 0;
}

#qr-image {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-tip {
    margin: 15px 0 10px;
    color: #7f8c8d;
}

#refresh-qr {
    background: #95a5a6;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#refresh-qr:hover {
    background: #7f8c8d;
}

.status-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px 0;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-details h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.user-details p {
    color: #7f8c8d;
    font-size: 14px;
}

.reward-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.reward-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-key {
    font-family: 'Courier New', monospace;
    font-size: 1.3em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    letter-spacing: 2px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

/* 我的卡密步骤样式 */
.step-4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 卡密显示区域增强 */
.reward-card .card-key {
    position: relative;
    user-select: all;
    cursor: pointer;
}

.reward-card .card-key:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reward-card .card-key::after {
    content: '点击复制';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 复制成功提示 */
.copy-success {
    background: rgba(39, 174, 96, 0.1) !important;
    border: 2px solid #27ae60 !important;
}

.copy-success::after {
    content: '已复制！';
    color: #27ae60;
}

/* 邮箱绑定样式 */
.email-binding {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.email-binding h4, .daily-task-setting h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.email-binding .tip, .daily-task-setting .tip {
    background: #e8f4f8;
    color: #2c3e50;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    border-left: 4px solid #3498db;
}

.tip-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    border-left: 4px solid #ffc107;
}

.manual-task-buttons {
    margin-top: 15px;
}

#manual-task-result {
    margin: 15px 0;
}

#task-logs-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

#task-logs-container h5 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.task-log-item {
    background: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.task-log-item.success {
    border-left-color: #2ecc71;
}

.task-log-item.partial {
    border-left-color: #f39c12;
}

.task-log-item.failed {
    border-left-color: #e74c3c;
}

.task-log-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.task-log-tasks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 5px 0;
}

.task-log-tasks span {
    font-size: 14px;
}

.task-log-exp {
    color: #27ae60;
    font-weight: 600;
}

/* 每日任务设置样式 */
.daily-task-setting {
    margin: 20px 0;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

#daily-task-status {
    font-weight: 600;
    color: #2c3e50;
}

#daily-task-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.input-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.btn.secondary {
    background: #95a5a6;
    color: white;
}

.btn.secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn.text {
    background: transparent;
    color: #7f8c8d;
    border: 1px solid #e0e0e0;
}

.btn.text:hover {
    background: #f5f5f5;
    color: #2c3e50;
}

/* 登录方式选择 */
.login-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.login-method-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.login-method-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.login-method-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

.login-panel {
    padding: 20px 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 公告样式 */
.bulletin-container {
    margin: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 0;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bulletin-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.bulletin-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.bulletin-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.bulletin-close {
    background: transparent;
    border: none;
    font-size: 1.2em;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
    border-radius: 4px;
}

.bulletin-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
}

.bulletin-content {
    padding: 15px;
    color: #34495e;
    line-height: 1.6;
    white-space: pre-wrap;
    font-size: 0.95em;
}

.bulletin-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.03);
}

.bulletin-time {
    color: #95a5a6;
    font-size: 0.85em;
}

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

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .step-container {
        padding: 0 20px 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .bulletin-container {
        margin: 15px 10px;
    }
}
