/* 基础响应式配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

:root {
    --font-base: 14px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --primary-color: #409eff;
    --reserved-color: #1989fa;
    --danger-color: #f56c6c;
    --success-color: #67c23a;
    --warning-color: #e6a23c;
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #e4e7ed;
    --background-color: #f5f7fa;
    --modal-mask: rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    :root {
        --font-base: 13px;
        --spacing-sm: 6px;
        --spacing-md: 12px;
        --spacing-lg: 18px;
    }
}

body {
    background-color: var(--background-color);
    padding: var(--spacing-md);
    font-size: var(--font-base);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
}

/* 按钮通用样式 */
.btn {
    padding: clamp(8px, 3vw, 10px) clamp(15px, 5vw, 20px);
    border-radius: 6px;
    border: none;
    font-size: clamp(13px, 3vw, 16px);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #337ecc;
}

.btn-back {
    background: #f5f7fa;
    color: #666;
}

.btn-back:hover {
    background: #e4e7ed;
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background: #e4393c;
}

/* 加载状态 */
.loading, .empty-state {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: clamp(15px, 4vw, 18px);
}

/* 头部布局 */
.header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media screen and (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
}

.header-left h1 {
    color: #333;
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 5px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .header-left h1 {
        text-align: left;
    }
}

.header-left p {
    color: #666;
    font-size: clamp(13px, 3vw, 16px);
    text-align: center;
}

@media screen and (min-width: 768px) {
    .header-left p {
        text-align: left;
    }
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .header-actions {
        justify-content: flex-end;
        width: auto;
    }
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.username {
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px;
}

.btn-logout {
    padding: 4px 12px;
    font-size: 12px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #ff7875;
}

/* header 调整 */
.header {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.header-left {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 任务本按钮样式 */
.btn-tasks {
    background: #67c23a;
    color: white;
}

.btn-tasks:hover {
    background: #55a832;
}
