* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 新增标题渐变动画 */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #2c3e50;
    background: linear-gradient(to right, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 新增卡片式表单区域样式 */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f4f8;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

label i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
}

/* 新增表单控件悬停效果 */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
}

.form-control:focus {
    border-color: #3498db;
    background-color: #f0f9ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* 更新提交按钮样式 */
.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 16px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 添加按钮微光效果 */
.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 200%;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg);
    transition: left 0.5s ease;
}

.submit-btn:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

.home-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
}

.task-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.task-filter label {
    margin-right: 10px;
    margin-bottom: 0;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.task-table th, .task-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.task-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #f39c12;
    color: white;
}

.status-badge.delivered {
    background-color: #2ecc71;
    color: white;
}

.action-btn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #2980b9;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #2ecc71;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #e74c3c;
}

/* 新增表单标题样式 */
h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
    font-size: 20px;
}

/* 新增地址文本样式 */
.address-text {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 8px;
    display: inline-block;
}

/* 优化表格单元格间距 */
.task-table {
    border-radius: 8px;
    overflow: hidden;
}

.task-table th, .task-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.task-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}
