/* ==========================================================================
   比赛对冲 · 产品介绍页补充样式
   页面整体沿用 sales_home.css（营销首页）的风格与布局，本文件仅包含
   对冲介绍页特有的组件样式（类名前缀 hd-），避免重复定义全局变量。
   ========================================================================== */

/* ---------- 卡片网格列数微调（复用 sales_home 的 entry-card / cap-card） ---------- */
.hd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hd-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 算法闭环：圆形图标内放序号数字 */
.hd-num-icon {
    font-size: 22px;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 1px;
}

/* ---------- Hero 右侧：双向锁价示意面板 ---------- */
.hd-panel {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}
.hd-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 18px;
}
.hd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulse 1.4s infinite;
}
.hd-badge {
    margin-left: auto;
    font-size: 11px;
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, .45);
    border-radius: 4px;
    padding: 1px 7px;
    letter-spacing: 1px;
}
.hd-body {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.hd-market {
    flex: 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 14px;
}
.hd-m-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.hd-m-head b { font-size: 14px; color: var(--text); }
.hd-m-head span { font-size: 11px; color: var(--text-3); }
.hd-m-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2);
    padding: 6px 0;
    border-top: 1px dashed var(--border);
}
.hd-m-row b { color: var(--text); font-weight: 700; }
.hd-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary);
    font-size: 12px;
    white-space: nowrap;
}
.hd-arrow i { font-size: 18px; }
.hd-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
}
.hd-foot b { color: var(--primary); font-size: 16px; }

