/* salestheme - homepage only. 导航/按钮/页脚的公共样式已经移到 common.css（全站加载），
   这里只保留首页专属的区块（hero/信任要素/分类卡/视频卡/商品卡/步骤条）。 */

.ht-page {
    background: var(--ht-bg);
    color: var(--ht-text);
    font-family: var(--ht-font-family);
}

/* ---------- hero ---------- */
.ht-hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, var(--ht-bg-soft) 0%, var(--ht-bg) 100%);
}
.ht-hero-grid {
    display: flex;
    gap: var(--ht-space-xl);
    align-items: center;
}
.ht-hero-left { flex: 0 0 44%; }
.ht-hero-right { flex: 1; }
.ht-hero-tag {
    display: inline-block;
    background: #fff2df;
    color: var(--ht-gold);
    font-size: var(--ht-font-size-desc);
    padding: 6px 16px;
    border-radius: var(--ht-radius-pill-sm);
    margin-bottom: 18px;
}
.ht-hero-title {
    font-size: var(--ht-font-size-hero-title);
    line-height: var(--ht-line-height-title);
    font-weight: var(--ht-font-weight-bold);
    color: var(--ht-text);
    margin: 0 0 18px;
}
.ht-hero-title em {
    color: var(--ht-green);
    font-style: normal;
}
.ht-hero-desc {
    font-size: var(--ht-font-size-body);
    color: var(--ht-text-soft);
    line-height: var(--ht-line-height-loose);
    margin: 0 0 28px;
}
.ht-hero-ctas { display: flex; gap: 16px; }

.ht-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--ht-radius-card);
    overflow: hidden;
    box-shadow: var(--ht-shadow-hero);
    background: #000;
}
.ht-video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-page.ht-home-page .ht-hero-video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.ht-page.ht-home-page .ht-hero-video-link:focus-visible {
    outline: 3px solid var(--ht-gold);
    outline-offset: 3px;
}
.ht-page.ht-home-page .ht-hero-player {
    isolation: isolate;
}
.ht-page.ht-home-page .ht-hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.ht-page.ht-home-page .ht-hero-player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.ht-page.ht-home-page .ht-hero-player-start .ht-video-playbtn {
    pointer-events: none;
}
.ht-page.ht-home-page .ht-hero-player.is-playing .ht-hero-player-start,
.ht-page.ht-home-page .ht-hero-player.is-playing .ht-hero-player-caption {
    display: none;
}
.ht-page.ht-home-page .ht-hero-player-caption {
    z-index: 2;
    pointer-events: none;
}
.ht-page.ht-home-page .ht-hero-player-detail {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 4;
    padding: 6px 12px;
    border-radius: var(--ht-radius-pill-sm);
    background: rgba(255,255,255,0.9);
    color: var(--ht-green);
    font-size: var(--ht-font-size-tiny);
    font-weight: var(--ht-font-weight-bold);
    text-decoration: none;
}
.ht-page.ht-home-page .ht-hero-player-detail:focus-visible {
    outline: 3px solid var(--ht-gold);
    outline-offset: 2px;
}
.ht-video-caption {
    position: absolute;
    left: 28px;
    top: 28px;
    right: 28px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ht-video-caption h3 {
    font-size: var(--ht-font-size-h3);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.ht-video-caption p {
    font-size: var(--ht-font-size-desc);
    margin: 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.ht-video-playbtn {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: var(--ht-radius-circle);
    background: rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.ht-video-playbtn:after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--ht-green);
    margin-left: 4px;
}
.ht-video-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    color: #fff; font-size: var(--ht-font-size-tiny);
}
.ht-video-bar .ht-progress { flex: 1; height: 3px; background: rgba(255,255,255,0.35); border-radius: 2px; }

/* ---------- trust bar ---------- */
.ht-trust-bar {
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-card);
    margin-top: var(--ht-space-md);
    display: flex;
    box-shadow: var(--ht-shadow-soft);
}
.ht-trust-item {
    flex: 1;
    display: flex;
    gap: var(--ht-space-sm);
    align-items: center;
    padding: 26px var(--ht-space-page-x);
    border-right: 1px solid var(--ht-border);
}
.ht-trust-item:last-child { border-right: none; }
.ht-trust-icon {
    width: 46px; height: 46px;
    border-radius: var(--ht-radius-circle);
    display: flex; align-items: center; justify-content: center;
    background: var(--ht-bg-soft);
    flex-shrink: 0;
}
.ht-trust-icon svg { width: 22px; height: 22px; }
/* 信任要素标题：和下面"卡片标题"(--ht-font-size-h4)是不同层级的次级标题，
   两者数值目前刚好都能对上变量，这里直接引用 --ht-font-size-body（15px）纯粹是数值凑巧一致，
   不代表语义上是"正文"，如果以后要单独调整这个标题，应该拆出一个独立变量而不是复用 body。 */
