/* 小头盔 common.css 域拆分（2026-10-21 整理批二）：原 2684 行单文件按域拆 8 文件，
   _header.blade 按原物理顺序全量引入——层叠语义 100% 等价（行区间连续切分），
   改某域样式不再碰其他域文件。本文件域：导航域：桅杆主导航/星标动画/头像下拉/响应式）*/

/* ===== 桅杆式主导航 ===== */
.hc-masthead {
    position:sticky;
    top:0;
    z-index:1030;
    background:rgba(255, 255, 255, 0.92);
    backdrop-filter:saturate(180%) blur(16px);
    -webkit-backdrop-filter:saturate(180%) blur(16px);
    /* 底边框升级为渐变发丝线（2026-10-08 桅杆重设计）：原 1px 实线 border 换
       下方 ::after 的紫粉光丝（两端透明），与顶部 3px 流光海平线首尾呼应——
       桅杆成为被光「夹」住的玻璃条 */
    box-shadow:0 6px 24px -18px rgba(30, 27, 46, 0.18);
    transition:box-shadow 0.3s;
}
/* 底缘渐变发丝线：两主题共用。2026-10-08 三版随桅杆「缓慢变化」诉求加流动；
   同日 v5 换色：焦糖三段退役，改紫→浅紫→粉三段（品牌渐变族），
   超宽画布缓慢往返=光丝在玻璃面上游走（与顶部 3px 海平线同一手法） */
.hc-masthead::after {
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:1px;
    background:linear-gradient(90deg,
        transparent 0%,
        rgba(124, 58, 237, 0.38) 16%,
        rgba(240, 171, 252, 0.30) 50%,
        rgba(236, 72, 153, 0.34) 84%,
        transparent 100%);
    background-size:220% 100%;
    z-index:10;
    pointer-events:none;
    animation:hc-mast-hairline 14s ease-in-out infinite alternate;
}
@keyframes hc-mast-hairline {
    from { background-position:0% 50%; }
    to   { background-position:100% 50%; }
}

/* 顶部海平线（3px 流光发丝线：渐变缓慢往返漂移） */
.hc-masthead::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background:linear-gradient(90deg, var(--hc-primary) 0%, var(--hc-primary-500) 30%, var(--hc-pink) 50%, #F0ABFC 70%, var(--hc-primary) 100%);
    background-size:220% 100%;
    z-index:10;
    animation:hc-horizon 9s ease-in-out infinite alternate;
}

@keyframes hc-horizon {
    from { background-position:0% 50%; }
    to   { background-position:100% 50%; }
}

/* 下拉菜单层级 */
.hc-masthead .dropdown-menu { z-index:1045; }

/* 横向滚动条治理：clip 不产生滚动容器、不破坏 sticky。
   只挂 body 不挂 html（2026-10-12 修公告弹窗整屏挪动）：CSS 规范规定
   html 的 overflow 非 visible 时「body 的 overflow 传播到视口」被阻断——
   Bootstrap 模态/抽屉开窗时给 body 设 overflow:hidden 便锁不住视口滚动、
   页面滚动条不消失，而 BS 仍按滚动条宽度给 body 垫 padding-right 补偿，
   内容区被硬挤 8px 整屏左挪。html 保持 visible（默认）让传播生效：
   body 的 clip 传给视口（横向照样封死），模态开窗时视口真正锁滚，
   滚动条消失与 padding 补偿正好相抵＝零位移 */
body { overflow-x:clip; }
/* 短页页脚贴底（2026-09-20 用户反馈：错误页等内容少的页 footer 被顶到半空，
   屏幕高时底部一片白）：body 纵向 flex，页脚 margin-top:auto 推底；
   内容多的页空间不足时 auto=0，视觉与原先一致 */
body { min-height:100vh; display:flex; flex-direction:column; }

/* ----- 主行：Logo / 大搜索 / 动作区 ----- */
.hc-mast-main {
    display:grid;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:"logo search actions";
    align-items:center;
    gap:28px;
    min-height:88px;
    padding:10px 0;
    transition:min-height 0.32s var(--hc-ease-out), gap 0.32s var(--hc-ease-out);
}

