/* ============================================
   赞助页面样式 v5 — 精炼SCP风格
   ============================================ */

/* 主布局 */
.sponsor-main {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 30% at 50% 0%, rgba(120, 130, 160, 0.03) 0%, transparent 100%),
        radial-gradient(ellipse 50% 40% at 20% 60%, rgba(20, 40, 80, 0.025) 0%, transparent 100%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(50, 30, 80, 0.02) 0%, transparent 100%);
}

/* 粒子层 */
.sponsor-bg-layers {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-particles {
    position: absolute;
    inset: 0;
}

/* ============================================
   Section 通用
   ============================================ */
.sponsor-section {
    padding: 56px 0;
    position: relative;
}

.sponsor-section+.sponsor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.sp-section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.sp-section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    margin-bottom: 36px;
}

/* ============================================
   Hero
   ============================================ */
.sponsor-hero {
    text-align: center;
    padding: 65px 0 45px;
    position: relative;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 50% 20%, rgba(120, 130, 160, 0.03) 0%, transparent 100%);
}

/* Badge */
.sponsor-hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.35);
    padding: 5px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

/* Title */
.sponsor-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 4px;
}

.sponsor-hero-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.8;
    opacity: 0.8;
}

/* 统计 */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(8px);
    margin-bottom: 28px;
    overflow: hidden;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 38px;
}

.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* CTA */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.sp-btn-primary {
    display: inline-block;
    padding: 10px 26px;
    background: rgba(180, 40, 40, 0.85);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s;
}

.sp-btn-primary:hover {
    background: rgba(190, 45, 45, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(180, 40, 40, 0.15);
    color: #fff;
}

.sp-btn-ghost {
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s;
}

.sp-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   流程时间线
   ============================================ */
.flow-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 0 56px;
}

/* 竖线 */
.flow-line {
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

/* 编号圆 */
.flow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    /* 定位在竖线上 */
    margin-left: -36px;
}

.flow-node:hover .flow-circle {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    transform: scale(1.08);
}

.flow-content {
    flex: 1;
}

.flow-name {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.flow-tip {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ============================================
   商品卡片
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 50px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.35s;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.4), rgba(20, 20, 40, 0.5), rgba(25, 25, 45, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 18px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.product-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    min-height: 36px;
    opacity: 0.7;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #e04040;
}

.product-price::before {
    content: '¥';
    font-size: 0.65rem;
    opacity: 0.6;
    margin-right: 2px;
}

.product-points {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: #c9a33e;
    background: rgba(201, 163, 62, 0.06);
    border: 1px solid rgba(201, 163, 62, 0.1);
    padding: 3px 10px;
    border-radius: 3px;
}

.product-stock {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: var(--text-dim);
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-stock-num {
    color: var(--text-secondary);
}

.stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.stock-available {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.35);
}

.stock-low {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}

.stock-empty {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

.product-contact {
    display: block;
    text-align: center;
    padding: 9px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    cursor: default;
    opacity: 0.7;
}

.product-contact:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    opacity: 1;
}

/* ============================================
   弹幕
   ============================================ */
.barrage-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.barrage-item {
    position: absolute;
    white-space: nowrap;
    animation: barrageFloat linear forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.barrage-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.barrage-name {
    color: #c9a33e;
    font-weight: 500;
}

.barrage-amount {
    color: #e04040;
    font-family: var(--font-mono);
    font-weight: 600;
}

@keyframes barrageFloat {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ============================================
   赞助墙
   ============================================ */
.wall-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 精美空状态组件 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(120, 130, 180, 0.02) 0%, transparent 100%),
        rgba(255, 255, 255, 0.008);
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    opacity: 0.15;
    color: var(--text-secondary);
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.empty-desc {
    font-size: 0.74rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto 20px;
}

.empty-cta {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.empty-cta:hover {
    border-color: rgba(224, 48, 48, 0.3);
    color: var(--accent);
    background: rgba(224, 48, 48, 0.04);
}

/* 骨架屏占位动画 */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.015) 25%,
            rgba(255, 255, 255, 0.035) 50%,
            rgba(255, 255, 255, 0.015) 75%);
    background-size: 800px 100%;
    animation: shimmer 2s ease-in-out infinite;
    border-radius: 4px;
}

