/* 首页布局（付费资讯风格） */
.home-page {
    padding-bottom: 32px;
}

/* 实时快讯 */
.home-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 35, 80, 0.06);
    overflow: hidden;
}

.home-ticker-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.home-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 34px;
}

.home-ticker-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
    animation: homeTickerMove 36s linear infinite;
    height: 34px;
}

.home-ticker-list:hover {
    animation-play-state: paused;
}

.home-ticker-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    color: #1f2937;
}

.home-ticker-list a {
    color: #1f2937;
    text-decoration: none;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-ticker-list a:hover {
    color: #2563eb;
}

.home-ticker-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
}

.home-ticker-arrow {
    color: #94a3b8;
    font-size: 14px;
}

@keyframes homeTickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 区块标题 */
.home-section {
    margin-bottom: 22px;
}

.home-section-hd {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.home-section-hd h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-section-hd h2 i {
    color: #3b82f6;
    font-size: 20px;
}

.home-section-hd h2 .ri-star-fill {
    color: #f59e0b;
}

.home-section-sub {
    color: #94a3b8;
    font-size: 13px;
}

/* 付费热门卡片 */
.home-paid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-paid-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 35, 80, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
}

.home-paid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 35, 80, 0.12);
    color: inherit;
}

.home-paid-cover {
    position: relative;
    height: 148px;
    background: #eef2f7;
    overflow: hidden;
}

.home-paid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-paid-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-paid-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-paid-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-paid-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 12px;
}

.home-paid-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.home-paid-price {
    margin-left: auto;
    color: #ef4444 !important;
    font-weight: 700;
    font-size: 13px;
}

.home-paid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 9px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}

.home-paid-card:hover .home-paid-btn {
    background: #2563eb;
}

/* 推荐资讯横向卡片 */
.home-rec-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-rec-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 35, 80, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease;
}

.home-rec-card:hover {
    box-shadow: 0 10px 28px rgba(15, 35, 80, 0.1);
    color: inherit;
}

.home-rec-thumb {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}

.home-rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-rec-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-rec-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-rec-desc {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-rec-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-rec-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.home-rec-price {
    color: #ef4444;
    font-weight: 700;
    font-size: 14px;
}

.home-rec-time {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 侧边栏 */
.home-side-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 35, 80, 0.07);
    margin-bottom: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.home-side-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 55%, #3b82f6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.home-side-hd i {
    font-size: 17px;
}

.home-side-bd {
    padding: 8px 0;
}

.home-rank-item,
.home-edit-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}

.home-rank-item:last-child,
.home-edit-item:last-child {
    border-bottom: 0;
}

.home-rank-item:hover,
.home-edit-item:hover {
    background: #f8fafc;
    color: inherit;
}

.home-rank-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-rank-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-rank-num.n2 { background: #f97316; }
.home-rank-num.n3 { background: #eab308; }
.home-rank-num.n4,
.home-rank-num.n5,
.home-rank-num.n6 { background: #94a3b8; }

.home-rank-main {
    flex: 1;
    min-width: 0;
}

.home-rank-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.home-rank-meta .hot {
    color: #f97316;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.home-rank-meta .price {
    color: #ef4444;
    font-weight: 700;
}

.home-rank-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    margin-top: 4px;
}

.home-edit-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.home-edit-pin {
    color: #ef4444;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.home-edit-main {
    flex: 1;
    min-width: 0;
}

.home-edit-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-edit-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.home-edit-foot .price {
    color: #ef4444;
    font-weight: 700;
}

@media (max-width: 992px) {
    .home-paid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-rec-thumb {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 640px) {
    .home-paid-grid {
        grid-template-columns: 1fr;
    }
    .home-rec-card {
        flex-direction: column;
    }
    .home-rec-thumb {
        width: 100%;
        height: 160px;
    }
    .home-ticker-label span {
        display: none;
    }
}