/* Logo + 字标（主字 + 拉宽副题，气质位） */
.hc-mast-logo {
    grid-area:logo;
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

/* img=后台运营图 Logo；.hc-star-wrap=内联动画星标（默认回退），两者同尺寸规格 */
.hc-mast-logo img,
.hc-mast-logo .hc-star-wrap {
    height:46px;
    width:auto;
    max-width:190px;
    object-fit:contain;
    transition:height 0.32s var(--hc-ease-out);
}
/* ===== 导航星标动画 v7 = 终版（2026-10-09，组件 _logo_star.blade.php）=====
   3D 陀螺原子（实验室第三批选型⑯）：常态=三条倾斜轨道面电子环绕 + 核心星
   轻悬浮（极简氛围）；鼠标移入=JS 驱动整套场景 3D 倾斜（_script）+ 移入一次性
   冲击波。全部整元素合成器属性。 */
.hc-mast-logo .hc-star-wrap {
    position:relative; display:inline-block;
    aspect-ratio:1/1;   /* logo v2 方形 tile（46/40/34/32 高档下宽随之） */
    perspective:700px;
}
.hc-mast-logo .hc-atom-scene {
    position:absolute; inset:0;
    transform-style:preserve-3d;
    will-change:transform;
    /* 无 transition：倾斜由 JS rAF 插值驱动（首版挂 CSS 过渡与高频 mousemove
       打架，每个目标值都被 0.18s 过渡拖拽=手感发糊被判不流畅） */
}
/* 常态=完全静止的干净星标（用户拍板：原子运动移入才唤醒）；轨道/电子/悬浮
   全部只在 :hover 下生效与播放，idle 零动画零动画帧成本 */
.hc-mast-logo .hc-atom-plane {
    position:absolute; left:50%; top:50%; height:160%; aspect-ratio:1/1;
    border-radius:50%; border:1.5px solid rgba(167,139,250,.3);
    opacity:0;
}
/* 淡入用 animation 而非 transition：实测 preserve-3d 子树+并发 spin 动画下
   transition 的 opacity 卡在起点不动（keyframes 驱动的一切正常） */
.hc-mast-logo:hover .hc-atom-plane { animation:hc-plane-in .3s ease forwards; }
@keyframes hc-plane-in { from { opacity:0; } to { opacity:1; } }
.hc-mast-logo .hc-atom-p1 { transform:translate(-50%,-50%) rotateX(66deg) rotateY(-20deg); }
.hc-mast-logo .hc-atom-p2 { transform:translate(-50%,-50%) rotateX(66deg); }
.hc-mast-logo .hc-atom-p3 { transform:translate(-50%,-50%) rotateX(66deg) rotateY(20deg); }
.hc-mast-logo .hc-atom-spin { position:absolute; inset:0; }
.hc-mast-logo:hover .hc-atom-spin { animation:hc-atom-orbit 2.8s linear infinite; }
.hc-mast-logo:hover .hc-atom-p2 .hc-atom-spin { animation-duration:5s; animation-direction:reverse; }
.hc-mast-logo:hover .hc-atom-p3 .hc-atom-spin { animation-duration:7.6s; }
@keyframes hc-atom-orbit { to { transform:rotate(360deg); } }
/* 核心星：translateZ 独立深度层（陀螺倾斜时的立体视差）；svg 只管悬浮动画 */
.hc-mast-logo .hc-atom-core { position:absolute; inset:0; transform:translateZ(14px); }
.hc-mast-logo .hc-atom-core .hc-star {
    display:block; width:100%; height:100%;
    border-radius:26%;   /* 方形 tile 圆角（squircle 观感，暗亮两主题通用） */
    filter:drop-shadow(0 3px 10px rgba(77,29,149,.45));
}
.hc-mast-logo:hover .hc-atom-core .hc-star { animation:hc-star-float 5s ease-in-out infinite; }
@keyframes hc-star-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2.5px); } }
.hc-mast-logo .hc-atom-e {
    position:absolute; left:100%; top:50%; width:5.5px; height:5.5px;
    margin:-2.75px 0 0 -2.75px; border-radius:50%;
    background:#F0ABFC; box-shadow:0 0 10px 2px rgba(240,171,252,.95);
}
.hc-mast-logo .hc-atom-p2 .hc-atom-e { background:#A78BFA; box-shadow:0 0 10px 2px rgba(167,139,250,.95); }
.hc-mast-logo .hc-atom-p3 .hc-atom-e { background:#C4B5FD; box-shadow:0 0 9px 2px rgba(196,181,253,.95); width:4.5px; height:4.5px; }
/* 移入一次性冲击波：每次 hover 进入重放 */
.hc-mast-logo .hc-star-pulse {
    position:absolute; left:50%; top:50%; width:100%; aspect-ratio:1;
    border-radius:50%; border:2px solid rgba(167,139,250,.7);
    transform:translate(-50%,-50%); opacity:0; pointer-events:none;
}
.hc-mast-logo:hover .hc-star-pulse { animation:hc-star-pulse .8s cubic-bezier(.2,.6,.35,1) 1; }
@keyframes hc-star-pulse {
    0%   { opacity:.85; transform:translate(-50%,-50%) scale(.6); }
    100% { opacity:0;   transform:translate(-50%,-50%) scale(1.9); }
}
/* wrap：进场淡入微放大（独立 scale 属性，与 hover transform 分家）+ 悬停弹起 */
.hc-mast-logo .hc-star-wrap {
    animation:hc-star-in .4s cubic-bezier(.25,.8,.3,1) both;
    transition:transform .3s cubic-bezier(.3,1.4,.4,1), filter .3s ease;
}
.hc-mast-logo:hover .hc-star-wrap { transform:scale(1.06); filter:drop-shadow(0 0 12px rgba(139,92,246,.45)); }
@keyframes hc-star-in {
    from { opacity:0; scale:.9; }
    to   { opacity:1; scale:1; }
}
/* 悬停：轨道增亮 */
.hc-mast-logo:hover .hc-atom-plane { border-color:rgba(167,139,250,.55); }
/* 减动效：轨道/电子/冲击波全撤，保留静态星 */
@media (prefers-reduced-motion: reduce) {
    .hc-mast-logo .hc-atom-scene,
    .hc-mast-logo .hc-star-pulse { display:none; }
    .hc-mast-logo .hc-star-wrap { animation:none; transition:none; }
    .hc-mast-logo .hc-atom-core { transform:none; }
    .hc-mast-logo .hc-atom-core .hc-star { width:auto; height:100%; }
}

.hc-mast-brand {
    display:flex;
    flex-direction:column;
    gap:3px;
}

.hc-mast-brand-main {
    font-size:25px;
    font-weight:800;
    line-height:1;
    letter-spacing:3px;
    background:linear-gradient(96deg, var(--hc-primary) 0%, var(--hc-primary-500) 30%, var(--hc-pink) 60%, var(--hc-primary) 100%);
    background-size:300% 100%;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    filter:drop-shadow(0 2px 8px rgba(124, 58, 237, 0.16));
    animation:hc-brandflow 8s ease-in-out infinite;
    transition:font-size 0.32s var(--hc-ease-out);
}

@keyframes hc-brandflow {
    0%, 100% { background-position:0% 50%; }
    50%      { background-position:100% 50%; }
}

.hc-mast-brand-sub {
    font-size:9px;
    font-weight:600;
    letter-spacing:5px;
    color:var(--hc-text-muted);
    transition:opacity 0.25s;
}

/* ----- 大搜索（居中） ----- */
.hc-mast-search {
    grid-area:search;
    justify-self:center;
    width:100%;
    max-width:560px;
}

.hc-search-form {
    display:flex;
    align-items:center;
    gap:0;
    background:var(--hc-bg-alt);
    border:1px solid var(--hc-border);
    border-radius:var(--hc-radius-full);
    padding:4px 4px 4px 18px;
    transition:var(--hc-transition);
    position:relative;
}

.hc-search-form:focus-within {
    background:var(--hc-surface);
    border-color:var(--hc-primary-light);
    box-shadow:0 0 0 4px rgba(124, 58, 237, 0.10), 0 4px 14px -6px rgba(124, 58, 237, 0.25);
}

.hc-search-icon {
    color:var(--hc-text-muted);
    font-size:16px;
    flex-shrink:0;
    margin-right:8px;
}

.hc-search-input {
    flex:1;
    border:none !important;
    background:transparent;
    font-size:14px;
    color:var(--hc-text);
    padding:9px 0;
    box-shadow:none !important;
    min-width:0;
}

.hc-search-input:focus { outline:none; }
.hc-search-input::placeholder { color:var(--hc-text-muted); }

.hc-search-btn {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 18px !important;
    border-radius:var(--hc-radius-full) !important;
    font-weight:600;
    font-size:14px;
    flex-shrink:0;
}

.hc-search-btn .ali-icon { font-size:15px; }

/* 搜索联想下拉 */
.hc-search-dropdown {
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    background:var(--hc-surface);
    border:1px solid var(--hc-border);
    border-radius:var(--hc-radius);
    box-shadow:var(--hc-shadow-lg);
    z-index:1050;
    max-height:70vh;
    overflow-y:auto;
    display:none;
}
.hc-search-dropdown.open { display:block; }

/* focus 空态面板（2026-09-23 对齐 App 搜索页三段式）：最近搜索/热门搜索/猜你喜欢 */
.hc-search-sec {
    display:flex;
    align-items:center;
    gap:8px;
    padding:13px 16px 8px;
}
.hc-search-sec-bar {
    width:4px;
    height:15px;
    border-radius:2px;
    background:linear-gradient(135deg, var(--hc-primary, #7C3AED), var(--hc-pink, #EC4899));
    flex-shrink:0;
}
.hc-search-sec-title {
    flex:1;
    font-size:13px;
    font-weight:700;
    color:var(--hc-text);
}
.hc-search-sec-act {
    border:none;
    background:none;
    padding:0;
    font-size:12px;
    color:var(--hc-text-muted);
    cursor:pointer;
}
.hc-search-sec-act:hover { color:var(--hc-text); }

/* chips（最近搜索=灰底 / 热门搜索=浅紫底，App 同语言） */
.hc-search-chips {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:2px 16px 4px;
}
.hc-search-chip {
    max-width:200px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    padding:7px 13px;
    border-radius:var(--hc-radius-full, 999px);
    border:1px solid var(--hc-border);
    background:var(--hc-bg-alt);
    color:var(--hc-text);
    font-size:12.5px;
    font-weight:600;
    cursor:pointer;
    transition:border-color .12s;
}
.hc-search-chip:hover { border-color:var(--hc-primary, #7C3AED); }
.hc-search-chip.is-hot {
    background:var(--hc-primary-50);
    color:var(--hc-primary-dark, #6D28D9);
}

/* 猜你喜欢横滑卡（2026-09-25 重构对齐首页 hc-goods-mini：方图 1:1 防变形、
   双行名、独立白卡描边；复用 .hc-search-item 键盘导航/高亮语义，双类覆写布局） */
.hc-search-cards {
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:8px 16px 16px;
}
.hc-search-item.hc-search-card {
    flex-direction:column;
    align-items:stretch;
    width:150px;
    flex-shrink:0;
    gap:8px;
    padding:10px;
    border-radius:14px;
    border:1px solid var(--hc-border);
    border-bottom:1px solid var(--hc-border);
    background:var(--hc-surface);
}
.hc-search-card-img {
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    border-radius:10px;
    background:var(--hc-bg-alt);
    flex-shrink:0;
}
.hc-search-card-name {
    font-size:12.5px;
    font-weight:600;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:35px;
    text-align:left;
}
.hc-search-card-price {
    font-size:15px;
    font-weight:800;
    color:var(--hc-price);
    margin-top:0;
}

/* 促销角标：价格旁小 pill（热销面板带，与商品卡促销标同一词汇表） */
.hc-search-badge {
    display:inline-block;
    margin-left:6px;
    padding:1px 6px;
    border-radius:var(--hc-radius-full, 999px);
    background:var(--hc-accent, #F97316);
    color:#fff;
    font-size:10px;
    font-style:normal;
    font-weight:600;
    vertical-align:1px;
}

.hc-search-item {
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    color:var(--hc-text);
    border-bottom:1px solid var(--hc-border);
    transition:background .12s;
}
.hc-search-item:last-child { border-bottom:none; }
.hc-search-item:hover,
.hc-search-item.active {
    background:var(--hc-primary-50);
    color:var(--hc-text);
    text-decoration:none;
}
.hc-search-item-img {
    width:40px;
    height:40px;
    border-radius:var(--hc-radius-sm);
    object-fit:cover;
    flex-shrink:0;
    background:var(--hc-bg-alt);
}
.hc-search-item-info { flex:1; min-width:0; }
.hc-search-item-name {
    font-size:13px;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.hc-search-item-price {
    font-size:13px;
    font-weight:600;
    color:var(--hc-price);
    margin-top:2px;
}
.hc-search-item-go {
    color:var(--hc-text-muted);
    flex-shrink:0;
}
.hc-search-empty {
    padding:20px;
    text-align:center;
    color:var(--hc-text-muted);
    font-size:13px;
}
/* 搜索加载态（2026-09-22 '...' 图形化）：小环+文案并排居中 */
.hc-search-loading {
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:var(--hc-text-muted);
    font-size:13px;
}
/* 双类提优先级：.hc-loader 基础段（96px）在本段之后，单类会被其覆盖 */
.hc-loader.hc-search-ring { width:18px; height:18px; flex-shrink:0; }

/* ============================================
   弧影追逐环 · 全网通用加载图形（2026-09-22 用户指定 Shadertoy 图形）
   WebGL 引擎 public/assets/unicorn/js/hc-loader.js（HCLoader.mount）；
   无 WebGL 时 JS 挂 .hc-loader-fallback 走 CSS conic 兜底。
   尺寸由使用方定（width/height 即可，canvas 撑满容器）
   ============================================ */
.hc-loader {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:96px;
    height:96px;
    position:relative;
}
.hc-loader-canvas {
    width:100%;
    height:100%;
    display:block;
}

/* 兜底环（无 WebGL / 引擎失败）：conic 渐变旋转，同图形双色（橘→品红） */
.hc-loader-fallback::before {
    content:"";
    width:56%;
    height:56%;
    border-radius:50%;
    background:conic-gradient(from 0deg, #FC9116 0%, #FF1589 38%, transparent 55%);
    -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask:radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation:hc-loader-spin 1s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hc-loader-fallback::before { animation-duration:2.4s; }
}
@keyframes hc-loader-spin { to { transform:rotate(360deg); } }

/* 页脚品牌列常驻环（2026-09-22 用户点名加、同日用户要求撤下）：样式随 DOM 一并删除 */

/* 按钮 busy 态（HCLoader.busy，2026-09-22 '...' 图形化）：文字被环替换后
   按钮转 flex 居中防偏；宽度由 JS 锁 min-width（防清文字塌缩跳动） */
.hc-loader.hc-btn-loader { width:14px; height:14px; flex-shrink:0; }

/* ----- 动作区 ----- */
.hc-mast-actions {
    grid-area:actions;
    display:flex;
    align-items:center;
    justify-self:end;
    gap:4px;
}

/* 通用动作钮（货币/语言/订单/消息/退出） */
.hc-mast-act {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    height:38px;
    min-width:38px;
    padding:0 10px;
    border-radius:10px;
    color:var(--hc-text-secondary);
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    text-decoration:none;
    transition:var(--hc-transition);
}

.hc-mast-act .ali-icon { font-size:17px; }

.hc-mast-act:hover {
    color:var(--hc-primary);
    background:var(--hc-primary-50);
    text-decoration:none;
}

.hc-arrow {
    display:inline-block;
    font-size:9px;
    margin-left:2px;
    opacity:0.45;
    transition:transform 0.2s;
}

.hc-mast-act:hover .hc-arrow { transform:rotate(180deg); opacity:1; }

/* 货币紧凑触发器 */
.hc-mast-cur-sign { font-weight:700; color:var(--hc-primary); }
.hc-mast-cur-code { letter-spacing:0.5px; }

/* 语言触发器（当前语言名，2026-09-19 用户反馈替「文」字徽；超长名截断） */
.hc-mast-lang-name {
    font-weight:600;
    font-size:13px;
    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* 消息红点（挂在动作钮上） */
.hc-mast-msg-badge {
    position:absolute;
    top:4px;
    right:4px;
    margin:0;
    transform:scale(0.82);
    transform-origin:center;
}

/* 已登录用户（头像 + 名字） */
.hc-mast-user {
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:38px;
    padding:0 10px;
    border-radius:10px;
    color:var(--hc-text-secondary);
    font-size:13px;
    font-weight:500;
    text-decoration:none;
    transition:var(--hc-transition);
    max-width:180px;
}

.hc-mast-user:hover {
    color:var(--hc-primary);
    background:var(--hc-primary-50);
}

.hc-mast-avatar {
    width:28px;
    height:28px;
    border-radius:50%;
    object-fit:cover;
    border:1.5px solid var(--hc-line-8);
    flex-shrink:0;
}

.hc-mast-user .ali-icon { font-size:20px; }

.hc-mast-uname {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* ===== 用户头像下拉菜单（2026-09-19：订单/号箱/优惠券收纳 + 退出迁入） ===== */

/* 下拉指示小箭头：展开时翻转（BS5 的 .show 挂在 menu 元素上，经 :has() 回看容器；
    不支持 :has 的老浏览器保持不翻转——纯装饰无副作用） */
.hc-user-caret {
    font-size:10px;
    color:var(--hc-text-muted);
    transition:transform 0.2s;
}

.hc-user-menu:has(.dropdown-menu.show) .hc-user-caret {
    transform:rotate(180deg);
}

.hc-user-dd {
    min-width:236px;
    padding:8px;
    border-radius:14px;
    border:1px solid var(--hc-line-8);
    background:var(--hc-surface);
    box-shadow:0 18px 44px -12px rgba(45, 27, 78, 0.22);
}

/* 头部身份行：大头像 + 名字/邮箱 + 会员等级徽标 */
.hc-user-dd-head {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 8px 12px;
    margin-bottom:6px;
    border-bottom:1px solid var(--hc-line-6, rgba(124, 58, 237, 0.14));
}

.hc-user-dd-avatar {
    width:38px;
    height:38px;
    border-radius:50%;
    overflow:hidden;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--hc-primary-50);
    color:var(--hc-primary);
    border:1.5px solid var(--hc-primary-100);
}

.hc-user-dd-avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.hc-user-dd-avatar .ali-icon { font-size:20px; }

.hc-user-dd-id {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.hc-user-dd-id strong {
    font-size:13px;
    font-weight:700;
    color:var(--hc-text);
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

/* 会员徽标：普通=素灰、gold=金渐变、black=墨金 */
.hc-user-dd-tier {
    align-self:flex-start;
    font-size:10.5px;
    font-weight:700;
    line-height:1;
    padding:4px 8px;
    border-radius:999px;
    letter-spacing:0.3px;
}

.hc-tier-none {
    color:var(--hc-text-secondary);
    background:var(--hc-primary-50);
    border:1px solid var(--hc-primary-100);
}

.hc-tier-gold {
    color:#7C2D12;
    background:linear-gradient(135deg, #FDE68A, #FBBF24);
    border:1px solid rgba(180, 130, 10, 0.35);
}

.hc-tier-black {
    color:#FDE68A;
    background:linear-gradient(135deg, #1F2937, #111827);
    border:1px solid rgba(253, 230, 138, 0.4);
}

.hc-user-dd .dropdown-item {
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:9px;
    padding:8px 10px;
    font-size:13.5px;
    font-weight:500;
    color:var(--hc-text-secondary);
    transition:background 0.15s, color 0.15s;
}

.hc-user-dd .dropdown-item:hover,
.hc-user-dd .dropdown-item:focus {
    background:var(--hc-primary-50);
    color:var(--hc-primary-dark);
}

.hc-user-dd .dropdown-item svg {
    flex-shrink:0;
    opacity:0.72;
}

/* 我的账户下拉·主题开关行（2026-10-20 用户要求：账户内自控亮/暗主题）：
   开关纯 CSS 随 html[data-theme] 翻转（与桅杆日月图标同一属性驱动模式，零 JS 同步）；
   点击行为在 _script 的 .hc-dd-theme-toggle 元素级监听 */
.hc-dd-theme-sw { margin-left:auto; flex:none; width:34px; height:19px; border-radius:999px; background:var(--hc-line-5); position:relative; transition:background .18s; }
.hc-dd-theme-knob { position:absolute; top:2.5px; left:2.5px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,10,35,.3); transition:left .18s; }
html[data-theme="dark"] .hc-dd-theme-sw { background:var(--hc-primary); }
html[data-theme="dark"] .hc-dd-theme-knob { left:17.5px; }

.hc-user-dd-sep {
    margin:6px 4px;
    border-color:var(--hc-line-6, rgba(124, 58, 237, 0.14));
    opacity:1;
}

/* 退出登录：危险色收口 */
.hc-user-dd-logout {
    color:var(--hc-danger);
}

.hc-user-dd-logout:hover,
.hc-user-dd-logout:focus {
    background:var(--hc-danger-50);
    color:var(--hc-danger);
}

/* 登录按钮（渐变胶囊，主 CTA） */
.hc-mast-login {
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:7px;
    height:38px;
    padding:0 22px;
    margin-left:6px;
    border-radius:var(--hc-radius-full);
    background:var(--hc-grad);
    color:var(--hc-on-brand);
    font-size:13.5px;
    font-weight:600;
    letter-spacing:1px;
    text-decoration:none;
    overflow:hidden;
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--hc-shadow-primary);
    transition:transform 0.15s, box-shadow 0.25s;
}

.hc-mast-login .ali-icon { font-size:15px; }

.hc-mast-login::after {
    content:"";
    position:absolute;
    top:0;
    left:-80%;
    width:50%;
    height:100%;
    background:linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform:skewX(-20deg);
    transition:left 0.6s ease;
}

.hc-mast-login:hover {
    color:var(--hc-on-brand);
    transform:translateY(-1px);
    box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px -4px rgba(124, 58, 237, 0.5);
    text-decoration:none;
}

.hc-mast-login:hover::after { left:130%; }


@keyframes hc-tide {
    0%   { box-shadow:0 0 0 0 rgba(236, 72, 153, 0.45); }
    70%  { box-shadow:0 0 0 7px rgba(236, 72, 153, 0); }
    100% { box-shadow:0 0 0 0 rgba(236, 72, 153, 0); }
}

/* ----- 滚动收缩：整条桅杆收拢为细 bar ----- */
body.hc-scrolled .hc-masthead {
    box-shadow:0 10px 30px -16px rgba(30, 27, 46, 0.28);
}

body.hc-scrolled .hc-mast-main {
    min-height:58px;
    gap:20px;
    padding:6px 0;
}

body.hc-scrolled .hc-mast-logo img,
body.hc-scrolled .hc-mast-logo .hc-star-wrap { height:32px; }
body.hc-scrolled .hc-mast-brand-main { font-size:19px; letter-spacing:2px; }
body.hc-scrolled .hc-mast-brand-sub { opacity:0; height:0; }
}

/* 下拉菜单项 */
.hc-currency-menu .dropdown-item,
.hc-lang-menu .dropdown-item {
    font-size:13px;
    padding:8px 16px;
    color:var(--hc-text-secondary);
    transition:var(--hc-transition);
}

.hc-currency-menu .dropdown-item:hover,
.hc-lang-menu .dropdown-item:hover {
    background:var(--hc-primary-50);
    color:var(--hc-primary);
}

.hc-currency-menu .dropdown-item.active,
.hc-lang-menu .dropdown-item.active {
    background:var(--hc-primary-50);
    color:var(--hc-primary);
    font-weight:600;
}

/* 货币下拉（2026-10-09 重排为四列网格：旗|代码|名称|汇率/✓）
   旧版符号+代码+全名一行流 + 汇率前缀（$1=/JPY 1=/HK$1=）宽度不一，右缘参差被用户判乱 */
/* 宽度显式 max-content：绝对定位 shrink-to-fit 对 flex 行测量偏窄，最宽行会啃进右内边距 */
.hc-currency .hc-currency-menu { width:max-content; min-width:296px; }
.hc-currency-menu .dropdown-item {
    display:grid;
    grid-template-columns:17px 42px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    padding:7px 14px;
}
.hc-currency-menu .hc-cur-flag { margin-right:0; }
.hc-currency-menu .hc-cur-code { font-weight:700; font-size:12.5px; letter-spacing:.4px; color:var(--hc-text); }
.hc-currency-menu .hc-cur-name { font-size:12px; color:var(--hc-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hc-currency-menu .dropdown-item.active .hc-cur-code { color:var(--hc-primary); }
.hc-currency-menu .hc-cur-rate {
    justify-self:end;
    display:flex;
    align-items:center;
    font-size:11.5px;
    font-weight:400;
    color:var(--hc-text-muted);
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}
.hc-currency-menu .hc-cur-check { color:var(--hc-primary); display:block; }
/* 暗色主题：active 行是实心品牌紫底（base.css 全局 .dropdown-item.active 规则），
   行内代码/名称/✓ 沿用 primary/muted 会紫上紫隐形——统一换成 on-brand 令牌（与全局设计语言同源） */
html[data-theme="dark"] .hc-currency-menu .dropdown-item.active .hc-cur-code { color:var(--hc-on-brand); }
html[data-theme="dark"] .hc-currency-menu .dropdown-item.active .hc-cur-name { color:var(--hc-on-brand); opacity:.82; }
html[data-theme="dark"] .hc-currency-menu .dropdown-item.active .hc-cur-rate { color:var(--hc-on-brand); }
html[data-theme="dark"] .hc-currency-menu .dropdown-item.active .hc-cur-check { color:var(--hc-on-brand); opacity:1; }
.hc-currency-menu .hc-cur-note {
    padding:7px 16px 8px;
    margin-top:4px;
    font-size:11px;
    line-height:1.5;
    color:var(--hc-text-muted);
    border-top:1px dashed var(--hc-border);
    white-space:normal;
    /* 长语种脚注单行太长会撑爆 max-content 菜宽，钳住让脚注换行、行内容不受钳 */
    max-width:300px;
}

/* 通用 emoji（空状态等） */
.hc-emoji {
    display:inline-block;
    font-style:normal;
    line-height:1;
}

/* 旧版 .footer 家族已删除：页脚唯一实现是 .hc-footer（本文件下方组件段） */

/* ===== 桅杆导航响应式 ===== */
@media (max-width:991.98px) {
    .hc-mast-main { gap:18px; }
    .hc-mast-logo img,
    .hc-mast-logo .hc-star-wrap { height:40px; }
    .hc-mast-brand-main { font-size:21px; }
    .hc-mast-search { max-width:none; }
}

@media (max-width:767.98px) {
    /* 2026-09-18 移动端桅杆只留 Logo+搜索（用户要求）：单行 grid，
       动作区整体收进设置抽屉（入口与客服挂件平级，见 _mobile_drawer） */
    .hc-mast-main {
        grid-template-columns:auto 1fr;
        grid-template-areas:"logo search";
        gap:12px;
        min-height:0;
        padding:10px 0;
    }
    .hc-mast-actions { display:none; }
    .hc-mast-logo img,
    .hc-mast-logo .hc-star-wrap { height:34px; }
    .hc-mast-brand-main { font-size:18px; letter-spacing:2px; }
    .hc-mast-brand-sub { display:none; }
    .hc-mast-search { min-width:0; }
    .hc-mast-search .hc-search-input { min-width:0; }
    /* 滚动收缩移动端退役（2026-10-19 用户报障「滚动离开顶部时 header 往上缩
       一下、被顶部盖住一部分」）：上方桌面 scrolled 规则的 padding 6px/gap 20
       特异性压过本块基础值，滚动瞬间桅杆高度跳变（无过渡=肉眼可见的缩跳），
       且部分 WebView 里 sticky+backdrop-filter 重绘滞后会呈现半截卡在顶边下的
       残影。移动端桅杆本就紧凑——scrolled 态逐项还原基础值（只留阴影层次），
       translateZ 强制独立合成层杜绝重绘滞后 */
    body.hc-scrolled .hc-mast-main { min-height:0; padding:10px 0; gap:12px; }
    body.hc-scrolled .hc-mast-logo img,
    body.hc-scrolled .hc-mast-logo .hc-star-wrap { height:34px; }
    .hc-masthead { transform:translateZ(0); }
}

/* ============================================
   品牌页脚：深紫舞台收尾（与登录页品牌面板同语言：
   网格底纹 + 双光晕 + 玻璃拟态；2026-09-18 精细化重做）
   ============================================ */

.hc-footer {
    position:relative;
    /* 2026-10-12 修「footer 底部溢出一块」：进场编排 [data-reveal] 隐藏态
       translateY(18px)，页脚最后一个元素未落位时探出 footer 底边 18px，
       把全页滚动区撑长——滚到底会在页脚下方看到一条背景条、落位时还会
       回弹跳一下。clip 掉（隐藏态本就 opacity:0 不可见，落位态全在
       footer 边界内；两处 ::before/::after 装饰也在界内不受影响） */
    overflow:clip;
    /* 原 margin-top:72px 间距转 padding：margin-top 让位给 auto（body flex 下推底贴屏） */
    margin-top:auto;
    padding-top:72px;
    color:var(--hc-primary-200);
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(640px 300px at 88% -6%, rgba(167, 139, 250, 0.20), transparent 62%),
        radial-gradient(520px 260px at 6% 104%, rgba(236, 72, 153, 0.10), transparent 60%),
        linear-gradient(180deg, #251743 0%, #1B1032 55%, #150A28 100%);
}

/* 顶部极光发丝线（与 subhero 收口同语言，中心更亮） */
.hc-footer::before {
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.28) 12%, rgba(217, 191, 255, 0.68) 42%, rgba(244, 114, 182, 0.45) 74%, transparent);
}

/* 底部渐隐：把网格底纹收进深色，避免纹理贯穿到底噪 */
.hc-footer::after {
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:150px;
    background:linear-gradient(180deg, transparent, rgba(13, 6, 26, 0.6));
    pointer-events:none;
}

.hc-footer-grid {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:1.7fr 1fr 1fr;
    gap:44px;
    padding:56px 0 40px;
}

/* 品牌列：玻璃标牌 + 名称/副语堆叠 */
.hc-foot-brand-row {
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:22px;
}

.hc-foot-mark {
    flex:0 0 44px;
    height:44px;
    border-radius:13px;
    background:rgba(255, 255, 255, 0.13);
    border:1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 26px rgba(12, 4, 30, 0.4);
}
.hc-foot-mark img { width:26px; height:26px; object-fit:contain; }

.hc-foot-brand-text { min-width:0; }

.hc-foot-logo {
    font-size:21px;
    font-weight:800;
    letter-spacing:1.2px;
    line-height:1.25;
    /* 字面亮色停靠点（2026-10-07 暗色翻车修复，同 banner 标题）：页脚恒深底，
       令牌渐变在暗色主题翻深导致 logo 变黑；字面值=浅色主题原渲染 */
    background:linear-gradient(96deg, #FFFFFF 30%, #E9D5FF 72%, #C4B5FD 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.hc-foot-brand-sub {
    margin-top:3px;
    font-size:12.5px;
    letter-spacing:0.4px;
    color:rgba(196, 181, 253, 0.78);
}
