/* ==========================================================================
   DS 限时免费 — 倒计时样式
   ========================================================================== */

/* 1. Banner(详情页) */
.ds-limited-free-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FF7D00 0%, #FF3D00 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.ds-limited-free-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.ds-limited-free-icon {
    font-size: 36px;
    flex-shrink: 0;
    animation: ds-lf-pulse 2s ease-in-out infinite;
}
@keyframes ds-lf-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}
.ds-limited-free-content { flex: 1; min-width: 0; }
.ds-limited-free-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 4px;
}
.ds-limited-free-timer {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--ds-font-mono);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
.ds-limited-free-timer span {
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.ds-limited-free-timer em {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    font-style: normal;
    margin: 0 2px;
}
.ds-limited-free-banner.is-urgent {
    background: linear-gradient(135deg, #F53F3F 0%, #C40D0D 100%);
    animation: ds-lf-urgent 1.5s ease-in-out infinite;
}
@keyframes ds-lf-urgent {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 63, 63, 0.3); }
    50%      { box-shadow: 0 4px 20px rgba(245, 63, 63, 0.6); }
}
.ds-limited-free-banner.is-urgent .ds-limited-free-icon { animation-duration: 0.8s; }
.ds-limited-free-cta {
    flex-shrink: 0;
    padding: 8px 20px;
    background: #fff;
    color: #FF7D00;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--ds-tx);
}
.ds-limited-free-cta:hover {
    transform: translateY(-2px);
    color: #FF3D00;
}

/* 2. Badge(资源卡片角标) */
.ds-limited-free-badge {
    display: inline-block;
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #FF7D00 0%, #FF3D00 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.4);
    animation: ds-lf-pulse 2s ease-in-out infinite;
}

/* 3. 移动端 */
@media (max-width: 480px) {
    .ds-limited-free-banner { flex-wrap: wrap; padding: 12px 16px; }
    .ds-limited-free-icon { font-size: 28px; }
    .ds-limited-free-title { font-size: 13px; }
    .ds-limited-free-timer { font-size: 18px; }
    .ds-limited-free-timer span { padding: 3px 6px; min-width: 28px; }
    .ds-limited-free-cta { width: 100%; text-align: center; }
}

/* 4. 暗色模式 */
.ds-dark .ds-limited-free-banner {
    background: linear-gradient(135deg, #D87565 0%, #B04B3D 100%);
}
