/* ============================================= */
/* Amazon Music Checklist – 普通 DOM 样式          */
/* 注意：不使用 :host，改用 :root 和具体选择器      */
/* ============================================= */

:root {
    --primary-color: #836FFF;
    --primary-light: #f0edff;
    --primary-dark: #6a52e0;
    --text-dark: #1a1f2b;
    --text-medium: #3a4a5e;
    --text-soft: #4f5f72;
    --border-light: #e2e6f0;
    --bg-card: #ffffff;
    --bg-hover: #faf9ff;
    --shadow-card: 0 12px 30px rgba(131, 111, 255, 0.12), 0 4px 8px rgba(0, 0, 0, 0.02);
    --radius-card: 24px;
    --radius-checkbox: 6px;
    --transition-fast: 0.15s ease;
}

.checklist-card,
.checklist-card * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.checklist-card {
    /* 删掉或注释掉这些 */
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.checklist-card .progress-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 40px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1px solid rgba(131, 111, 255, 0.25);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}


/* ---------- 清单列表 ---------- */
.checklist-card .checklist {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 8px;
}

.checklist-card .checklist-item {
    display: flex;
    gap: 16px;
    padding: 8px 0 8px 4px;
    border-radius: 14px;
    transition: background var(--transition-fast);
    align-items: flex-start;
    border-bottom: 1px solid #f2f0fa;
}

.checklist-card .checklist-item:last-child {
    border-bottom: none;
}

.checklist-card .checklist-item:hover {
    background: var(--bg-hover);
}

/* ---------- 自定义复选框 ---------- */
.checklist-card .checkbox-wrapper {
    flex-shrink: 0;
    margin-top: 3px;
}

.checklist-card .checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #c5c0e0;
    border-radius: var(--radius-checkbox);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
}

.checklist-card .checkbox-wrapper input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.checklist-card .checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(131, 111, 255, 0.35);
}

.checklist-card .checkbox-wrapper input[type="checkbox"]:checked::after {
    content: "✔";
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
    transform: translateY(-0.5px);
}

/* ---------- 文本内容 ---------- */
.checklist-card .item-content {
    flex: 1;
}

.checklist-card .item-title {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
}

.checklist-card .item-desc {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.5;
    padding-right: 8px;
}



/* ---------- 移动端适配 ---------- */
@media (max-width: 580px) {
    .checklist-card {
        padding: 20px 18px;
    }

    .checklist-card .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .checklist-card .progress-badge {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    .checklist-card .item-title {
        font-size: 0.98rem;
    }

    .checklist-card .item-desc {
        font-size: 0.85rem;
    }

    .checklist-card .checklist-item {
        gap: 12px;
    }
}