.ht-trust-item h4 { margin: 0 0 4px; font-size: var(--ht-font-size-body); }
.ht-trust-item p { margin: 0; font-size: var(--ht-font-size-tiny); color: var(--ht-text-soft); line-height: var(--ht-line-height-body); }

/* ---------- section title ---------- */
.ht-section { padding: var(--ht-section-padding-y) 0; }
.ht-section-title {
    text-align: center;
    font-size: var(--ht-font-size-h2);
    font-weight: var(--ht-font-weight-bold);
    color: var(--ht-text);
    margin: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ht-space-sm);
}
.ht-section-title .ht-diamond {
    position: relative;
    width: 10px; height: 10px;
    background: var(--ht-gold-light);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.ht-section-title .ht-diamond:first-child::before,
.ht-section-title .ht-diamond:last-child::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: var(--ht-border);
    transform: translateY(-50%) rotate(-45deg);
}
.ht-section-title .ht-diamond:first-child::before { right: 100%; margin-right: 10px; }
.ht-section-title .ht-diamond:last-child::after { left: 100%; margin-left: 10px; }

/* ---------- category cards ---------- */
.ht-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ht-grid-gap);
}
.ht-category-card {
    background: #fff;
    border-radius: var(--ht-radius-card);
    overflow: hidden;
    border: 1px solid var(--ht-border);
    display: flex;
    flex-direction: column;
}
.ht-category-img { position: relative; height: 150px; overflow: hidden; }
.ht-category-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-category-body { padding: var(--ht-card-padding); flex: 1; display: flex; flex-direction: column; }
.ht-category-body h4 { margin: 0 0 8px; font-size: var(--ht-font-size-h4); }
.ht-category-body p { margin: 0 0 16px; font-size: var(--ht-font-size-small); color: var(--ht-text-soft); line-height: var(--ht-line-height-body); flex: 1; }
.ht-category-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 0;
    border-radius: 18px;
    background: var(--ht-bg-soft);
    border: 1px solid var(--ht-border);
    color: var(--ht-green);
    font-weight: var(--ht-font-weight-bold);
    font-size: var(--ht-font-size-desc);
    text-decoration: none;
}
.ht-category-more::after {
    content: '→';
    transition: transform 0.15s ease;
}
.ht-category-more:hover {
    background: var(--ht-green);
    border-color: var(--ht-green);
    color: #fff;
}
.ht-category-more:hover::after { transform: translateX(3px); }

/* ---------- homepage Health articles ---------- */
.ht-page.ht-home-page .ht-home-articles-section {
    border-top: 1px solid var(--ht-border);
    padding-top: 40px;
    padding-bottom: 30px;
}
.ht-page.ht-home-page > #ht-videos {
    padding-top: 35px;
    padding-bottom: 45px;
}
.ht-page.ht-home-page > #ht-products {
    padding-top: 45px;
    padding-bottom: 40px;
}
.ht-page.ht-home-page .ht-home-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ht-grid-gap);
    align-items: stretch;
}
.ht-page.ht-home-page .ht-home-article-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-card);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--ht-shadow-soft);
}
.ht-page.ht-home-page .ht-home-article-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ht-bg-soft);
}
.ht-page.ht-home-page .ht-home-article-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.ht-page.ht-home-page .ht-home-article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 15px;
}
.ht-page.ht-home-page .ht-home-article-body h3 {
    min-height: 1.4em;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--ht-text);
    font-size: var(--ht-font-size-h4);
    font-weight: var(--ht-font-weight-bold);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ht-page.ht-home-page .ht-home-article-body p {
    min-height: 3.2em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--ht-text-soft);
    font-size: var(--ht-font-size-small);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.ht-page.ht-home-page .ht-home-article-more {
    margin-top: auto;
    color: var(--ht-green);
    font-size: var(--ht-font-size-desc);
    font-weight: var(--ht-font-weight-bold);
}
.ht-page.ht-home-page .ht-home-article-card:hover .ht-home-article-more {
    color: var(--ht-green-dark);
}

