/* ================================================================
 * DS v4.8 通知中心 + 试读 样式
 * ================================================================ */

/* 顶部通知铃铛 */
.ds-notify-bell { position: fixed; top: 80px; right: 24px; z-index: 9998; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.2s; }
.ds-notify-bell:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.ds-notify-icon { font-size: 20px; }
.ds-notify-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px #fff; animation: ds-notify-pulse 2s infinite; }
@keyframes ds-notify-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* 消息中心 */
.ds-notify-actions { display: flex; gap: 12px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.ds-notify-filter { padding: 6px 12px; border: 1px solid var(--ds-color-border, #ebeef5); border-radius: 4px; background: #fff; }
.ds-notify-unread-count { display: inline-block; background: #ef4444; color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-left: 12px; }
.ds-notify-list { display: flex; flex-direction: column; gap: 8px; }
.ds-notify-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--ds-color-white, #fff); border: 1px solid var(--ds-color-border, #ebeef5); border-radius: 8px; transition: all 0.2s; }
.ds-notify-item:hover { border-color: #FF7D00; box-shadow: 0 2px 8px rgba(255,125,0,.1); }
.ds-notify-item.is-unread { background: #fffbeb; border-left: 3px solid #FF7D00; }
.ds-notify-icon-cell { font-size: 24px; flex-shrink: 0; }
.ds-notify-content { flex: 1; min-width: 0; }
.ds-notify-title { font-size: 14px; font-weight: 600; color: var(--ds-color-text-1, #222); margin-bottom: 4px; }
.ds-notify-item.is-unread .ds-notify-title { font-weight: 700; }
.ds-notify-text { font-size: 13px; color: var(--ds-color-text-2, #606266); line-height: 1.5; margin-bottom: 4px; }
.ds-notify-time { font-size: 11px; color: var(--ds-color-text-3, #909399); }
.ds-notify-actions-cell { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ds-notify-link { font-size: 12px; color: var(--ds-color-primary, #FF7D00); text-decoration: none; }
.ds-notify-link:hover { text-decoration: underline; }
.ds-notify-delete { background: transparent; border: 0; color: var(--ds-color-text-3, #909399); font-size: 18px; cursor: pointer; padding: 0 4px; }
.ds-notify-delete:hover { color: #ef4444; }
.ds-notify-empty { padding: 60px 20px; text-align: center; color: var(--ds-color-text-3, #909399); font-size: 14px; background: var(--ds-color-bg, #fafafa); border-radius: 8px; }

/* 试读 / 付费墙 */
.ds-trial-content { position: relative; }
.ds-trial-visible { position: relative; }
.ds-trial-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.5) 50%, rgba(0,0,0,.9) 100%); pointer-events: none; }
.ds-trial-overlay { margin-top: -60px; padding: 80px 24px 40px; background: linear-gradient(180deg, transparent, #1a1a1a 30%); color: #fff; border-radius: 0 0 12px 12px; text-align: center; position: relative; }
.ds-trial-cta { max-width: 480px; margin: 0 auto; }
.ds-trial-icon { font-size: 48px; margin-bottom: 16px; }
.ds-trial-text { font-size: 18px; margin-bottom: 24px; color: rgba(255,255,255,.92); font-weight: 500; }
.ds-trial-btn { display: inline-block; padding: 14px 40px; background: linear-gradient(135deg, #FF7D00, #FFB347); color: #fff; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 16px rgba(255,125,0,.4); }
.ds-trial-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,125,0,.5); }
.ds-trial-vip .ds-trial-btn { background: linear-gradient(135deg, #FFD700, #FFB347); color: #1a1a1a; }
.ds-trial-buy .ds-trial-btn { background: linear-gradient(135deg, #10b981, #34d399); }
.ds-trial-login .ds-trial-btn { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ds-trial-tip { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }

/* 暗黑模式 */
[data-ds-theme="dark"] .ds-notify-bell { background: #2a2a2a; color: #e0e0e0; }
[data-ds-theme="dark"] .ds-notify-item { background: #1e1e1e; border-color: #333; }
[data-ds-theme="dark"] .ds-notify-item.is-unread { background: #3a2a00; }
[data-ds-theme="dark"] .ds-notify-title, [data-ds-theme="dark"] .ds-notify-text { color: #e0e0e0; }
[data-ds-theme="dark"] .ds-notify-filter { background: #2a2a2a; color: #e0e0e0; border-color: #333; }
[data-ds-theme="dark"] .ds-notify-empty { background: #2a2a2a; color: #999; }

/* 移动端 */
@media (max-width: 768px) {
    .ds-notify-bell { top: 70px; right: 12px; width: 40px; height: 40px; }
    .ds-notify-item { padding: 12px; }
    .ds-notify-icon-cell { font-size: 20px; }
    .ds-trial-text { font-size: 16px; }
    .ds-trial-btn { padding: 12px 32px; font-size: 14px; }
}