/* 排行榜骨架占位 */
.ranking-skeleton {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 660px;
    margin: 0 auto;
}

.ranking-skeleton-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.008);
}

.ranking-skeleton-item .sk-rank {
    width: 28px;
    height: 20px;
}

.ranking-skeleton-item .sk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.ranking-skeleton-item .sk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-skeleton-item .sk-name {
    width: 80px;
    height: 12px;
}

.ranking-skeleton-item .sk-sub {
    width: 50px;
    height: 9px;
}

.ranking-skeleton-item .sk-amount {
    width: 50px;
    height: 16px;
    margin-left: auto;
}

/* 赞助墙骨架占位 */
.wall-skeleton {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 760px;
    margin: 0 auto;
}

.wall-skeleton-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.008);
}

.wall-skeleton-item .sk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wall-skeleton-item .sk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wall-skeleton-item .sk-name {
    width: 70px;
    height: 12px;
}

.wall-skeleton-item .sk-sub {
    width: 90px;
    height: 9px;
}

.wall-skeleton-item .sk-amount {
    width: 40px;
    height: 14px;
    flex-shrink: 0;
}

/* 占位产品卡片（即将上线） */
.product-card-placeholder {
    background: rgba(255, 255, 255, 0.008);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0.6;
    transition: all 0.35s;
}

.product-card-placeholder:hover {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.08);
}

.product-placeholder-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(25, 25, 45, 0.3), rgba(20, 20, 40, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-icon {
    width: 32px;
    height: 32px;
    opacity: 0.1;
    color: var(--text-secondary);
}

.product-placeholder-body {
    padding: 18px;
}

.product-placeholder-body .sk-title {
    width: 60%;
    height: 14px;
    margin-bottom: 10px;
}

.product-placeholder-body .sk-desc {
    width: 90%;
    height: 10px;
    margin-bottom: 6px;
}

.product-placeholder-body .sk-desc2 {
    width: 70%;
    height: 10px;
    margin-bottom: 16px;
}

.product-placeholder-body .sk-price {
    width: 40%;
    height: 18px;
    margin-bottom: 12px;
}

.product-placeholder-tag {
    display: block;
    text-align: center;
    padding: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-size: 0.68rem;
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

/* 旧空状态（保持兼容） */
.wall-empty,
.ranking-empty {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 36px;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
}

.wall-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    transition: all 0.25s;
}

.wall-item:hover {
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.wall-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.wall-avatar-anon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.wall-info {
    flex: 1;
    min-width: 0;
}

.wall-name {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 500;
}

.wall-product {
    font-size: 0.66rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.wall-amount {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #e04040;
    flex-shrink: 0;
}

.wall-amount::before {
    content: '¥';
    font-size: 0.6rem;
    opacity: 0.6;
}

.wall-time {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* ============================================
   排行榜
   ============================================ */
.ranking-list {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    transition: all 0.25s;
}

.ranking-item:hover {
    border-color: rgba(255, 255, 255, 0.06);
}

.ranking-item.rank-1 {
    border-color: rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.015), rgba(255, 255, 255, 0.015));
}

.ranking-item.rank-2 {
    border-color: rgba(192, 192, 192, 0.08);
}

.ranking-item.rank-3 {
    border-color: rgba(205, 127, 50, 0.08);
}

.ranking-rank {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-dim);
}

.rank-1 .ranking-rank {
    color: #ffd700;
}

.rank-2 .ranking-rank {
    color: #c0c0c0;
}

.rank-3 .ranking-rank {
    color: #cd7f32;
}

.ranking-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ranking-avatar-anon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 500;
}

