/* 限时秒杀独立页 · 与顶部 search_bar 同宽对齐 */
.fs-page {
    width: calc(100vw - 48px);
    max-width: var(--pc-page-width, 1680px);
    margin: 0 auto;
    padding: 24px 0 48px;
    box-sizing: border-box;
    clear: both;
}

body.page-pc-wide .fs-page {
    width: calc(100vw - 48px) !important;
    max-width: var(--pc-page-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 960px) {
    .fs-page,
    body.page-pc-wide .fs-page {
        width: calc(100vw - 24px) !important;
    }
}

/* 上下区块共用同一内容宽度 */
.fs-body {
    width: 100%;
    box-sizing: border-box;
}

.fs-hero,
.fs-products {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hero Banner */
.fs-hero {
    position: relative;
    border-radius: 20px;
    padding: 36px 44px;
    background: linear-gradient(135deg, #ff6b9d 0%, #f5576c 45%, #e84393 100%);
    box-shadow: 0 12px 40px rgba(245, 87, 108, 0.28);
    overflow: hidden;
    margin-bottom: 28px;
}

.fs-hero::before,
.fs-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fs-hero::before {
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
}

.fs-hero::after {
    bottom: -50px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.fs-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.fs-hero-left {
    flex: 1;
    min-width: 260px;
}

.fs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.22);
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.fs-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.fs-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    margin: 0 0 16px;
    font-weight: 500;
}

.fs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fs-hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
}

.fs-hero-tag--live {
    background: rgba(255,255,255,0.95);
    color: #f5576c;
    font-weight: 700;
}

.fs-hero-tag--live::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: fs-pulse 1.5s ease infinite;
}

@keyframes fs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* 倒计时面板 */
.fs-countdown-panel {
    flex-shrink: 0;
    text-align: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    padding: 20px 32px;
    min-width: 200px;
}

.fs-countdown-label {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

.fs-countdown-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.fs-countdown-digits .fs-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    color: #f5576c;
    font-size: 26px;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-variant-numeric: tabular-nums;
}

.fs-countdown-digits .fs-sep {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    padding: 0 2px;
}

.fs-countdown-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    margin-top: 10px;
}

/* 商品区 */
.fs-products {
    margin-top: 0;
}

.fs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    box-sizing: border-box;
}

.fs-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.fs-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #ff6b9d, #f5576c);
    border-radius: 2px;
}

.fs-section-count {
    font-size: 13px;
    color: #999;
}

.fs-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fs-grid > li {
    min-width: 0;
    width: 100%;
}

@media (max-width: 1400px) {
    .fs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .fs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fs-hero-title { font-size: 32px; }
}

@media (max-width: 600px) {
    .fs-grid { grid-template-columns: repeat(2, 1fr); }
    .fs-hero { padding: 24px 20px; }
}

/* 商品卡片 */
.fs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.fs-card:hover {
    transform: translateY(-4px);
    border-color: #ff6b9d;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.18);
}

.fs-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.35);
}

.fs-card-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff3f6;
    color: #f5576c;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #ffd6e0;
}

.fs-card-img-wrap {
    width: 100%;
    height: 180px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fs-card-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.fs-card:hover .fs-card-img-wrap img {
    transform: scale(1.06);
}

.fs-card-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fs-card-name {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    font-weight: 500;
}

.fs-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.fs-card-price-label {
    font-size: 11px;
    color: #ff6b9d;
    font-weight: 600;
}

.fs-card-price {
    font-size: 20px;
    color: #ff6b9d;
    font-weight: 800;
    line-height: 1;
}

.fs-card-price small {
    font-size: 13px;
    font-weight: 600;
}

.fs-card-origin {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.fs-card-action {
    margin-top: 10px;
    display: block;
    text-align: center;
    padding: 8px 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #f5576c 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fs-card:hover .fs-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* 空状态 */
.fs-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e8e8e8;
}

.fs-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.fs-empty-title {
    font-size: 18px;
    color: #666;
    margin: 0 0 8px;
    font-weight: 600;
}

.fs-empty-desc {
    font-size: 14px;
    color: #999;
    margin: 0;
}
