/* ============================================================
   首页 DIY 模块共享样式 · Premium 视觉体系 v3
   用户端 H5（index.html）与后台装修画布（admin.html）共用，
   保证「后台所见」与「用户端所得」完全一致。

   设计语言（对标当下主流平台）：
   - 浅冷灰底 + 纯白圆角卡片 + 发丝线边框 + 极柔和双层阴影
   - 大面积渐变只保留给核心 CTA（hero / 按钮），其余模块一律浅色
   - 强调色克制：品牌紫为主，玫红/琥珀只做点缀
   ============================================================ */

:root {
    --purple-1: var(--indigo-400);
    --purple-2: var(--v-600);
    --purple-3: var(--brand-3);
    --purple-4: var(--brand-4);
    --purple-5: var(--v-300);
    --ink: var(--n-800);
    --gray-1: var(--n-600);
    --gray-2: var(--n-500);
    --gray-3: var(--n-400);
    --line: var(--n-200);
    --red: var(--s-red-600);
    --green: var(--s-green-600);
    --yellow: var(--s-amber-500);
    --blue: var(--s-blue-600);
    /* Premium 卡片体系 */
    --card-line: rgba(15, 23, 42, .05);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(15, 23, 42, .05);
    --card-shadow-hover: 0 2px 6px rgba(15, 23, 42, .05), 0 14px 34px rgba(15, 23, 42, .09);
    --hs-radius: 20px;
}

/* ============================ 首页 DIY（营销落地页） ============================ */

/**
 * 首页模块容器
 * --hs-gap ：模块之间的默认上下间距（后台「页面设置」可调）
 * --hs-side：内容区左右安全边距（后台「页面设置」可调，单个模块可设「通栏」抵消）
 * 每个 .hs 模块的间距由渲染器按 page.gap 内联输出，因此这里不再使用 flex gap，
 * 保证单模块自定义的 mt/mb 能完全覆盖默认值而不叠加。
 */
.homepage-sections {
    display: flex; flex-direction: column;
    --hs-gap: 12px; --hs-side: 12px;
    /* 负边距抵消 .main 的 12px 内边距，使「通栏」模块能真正贴边，普通模块视觉位置不变 */
    margin-left: calc(-1 * var(--hs-side)); margin-right: calc(-1 * var(--hs-side));
    padding-left: var(--hs-side); padding-right: var(--hs-side);
}
.homepage-sections > .hs:last-child { margin-bottom: 0 !important; }

/* 页脚版权（后台「页面设置」配置） */
.homepage-footer {
    text-align: center; color: var(--gray-3); font-size: 12px; line-height: 1.8;
    padding: 18px 16px 8px;
}

.hs { border-radius: var(--hs-radius); overflow: hidden; box-shadow: var(--card-shadow); }

/* 通用标题 */
.hs-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .2px; }
.hs-sub { font-size: 13px; color: var(--gray-2); margin-top: 4px; }
.hs-para { font-size: 14px; color: var(--gray-1); line-height: 1.7; margin-top: 8px; }

/* 通用按钮 */
.h-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 11px 26px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: var(--c-surface); text-decoration: none; text-align: center; letter-spacing: 1px; transition: .2s;
    background: linear-gradient(135deg, var(--brand-purple), var(--v-600));
    box-shadow: 0 6px 16px rgba(16, 185, 129, .28);
}
.h-btn:active { transform: scale(.97); }
.h-btn-plain {
    background: var(--v-25); color: var(--purple-2); box-shadow: none;
}

/* banner 主视觉（渐变保留给核心转化位） */
.hs-banner {
    position: relative;
    padding: 34px 22px; text-align: center; color: var(--c-surface);
    background: linear-gradient(140deg, var(--brand-deep) 0%, var(--v-600) 58%, var(--s-indigo-600) 100%);
    box-shadow: 0 14px 34px rgba(5, 150, 105, .32);
}
.hs-banner-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hs-banner-sub { font-size: 14px; opacity: .92; margin: 10px 0 20px; line-height: 1.6; }
.hs-banner .h-btn { background: var(--c-surface); color: var(--purple-2); box-shadow: 0 8px 20px rgba(4, 47, 34, .22); }

