/**
 * 限时秒杀 - 独立 UI（红橙紧迫风格，区别于道具商城与拍卖金色）
 */

.flash-sale-page {
    --fs-primary: #ff3d00;
    --fs-secondary: #ff6d00;
    --fs-accent: #ff1744;
    --fs-glow: rgba(255, 61, 0, 0.35);
    background: linear-gradient(180deg, #120808 0%, #1a0a0a 40%, #0d0505 100%);
}

.flash-modal-open {
    overflow: hidden;
}

/* Hero */
.fs-hero {
    position: relative;
    text-align: center;
    padding: 28px 16px 32px;
    margin-bottom: 8px;
    overflow: hidden;
}

.fs-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(90deg, var(--fs-accent), var(--fs-primary));
    box-shadow: 0 0 20px var(--fs-glow);
    margin-bottom: 12px;
}

.fs-hero h1 {
    font-size: 2rem;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #ff6d00, #ff1744, #ff9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.fs-hero p {
    color: rgba(255, 200, 180, 0.75);
    margin: 0;
    font-size: 0.95rem;
}

.fs-hero-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 61, 0, 0.15) 0%, transparent 70%);
    animation: fsPulse 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes fsPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.fs-hero h1, .fs-hero p, .fs-hero-badge {
    position: relative;
    z-index: 1;
}

/* Sections */
.fs-section {
    margin-bottom: 24px;
    padding: 0 12px;
}

.fs-section-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 80, 40, 0.25);
    background: rgba(20, 8, 8, 0.6);
}

.fs-live-box {
    border-color: rgba(255, 61, 0, 0.45);
    box-shadow: 0 0 24px rgba(255, 61, 0, 0.12);
}

.fs-upcoming-box {
    border-color: rgba(255, 145, 0, 0.3);
}

.fs-ended-box {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.85;
}

.fs-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(30, 10, 10, 0.9);
    border-bottom: 1px solid rgba(255, 80, 40, 0.15);
}

.fs-section-head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #ff6d00;
    flex: 1;
}

.fs-section-icon {
    font-size: 1.2rem;
}

.fs-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff1744;
    box-shadow: 0 0 8px #ff1744;
    animation: fsBlink 1s infinite;
}

@keyframes fsBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Grid & Cards */
.fs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
}

.fs-grid-compact .fs-card-btn {
    display: none;
}

.fs-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: linear-gradient(135deg, #1f0d0d 0%, #2a1212 100%);
    border: 1px solid rgba(255, 80, 40, 0.2);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fs-card:active {
    transform: scale(0.98);
}

.fs-live-card {
    border-color: rgba(255, 61, 0, 0.4);
}

.fs-live-card:hover {
    box-shadow: 0 8px 24px rgba(255, 61, 0, 0.2);
}

.fs-card-img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.fs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
}

.fs-card-body {
    flex: 1;
    padding: 12px 12px 12px 14px;
    min-width: 0;
}

.fs-card-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tag-live { background: rgba(255, 23, 68, 0.25); color: #ff5252; }
.tag-upcoming { background: rgba(255, 145, 0, 0.2); color: #ffab40; }
.tag-ended { background: rgba(150, 150, 150, 0.2); color: #999; }

.fs-card-title {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-card-items {
    margin: 0 0 8px;
    font-size: 12px;
    color: rgba(255, 200, 180, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.fs-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ff3d00;
}

.fs-card-original {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.fs-stock-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.fs-stock-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff3d00, #ff9100);
    border-radius: 2px;
    transition: width 0.3s;
}

.fs-card-meta {
    font-size: 11px;
    color: rgba(255, 180, 150, 0.6);
    margin-bottom: 4px;
}

.fs-card-countdown {
    font-size: 12px;
    color: #ffab40;
    margin-bottom: 8px;
}

.fs-card-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff3d00, #ff6d00);
    cursor: pointer;
}

.fs-card-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.fs-empty, .fs-loading {
    text-align: center;
    padding: 24px;
    color: rgba(255, 180, 150, 0.5);
    grid-column: 1 / -1;
}

/* Modal */
.fs-modal-sheet {
    border-top: 2px solid rgba(255, 61, 0, 0.5);
}

.fs-detail-hero {
    text-align: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 61, 0, 0.12) 0%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.fs-detail-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.fs-price-label {
    font-size: 13px;
    color: rgba(255, 200, 180, 0.7);
}

.fs-price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff3d00;
}

.fs-price-unit {
    font-size: 14px;
    color: #ffab40;
}

.fs-detail-original {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
    margin-top: 4px;
}

.fs-detail-countdown {
    margin-top: 10px;
    font-size: 15px;
    color: #ffab40;
    font-weight: 600;
}

.fs-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.fs-stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.fs-stat .label {
    display: block;
    font-size: 11px;
    color: rgba(255, 180, 150, 0.55);
    margin-bottom: 4px;
}

.fs-stat .value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.fs-items-title {
    font-size: 13px;
    color: rgba(255, 200, 180, 0.7);
    margin: 0 0 10px;
}

.fs-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #eee;
    font-size: 14px;
}

.fs-item-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

.fs-btn-buy {
    flex: 1;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #ff3d00, #ff1744);
    box-shadow: 0 4px 16px rgba(255, 61, 0, 0.4);
    cursor: pointer;
}

.fs-btn-buy:disabled {
    background: #444;
    box-shadow: none;
    cursor: not-allowed;
}

@media (min-width: 520px) {
    .fs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fs-grid-compact .fs-card-img {
    width: 72px;
    height: 72px;
    padding: 6px;
}

@media (max-width: 380px) {
    .fs-card-img {
        width: 80px;
        height: 80px;
        padding: 6px;
    }

    .fs-price-value {
        font-size: 1.8rem;
    }
}
