/* 白色暖系风格 */
:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #fff8f5;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-primary: #e07a5f;
    --accent-hover: #c9694e;
    --accent-secondary: #81b29a;
    --border: #e8e4e0;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* 登录页样式 */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #faf9f7 0%, #fff8f5 50%, #faf5f0 100%);
    padding-top: 14vh;
}

.login-container {
    width: 100%;
    margin: 0 auto;
    max-width: 420px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    padding: 14px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.error-msg {
    padding: 12px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.success-msg {
    padding: 12px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 仪表板样式 */
.dashboard-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

.header h1 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

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

.user-info span {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-btn {
    padding: 8px 16px;
    background: var(--accent-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    background: #6fa388;
}

.logout-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

.main-content {
    padding: 96px 32px 32px;
}

.main-content h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 48px;
    font-weight: 600;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.project-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.enter-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.enter-btn:hover {
    background: var(--accent-hover);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 768px) {
    .login-container {
        padding: 24px;
        margin: 16px;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 80px 16px 16px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}
.my-btn {
    padding: 8px 16px;
    background: #67C23A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}
.my-btn:hover {
    background: #85ce61;
}

/* 备案信息 Footer */

/* 备案信息 Footer */
.footer {
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 0 4px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: auto;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent-primary);
}

/* Dashboard页面布局调整 */
.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-page .main-content {
    padding: 96px 32px 16px;
    flex: 1;
}

.dashboard-page .footer {
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

/* 登录/注册页面 footer */

/* 登录/注册页面 footer */
.login-page .footer {
    margin-top: auto;
    margin-bottom: 48px;
    border-top: none;
    background: transparent;
    padding: 4px 0;
}
