/* 页面基础样式 */
body {
    background-color: #f9f9f9;
    background-image: 
        linear-gradient(rgba(219, 234, 254, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 234, 254, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主容器样式 */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* 列表容器样式 */
.list-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid #e0e0e0;
}

/* 列表头部样式 */
.list-header {
    text-align: center;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.5;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* 恋爱列表样式 */
.love-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 列表项样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    border-radius: 8px;
}

/* 检查图标样式 */
.check-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* 已完成任务的图标样式 */
.list-item.completed .check-icon {
    color: #27ae60;
    filter: none;
    transform: scale(1.1);
}

/* 未完成任务的图标样式 */
.list-item:not(.completed) .check-icon {
    color: #bdc3c7;
    filter: grayscale(100%);
}

/* 任务文本样式 */
.item-text {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.6;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .list-container {
        padding: 20px;
        margin: 0 0px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .list-header {
        font-size: 1.2rem;
    }
    
    .item-text {
        font-size: 1rem;
    }
    
    .check-icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 10px;
    }
    
    .list-container {
        padding: 15px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .list-header {
        font-size: 1.1rem;
    }
    
    .item-text {
        font-size: 0.9rem;
    }
}