.ranking-count {
    font-size: 0.64rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.ranking-amount {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #e04040;
    flex-shrink: 0;
}

.ranking-amount::before {
    content: '¥';
    font-size: 0.6rem;
    opacity: 0.6;
}

/* ============================================
   我的订单
   ============================================ */
.orders-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 8px;
}

.order-product {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.order-amount {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #e04040;
}

.order-amount::before {
    content: '¥';
    font-size: 0.58rem;
    opacity: 0.6;
}

.order-points {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #c9a33e;
}

.order-time {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: var(--text-dim);
}

.order-anon-badge {
    font-size: 0.6rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

/* ============================================
   条款
   ============================================ */
.sponsor-terms-section {
    padding-top: 20px;
}

.terms-card {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.terms-content {
    padding: 28px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 0.76rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terms-content::-webkit-scrollbar {
    width: 3px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.terms-content h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-primary);
    margin: 18px 0 6px;
    letter-spacing: 1px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content strong {
    color: var(--text-primary);
}

.terms-content ul {
    padding-left: 18px;
    margin: 6px 0;
}

.terms-content ul li {
    margin: 3px 0;
    list-style: disc;
}

.terms-content ul li::marker {
    color: rgba(198, 40, 40, 0.4);
}

/* ============================================
   页脚
   ============================================ */
.sponsor-footer {
    text-align: center;
    padding: 36px 0;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 0 auto 14px;
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #fff;
    opacity: 0;
    transform: translateX(40px);
    animation: toastIn 0.3s ease forwards;
    max-width: 320px;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

.toast-success {
    background: rgba(34, 139, 34, 0.85);
}

.toast-error {
    background: rgba(180, 40, 40, 0.85);
}

.toast-info {
    background: rgba(50, 70, 130, 0.85);
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .sponsor-hero {
        padding: 50px 0 30px;
    }

    .hero-stat {
        padding: 16px 22px;
    }

    .hero-stat-num {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-image-placeholder,
    .product-image {
        height: 90px;
    }

    .flow-timeline {
        padding-left: 48px;
    }

    .flow-circle {
        width: 34px;
        height: 34px;
        font-size: 0.72rem;
        margin-left: -30px;
    }

    .flow-line {
        left: 17px;
    }

    .terms-content {
        padding: 20px;
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .barrage-container {
        height: 70px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat-sep {
        width: 40px;
        height: 1px;
    }

    .hero-stat {
        padding: 14px 28px;
    }

    .flow-timeline {
        padding-left: 44px;
    }
}

/* ============================================
   支付系统样式
   ============================================ */

/* 购买按钮 */
.product-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224, 48, 48, 0.35);
}

.product-buy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 支付弹窗遮罩 */
.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 支付弹窗主体 */
.payment-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    padding: 32px 28px;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.payment-overlay.active .payment-modal {
    transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.payment-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.payment-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* 弹窗标题 */
.payment-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

/* 商品信息卡 */
.payment-product {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-product-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-product-desc {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.payment-product-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

/* 表单区域 */
.payment-form-group {
    margin-bottom: 14px;
}

.payment-form-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.payment-form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.payment-form-group input:focus {
    border-color: var(--accent);
}

/* 匿名选项 */
.payment-anon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.payment-anon-row input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
}

/* 提交按钮 */
.payment-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-submit-btn:hover {
    box-shadow: 0 4px 20px rgba(224, 48, 48, 0.4);
    transform: translateY(-1px);
}

.payment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 支付等待状态 */
.payment-waiting {
    text-align: center;
    padding: 20px 0;
}

.payment-waiting .waiting-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-waiting .waiting-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.payment-waiting .waiting-hint {
    font-size: 0.66rem;
    color: var(--text-dim);
}

/* 支付成功状态 */
.payment-success {
    text-align: center;
    padding: 16px 0;
}

.payment-success .success-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.payment-success .success-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 2px;
    color: #2ecc71;
    margin-bottom: 8px;
}

.payment-success .success-cdk {
    background: rgba(46, 204, 113, 0.08);
    border: 1px dashed rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #2ecc71;
    letter-spacing: 3px;
    word-break: break-all;
    user-select: all;
}

.payment-success .success-points {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.payment-success .success-close-btn {
    padding: 10px 32px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-success .success-close-btn:hover {
    background: rgba(46, 204, 113, 0.25);
}

/* ============================================
   我的订单样式
   ============================================ */
.order-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.order-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.order-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-product {
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e0e8;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.76rem;
}

.order-amount {
    color: #f0c050;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
}

.order-points {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-mono, monospace);
}

.order-time {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
}

/* 订单状态标签 */
.order-status {
    display: inline-block;
    font-family: var(--font-mono, monospace);
    font-size: 0.66rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.order-status-pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.order-status-paid {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.order-status-expired {
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
}

.order-status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.order-anon-badge {
    display: inline-block;
    font-size: 0.62rem;
    padding: 1px 6px;
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
}

/* CDK 代码显示 */
.order-cdk {
    margin-top: 6px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.5);
}

.order-cdk code {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-family: var(--font-mono, monospace);
    color: #22c55e;
    font-size: 0.76rem;
    user-select: all;
}

/* ============================================
   v6 — 深度美化增强
   ============================================ */

/* --- 排行榜交互 --- */
.ranking-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
}

/* 第1名 金色至尊 */
.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 170, 0, 0.03) 100%) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.06), inset 0 0 30px rgba(255, 215, 0, 0.03);
}

.ranking-item.rank-1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.04), transparent);
    animation: rankShimmer 4s ease-in-out infinite;
}

.ranking-item.rank-1 .ranking-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.ranking-item.rank-1 .ranking-amount {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.ranking-item.rank-1 .ranking-avatar {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

/* 第2名 银色荣耀 */
.ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.06) 0%, rgba(180, 190, 200, 0.02) 100%) !important;
    border-color: rgba(192, 192, 192, 0.2) !important;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.04);
}