/* ---------- 合规声明 / 风险提示卡 ---------- */
.hd-legal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
}
.hd-legal-safe { border-top-color: #10B981; }
.hd-legal-warn { border-top-color: #F59E0B; }
.hd-legal-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 26px;
}
.hd-legal-safe .hd-legal-icon { background: rgba(16, 185, 129, .12); color: #10B981; }
.hd-legal-warn .hd-legal-icon { background: rgba(245, 158, 11, .14); color: #F59E0B; }
.hd-legal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.hd-legal-card ul { display: flex; flex-direction: column; gap: 10px; }
.hd-legal-card li {
    position: relative;
    padding-left: 16px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-2);
}
.hd-legal-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.hd-legal-safe li::before { background: #10B981; }
.hd-legal-warn li::before { background: #F59E0B; }

/* ==========================================================================
   第一屏差异化：深色金融科技风（覆盖 sales_home.css 的 .hero 浅色样式）
   ========================================================================== */
.hd-hero {
    background: linear-gradient(140deg, #060C1E 0%, #0B1730 45%, #101F45 100%);
    color: #fff;
}

/* ---------- 科技感动画背景：透视网格 + 线性流动光带 + 扫描光柱 ---------- */

/* 0. 顶部光晕：顶端打光，向下弥散 */
.hd-glow-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 360px;
    background: radial-gradient(ellipse 62% 100% at 50% 0%, rgba(111, 110, 237, .32), rgba(64, 156, 255, .14) 52%, transparent 78%);
    pointer-events: none;
    animation: hdGlowBreath 6s ease-in-out infinite;
}
@keyframes hdGlowBreath {
    0%, 100% { opacity: .8; }
    50% { opacity: 1; }
}

/* 1. 透视网格（缓慢向前流动，赛博空间感） */
.hd-grid {
    position: absolute;
    inset: -160px -240px -40px;
    background-image:
        linear-gradient(rgba(64, 156, 255, .07) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(64, 156, 255, .07) 0.5px, transparent 0.5px);
    background-size: 46px 46px;
    transform: perspective(640px) rotateX(58deg);
    transform-origin: center top;
    animation: hdGridPan 24s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 30%, #000 25%, transparent 78%);
            mask-image: radial-gradient(ellipse 85% 85% at 50% 30%, #000 25%, transparent 78%);
    will-change: background-position;
}
@keyframes hdGridPan {
    from { background-position: 0 0; }
    to { background-position: 0 92px; }
}

/* 2. 上升数据光点 */
.hd-dot {
    position: absolute;
    bottom: -24px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3488BC;
    box-shadow: 0 0 8px rgba(52, 136, 188, .9);
    opacity: 0;
    animation: hdDotRise 11s linear infinite;
}
.hd-dot-2 { left: 30%; animation-delay: 2.6s; background: #64A5FF; box-shadow: 0 0 8px rgba(100, 165, 255, .9); }
.hd-dot-3 { left: 52%; animation-delay: 5.2s; background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, .9); }
.hd-dot-4 { left: 74%; animation-delay: 7.8s; background: #3488BC; box-shadow: 0 0 8px rgba(52, 136, 188, .9); }
.hd-dot-5 { left: 90%; animation-delay: 3.8s; background: #64A5FF; box-shadow: 0 0 8px rgba(100, 165, 255, .9); }
@keyframes hdDotRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    8%   { opacity: .85; }
    90%  { opacity: .4; }
    100% { transform: translateY(calc(-94vh)) scale(.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hd-grid,
    .hd-dot { animation: none; opacity: 0; }
}

/* 左侧文案 */
.hd-hero .hero-tag {
    background: rgba(246, 196, 83, .12);
    border-color: rgba(246, 196, 83, .42);
    color: #F6C453;
}
.hd-hero .hero-tag i { background: #F6C453; box-shadow: 0 0 10px #F6C453; }
.hd-hero h1 { color: #fff; }
.hd-hero h1 em {
    background: linear-gradient(90deg, #3488BC, #6F6EED 55%, #8B7BFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hd-hero .hero-sub { color: rgba(255, 255, 255, .66); }

/* 按钮 */
.hd-hero .hero-actions .btn-primary {
    background: linear-gradient(135deg, #3488BC, #6F6EED);
    color: #fff;
    box-shadow: 0 10px 30px rgba(52, 136, 188, .32);
}
.hd-hero .hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #4E9BD0, #8584F5);
    box-shadow: 0 12px 34px rgba(111, 110, 237, .42);
}
.hd-hero .hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .06);
}
.hd-hero .hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #6F6EED;
    color: #6F6EED;
}

/* 信任点 */
.hd-hero .hero-trust { color: rgba(255, 255, 255, .55); }
.hd-hero .hero-trust i { background: rgba(52, 136, 188, .75); }

/* 右侧锁价面板 → 深色玻璃拟态 */
.hd-hero .hd-panel {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hd-hero .hd-head { color: rgba(255, 255, 255, .72); }
.hd-hero .hd-market {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
}
.hd-hero .hd-m-head b { color: #fff; }
.hd-hero .hd-m-head span { color: rgba(255, 255, 255, .5); }
.hd-hero .hd-m-row {
    color: rgba(255, 255, 255, .6);
    border-top-color: rgba(255, 255, 255, .1);
}
.hd-hero .hd-m-row b { color: #fff; }
.hd-hero .hd-arrow { color: #F6C453; }
.hd-hero .hd-foot {
    color: rgba(255, 255, 255, .55);
    border-top-color: rgba(255, 255, 255, .12);
}
.hd-hero .hd-foot b { color: #F6C453; }

/* ---------- Hero 底部行情指标条 ---------- */
.hd-ticker {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 64px auto 0;
    padding: 20px 20px 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.hd-tk-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 12px 16px;
    overflow: hidden;
}
.hd-tk-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tk, rgba(255, 255, 255, .2));
}
.hd-tk-blue   { --tk: #3488BC; }
.hd-tk-purple { --tk: #6F6EED; }
.hd-tk-green  { --tk: #34D399; }
.hd-tk-cyan   { --tk: #64A5FF; }
.hd-tk-gold   { --tk: #F6C453; }
.hd-tk-item b { color: #fff; font-size: 15px; font-weight: 700; }
.hd-tk-item i { font-style: normal; font-size: 11px; }
.hd-tk-item .up { color: #34D399; }
.hd-tk-item .down { color: #F87171; }
.hd-tk-item .ok { color: #6F6EED; }

/* 顶部导航：下滑后不透明（覆盖 sales_home 的 97% 半透明） */
.site-nav.scrolled { background: #fff; }

/* 区块英文标签：黑色底白色文字 */
.sec-tag {
    background: #0B0F1A;
    color: #fff;
}

/* 帮助区 CTA：免费试用按钮固定宽度 */
.help-actions .btn-primary { width: 200px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hd-grid-3, .hd-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hd-panel { max-width: 420px; }
    .hd-ticker { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .hd-grid-2, .hd-grid-3, .hd-grid-4 { grid-template-columns: 1fr; }
    .hd-panel { max-width: 100%; padding: 22px 20px; }
    .hd-ticker {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 44px;
        padding: 0 20px;
    }
    .hd-tk-item { flex: 0 0 calc(50% - 6px); justify-content: center; min-width: 140px; }
}
