/**
 * 赢政指数 - 首页样式
 */

/* =====================================================
   Hero
   ===================================================== */
.yz-home-hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}

.yz-home-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.15em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
}

.yz-home-hero__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text) 0%, var(--gold) 50%, var(--text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: yz-shimmer 4s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes yz-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.yz-home-hero__subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.yz-home-hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.yz-home-hero__stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.yz-home-hero__stats i {
    color: var(--gold);
    font-size: 0.8rem;
}

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

.yz-home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.yz-home-section__header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yz-home-section__header h2 i {
    color: var(--gold);
}

.yz-home-section__week {
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.yz-home-section__link {
    font-size: 0.82rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.yz-home-section__link:hover {
    color: var(--gold-light);
}

/* =====================================================
   本周亮点卡片
   ===================================================== */
.yz-home-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.yz-highlight-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    display: block;
}

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

.yz-highlight-card--featured {
    border-color: rgba(212,162,76,0.3);
    background: linear-gradient(135deg, var(--card) 0%, rgba(212,162,76,0.04) 100%);
}

.yz-highlight-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.yz-highlight-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

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

.yz-highlight-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

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

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

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

.yz-entry-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: block;
}

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

.yz-entry-card--accent {
    border-color: rgba(194,58,43,0.3);
    background: linear-gradient(135deg, var(--card) 0%, rgba(194,58,43,0.04) 100%);
}

.yz-entry-card--accent:hover {
    border-color: var(--accent);
}

.yz-entry-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212,162,76,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.yz-entry-card--accent .yz-entry-card__icon {
    background: rgba(194,58,43,0.1);
    color: var(--accent-light);
}

.yz-entry-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.yz-entry-card p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* =====================================================
   评测说明
   ===================================================== */
.yz-home-about {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.yz-home-about h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.yz-home-about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.yz-home-about__item {
    text-align: center;
}

.yz-home-about__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.yz-home-about__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0.25rem 0;
}

.yz-home-about__detail {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

.yz-home-about__footer {
    font-size: 0.88rem;
    color: var(--muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.yz-home-about__footer strong {
    color: var(--text);
}

/* =====================================================
   移动端
   ===================================================== */
@media (max-width: 768px) {
    .yz-home-hero { padding: 2.5rem 0 2rem; }
    .yz-home-hero__title { font-size: 2rem; }
    .yz-home-hero__stats { gap: 1rem; }

    .yz-home-highlights { grid-template-columns: 1fr; }
    .yz-entry-cards { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 480px) {
    .yz-home-hero__title { font-size: 1.6rem; }
    .yz-home-hero__stats { flex-direction: column; gap: 0.5rem; }

    .yz-entry-cards { grid-template-columns: 1fr; }

    .yz-home-about__grid { grid-template-columns: repeat(2, 1fr); }
    .yz-home-about__num { font-size: 1.5rem; }
    .yz-home-about { padding: 1.25rem; }
}
