/* ================================================================
 * DS 网盘健康 v4.2 前台样式
 * - 失效线路提示横幅
 * - 下载按钮死链状态
 * ================================================================ */

/* 详情页失效提示横幅 */
.ds-pan-dead-notice { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 24px; background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%); border: 1px solid #f59e0b; border-left: 4px solid #f59e0b; border-radius: 8px; animation: ds-pan-shake 0.5s ease; }
.ds-pan-dead-icon { font-size: 32px; flex-shrink: 0; }
.ds-pan-dead-content { flex: 1; min-width: 0; }
.ds-pan-dead-content strong { display: block; font-size: 14px; color: #92400e; margin-bottom: 4px; }
.ds-pan-dead-content p { font-size: 13px; color: #78350f; margin: 0; line-height: 1.5; }
.ds-pan-dead-tag { display: inline-block; padding: 2px 8px; margin: 0 4px; background: #fbbf24; color: #78350f; border-radius: 4px; font-size: 12px; font-weight: 600; }

@keyframes ds-pan-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

/* 死链按钮状态 */
.ds-dl-btn.is-dead, .ds-dl-btn[data-pan-status="dead"] { opacity: 0.5; cursor: not-allowed; background: #9ca3af !important; }
.ds-dl-btn.is-dead:hover, .ds-dl-btn[data-pan-status="dead"]:hover { background: #9ca3af !important; transform: none !important; box-shadow: none !important; }
.ds-dl-btn.is-dead::before { content: '❌ '; }

/* 状态灯 */
.ds-pan-status-light { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ds-pan-status-light.is-ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.ds-pan-status-light.is-dead { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); animation: ds-pan-pulse 1.5s infinite; }
.ds-pan-status-light.is-limited { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }

@keyframes ds-pan-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* 暗黑模式 */
[data-ds-theme="dark"] .ds-pan-dead-notice { background: linear-gradient(90deg, #422006 0%, #451a03 100%); border-color: #92400e; }
[data-ds-theme="dark"] .ds-pan-dead-content strong { color: #fbbf24; }
[data-ds-theme="dark"] .ds-pan-dead-content p { color: #fcd34d; }

/* 移动端 */
@media (max-width: 768px) {
    .ds-pan-dead-notice { padding: 12px; gap: 12px; }
    .ds-pan-dead-icon { font-size: 24px; }
    .ds-pan-dead-tag { display: inline-block; margin: 2px 4px 2px 0; }
}