/* ---------- video cards ---------- */
.ht-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ht-grid-gap);
}
.ht-video-card { text-decoration: none; color: inherit; display: block; }
.ht-video-thumb {
    position: relative;
    border-radius: var(--ht-radius-card-sm);
    overflow: hidden;
    height: 170px;
}
.ht-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-video-thumb .ht-video-playbtn { width: 46px; height: 46px; }
.ht-video-thumb .ht-video-playbtn:after { border-width: 7px 0 7px 11px; margin-left: 2px; }
.ht-video-lock {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
}
.ht-video-card h4 { margin: 14px 0 6px; font-size: var(--ht-font-size-h4); color: var(--ht-text); }
.ht-video-card p { margin: 0 0 8px; font-size: var(--ht-font-size-small); color: var(--ht-text-soft); }
.ht-video-link { color: var(--ht-green); font-size: var(--ht-font-size-desc); }

/* ---------- goods cards ---------- */
.ht-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ht-grid-gap);
}
.ht-goods-card {
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ht-goods-img { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--ht-bg-soft); }
.ht-goods-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ht-goods-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ht-goods-body h4 { margin: 0 0 6px; font-size: var(--ht-font-size-h4); line-height: 1.4; height: 42px; overflow: hidden; }
.ht-goods-body p { margin: 0 0 10px; font-size: var(--ht-font-size-small); color: var(--ht-text-soft); height: 34px; overflow: hidden; line-height: 1.5; }
.ht-goods-price { color: var(--ht-gold); font-size: 18px; font-weight: var(--ht-font-weight-bold); margin: 0 0 12px; }
.ht-goods-locked { color: var(--ht-text-soft); font-size: var(--ht-font-size-small); margin: 0 0 12px; background: var(--ht-bg-soft); padding: 8px 10px; border-radius: var(--ht-radius-btn-sm); }
/* .ht-btn-detail 移到 common.css 里了（分类页也要用同一个按钮样式，避免两份定义各改各的） */

/* ---------- empty state ---------- */
.ht-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ht-text-soft);
    background: #fff;
    border: 1px dashed var(--ht-border);
    border-radius: var(--ht-radius-card);
    font-size: 14px;
}

/* ---------- steps ---------- */
.ht-steps { display: flex; gap: 18px; }
.ht-step {
    flex: 1;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: var(--ht-radius-card);
    padding: 22px 20px;
    display: flex;
    gap: var(--ht-space-sm);
    align-items: flex-start;
    position: relative;
}
.ht-step-num {
    width: 28px; height: 28px;
    border-radius: var(--ht-radius-circle);
    background: var(--ht-green);
    color: #fff;
    font-size: var(--ht-font-size-desc);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ht-step-icon {
    width: 40px; height: 40px;
    border-radius: var(--ht-radius-circle);
    background: var(--ht-bg-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ht-step-icon svg { width: 18px; height: 18px; }
.ht-step h4 { margin: 0 0 4px; font-size: 14px; }
.ht-step p { margin: 0; font-size: var(--ht-font-size-tiny); color: var(--ht-text-soft); line-height: var(--ht-line-height-body); }
.ht-step-arrow {
    position: absolute;
    right: -18px; top: 50%;
    transform: translateY(-50%);
    color: var(--ht-border);
    font-size: 20px;
    z-index: 2;
}

/* 首页末尾流程模块：压缩标题与步骤之间的无效留白，同时保留 Footer 前的呼吸空间。 */
.ht-page.ht-home-page > .ht-section:last-child {
    padding-top: 40px;
    padding-bottom: 50px;
}
.ht-page.ht-home-page > .ht-section:last-child .ht-section-title {
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .ht-hero-grid { flex-direction: column; }
    .ht-hero-left { flex: 1; }
    .ht-trust-bar { flex-wrap: wrap; }
    .ht-trust-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--ht-border); }
    .ht-category-grid, .ht-video-grid, .ht-goods-grid { grid-template-columns: repeat(2, 1fr); }
    .ht-page.ht-home-page .ht-home-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ht-steps { flex-direction: column; }
    .ht-step-arrow { display: none; }
}
@media (max-width: 640px) {
    .ht-page.ht-home-page .ht-hero-player-start {
        min-width: 44px;
        min-height: 44px;
    }
    .ht-page.ht-home-page .ht-hero-player-detail {
        top: 10px;
        right: 10px;
    }
    .ht-page.ht-home-page .ht-trust-bar {
        margin-top: var(--ht-space-sm);
    }
    .ht-page.ht-home-page .ht-section-title { overflow: hidden; }
    .ht-page.ht-home-page .ht-home-article-grid { grid-template-columns: 1fr; }
    .ht-page.ht-home-page .ht-home-article-body h3,
    .ht-page.ht-home-page .ht-home-article-body p { min-height: 0; }
}
