/**
 * 赢政指数 - 本周升降榜样式
 * 配色沿用主站：玄黑 + 纁红 + 龙纹金
 */

/* =====================================================
   Hero 头部
   ===================================================== */
.yz-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.yz-hero__badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--accent), #8b2920);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.yz-hero__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.yz-hero__icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.yz-hero__desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.yz-hero__weeks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.yz-week-btn {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--muted);
    transition: all 0.2s;
    cursor: pointer;
}

.yz-week-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.yz-week-btn.active {
    background: linear-gradient(135deg, var(--gold), #c08b2a);
    border-color: transparent;
    color: #0a0a0b;
    font-weight: 600;
}

/* =====================================================
   统计条
   ===================================================== */
.yz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.yz-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: border-color 0.2s;
}

.yz-stat:hover {
    border-color: var(--border-light);
}

.yz-stat__num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.yz-stat__label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
    display: block;
}

.yz-stat--up .yz-stat__num { color: #22c55e; }
.yz-stat--down .yz-stat__num { color: #ef4444; }
.yz-stat--stable .yz-stat__num { color: var(--gold); }
.yz-stat--total .yz-stat__num { color: var(--text); }

/* =====================================================
   Section 标题
   ===================================================== */
.yz-section {
    margin-bottom: 2.5rem;
}

.yz-section__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yz-section__title--up { color: #22c55e; border-color: rgba(34,197,94,0.2); }
.yz-section__title--down { color: #ef4444; border-color: rgba(239,68,68,0.2); }
.yz-section__title--stable { color: var(--gold); border-color: rgba(212,162,76,0.2); }

/* =====================================================
   模型卡片
   ===================================================== */
.yz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.yz-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.yz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.yz-card--up::before { background: #22c55e; }
.yz-card--down::before { background: #ef4444; }
.yz-card--stable::before { background: var(--gold); }

.yz-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.yz-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.yz-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.yz-card__model {
    flex: 1;
    min-width: 0;
}

.yz-card__name {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yz-card__delta {
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.yz-card__delta--up { color: #22c55e; }
.yz-card__delta--down { color: #ef4444; }
.yz-card__delta--stable { color: var(--muted); font-size: 1rem; }

.yz-card__hook {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.yz-card__dim {
    font-size: 0.75rem;
    color: var(--muted);
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--tag-bg);
    border-radius: 10px;
}

/* =====================================================
   页脚信息
   ===================================================== */
.yz-footer-info {
    text-align: center;
    padding: 2rem 0 3rem;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.yz-footer-info p {
    margin-bottom: 0.5rem;
}

.yz-footer-info__brand {
    color: var(--gold);
    font-size: 0.85rem;
}

/* =====================================================
   空状态
   ===================================================== */
.yz-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--muted);
}

.yz-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.yz-empty__hint {
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

/* =====================================================
   移动端适配
   ===================================================== */
@media (max-width: 768px) {
    .yz-hero {
        padding: 2rem 0 1.5rem;
    }

    .yz-hero__title {
        font-size: 1.4rem;
    }

    .yz-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .yz-stat {
        padding: 1rem 0.75rem;
    }

    .yz-stat__num {
        font-size: 1.5rem;
    }

    .yz-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .yz-card {
        padding: 1rem;
    }

    .yz-card__delta {
        font-size: 1.1rem;
    }

    .yz-section__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .yz-hero__title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .yz-hero__weeks {
        gap: 0.35rem;
    }

    .yz-week-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }

    .yz-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .yz-stat {
        padding: 0.75rem 0.5rem;
    }

    .yz-stat__num {
        font-size: 1.2rem;
    }

    .yz-stat__label {
        font-size: 0.7rem;
    }
}
