/* ========== 首页改版样式（仅首页加载） ========== */

/* Hero */
.home-hero {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    color: #fff;
    background: linear-gradient(120deg, #00112C 0%, #062B3B 52%, #0a51c2 100%);
    overflow: hidden;
}

.home-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 217, 202, .22) 0%, rgba(63, 217, 202, 0) 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7fd0ff;
}

.hero-eyebrow .fa {
    margin-right: .4rem;
}

.hero-title {
    margin: .7rem 0 1rem;
    font-size: 2.5rem;
    line-height: 1.16;
    font-weight: 700;
    color: #fff;
}

.hero-desc {
    max-width: 640px;
    margin-bottom: 1.6rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
}

.hero-actions .btn {
    padding: .7rem 1.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.btn-hero-primary {
    background-color: #fff;
    border-color: #fff;
    color: #0a51c2;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background-color: #eaf2ff;
    border-color: #eaf2ff;
    color: #0a51c2;
}

.btn-hero-ghost {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.btn-hero-ghost:hover,
.btn-hero-ghost:focus {
    background-color: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .72);
}

.hero-points li {
    margin-right: 1.5rem;
}

.hero-points .fa {
    margin-right: .4rem;
    font-size: .45rem;
    color: #3FD9CA;
    vertical-align: middle;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
}

.hero-stat {
    padding: 1.25rem .75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, .08);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.hero-stat span {
    display: block;
    margin-top: .3rem;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    margin: 0 0 .2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--title-default);
}

.section-sub {
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
}

.link-more {
    font-size: .9rem;
    font-weight: 600;
    color: var(--business-tertiary);
    white-space: nowrap;
}

.link-more:hover {
    color: var(--business-primary);
    text-decoration: none;
}

/* 行业分类 */
.industry-grid > div {
    margin-bottom: 1.5rem;
}

.industry-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e3eaf3;
    border-radius: 6px;
    background-color: #fff;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.industry-card:hover {
    border-color: #cfdcf0;
    box-shadow: 0 8px 20px rgba(10, 81, 194, .08);
    transform: translateY(-2px);
}

.industry-head {
    display: flex;
    align-items: center;
}

.industry-head:hover {
    text-decoration: none;
}

.industry-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-right: .8rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

.industry-badge.tone-1 { background: linear-gradient(135deg, #0a51c2, #0082fc); }
.industry-badge.tone-2 { background: linear-gradient(135deg, #02A8AF, #3FD9CA); }
.industry-badge.tone-3 { background: linear-gradient(135deg, #FF7519, #ffab66); }
.industry-badge.tone-4 { background: linear-gradient(135deg, #6b3fd9, #a98bff); }
.industry-badge.tone-5 { background: linear-gradient(135deg, #1c8c4b, #5cd6a1); }
.industry-badge.tone-6 { background: linear-gradient(135deg, #AF2E40, #e07080); }
.industry-badge.tone-7 { background: linear-gradient(135deg, #232F3E, #445268); }
.industry-badge.tone-8 { background: linear-gradient(135deg, #0d7fa8, #56c2e6); }

.industry-meta {
    min-width: 0;
}

.industry-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title-default);
}

.industry-count {
    display: block;
    margin-top: .15rem;
    font-size: .78rem;
    color: var(--light-muted);
}

.industry-subs {
    display: flex;
    flex-direction: column;
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px dashed #e3eaf3;
}

.industry-subs a {
    overflow: hidden;
    padding: .1rem 0;
    font-size: .81rem;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.industry-subs a:hover {
    color: var(--business-primary);
    text-decoration: none;
}

/* 产品价格 */
.product-price {
    margin-bottom: .5rem;
}

.price-value {
    font-size: .92rem;
    font-weight: 700;
    color: var(--orange);
}

.price-ask {
    font-size: .84rem;
    color: var(--light-muted);
}

/* 供应商 */
.supplier-list {
    display: flex;
    flex-direction: column;
}

.supplier-card {
    display: flex;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px dashed #e3eaf3;
}

.supplier-card:last-child {
    border-bottom: 0;
}

.supplier-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: .75rem;
    overflow: hidden;
    border: 1px solid #e3eaf3;
    border-radius: 50%;
}

.supplier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-avatar-text {
    background-color: #eaf2ff;
    font-weight: 700;
    color: var(--business-tertiary);
}

.supplier-info {
    min-width: 0;
}

.supplier-name {
    display: block;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 500;
    color: var(--title-default);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.supplier-location {
    font-size: .78rem;
    color: var(--light-muted);
}

/* 最新产品表格 */
.latest-table th,
.latest-table td {
    font-size: .88rem;
}

/* 底部 CTA */
.home-cta {
    display: flex;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid #e3eaf3;
    border-left: 4px solid var(--business-primary);
    border-radius: 6px;
    background-color: #fff;
}

.home-cta-icon {
    margin-right: 1.2rem;
    font-size: 2rem;
    line-height: 1;
    color: var(--business-primary);
}

.home-cta-body h2 {
    margin-bottom: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--title-default);
}

.home-cta-body p {
    margin-bottom: 1rem;
    font-size: .9rem;
    color: var(--muted);
}

@media screen and (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 767px) {
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-sub {
        display: none;
    }
}

@media screen and (max-width: 575px) {
    .home-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: .95rem;
    }

    .hero-stats {
        grid-gap: .6rem;
    }

    .hero-stat {
        padding: .9rem .5rem;
    }

    .hero-stat strong {
        font-size: 1.3rem;
    }

    .industry-badge {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: .82rem;
    }

    .industry-subs {
        display: none;
    }

    .home-cta {
        padding: 1.1rem;
    }
}
