/* 杂念来袭 · 登记弹层与悬浮钮 */
.tm-distraction-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    /* 高于静修结界 .tm-focus-overlay (20000) */
    z-index: 21000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tm-distraction-modal-backdrop.active {
    display: flex;
}
.tm-distraction-modal {
    background: var(--card-background, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
.tm-distraction-modal h3 {
    font-size: 1.1rem;
    margin: 0 0 4px;
}
.tm-distraction-modal .tm-dist-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 14px;
}
.tm-distraction-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.tm-distraction-cat {
    border: 1px solid var(--border-color, #dee2e6);
    background: transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.tm-distraction-cat.active {
    background: var(--primary-color, #667eea);
    border-color: var(--primary-color, #667eea);
    color: #fff;
}
.tm-distraction-focus-hint {
    font-size: 0.8rem;
    color: #dc3545;
    margin-bottom: 10px;
}
.tm-distraction-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.tm-distraction-actions .btn {
    flex: 1;
}
.tm-rs-distraction-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color, rgba(0, 0, 0, 0.1));
}
.tm-rs-distraction-stats {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 8px;
}
.tm-rs-distraction-btn {
    width: 100%;
}
.tm-rs-distraction-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
}
.tm-focus-distraction-fab {
    position: fixed;
    right: 20px;
    bottom: calc(16px + var(--tm-mobile-bar-offset, 0px));
    z-index: 9000;
    display: none;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
    cursor: pointer;
}
.tm-focus-distraction-fab.visible {
    display: block;
}
.tm-focus-distraction-fab i {
    margin-right: 6px;
}
/* 杂念志页面 */
.tm-dist-page-hero {
    background: linear-gradient(135deg, #2c1810 0%, #4a235a 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.tm-dist-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.tm-dist-stat-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}
.tm-dist-stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}
.tm-dist-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}
.tm-dist-chart-card {
    background: var(--card-background);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.tm-dist-log-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.tm-dist-log-item:last-child {
    border-bottom: none;
}
.tm-dist-log-coins {
    color: #dc3545;
    font-weight: 600;
    white-space: nowrap;
}
