body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
}

.navbar {
    background-color: #fff;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.navbar .nav-links button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    transition: color 0.3s;
}

.navbar .nav-links button:hover, .navbar .nav-links button.active {
    color: #3498db;
}

.navbar .user-status {
    font-size: 0.9em;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#content-area h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

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

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

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Utility */
.hidden {
    display: none;
}

/* 任务系统样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-not-started {
    background-color: #f0f0f0;
    color: #666;
}

.status-collecting {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-ended {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-approved {
    background-color: #e8f5e8;
    color: #2e7d2e;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
    min-width: 80px;
}

.progress-container.large {
    margin: 10px 0;
}

.progress-container.large .progress-bar {
    height: 20px;
}

.progress-container.large .progress-text {
    font-size: 1em;
    font-weight: bold;
}

/* 任务详情页面样式 */
.task-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.task-info-section,
.task-progress-section,
.task-participants-section,
.task-actions-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.task-actions-section {
    grid-column: span 2;
}

.info-table {
    width: 100%;
    margin-top: 10px;
}

.info-table td:first-child {
    font-weight: bold;
    width: 30%;
    color: #555;
}

.participants-info {
    display: flex;
    gap: 20px;
}

.participant-group {
    flex: 1;
}

.participant-group h4 {
    margin-bottom: 8px;
    color: #333;
}

.participant-group ul {
    list-style-type: none;
    padding-left: 0;
}

.participant-group li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons button {
    margin: 0;
}

/* 内容头部样式 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.content-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .task-detail-container {
        grid-template-columns: 1fr;
    }
    
    .task-actions-section {
        grid-column: span 1;
    }
    
    .participants-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .progress-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .progress-text {
        min-width: auto;
    }
}