* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #1890ff;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    display: none;
    margin-bottom: 2rem;
}

section.active-section {
    display: block;
}

h2 {
    margin-bottom: 1rem;
    color: #1890ff;
}

/* 地图样式 */
#map-container {
    height: 70vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-legend {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
}

.color-box.high {
    background-color: #ff4d4f;
}

.color-box.medium {
    background-color: #faad14;
}

.color-box.low {
    background-color: #52c41a;
}

/* 任务列表样式 */
.task-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #1890ff;
    color: white;
}

.task-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: bold;
}

.task-reward {
    color: #ff4d4f;
    font-weight: bold;
}

.task-location, .task-description {
    margin-bottom: 0.5rem;
    color: #666;
}

.task-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.task-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.accept-btn {
    background-color: #1890ff;
    color: white;
}

.details-btn {
    background-color: #f0f0f0;
}

/* 奖励中心样式 */
.user-points {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rewards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.reward-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reward-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.reward-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.reward-points {
    color: #ff4d4f;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.reward-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 个人中心样式 */
.profile-info {
    display: flex;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.avatar-container {
    margin-right: 1rem;
}

#user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.task-history {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.history-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #f0f0f0;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .rewards-container {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} 