/* ============================================================
   plan_list.css - 计划仪表盘页面专用样式
   对应文件: plan_list.html
   ============================================================ */

/* ---------- 头部 ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header h3 {
    font-size: 22px;
    margin: 0;
}

/* ---------- 计划卡片 ---------- */
.plan-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.plan-info h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.plan-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #bbb;
}

/* ---------- 数量标签 ---------- */
.qty-tag {
    background: var(--border-color);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
}

/* ---------- 状态标签 ---------- */
.status-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* ---------- 操作按钮 ---------- */
.actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.btn-edit {
    background: var(--color-accent);
    color: #fff;
    border: none;
}
.btn-edit:active:not(:disabled) {
    background: #388E3C;
}
.btn-edit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-del {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid #ff5252;
}
.btn-del:active {
    background: #ff5252;
    color: #000;
}
.btn-new {
    background: var(--color-info);
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 14px;
    height: auto;
}
.btn-new:active {
    background: #1976D2;
}

/* ---------- 返回按钮 ---------- */
.return-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    height: auto;
}
.return-btn:active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 80px 20px;
    font-size: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .plan-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .actions {
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
    }
    .btn {
        flex: 1;
        text-align: center;
    }
    .plan-info h4 {
        font-size: 18px;
    }
}