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

.hp-page .container {
    width: min(1400px, calc(100% - 64px));
    max-width: 1400px;
}

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

.hp-banner.cal-video-hero {
    background-color: #0e061c;
    background-image: url('../images/calendar/calendar-hero-poster.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hp-banner.cal-video-hero .cal-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hp-banner.cal-video-hero .cal-hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 44%, rgba(163, 0, 255, 0.64) 0%, rgba(128, 0, 255, 0.36) 25%, rgba(128, 0, 255, 0) 54%),
        linear-gradient(90deg, rgba(14, 6, 28, 0.2) 0%, rgba(126, 0, 255, 0.4) 46%, rgba(128, 0, 255, 0.4) 53%, rgba(14, 6, 28, 0.2) 100%),
        linear-gradient(0deg, #0e061c 0%, rgba(14, 6, 28, 0) 28%);
    mix-blend-mode: screen;
}

.hp-banner.cal-video-hero .cal-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(0deg, #0e061c 0%, rgba(14, 6, 28, 0) 26%),
        linear-gradient(180deg, rgba(14, 6, 28, 0.2) 0%, rgba(14, 6, 28, 0) 42%, rgba(14, 6, 28, 0.18) 100%),
        rgba(122, 0, 255, 0.16);
}

.hp-banner.cal-video-hero .cal-hero-video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    filter: saturate(1.2) brightness(0.9);
    transition: opacity 0.6s ease;
}

.hp-banner.cal-video-hero .cal-hero-media.is-video-ready .cal-hero-video {
    opacity: 1;
}

.hp-banner.cal-video-hero > .container,
.hp-banner.cal-video-hero .edu-banner-content {
    position: relative;
    z-index: 4;
}

.hp-banner.cal-video-hero .edu-banner-title {
    background: linear-gradient(180deg, #ffffff 79%, #b48dee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-banner.cal-video-hero .edu-banner-subtitle {
    color: #ffffff;
}

/* 行情区域: 覆盖 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) {
    .hp-page .container {
        width: calc(100% - 32px);
    }

    /* -- 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;
    }
}

@media (max-width: 1080px) {
    .hp-banner.cal-video-hero {
        height: auto;
        min-height: 58vw;
        display: block;
        overflow: hidden;
        padding: 18vw 0 8vw;
        background-position: center top;
        text-align: center;
    }

    .hp-banner.cal-video-hero .edu-banner-content {
        max-width: min(92vw, 700px);
        margin: 0 auto;
        padding-bottom: 0;
    }

    .hp-banner.cal-video-hero .edu-banner-title {
        max-width: min(92vw, 700px);
        margin: 0 auto 24px;
        font-size: 46px;
        line-height: 1.16;
    }

    .hp-banner.cal-video-hero .edu-banner-subtitle {
        max-width: min(86vw, 430px);
        margin: 0 auto 32px;
        padding: 0;
        font-size: 15px;
        line-height: 30px;
    }

    .hp-banner.cal-video-hero .edu-search-box {
        width: min(86vw, 430px);
        min-height: 44px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-radius: 35px;
    }

    .hp-banner.cal-video-hero .edu-search-input {
        min-width: 0;
        padding: 10px 18px;
        border-radius: 35px 0 0 35px;
        font-size: 15px;
        line-height: 22px;
    }

    .hp-banner.cal-video-hero .edu-search-input::placeholder {
        font-size: 14px;
    }

    .hp-banner.cal-video-hero .edu-search-btn {
        flex: 0 0 110px;
        padding: 10px 18px;
        border-radius: 0 35px 35px 0;
        font-size: 15px;
        line-height: 22px;
    }

    .hp-banner.cal-video-hero .cal-hero-media::before {
        background:
            radial-gradient(circle at 50% 42%, rgba(163, 0, 255, 0.58) 0%, rgba(128, 0, 255, 0.26) 28%, rgba(128, 0, 255, 0) 58%),
            linear-gradient(0deg, #0e061c 0%, rgba(14, 6, 28, 0) 34%),
            rgba(122, 0, 255, 0.16);
    }
}

@media (max-width: 480px) {
    .hp-banner.cal-video-hero {
        min-height: auto;
        padding: 20vw 0 10vw;
    }

    .hp-banner.cal-video-hero .edu-banner-title {
        font-size: 32px;
        line-height: 1.14;
        margin-bottom: 20px;
    }

    .hp-banner.cal-video-hero .edu-banner-subtitle {
        max-width: calc(100% - 44px);
        font-size: 13px;
        line-height: 26px;
        margin-bottom: 28px;
    }

    .hp-banner.cal-video-hero .edu-search-box {
        width: calc(100% - 44px);
        min-height: 44px;
    }

    .hp-banner.cal-video-hero .edu-search-input {
        padding: 9px 14px;
        font-size: 13px;
        line-height: 22px;
    }

    .hp-banner.cal-video-hero .edu-search-input::placeholder {
        font-size: 12px;
    }

    .hp-banner.cal-video-hero .edu-search-btn {
        flex-basis: 82px;
        padding: 9px 12px;
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 600px) {
    .hp-banner.cal-video-hero {
        min-height: clamp(300px, 78vw, 340px);
        padding: 20vw 0 10vw;
    }

    .hp-banner.cal-video-hero .edu-banner-title {
        font-size: 32px;
        line-height: 1.14;
        margin-bottom: 20px;
    }

    .hp-banner.cal-video-hero .edu-banner-subtitle {
        max-width: calc(100% - 44px);
        font-size: 13px;
        line-height: 26px;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hp-banner.cal-video-hero .edu-search-box {
        display: flex;
    }
}

@media (max-width: 1080px) {
    .hp-banner.cal-video-hero {
        height: 560px;
        min-height: 0;
        padding: 130px 0 50px;
    }
}