.ranking-item.rank-2 .ranking-name {
    color: #e0e0e0;
}

.ranking-item.rank-2 .ranking-amount {
    color: #c0c0c0;
    font-weight: 600;
}

.ranking-item.rank-2 .ranking-avatar {
    border: 2px solid rgba(192, 192, 192, 0.3);
}

/* 第3名 铜色精英 */
.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.06) 0%, rgba(180, 120, 60, 0.02) 100%) !important;
    border-color: rgba(205, 127, 50, 0.2) !important;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.04);
}

.ranking-item.rank-3 .ranking-name {
    color: #e8a865;
}

.ranking-item.rank-3 .ranking-amount {
    color: #cd7f32;
    font-weight: 600;
}

.ranking-item.rank-3 .ranking-avatar {
    border: 2px solid rgba(205, 127, 50, 0.3);
}

.ranking-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes rankShimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(250%);
    }
}

/* --- 弹幕优化 --- */
.barrage-container {
    min-height: 100px;
}

.barrage-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.barrage-amount {
    color: #ef4444;
    font-weight: 700;
}

/* --- 条款勾选 --- */
.payment-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.payment-terms-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #ef4444;
}

.payment-terms-row label {
    line-height: 1.4;
}

.terms-link {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #f87171;
    text-decoration: underline;
}

/* --- 联系方式隐私提示 --- */
.form-hint {
    display: inline;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    margin-left: 4px;
}

/* --- 支付成功页 --- */
.success-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.success-check {
    width: 56px;
    height: 56px;
}

.success-check circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: successCircle 0.6s ease forwards;
}

.success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successTick 0.3s 0.4s ease forwards;
}

@keyframes successCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes successTick {
    to {
        stroke-dashoffset: 0;
    }
}

.success-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.success-cdk-wrap {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0;
    text-align: center;
}

.success-cdk-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-cdk {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1.1rem;
    font-weight: 600;
    color: #22c55e;
    user-select: all;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.success-tip {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 12px 0 16px;
}

.success-close-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
}

