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

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

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

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

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    cursor: pointer;
    user-select: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    padding: 10px;
    background: #fee;
    border-radius: 5px;
    font-size: 14px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.auth-links a {
    color: #667eea;
    text-decoration: none;
}

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

/* 控制台 */
.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    color: #667eea;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 500;
    color: #555;
}

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

.dashboard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.nav-btn:hover {
    background: #f0f0f0;
}

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

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
}

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

.tab-pane h2 {
    margin-bottom: 20px;
    color: #333;
}

.video-form {
    max-width: 600px;
}

.videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.video-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    word-break: break-word;
}

.video-card .video-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.video-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.video-status.generating {
    background: #fff3cd;
    color: #856404;
}

.video-status.success {
    background: #d4edda;
    color: #155724;
}

.video-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.points-list {
    max-width: 800px;
}

.point-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.point-record:last-child {
    border-bottom: none;
}

.point-amount {
    font-weight: 500;
    font-size: 18px;
}

.point-amount.positive {
    color: #28a745;
}

.point-amount.negative {
    color: #dc3545;
}

.point-info {
    flex: 1;
    margin-left: 15px;
}

.point-info .point-type {
    font-weight: 500;
    margin-bottom: 5px;
}

.point-info .point-desc {
    font-size: 12px;
    color: #666;
}

.point-info .point-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.profile-info {
    max-width: 500px;
}

.profile-info p {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-actions {
    margin-top: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-header h1 {
        font-size: 20px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .videos-list {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 20px;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-nav {
        gap: 5px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .video-card {
        padding: 12px;
    }
}

