* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --project1-color: #8e44ad;
    --project2-color: #e67e22;
    --project3-color: #1abc9c;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    --gradient-project1: linear-gradient(135deg, var(--project1-color), #9b59b6);
    --gradient-project2: linear-gradient(135deg, var(--project2-color), #d35400);
    --gradient-project3: linear-gradient(135deg, var(--project3-color), #16a085);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background-color: white;
    margin-top: 10px;
    margin-bottom: 10px;
}

header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
}

.app-layout {
    display: flex;
    min-height: calc(100vh - 140px);
}

.sidebar {
    width: 200px;
    background: #2c3e50;
    color: white;
    padding: 0.8rem;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: 600;
    border-left: 2px solid white;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.content-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.content-section {
    display: none;
    background-color: white;
    padding: 1rem;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section.active {
    display: block;
}

h2 {
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 0.5rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar li {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .content-area {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* 用户管理界面特定样式 */
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    max-width: 600px;
    margin: 0 auto;
}

.user-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    border: 3px solid white;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.user-email {
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-color);
    opacity: 0.7;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* 帮助页面样式 */
.help-section {
    margin-bottom: 2rem;
}

.help-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.help-content {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.help-content p {
    margin-bottom: 1rem;
}

.help-content ul {
    margin-bottom: 1rem;
}

.help-content li {
    margin-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 1000px;
}

/* 项目卡片样式 */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.summary-card {
    background-color: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 项目状态标签样式 */
.project-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-card[data-status="in-progress"] .project-status {
    background-color: #e6f7ff;
    color: #1890ff;
}

.project-card[data-status="completed"] .project-status {
    background-color: #f0f9eb;
    color: #52c41a;
}

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

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 2rem;
    width: 400px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #ff4d4f;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 统一统计卡片左侧边框颜色 */
.summary-card {
    border-left: 3px solid var(--primary-color);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.summary-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 0.8rem;
}

.summary-content h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 600;
}

.summary-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-description {
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.project-card:hover {
    background-color: #f8f9fa;
.project-image {
    height: 120px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}   overflow: hidden;
}

/* 为不同项目设置不同渐变背景 */
.project-image {
    background-color: #f1f5f9;
    color: var(--secondary-color);
}

.project-card:hover .project-image {
    background-color: #e2e8f0;
}

.project-content {
    padding: 1.2rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: #2980b9;
    text-decoration: underline;
}