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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    color: white;
    text-decoration: none;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* 主要内容区域 */
main {
    padding: 2rem;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.features {
    margin: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 表单样式 */
.auth-form, .form-page {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form h2, .form-page h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

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

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

.form-group small {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.captcha-group {
    display: flex;
    align-items: end;
    gap: 1rem;
}

.captcha-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.captcha-img {
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    height: 40px;
}

/* 按钮样式 */
button, .btn-primary, .btn-secondary, .btn-small {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #2980b9;
}

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

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-upgrade {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn-upgrade:hover {
    background: #c0392b;
}

/* 控制台样式 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.user-stats {
    text-align: right;
}

.dashboard-actions {
    margin-bottom: 2rem;
}

/* 表格样式 */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.projects-table th, .projects-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.projects-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.projects-table tr:hover {
    background: #f8f9fa;
}

/* 提示信息样式 */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

.alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 项目信息样式 */
.project-info, .upload-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.project-info h3, .upload-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-info ol, .upload-info ul {
    margin-left: 1.5rem;
}

.project-info code, .upload-info code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 0;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-table {
        font-size: 0.9rem;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: start;
    }
}