/* 活动横幅（浅色 · 琥珀点缀） */
.hs-activity {
    display: flex; align-items: center; gap: 14px; padding: 15px 16px;
    background: linear-gradient(135deg, #fffdf7, #fff5e6); border: 1px solid rgba(234, 138, 40, .22);
}
.hs-activity-ico { font-size: 36px; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hs-activity-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.hs-activity-body { flex: 1; min-width: 0; }
.hs-activity-title { font-size: 16px; font-weight: 800; color: #9a4b12; }
.hs-activity-sub { font-size: 12px; color: #b9702c; margin-top: 4px; line-height: 1.5; }
.hs-activity .h-btn {
    background: linear-gradient(135deg, var(--brand-amber), #ea6c0a); box-shadow: 0 6px 14px rgba(234, 108, 10, .28);
    padding: 9px 18px; flex-shrink: 0;
}

/* 测评入口 CTA（渐变主卡） */
.hs-entry {
    padding: 24px 20px; text-align: center; color: var(--c-surface);
    background: linear-gradient(140deg, var(--brand-purple) 0%, var(--v-600) 60%, var(--s-indigo-600) 100%);
    box-shadow: 0 14px 32px rgba(5, 150, 105, .3);
}
.hs-entry-ico { font-size: 40px; margin-bottom: 8px; }
.hs-entry-title { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.hs-entry-sub { font-size: 13px; opacity: .92; margin: 8px 0 18px; }
.hs-entry .h-btn { background: var(--c-surface); color: var(--purple-2); box-shadow: 0 8px 18px rgba(4, 47, 34, .22); }

/* ============================ Hero 主视觉（心力卡牌测评核心入口） ============================ */
.hs-hero {
    position: relative; overflow: hidden; color: var(--c-surface); cursor: pointer;
    padding: 24px 20px 18px;
    background:
        radial-gradient(120% 90% at 88% -10%, rgba(110, 231, 183, .55), transparent 55%),
        radial-gradient(90% 70% at -8% 108%, rgba(56, 189, 248, .18), transparent 55%),
        linear-gradient(140deg, var(--v-900) 0%, var(--brand-purple-deep) 48%, var(--v-600) 100%);
    box-shadow: 0 18px 40px rgba(4, 47, 34, .35);
}
.hs-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 18px 18px; opacity: .5;
}
.hs-hero-badge {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}
.hs-hero-main { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.hs-hero-title { font-size: 24px; font-weight: 900; letter-spacing: .5px; line-height: 1.3; max-width: 72%; }
/* 黄色强调词与标题主体尽量同段换行，避免"心力优势"被拆成孤立一行 */
.hs-hero-title { text-wrap: pretty; }
.hs-hero-em { white-space: nowrap; }
@media (max-width: 380px) {
  .hs-hero-title { max-width: 100%; font-size: 21px; }
  .hs-hero-sub { max-width: 100%; }
  .hs-hero-cards { width: 96px; height: 108px; right: 2px; opacity: .92; }
}
.hs-hero-em {
    font-style: normal;
    background: linear-gradient(120deg, var(--s-amber-200), var(--s-amber-400));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hs-hero-sub { position: relative; font-size: 13px; opacity: .92; margin-top: 9px; line-height: 1.7; max-width: 82%; letter-spacing: .2px; }
.hs-hero-ctas { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hs-hero .h-btn {
    background: var(--c-surface); color: var(--brand-purple-deep); box-shadow: 0 8px 20px rgba(4, 47, 34, .28);
    padding: 11px 24px;
}
.hs-hero-ctas .h-btn-plain {
    background: rgba(255, 255, 255, .13); color: var(--c-surface); box-shadow: none;
    border: 1px solid rgba(255, 255, 255, .3);
}
/* 卡牌扇形装饰 */
.hs-hero-cards { position: absolute; right: 6px; top: 50%; transform: translateY(-58%); width: 118px; height: 128px; pointer-events: none; }
.hs-hero-card {
    position: absolute; width: 62px; height: 88px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--brand-deep);
    background: linear-gradient(160deg, var(--c-surface), var(--v-100));
    box-shadow: 0 10px 22px rgba(4, 47, 34, .35);
    border: 1px solid rgba(255, 255, 255, .6);
}
.hs-hero-card::after {
    content: attr(data-label);
    position: absolute; bottom: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1px; color: var(--s-indigo-600);
}
.hs-hero-card.c1 { left: 0; top: 22px; transform: rotate(-14deg); z-index: 1; }
.hs-hero-card.c2 { left: 30px; top: 4px; transform: rotate(0deg); z-index: 3; }
.hs-hero-card.c3 { left: 58px; top: 26px; transform: rotate(14deg); z-index: 2; }
/* 底部数据条 */
.hs-hero-stats {
    position: relative; display: flex; margin-top: 20px; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.hs-hero-stat { flex: 1; text-align: center; position: relative; }
.hs-hero-stat + .hs-hero-stat::before {
    content: ''; position: absolute; left: 0; top: 15%; height: 70%;
    border-left: 1px solid rgba(255, 255, 255, .16);
}
.hs-hero-stat b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hs-hero-stat b i { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 1px; opacity: .85; }
.hs-hero-stat span { display: block; font-size: 10.5px; opacity: .72; margin-top: 2px; letter-spacing: .5px; }

/* 品牌介绍卖点 */
.hs-intro { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.hs-intro-item {
    padding: 14px 12px; border-radius: 16px; background: #f7f5ff; border: 1px solid rgba(16, 185, 129, .12);
    display: flex; flex-direction: column; gap: 4px;
}
.hs-intro-item b { font-size: 15px; color: var(--brand-purple-deep); }
.hs-intro-item span { font-size: 12px; color: var(--gray-2); line-height: 1.5; }

/* 会员套餐模块 */
.hs-plans { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); text-align: center; }
.hs-plans .hs-title, .hs-plans .hs-sub { text-align: left; }
.hs-plan-row { display: flex; gap: 8px; margin: 14px 0 16px; overflow-x: auto; padding-bottom: 4px; }
.hs-plan-chip {
    flex: 0 0 auto; min-width: 78px; padding: 12px 14px; border-radius: 16px; text-align: center;
    background: #f7f5ff; border: 1px solid rgba(16, 185, 129, .16);
    display: flex; flex-direction: column; gap: 4px;
}
.hs-plan-chip.hot { background: linear-gradient(135deg, #f4f0ff, #e9e2ff); border-color: rgba(16, 185, 129, .4); }
.hs-plan-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.hs-plan-price { font-size: 15px; font-weight: 800; color: var(--brand-rose); }

/* ---------- 服务者名片卡（在线咨询师 / 在线倾听师共用，横向滑动） ---------- */
.hs-consultants, .hs-listeners {
    padding: 16px 0 15px; background: var(--c-surface); border: 1px solid var(--card-line);
}
.hs-consultants .hs-title, .hs-consultants .hs-sub,
.hs-listeners .hs-title, .hs-listeners .hs-sub { text-align: left; }

/* 标题行：左「标题+副标」/ 右「全部 ›」——两栏，标题组必须整体包在 .hs-sec-head-l 内 */
.hs-sec-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 0 16px;
}
.hs-sec-head-l { flex: 1 1 auto; min-width: 0; position: relative; padding-left: 10px; }
.hs-sec-head-l::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--v-600), var(--brand-4));
}
.hs-listeners .hs-sec-head-l::before { background: linear-gradient(180deg, var(--s-sky-500), #67e8f9); }
.hs-sec-head-l .hs-sub { margin-top: 3px; }

.hs-sec-more {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 1px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--purple-2);
    background: var(--v-50); transition: opacity .15s;
}
.hs-sec-more:active { opacity: .6; }
.hs-sec-more i { font-style: normal; font-size: 14px; line-height: 1; }
.hs-listeners .hs-sec-more { color: var(--s-sky-700); background: var(--s-sky-100); }

/* 横滑区 + 底部进度条 */
.hs-staff-wrap { margin-top: 13px; }
.hs-staff-scroll {
    display: flex; gap: 12px; padding: 4px 16px 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hs-staff-scroll::-webkit-scrollbar { display: none; }

/* 可拖动的横向进度条 */
.hs-staff-bar {
    position: relative; height: 4px; margin: 2px 16px 0;
    border-radius: 999px; background: #f0edfa;
    touch-action: none; cursor: pointer;
}
.hs-staff-bar i {
    position: absolute; left: 0; top: 0; height: 4px; width: 40px;
    border-radius: 999px; background: linear-gradient(90deg, var(--v-600), var(--brand-4));
    transition: transform .12s linear;
}
.hs-staff-bar.on i { transition: none; }
.hs-staff-bar.on { background: #e6e0f8; }
.hs-listeners .hs-staff-bar { background: var(--s-sky-100); }
.hs-listeners .hs-staff-bar i { background: linear-gradient(90deg, var(--s-sky-500), #22d3ee); }
.hs-listeners .hs-staff-bar.on { background: #cbe9fb; }

.hs-staff-card {
    scroll-snap-align: start; flex: 0 0 auto; width: 150px;
    display: flex; flex-direction: column; align-items: center;
    padding: 15px 12px 12px; border-radius: 18px;
    background: linear-gradient(180deg, #fbfaff 0%, var(--c-surface) 62%);
    border: 1px solid var(--card-line);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .15s, box-shadow .15s;
}
.hs-staff-card:active { transform: scale(.97); }
.hs-staff-top { position: relative; }
.hs-staff-avatar {
    position: relative; width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--v-100), var(--v-200));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; line-height: 1; overflow: hidden;
    box-shadow: 0 0 0 3px var(--c-surface), 0 4px 12px rgba(16, 185, 129, .16);
}
.hs-staff-avatar.online::after {
    content: ''; position: absolute; right: 1px; bottom: 3px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--s-green-500); border: 2px solid var(--c-surface);
}
/* 图片头像铺满圆形裁剪；emoji 头像（span）交由父级 flex 居中 */
.hs-staff-avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
span.hs-staff-avatar-img { width: auto; height: auto; display: flex; align-items: center; justify-content: center; }
.hs-staff-level {
    position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
    padding: 2px 7px; border-radius: 8px; white-space: nowrap;
    font-size: 9px; font-weight: 700; color: var(--c-surface);
    background: linear-gradient(135deg, var(--v-600), var(--brand-4));
    box-shadow: 0 2px 6px rgba(16, 185, 129, .3);
}
.hs-staff-name {
    margin-top: 11px; max-width: 100%; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-staff-title {
    max-width: 100%; font-size: 11px; color: var(--gray-2); line-height: 1.35; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-staff-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hs-staff-tags i {
    font-style: normal; font-size: 10px; line-height: 1.4; padding: 2px 6px; border-radius: 6px;
    color: var(--purple-2); background: #f3efff;
}
.hs-staff-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; color: var(--gray-2); }
.hs-staff-rate { color: var(--s-amber-500); font-weight: 700; }
.hs-staff-price { color: var(--brand-rose); font-weight: 700; }
.hs-staff-btn {
    margin-top: 8px; width: 100%; padding: 6px 0; border-radius: 12px;
    text-align: center; font-size: 12px; font-weight: 700; color: var(--c-surface);
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
}
/* 倾听师：青蓝配色区分 */
.hs-staff-card.is-listener .hs-staff-avatar { background: linear-gradient(135deg, var(--s-sky-100), #bae6fd); }
.hs-staff-card.is-listener .hs-staff-tags i { color: var(--s-sky-700); background: var(--s-sky-100); }
.hs-staff-card.is-listener .hs-staff-btn { background: linear-gradient(135deg, var(--s-sky-500), #06b6d4); }

/* 家长评价 */
.hs-testimonials { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-testimonial-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hs-testimonial-item { padding: 14px; border-radius: 16px; background: var(--n-50); border: 1px solid var(--card-line); }
.hs-testimonial-item p { font-size: 13px; color: var(--gray-1); line-height: 1.7; }
.hs-testimonial-item span { display: block; margin-top: 8px; font-size: 12px; color: var(--gray-3); }

/* 联系我们 */
.hs-contact { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.hs-contact-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-1); }
.hs-contact-ico { font-size: 18px; }
.hs-contact-row a { color: var(--purple-2); font-weight: 700; text-decoration: none; }
.hs-copy { padding: 4px 12px; border-radius: 999px; background: var(--brand-purple-soft); color: var(--purple-2); font-size: 12px; font-weight: 700; }

/* 兑换码入口 */
.hs-redeem { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-redeem-box { display: flex; gap: 8px; margin-top: 14px; }
.hs-redeem-input {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: 12px; font-size: 14px; outline: none; background: var(--n-50); color: var(--gray-1);
}
.hs-redeem-input:focus { border-color: var(--purple-3); background: var(--c-surface); }
.hs-redeem-btn {
    padding: 12px 18px; border: none; border-radius: 12px; cursor: pointer; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-purple), var(--v-600));
    color: var(--c-surface); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.hs-redeem-btn:active { opacity: .85; }
.hs-redeem-tip { margin-top: 10px; font-size: 12px; color: var(--gray-2); line-height: 1.6; }

/* 纯文本 */
.hs-text { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }

/* 图片 */
.hs-image { padding: 0; }
.hs-image img { width: 100%; display: block; }
.hs-image-cap { padding: 10px; font-size: 13px; color: var(--gray-2); text-align: center; background: var(--c-surface); }

/* 分割线 */
.hs-divider { height: 0; background: transparent; border-top: 1px solid var(--line); border-radius: 0; }

/* ============================ 首页 DIY · 新增组件 ============================ */

/* 通用小按钮 / 占位提示 */
.h-btn-sm { padding: 8px 16px; font-size: 13px; }
.h-btn-static { box-shadow: none; opacity: .95; }
.dim { color: var(--gray-3, var(--n-400)); }
.hs-empty-mod {
    padding: 18px; background: var(--c-surface); border: 1px dashed var(--line);
    font-size: 13px; color: var(--n-400); text-align: center;
}
.hs-slider-ph {
    display: flex; align-items: center; justify-content: center; min-height: 90px;
    background: repeating-linear-gradient(45deg, var(--n-50), var(--n-50) 10px, var(--n-100) 10px, var(--n-100) 20px);
    color: var(--n-400); font-size: 13px; text-align: center; padding: 12px; line-height: 1.6;
}

/* ---------- 顶部品牌搜索栏（首页最顶部，DIY 可增删 / 显隐） ---------- */
.hs-topbar {
    /* 全部外观走 CSS 变量：渲染器按 DIY 配置以内联方式覆盖，未配置时用下方主题默认值 */
    --hs-tb-c1: var(--v-900);              /* 渐变起点 */
    --hs-tb-c2: var(--v-600);              /* 渐变终点 */
    --hs-tb-ink: var(--c-surface);             /* 前景色（品牌名 / 搜索文字 / 图标） */
    --hs-tb-glass: rgba(255, 255, 255, .16);        /* 搜索框玻璃底 */
    --hs-tb-glass-hi: rgba(255, 255, 255, .26);     /* 聚焦时的玻璃底 */
    --hs-tb-ring: rgba(255, 255, 255, .5);          /* 聚焦时的描边 */
    --hs-tb-r: 999px;                 /* 圆角 */
    --hs-tb-mx: 12px;                 /* 左右安全边距 */
    --hs-tb-my: 8px;                  /* 上下安全边距 */
    --hs-tb-pad: 7px 14px;            /* 胶囊内边距 */
    --hs-tb-logo-r: 9px;              /* Logo 圆角（50% 即圆形） */
    position: relative; overflow: visible; background: transparent;
    padding: var(--hs-tb-my) var(--hs-tb-mx);
}
/* 自定义了非白前景色时，玻璃底 / 描边自动跟随（支持 color-mix 的现代浏览器） */
@supports (color: color-mix(in srgb, var(--c-surface) 10%, transparent)) {
    .hs-topbar {
        --hs-tb-glass: color-mix(in srgb, var(--hs-tb-ink) 15%, transparent);
        --hs-tb-glass-hi: color-mix(in srgb, var(--hs-tb-ink) 26%, transparent);
        --hs-tb-ring: color-mix(in srgb, var(--hs-tb-ink) 48%, transparent);
    }
}
/* 形状预设：椭圆胶囊（默认）/ 圆角 / 直角通栏 */
.hs-topbar.is-rounded { --hs-tb-r: 20px; --hs-tb-pad: 9px 12px; }
.hs-topbar.is-square { --hs-tb-r: 0px; --hs-tb-mx: 0px; --hs-tb-my: 0px; --hs-tb-pad: 10px 14px; }

.hs-topbar-bar {
    position: relative; z-index: 2; overflow: hidden;
    display: flex; align-items: center; gap: 10px;
    padding: var(--hs-tb-pad);
    border-radius: var(--hs-tb-r);
    background: linear-gradient(118deg, var(--hs-tb-c1) 0%, var(--hs-tb-c2) 100%);
    box-shadow:
        0 6px 22px rgba(4, 47, 34, .18),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}
/* 左上柔光，避免大面积纯色发闷 */
.hs-topbar-bar::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 150% at 8% -50%, rgba(255, 255, 255, .24), transparent 62%);
}

.hs-topbar-left {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0;
}
/* 容器基类：不固定尺寸，仅保证不被压缩 */
.hs-topbar-logo { flex-shrink: 0; line-height: 0; }
/* 文字 / emoji 品牌徽标：玻璃圆角方块（默认与无图时） */
.hs-topbar-logo-def {
    width: 30px; height: 30px; border-radius: var(--hs-tb-logo-r);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: var(--hs-tb-glass); color: var(--hs-tb-ink); font-weight: 800; font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
}
/* 上传的图片 Logo：保留原始比例，绝不裁切；宽标自动缩放、限高 30px、限宽 128px */
.hs-topbar-logo-img {
    max-height: 30px; max-width: 128px; width: auto; height: auto;
    object-fit: contain; display: block; border: 0; background: transparent;
    border-radius: var(--hs-tb-logo-r);
}
.hs-topbar-brand {
    position: relative;
    display: flex; flex-direction: column; line-height: 1.22; min-width: 0; white-space: nowrap;
    /* 固定上限：之前的 46% 相对「宽度由内容自适应的父级」解析，循环计算后偏小，
       叠加 overflow:hidden 会把副标题末字硬截掉；改固定值让副标题完整展示 */
    max-width: 150px; overflow: hidden;
    color: var(--hs-tb-ink); font-size: 15.5px; font-weight: 800; letter-spacing: .6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.hs-topbar-brand i {
    font-style: normal; font-size: 12px; font-weight: 500;
    opacity: .8; margin-top: 3px; letter-spacing: 2.2px; margin-right: -2.2px;
    transform: scale(.84); transform-origin: 0 50%;
    white-space: nowrap;
}

/* 搜索框：占据剩余宽度，是顶栏的视觉主体
   ------------------------------------------------------------
   设计要点（对标头部大厂 App 搜索栏）：
     ① 一体化 —— 输入框自身完全透明，所有视觉由外层胶囊承担，
        彻底消除「双层圆角 / 双层边框」打架；
     ② 层次 —— 胶囊内凹（顶部暗、底部亮）+ 描边 + 外投影，
        让搜索条「嵌进」品牌栏而非浮在表面；
     ③ 克制 —— 高度 38px、字号 14px，图标 16px，
        在 12~20px 的移动端字号带内保持精致不笨重；
     ④ 四态 —— 默认 / 悬停 / 聚焦 / 输入中，各有明确但不喧哗的反馈。
   ------------------------------------------------------------ */
.hs-topbar-search {
    position: relative; z-index: 1; flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 6px 0 13px;
    border-radius: 999px;
    background: var(--hs-tb-glass);
    /* 内凹：顶部压暗模拟凹陷，底部亮边模拟受光 */
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, .10),
        inset 0 -1px 0 rgba(255, 255, 255, .18),
        inset 0 0 0 1px var(--hs-tb-ring),
        0 1px 3px rgba(4, 47, 34, .10);
    transition: background .2s cubic-bezier(.16, 1, .3, 1),
                box-shadow .2s cubic-bezier(.16, 1, .3, 1),
                transform .2s cubic-bezier(.16, 1, .3, 1);
}

/* —— 态 1：悬停 —— 玻璃底轻微提亮 + 描边加强 */
.hs-topbar-search:hover {
    background: var(--hs-tb-glass-hi);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, .10),
        inset 0 -1px 0 rgba(255, 255, 255, .2),
        inset 0 0 0 1px var(--hs-tb-ring),
        0 2px 8px rgba(4, 47, 34, .14);
}

/* —— 态 2 / 3：聚焦 + 搜索中（.searching 由 JS 切换）——
   两态视觉统一，用外发光圈表达"正在与你互动" */
.hs-topbar-search:focus-within,
.hs-topbar.searching .hs-topbar-search {
    background: var(--hs-tb-glass-hi);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        inset 0 0 0 1px var(--hs-tb-ring),
        0 0 0 3px rgba(255, 255, 255, .10),
        0 4px 16px rgba(4, 47, 34, .18);
    transform: scale(1.006);
}

/* 放大镜图标：聚焦时微微放大并提亮，形成"响应"感 */
.hs-topbar-search-ico {
    display: flex; flex-shrink: 0; color: var(--hs-tb-ink); opacity: .82;
    transition: opacity .2s cubic-bezier(.16, 1, .3, 1),
                transform .24s cubic-bezier(.34, 1.42, .64, 1);
}
.hs-topbar-search-ico svg { width: 16px; height: 16px; display: block; }
.hs-topbar-search:focus-within .hs-topbar-search-ico,
.hs-topbar.searching .hs-topbar-search-ico {
    opacity: 1;
    transform: scale(1.12);
}

/* 输入框本体：完全透明无框（app-polish.css 已加 !important 兜底排除） */
.hs-topbar-input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: none; background: transparent;
    box-shadow: none; -webkit-appearance: none; appearance: none;
    color: var(--hs-tb-ink); font-size: 14px; font-family: inherit;
    letter-spacing: .2px;
}
.hs-topbar-input::placeholder { color: var(--hs-tb-ink); opacity: .7; }
.hs-topbar-input::-webkit-search-cancel-button { display: none; }
.hs-topbar-input::-webkit-search-decoration { display: none; }

/* 清空按钮：轻量圆形，仅在有输入时出现（JS 控制 hidden） */
.hs-topbar-clear {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; color: var(--hs-tb-ink); opacity: .82;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
    transition: opacity .18s linear, background-color .18s linear,
                transform .2s cubic-bezier(.34, 1.42, .64, 1);
}
.hs-topbar-clear:hover {
    opacity: 1; background: rgba(255, 255, 255, .32); transform: scale(1.1);
}
.hs-topbar-clear:active { transform: scale(.94); }
.hs-topbar-clear[hidden] { display: none; }

/* 搜索下拉面板：与 bar 左右对齐（跟随形状的安全边距） */
.hs-topbar-panel {
    position: absolute; left: var(--hs-tb-mx); right: var(--hs-tb-mx); z-index: 60;
    top: calc(100% - var(--hs-tb-my) + 2px); padding: 0;
}
.hs-topbar-panel[hidden] { display: none; }
.hs-topbar-panel-inner {
    background: var(--c-surface); border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    max-height: 54vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.hs-topbar-hot { padding: 12px 14px 10px; }
.hs-topbar-hot[hidden] { display: none; }
.hs-topbar-hot b { display: block; font-size: 11px; font-weight: 600; color: var(--gray-3); }
.hs-topbar-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hs-topbar-words span {
    padding: 5px 10px; border-radius: 999px; cursor: pointer;
    font-size: 12px; color: var(--purple-2); background: var(--v-50);
}
.hs-topbar-words span:active { background: var(--v-100); }
.hs-topbar-results:empty { display: none; }

/* 搜索结果项 */
.hs-res-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--card-line); cursor: pointer;
}
.hs-res-item:active { background: var(--warm-50); }
.hs-res-avatar {
    position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, var(--v-100), var(--v-200));
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.hs-res-avatar.online::after {
    content: ''; position: absolute; right: 0; bottom: 2px;
    width: 9px; height: 9px; border-radius: 50%; background: var(--s-green-500); border: 2px solid var(--c-surface);
}
.hs-res-avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
span.hs-res-avatar-img { width: auto; height: auto; display: flex; align-items: center; justify-content: center; }
.hs-res-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-res-main b { font-size: 14px; font-weight: 700; color: var(--ink); }
.hs-res-main i {
    font-style: normal; font-size: 11.5px; color: var(--gray-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-res-tag { flex-shrink: 0; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.hs-res-tag.is-c { color: var(--v-700); background: var(--brand-purple-soft); }
.hs-res-tag.is-l { color: var(--s-sky-700); background: var(--s-sky-100); }
.hs-res-empty {
    padding: 22px 14px; text-align: center;
    font-size: 12.5px; color: var(--gray-3); border-top: 1px solid var(--card-line);
}
/* 窄屏优先保证搜索框宽度：先收窄品牌区、再隐藏副标题 */
@media (max-width: 374px) {
    .hs-topbar-bar { gap: 8px; padding: 9px 12px; }
    .hs-topbar-brand i { display: none; }
    .hs-topbar-logo.hs-topbar-logo-def { width: 28px; height: 28px; }
    /* 极窄屏：搜索框优先，保证可点区域 */
    .hs-topbar-search { height: 34px; padding-left: 11px; gap: 6px; }
    .hs-topbar-input { font-size: 13px; }
    .hs-topbar-search-ico svg { width: 15px; height: 15px; }
}

/* ---------- 搜索框响应式：平板/桌面适度放大，提升高级感 ---------- */
@media (min-width: 768px) {
    .hs-topbar-search { height: 40px; padding-left: 15px; gap: 9px; }
    .hs-topbar-input { font-size: 14.5px; }
    .hs-topbar-search-ico svg { width: 17px; height: 17px; }
    .hs-topbar-clear { width: 21px; height: 21px; }
}
@media (min-width: 1024px) {
    .hs-topbar-search { max-width: 460px; }   /* 桌面端不过度拉伸，保持比例 */
    .hs-topbar-input { font-size: 15px; }
}

/* ---------- iOS Safari 聚焦防整页缩放 ----------
   iOS 对字号 < 16px 的输入框会自动放大页面，
   仅在窄屏提升字号，桌面端保持 14~15px 的精致比例。 */
@media (max-width: 767px) {
    .hs-topbar-input { font-size: 16px; letter-spacing: 0; }
}

/* ---------- 幻灯片轮播 ---------- */
.hs-slider { position: relative; overflow: hidden; background: var(--n-200); }
.hs-slider-track { position: relative; width: 100%; }
.hs-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
    pointer-events: none; display: block;
}
.hs-slide.on { opacity: 1; pointer-events: auto; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-slide-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--v-100), var(--brand-5)); }
.hs-slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); color: var(--c-surface); text-align: left;
}
.hs-slide-cap b { display: block; font-size: 16px; font-weight: 800; }
.hs-slide-cap span { display: block; font-size: 12px; opacity: .9; margin-top: 3px; }
.hs-slider-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 5px; z-index: 3; }
.hs-slider-dots i {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
    cursor: pointer; transition: .2s;
}
.hs-slider-dots i.on { background: var(--c-surface); width: 14px; border-radius: 3px; }

/* ---------- 通知公告 ---------- */
.hs-notice {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    background: var(--c-surface); border: 1px solid var(--card-line); border-radius: 14px;
}
.hs-notice-ico { font-size: 16px; flex-shrink: 0; }
.hs-notice-body { flex: 1; min-width: 0; height: 20px; position: relative; overflow: hidden; }
.hs-notice-line {
    position: absolute; inset: 0; line-height: 20px; font-size: 13px; color: var(--gray-1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(100%); transition: .45s ease;
}
.hs-notice-line.on { opacity: 1; transform: translateY(0); }
.hs-notice-more { font-size: 12px; color: var(--purple-2); font-weight: 700; flex-shrink: 0; }

/* ---------- 分类导航（金刚区） ---------- */
.hs-nav { padding: 16px 12px 14px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-nav-grid { display: grid; gap: 14px 4px; margin-top: 12px; }
.hs-nav-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hs-nav-ico {
    position: relative;
    width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-purple-soft), #e4ddff);
    display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1;
    overflow: hidden; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 12px rgba(16,185,129,.12);
    transition: transform .15s;
}
.hs-nav-item:active .hs-nav-ico { transform: scale(.92); }
.hs-nav-ico.round { border-radius: 50%; }
/* 图标容器定位基准（用于未开通会员角标） */
.hs-nav-ico { position: relative; }
/* 会员未开通高亮引导：指向会员/优惠券等动作的导航项，对未开通会员显示角标 + 红环 */
.hs-nav-lock {
    position: absolute; top: -6px; right: -8px;
    background: linear-gradient(135deg, var(--s-red-500), var(--brand-orange));
    color: var(--c-surface); font-size: 9px; font-weight: 700; font-style: normal; line-height: 1;
    padding: 2px 4px; border-radius: 8px; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(239, 68, 68, .4);
    pointer-events: none;
}
.hs-nav-need .hs-nav-ico { box-shadow: 0 0 0 2px rgba(239, 68, 68, .35); }
.hs-nav-need .hs-nav-text { color: var(--red); }
/* 图标内容分三类，三种形态都铺满同一个图标块，视觉等重（「满图标」）：
   ① 内置矢量图标 <svg class="hs-nav-svg"> → 按容器百分比放大；配了底色则反白 + 投影
   ② 自定义上传图片 <img class="hs-nav-img"> → 铺满裁切（圆角跟随容器）
   ③ emoji <span class="hs-nav-img"> → 绝不能再套 width/height:100%，否则 emoji 贴左上偏移，
      必须由父级 flex 居中（同 .hs-consultant-img / .hs-listener-img），字号加大到与图标等重 */
.hs-nav-svg {
    width: 62%; height: 62%; display: block;
    color: var(--purple-3, var(--v-600));
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .10));
}
.hs-nav-ico.has-bg .hs-nav-svg {
    color: var(--c-surface);
    stroke-width: 1.9;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .32));
}
.hs-nav-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: inherit; }
span.hs-nav-img {
    width: auto; height: auto;
    font-size: 30px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
.hs-nav-text { font-size: 12px; color: var(--gray-1); font-weight: 600; text-align: center; }
.hs-nav-desc { font-size: 10px; color: var(--gray-2); text-align: center; margin-top: -3px; }

/* 会员专享角标（与「未开通引导」区分：专享用 🔒 红环，引导用 ⚡） */
.hs-nav-vip .hs-nav-ico { box-shadow: 0 0 0 2px var(--s-red-500); }
.hs-nav-vip .hs-nav-text { color: var(--s-red-500); }
.hs-nav-vip-badge {
  position: absolute; top: -7px; right: -7px; z-index: 2;
  background: var(--s-red-500); color: var(--c-surface); font-size: 9px; font-weight: 700; font-style: normal;
  padding: 2px 5px; border-radius: 10px; line-height: 1; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

/* 多页横向滑动（rows > 0 时启用） */
.hs-nav-scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hs-nav-scroll::-webkit-scrollbar { display: none; }
.hs-nav-page { flex: 0 0 100%; scroll-snap-align: start; }
.hs-nav-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.hs-nav-dots i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--line);
    transition: .2s; display: block;
}
.hs-nav-dots i.on { background: var(--purple-3); width: 16px; border-radius: 3px; }

/* ---------- 倒计时活动 ---------- */
.hs-countdown {
    display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--c-surface);
    background: linear-gradient(135deg, var(--brand-amber), #ea580c);
    box-shadow: 0 12px 28px rgba(234, 108, 10, .28);
}
.hs-cd-left { flex: 1; min-width: 0; }
.hs-cd-title { font-size: 17px; font-weight: 800; }
.hs-cd-sub { font-size: 12px; opacity: .92; margin: 4px 0 10px; }
.hs-cd-timer { display: flex; gap: 6px; }
.hs-cd-unit {
    background: rgba(0,0,0,.24); border-radius: 8px; padding: 5px 8px;
    font-size: 11px; display: flex; align-items: center; gap: 1px;
}
.hs-cd-unit b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hs-cd-empty {
    font-size: 12px; opacity: .85; background: rgba(0,0,0,.18);
    border-radius: 8px; padding: 7px 10px; display: inline-block;
}
.hs-countdown .h-btn { background: var(--c-surface); color: var(--s-red-600); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* ---------- 优惠券 ---------- */
.hs-coupon { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-coupon-row { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.hs-coupon-card {
    flex: 0 0 auto; min-width: 108px; padding: 12px 14px; border-radius: 16px; text-align: center;
    background: linear-gradient(135deg, #fff5f6, #ffe9ec); border: 1.5px dashed #fca5af;
}
.hs-coupon-price { font-size: 24px; font-weight: 800; color: var(--brand-rose); line-height: 1.1; }
.hs-coupon-price i { font-size: 13px; font-style: normal; margin-right: 1px; }
.hs-coupon-cond { font-size: 11px; color: #9f1239; margin-top: 3px; }
.hs-coupon-name { font-size: 13px; font-weight: 700; color: #881337; margin-top: 6px; }
.hs-coupon-desc { font-size: 11px; color: #be123c; opacity: .8; margin-top: 2px; }

/* ---------- 常见问题 FAQ ---------- */
.hs-faq { padding: 16px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-faq-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hs-faq-item { border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; background: var(--c-surface); }
.hs-faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.hs-faq-arrow { font-style: normal; color: var(--gray-3); transition: transform .2s; font-size: 16px; }
.hs-faq-item.open .hs-faq-arrow { transform: rotate(90deg); }
.hs-faq-a {
    display: none; padding: 0 14px 13px; font-size: 13px; color: var(--gray-1); line-height: 1.75;
}
.hs-faq-item.open .hs-faq-a { display: block; }

/* ---------- 数据统计 ---------- */
.hs-stats { padding: 18px 16px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-stats-grid { display: grid; gap: 12px; margin-top: 14px; text-align: center; }
.hs-stats-item { display: flex; flex-direction: column; gap: 3px; position: relative; }
.hs-stats-grid > .hs-stats-item + .hs-stats-item::before {
    content: ''; position: absolute; left: -6px; top: 18%; height: 64%;
    border-left: 1px solid var(--line);
}
.hs-stats-num { font-size: 22px; font-weight: 800; color: var(--brand-purple-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-stats-num i { font-size: 12px; font-style: normal; margin-left: 1px; }
.hs-stats-item span { font-size: 12px; color: var(--gray-2); }

/* ---------- 视频 ---------- */
.hs-video { padding: 16px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-video-box { width: 100%; margin-top: 12px; border-radius: 14px; display: block; background: var(--n-900); }
.hs-video-box video, .hs-video-box iframe { width: 100%; border-radius: 14px; display: block; border: none; }
.hs-video-box iframe { aspect-ratio: 16 / 9; height: auto; min-height: 180px; }
.hs-video-ph {
    height: 180px; background-size: cover; background-position: center; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.hs-video-play {
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center; color: var(--v-600); font-size: 20px;
}

/* ---------- 空白间隔 ---------- */
.hs-blank { border-radius: 0; }

/* ---------- 卖点图标 / 评价头像（兼容新结构） ---------- */
.hs-intro-ico { font-size: 20px; margin-bottom: 2px; }
.hs-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hs-testi-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: var(--brand-purple-soft);
    display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.hs-testi-name { font-size: 12px; color: var(--gray-3); font-weight: 700; }
.hs-testimonial-item span { display: inline; margin-top: 0; }
.hs-testimonial-item p { margin-top: 2px; }

/* ---------- Banner 背景图 ---------- */
.hs-banner-bg { position: absolute; inset: 0; opacity: .28; }
.hs-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.hs-banner-bg span { position: absolute; right: 14px; bottom: 8px; font-size: 72px; opacity: .5; }
.hs-banner { position: relative; }
.hs-banner-body { position: relative; z-index: 2; }

/* ============================ 双服务入口（倾诉 vs 咨询） ============================ */
.hs-service-entry { background: transparent; box-shadow: none; }
.hs-se-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hs-se-card { position: relative; overflow: hidden; padding: 16px 14px; border-radius: 18px; color: var(--c-surface); cursor: pointer; transition: .15s; }
.hs-se-card:active { transform: scale(.98); }
.hs-se-card::after {
    content: ''; position: absolute; right: -22px; bottom: -26px; width: 92px; height: 92px;
    border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none;
}
.hs-se-listen { background: linear-gradient(140deg, #0c9d77 0%, var(--indigo-500) 100%); box-shadow: 0 10px 24px rgba(15, 157, 118, .28); }
.hs-se-consult { background: linear-gradient(140deg, var(--brand-purple) 0%, var(--brand-3) 100%); box-shadow: 0 10px 24px rgba(16, 185, 129, .28); }
.hs-se-top { position: relative; display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 800; }
.hs-se-ico { font-size: 22px; }
.hs-se-desc { position: relative; font-size: 12px; opacity: .92; margin-top: 8px; line-height: 1.5; }
.hs-se-meta { position: relative; display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }

/* ============================ 在线倾听师 ============================ */
/* 卡片与咨询师共用 .hs-staff-card；差异集中在青蓝配色（竖条 / 更多胶囊 / 进度条 / 标签 / 按钮） */

/* ============================ 心情日记（首页留存模块） ============================ */
.hs-mood { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-mood-head { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hs-mood-today {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 16px; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-purple-soft), #e4ddff);
}
.hs-mood-tip { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-mood-tip b { font-size: 15px; font-weight: 800; color: var(--ink); }
.hs-mood-tip span { font-size: 12px; color: var(--gray-2); line-height: 1.4; }
.hs-mood-chart { margin: 16px 0 6px; }
.hs-mood-svg { display: block; width: 100%; height: 76px; }
.hs-mood-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.hs-mood-axis span { font-size: 10px; color: var(--gray-3); }
.hs-mood-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hs-mood-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 14px; background: var(--n-50); border: 1px solid var(--card-line);
}
.hs-mood-emoji { font-size: 20px; flex-shrink: 0; }
.hs-mood-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-mood-main b { font-size: 13px; font-weight: 700; color: var(--ink); }
.hs-mood-main span { font-size: 12px; color: var(--gray-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-mood-score { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--brand-purple-deep); }

/* ============================ 限时特惠（浅色卡 · 玫红点缀） ============================ */
.hs-flash {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; color: #9f1239; cursor: pointer;
    background: linear-gradient(120deg, #fff5f6 0%, #fff8f0 100%);
    border: 1px solid rgba(225, 29, 72, .16);
    box-shadow: 0 6px 18px rgba(225, 29, 72, .08);
}
.hs-flash-bg {
    position: absolute; top: -30px; right: -30px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(225, 29, 72, .08), transparent 60%); pointer-events: none;
}
.hs-flash-ico {
    position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: linear-gradient(135deg, var(--c-danger), var(--brand-amber));
    box-shadow: 0 6px 14px rgba(244, 63, 94, .3);
}
.hs-flash-info { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-flash-title { font-size: 14px; font-weight: 800; color: #be123c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-flash-sub { font-size: 11.5px; color: #c2607a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-flash-timer, .hs-flash-badge {
    position: relative; flex-shrink: 0; font-size: 12px; font-weight: 800;
    padding: 6px 10px; border-radius: 999px; color: var(--c-surface);
    background: linear-gradient(135deg, var(--c-danger), var(--brand-amber));
    box-shadow: 0 4px 10px rgba(244, 63, 94, .28); font-variant-numeric: tabular-nums;
}
.hs-flash-badge { background: var(--c-surface); color: var(--brand-rose); border: 1px solid rgba(225, 29, 72, .3); box-shadow: none; }

/* ============================ 会员日（浅金卡 · 琥珀点缀） ============================ */
.hs-memberday {
    position: relative; overflow: hidden; padding: 15px 16px; color: #78350f; cursor: pointer;
    background: linear-gradient(120deg, #fffaf0 0%, #fff3d6 55%, #ffe9c2 100%);
    border: 1px solid rgba(217, 119, 6, .2);
    box-shadow: 0 8px 22px rgba(217, 119, 6, .1);
}
.hs-memberday::after {
    content: ''; position: absolute; top: -50px; right: -30px; width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(245, 158, 11, .14), transparent 60%); pointer-events: none;
}
/* 会员日顶部装饰高光（与渲染器 .hs-md-bg 配套，位于标题之上、不遮挡内容） */
.hs-md-bg {
    position: absolute; top: -36px; right: -22px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, .16), transparent 62%);
    pointer-events: none;
}
.hs-md-top { position: relative; display: flex; align-items: center; gap: 8px; }
.hs-md-emoji { font-size: 22px; }
.hs-md-title { font-size: 15.5px; font-weight: 800; color: var(--s-amber-800); }
.hs-md-sub { position: relative; font-size: 11.5px; color: var(--s-yellow-700); margin-top: 5px; line-height: 1.5; }
.hs-md-benefits { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hs-md-benefit {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .75); border: 1px solid rgba(217, 119, 6, .22); color: var(--s-amber-800);
}
.hs-md-action {
    position: relative; margin-top: 11px; padding: 8px 16px; border: none; border-radius: 999px;
    font-size: 13px; font-weight: 800; color: var(--c-surface); cursor: pointer;
    background: linear-gradient(135deg, var(--brand-amber), #ea580c);
    box-shadow: 0 6px 14px rgba(234, 108, 10, .3);
}
.hs-md-action:disabled { opacity: .55; cursor: default; }

/* ============================ 情绪急救箱（首页心理自助模块） ============================ */
.hs-firstaid {
    position: relative; display: block; overflow: hidden; text-decoration: none; cursor: pointer;
    padding: 16px 16px 14px; color: var(--c-surface);
    background: linear-gradient(135deg, var(--s-sky-500) 0%, var(--indigo-500) 100%);
    box-shadow: 0 10px 26px rgba(20, 184, 166, .22);
    transition: transform .15s ease, box-shadow .15s ease;
}
.hs-firstaid:active { transform: scale(.985); }
.hs-firstaid::after {
    content: ''; position: absolute; top: -40px; right: -30px; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%); pointer-events: none;
}
.hs-firstaid-inner { position: relative; display: flex; align-items: center; gap: 12px; }
.hs-firstaid-ico {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; font-size: 24px;
    background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center;
}
.hs-firstaid-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hs-firstaid-body { flex: 1; min-width: 0; }
.hs-firstaid-title { font-size: 16px; font-weight: 800; display: block; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.hs-firstaid-sub { font-size: 11.5px; opacity: .92; margin-top: 2px; }
.hs-firstaid-desc { font-size: 12.5px; line-height: 1.5; margin: 7px 0 0; opacity: .95; }
.hs-firstaid-btn {
    flex-shrink: 0; align-self: center; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
    color: var(--s-teal-700); background: var(--c-surface); box-shadow: 0 6px 14px rgba(0, 0, 0, .16); white-space: nowrap;
}
.hs-firstaid-btn i { font-style: normal; }
.hs-firstaid-tag {
    position: relative; display: inline-block; margin-top: 12px; font-size: 10.5px; font-weight: 600;
    padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); opacity: .95;
}

/* ============================ 求助广场（首页社区模块） ============================ */
.hs-help { padding: 18px; background: var(--c-surface); border: 1px solid var(--card-line); }
.hs-help-item {
    display: flex; gap: 10px; margin-top: 12px; padding: 12px;
    border-radius: 16px; background: var(--n-50); border: 1px solid var(--card-line); cursor: pointer;
}
.hs-help-item:active { background: var(--v-25); }
.hs-help-avatar {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; font-size: 20px;
    background: var(--brand-purple-soft); display: flex; align-items: center; justify-content: center;
}
.hs-help-main { flex: 1; min-width: 0; }
.hs-help-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hs-help-top b { font-size: 13px; font-weight: 700; color: var(--ink); }
.hs-help-tag { font-style: normal; font-size: 10px; font-weight: 700; color: var(--brand-purple-deep); background: var(--brand-purple-soft); padding: 2px 8px; border-radius: 999px; }
.hs-help-replies { font-style: normal; font-size: 10px; color: var(--gray-2); margin-left: auto; }
.hs-help-text { font-size: 13px; color: var(--gray-1); line-height: 1.6; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-help-time { display: block; font-size: 11px; color: var(--gray-3); margin-top: 6px; }
.hs-help-ops { display: flex; gap: 10px; margin-top: 16px; }
.hs-help-ops .h-btn { flex: 1; }

/* 头像容器：图片铺满（同上，emoji 走 flex 居中） */
.hs-testi-avatar img, .hs-help-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border-radius: inherit;
}

/* ---------- 会员资产组件（权益网格 / 身份卡 / 联合商品） ---------- */
.hs-benefit-grid { display: grid; gap: 10px; }
.hs-benefit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--n-50, var(--n-50)); }
.hs-benefit-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; overflow: hidden; }
.hs-benefit-ico img { width: 100%; height: 100%; object-fit: contain; }
.hs-benefit b { font-size: 14px; color: var(--c-ink, var(--n-900)); display: block; }
.hs-benefit i { font-size: 12px; color: var(--n-500, var(--n-500)); font-style: normal; display: block; margin-top: 2px; }

.hs-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs-tier { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 10px 14px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, var(--c-surface), var(--n-50)); border: 1.5px solid color-mix(in srgb, var(--tac, #6366f1) 25%, transparent); box-shadow: 0 6px 18px -12px var(--tac, #6366f1); }
.hs-tier-ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: color-mix(in srgb, var(--tac, #6366f1) 12%, var(--c-surface)); }
.hs-tier b { font-size: 14px; color: var(--c-ink, var(--n-900)); }
.hs-tier i { font-size: 15px; font-weight: 800; color: var(--tac, #6366f1); font-style: normal; }
.hs-tier em { font-size: 11px; color: var(--n-500, var(--n-500)); font-style: normal; min-height: 15px; }

.hs-bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hs-bundle-card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 16px 14px; border-radius: 16px; background: linear-gradient(160deg, var(--c-surface), #f5f3ff); border: 1px solid var(--n-100, var(--n-200)); }
.hs-bundle-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.hs-bundle-card b { font-size: 14px; color: var(--c-ink, var(--n-900)); }
.hs-bundle-card > i { font-size: 12px; color: var(--n-500, var(--n-500)); font-style: normal; }
.hs-bundle-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.hs-bundle-price b { font-size: 18px; color: var(--brand-rose); }
.hs-bundle-price s { font-size: 12px; color: var(--n-400, var(--n-400)); }
.hs-bundle-price em { font-size: 11px; font-style: normal; font-weight: 700; color: var(--brand-rose); background: #fff1f2; padding: 1px 6px; border-radius: 6px; }
.hs-bundle-tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: var(--s-orange-700); background: var(--s-amber-25); border: 1px solid #fed7aa; padding: 1px 7px; border-radius: 999px; }
@media (max-width: 480px) { .hs-tier-grid { grid-template-columns: repeat(3, 1fr); } .hs-bundle-grid { grid-template-columns: 1fr; } }

/* ---------- 紧急求助（心理危机干预热线）模块 ---------- */
.hs-crisis {
  border-radius: 18px; padding: 18px 16px 16px;
  background: linear-gradient(135deg, #fff1f2, var(--s-amber-25));
  border: 1px solid var(--s-red-100);
}
.hs-crisis .hs-title { margin: 0 0 6px; }
.hs-crisis-tip { margin: 0 0 14px; font-size: 12.5px; line-height: 1.65; color: #9a3412; }
.hs-crisis-list { display: flex; flex-direction: column; gap: 8px; }
.hs-crisis-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 13px; background: var(--c-surface);
  border: 1px solid var(--s-red-100); text-decoration: none; transition: .16s;
}
.hs-crisis-row:hover { border-color: var(--s-red-300); box-shadow: 0 6px 16px rgba(239,68,68,.12); }
.hs-crisis-row-ico { font-size: 17px; flex-shrink: 0; }
.hs-crisis-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-crisis-row-main b { font-size: 13.5px; font-weight: 800; color: #7f1d1d; }
.hs-crisis-row-main i { font-style: normal; font-size: 11px; color: var(--s-amber-700); }
.hs-crisis-row-num { font-size: 15px; font-weight: 800; color: var(--s-red-600); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.hs-crisis-btn {
  width: 100%; margin-top: 12px; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-danger), var(--brand-orange)); color: var(--c-surface);
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.hs-crisis-btn:active { transform: scale(.985); }
.hs-crisis-tag { display: block; margin-top: 9px; text-align: center; font-size: 10.5px; color: var(--s-orange-700); }

/* ---------- 知识付费（首页课程墙） ---------- */
.hs-course { padding: 16px 14px 14px; background: var(--c-surface); }
.hs-course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hs-course-head .hs-title { margin: 0; }
.hs-course-sub { margin: 4px 0 0; font-size: 12px; color: var(--n-400); line-height: 1.5; }
.hs-course-more { flex-shrink: 0; border: none; background: var(--v-50); color: var(--accent, var(--v-600)); font-weight: 800; font-size: 12.5px; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.hs-course-more:active { transform: scale(.97); }
.hs-course-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hs-course-row::-webkit-scrollbar { display: none; }
.hs-course-card { flex: 0 0 38%; max-width: 150px; cursor: pointer; transition: .15s; }
.hs-course-card:active { transform: scale(.97); }
.hs-course-cover { position: relative; height: 86px; border-radius: 13px; background: linear-gradient(135deg, var(--v-100), var(--s-indigo-100)); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; }
.hs-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.hs-course-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; color: var(--c-surface); background: rgba(15, 23, 42, .55); padding: 2px 7px; border-radius: 999px; }
.hs-course-title { font-size: 13px; font-weight: 700; color: var(--n-800); line-height: 1.35; margin: 8px 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-course-price { font-size: 13px; font-weight: 800; color: var(--accent, var(--v-600)); margin: 4px 2px 0; }
.hs-course-empty { flex: 1; text-align: center; color: var(--n-400); font-size: 12.5px; padding: 24px 0; }
.hs-care { padding: 16px 14px 14px; background: var(--c-surface); }
.hs-care-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.hs-care-head b { font-size: 15px; font-weight: 800; color: var(--n-800); }
.hs-care-head span { font-size: 12px; color: var(--n-400); }
.hs-care-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hs-care-list::-webkit-scrollbar { display: none; }
.hs-care-item { flex: 0 0 42%; max-width: 160px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-purple-soft), var(--v-25)); border: 1px solid var(--v-100); cursor: pointer; }
.hs-care-item:active { transform: scale(.97); }
.hs-care-aud { font-size: 11px; font-weight: 800; color: var(--v-600); }
.hs-care-name { font-size: 13px; font-weight: 700; color: var(--n-800); margin-top: 3px; }
.hs-care-desc { font-size: 11px; color: var(--n-400); margin-top: 3px; min-height: 30px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-care-price { font-size: 16px; font-weight: 800; color: var(--accent, var(--v-600)); margin-top: 6px; }
.hs-care-price span { font-size: 11px; font-weight: 400; color: var(--n-400); margin-left: 3px; }

/* ============================ 首页模块 · 桌面悬停反馈（补齐交互细节） ============================ */
@media (hover: hover) {
  .hs-staff-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.10); }
  .hs-nav-item:hover .hs-nav-ico { transform: translateY(-2px) scale(1.04); }
  .hs-flash:hover { filter: brightness(1.03); }
  .hs-flash:active { transform: scale(.98); }
  .hs-help-item:hover { background: var(--v-25); }
  .hs-course-card:hover { transform: translateY(-2px); }
  .hs-care-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
}