.success-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- 赞助墙金额 --- */
.wall-amount {
    color: #ef4444;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
}

/* ============================================
   v7 — 弹窗革命性重构样式
   ============================================ */

/* --- 弹窗头部 --- */
.payment-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
}

.payment-header-icon svg {
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.3);
}

.payment-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* --- 步骤指示器 --- */
.payment-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.step-dot.current {
    animation: stepPulse 1.5s ease-in-out infinite;
}

.step-line {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.step-line.active {
    background: rgba(239, 68, 68, 0.4);
}

@keyframes stepPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
    }
}

/* --- 商品信息增强 --- */
.pay-product-detail {
    flex: 1;
}

.payment-product-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    font-family: var(--font-mono, monospace);
}

/* --- 复选框分组 --- */
.payment-checkbox-group {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- 提交按钮增强 --- */
.payment-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- 安全提示 --- */
.payment-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.payment-secure-note svg {
    opacity: 0.4;
}

/* --- 扫码页 --- */
.pay-qr-header {
    margin-bottom: 12px;
}

.pay-qr-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
}

.qr-product-price {
    font-family: var(--font-display, 'Orbitron', monospace);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
}

.pay-qr-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    margin-bottom: 14px;
}

.pay-qrcode-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}

.pay-order-info {
    text-align: center;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono, monospace);
    margin: 8px 0;
}

.waiting-text {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.waiting-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 10px;
}

.waiting-hint svg {
    opacity: 0.4;
}

/* --- 成功页明细 --- */
.success-detail {
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.5);
}

.success-detail-row+.success-detail-row {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.success-detail-row span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* CDK复制反馈 */
.cdk-copied {
    font-size: 0.66rem;
    color: #22c55e;
    margin-left: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   v8 — 排行榜精致重构 + 商品卡优化
   ============================================ */

/* --- 排行榜序号 --- */
.ranking-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* TOP3 序号特别色 */
.rank-1 .ranking-rank-num {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.rank-2 .ranking-rank-num {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.15);
}

.rank-3 .ranking-rank-num {
    background: rgba(180, 130, 90, 0.1);
    color: #b4825a;
    border-color: rgba(180, 130, 90, 0.15);
}

/* --- TOP3 行样式 --- */
.ranking-item.rank-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.04), transparent 60%);
    border-left: 2px solid rgba(251, 191, 36, 0.3);
}

.ranking-item.rank-2 {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.03), transparent 60%);
    border-left: 2px solid rgba(148, 163, 184, 0.2);
}

.ranking-item.rank-3 {
    background: linear-gradient(90deg, rgba(180, 130, 90, 0.03), transparent 60%);
    border-left: 2px solid rgba(180, 130, 90, 0.15);
}

/* TOP3 头像边框 */
.rank-1 .ranking-avatar {
    border: 1.5px solid rgba(251, 191, 36, 0.3);
}

.rank-2 .ranking-avatar {
    border: 1.5px solid rgba(148, 163, 184, 0.2);
}

.rank-3 .ranking-avatar {
    border: 1.5px solid rgba(180, 130, 90, 0.15);
}

/* TOP3 名字强调 */
.rank-1 .ranking-name {
    color: #fbbf24;
}

.rank-2 .ranking-name {
    color: #cbd5e1;
}

.rank-3 .ranking-name {
    color: #c9a47a;
}

/* TOP3 金额颜色 */
.rank-1 .ranking-amount {
    color: #fbbf24;
    font-weight: 600;
}

.rank-2 .ranking-amount {
    color: #94a3b8;
}

.rank-3 .ranking-amount {
    color: #b4825a;
}

/* --- 商品卡图片占位符优化 --- */
.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.03));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.product-image-placeholder img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-image-placeholder img {
    opacity: 0.7 !important;
    transform: scale(1.08);
}

/* 商品卡微交互增强 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}