/* ===== 洗手七步法跟练 ===== */
#hwApp .hw-hero { text-align: center; padding: 12px 10px 0; }
#hwApp .hw-hero h1 { font-size: 30px; font-weight: 800; color: var(--c-text); margin-bottom: 10px; }
#hwApp .hw-hero p { font-size: 15px; color: var(--c-text-sub); line-height: 1.7; }

#hwApp .hw-panel {
    max-width: 760px; margin: 18px auto 0; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 20px 18px; box-shadow: var(--shadow-md); text-align: center;
}
#hwApp .hw-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
#hwApp .hw-opt {
    border: 2px solid var(--c-primary); background: transparent; color: var(--c-primary);
    border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 700; cursor: pointer;
}
#hwApp .hw-opt.is-on { background: var(--c-primary); color: #fff; }
#hwApp .hw-lab { font-size: 13px; color: var(--c-text-sub); margin: 0 6px; }

#hwApp .hw-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
#hwApp .hw-dot {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c-border);
    background: var(--c-surface-soft); color: var(--c-text-sub); font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#hwApp .hw-dot.done { background: var(--c-accent-green); border-color: var(--c-accent-green); color: #fff; }
#hwApp .hw-dot.now { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }

#hwApp .hw-card {
    background: linear-gradient(160deg, #e0f2fe, #f0fdf4); border: 2px solid var(--c-border);
    border-radius: 20px; padding: 18px 16px; margin: 0 auto; max-width: 420px;
}
#hwApp .hw-big { font-size: 64px; font-weight: 800; color: #0284c7; line-height: 1.1; }
#hwApp .hw-name { font-size: 20px; font-weight: 800; color: var(--c-text); margin-top: 4px; }
#hwApp .hw-desc { font-size: 14px; color: #475569; line-height: 1.8; margin-top: 8px; }

#hwApp .hw-bar-wrap { max-width: 420px; margin: 14px auto 0; height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
#hwApp .hw-bar-in { height: 100%; width: 0%; background: linear-gradient(90deg, #38bdf8, #22c55e); transition: width .25s linear; }
#hwApp .hw-time { font-size: 26px; font-weight: 800; color: var(--c-text); margin-top: 10px; }
#hwApp .hw-phase { font-size: 13px; color: var(--c-text-sub); margin-top: 2px; }

#hwApp .hw-ctrl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
#hwApp .hw-btn {
    border: none; border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 700; color: #fff;
    cursor: pointer; background: linear-gradient(135deg, #0ea5e9, var(--c-accent-green)); box-shadow: var(--shadow-md);
}
#hwApp .hw-btn.gray { background: var(--c-surface-2); color: var(--c-text); box-shadow: none; border: 1px solid var(--c-border); }
#hwApp .hw-btn:disabled { opacity: .5; cursor: not-allowed; }

#hwApp .hw-done {
    display: none; margin-top: 16px; background: #f0fdf4; border: 2px solid var(--c-accent-green);
    border-radius: 16px; padding: 16px; color: #166534; font-size: 16px; font-weight: 800;
}
#hwApp .hw-done.show { display: block; }

#hwApp .hw-stat {
    max-width: 760px; margin: 18px auto 0; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-md);
    text-align: center; font-size: 14px; line-height: 1.9; color: var(--c-text-sub);
}
#hwApp .hw-stat b { color: var(--c-primary); font-size: 18px; }

#hwApp .hw-steps { max-width: 760px; margin: 18px auto 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-md); }
#hwApp .hw-step-li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px; color: var(--c-text); line-height: 1.7; }
#hwApp .hw-step-li:last-child { border-bottom: 0; }
#hwApp .hw-step-li b { color: #0284c7; }

#hwApp .hw-ai, #hwApp .hw-info { max-width: 760px; margin: 30px auto 0; }
#hwApp .hw-ai h2, #hwApp .hw-info h2 { font-size: 20px; font-weight: 800; color: var(--c-text); margin-bottom: 10px; }
#hwApp .hw-ai p { font-size: 14px; color: var(--c-text-sub); line-height: 1.8; margin-bottom: 14px; }
#hwApp .hw-ai-row { display: flex; gap: 10px; flex-wrap: wrap; }
#hwApp .hw-out {
    margin-top: 14px; background: var(--c-surface-soft); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; line-height: 1.85;
    color: var(--c-text); white-space: pre-wrap;
}
#hwApp .hw-info ul { list-style: disc; padding-left: 22px; margin-bottom: 24px; }
#hwApp .hw-info li { font-size: 14px; line-height: 1.9; color: var(--c-text-sub); margin-bottom: 8px; }
#hwApp .hw-info li b { color: var(--c-text); }

@media (max-width: 560px) {
    #hwApp .hw-hero h1 { font-size: 24px; }
    #hwApp .hw-big { font-size: 48px; }
    #hwApp .hw-dot { width: 26px; height: 26px; font-size: 12px; }
}
