/* ===== Historical Price Page Styles ===== */

/* Banner: 移除统计数字后的微调 */
.hp-banner .edu-banner-content {
    padding-bottom: 60px;
}

/* 行情区域: 覆盖 recommend-trade 的 padding */
.hp-market-section {
    padding: 60px 0 50px;
}

/* ===== 贵金属价格区域 ===== */
.hp-guide {
    padding: 74px 0 20px 0;
    background: #F5F5F5;
}

.hp-guide-content {
    display: flex;
    gap: 23px;
    align-items: stretch;
}

.hp-guide-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 26px 41px 32px;
    display: flex;
    flex-direction: column;
}

.hp-guide-main .edu-section-title::after {
    display: none;
}

/* ===== 热门文章卡片网格 ===== */
.hp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 28px 22px;
    flex: 1;
}

a.hp-card {
    text-decoration: none;
    color: inherit;
}

.hp-card {
    background: #F9F9F9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #EBEDF0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hp-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #ddd;
}

.hp-card-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.hp-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hp-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-desc {
    font-size: 14px;
    color: #888;
    line-height: 2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* ===== 文章标签：不换行 + 超长省略 ===== */
.edu-articles .edu-article-tags {
    flex-wrap: nowrap;
    overflow: hidden;
}

.edu-articles .edu-article-tag {
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 底部分类标题 ===== */
.hp-bottom-header {
    text-align: center;
    margin-bottom: 40px;
}

.hp-bottom-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.hp-bottom-header p {
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* ===== 响应式: 小桌面 ===== */
@media (max-width: 1600px) {
    .hp-guide-content .edu-sidebar,
    .edu-articles-content .edu-sidebar {
        width: 340px;
    }

    .edu-tabs {
        gap: 20px;
        padding: 14px 30px 18px 30px;
    }

    .edu-tab {
        font-size: 15px;
        white-space: nowrap;
    }

    .edu-tab::after {
        bottom: -18px;
    }

    .edu-tabs::after {
        left: 30px;
        right: 30px;
    }

    .hp-guide-main {
        padding: 22px 28px 28px;
    }

    .hp-card-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

/* ===== 响应式: 移动端（与 edu.css / recommend-trade.css 断点一致） ===== */
@media (max-width: 1080px) {

    /* -- Banner -- */
    .hp-banner .edu-banner-content {
        padding-bottom: 6vw;
    }

    /* -- 行情卡片区域 -- */
    .hp-market-section {
        padding: 6vw 0;
    }

    /* -- 侧边栏：覆盖 1600px 的 340px + edu.css 的 padding -- */
    .hp-guide-content .edu-sidebar,
    .edu-articles-content .edu-sidebar {
        width: 100%;
        padding: 0;
    }

    /* -- 贵金属价格区域 -- */
    .hp-guide {
        padding: 6vw 0 4vw;
    }

    .hp-guide-content {
        flex-direction: column;
        gap: 4vw;
    }

    .hp-guide-main {
        padding: 4vw;
        border-radius: 3vw;
    }

    .hp-guide-main .edu-section-header {
        margin-bottom: 4vw;
        padding-bottom: 3vw;
    }

    .hp-card-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 3vw;
    }

    .hp-card {
        padding: 4vw;
        border-radius: 2vw;
        gap: 3vw;
    }

    .hp-card:hover {
        transform: none;
    }

    .hp-card-icon {
        width: 6vw;
        height: 6vw;
    }

    .hp-card-icon img {
        width: 6vw;
        height: 6vw;
    }

    .hp-card-title {
        font-size: 3.5vw;
    }

    .hp-card-desc {
        font-size: 3vw;
        line-height: 1.5;
    }

    /* -- 底部分类标题 -- */
    .hp-bottom-header {
        margin-bottom: 4vw;
    }

    .hp-bottom-header h2 {
        font-size: 5vw;
    }

    .hp-bottom-header p {
        font-size: 3.2vw;
    }
}
