/* 公开首页层（Public Homepage Layer）
   目的：把「公开行情」与「个人交易数据」物理分开。
   - 公开层默认开启：首页只出现公开行情 / 宏观事件 / SI 情报 / 方法论入口
   - 个人数据（权益、持仓、盈亏、订单、风控状态）只在 /terminal/ 解锁后可见
   - 需要看控制台时：/?app=1 或点「进入交易终端」
   回滚：删 index.html 里 hw-public.css / hw-public.js 两行即可。 */

html.hw-public .main,
html.hw-public body .app .main { display: none !important; }
html.hw-public #hwLanding { display: none !important; }

/* 2026-11-10 t15u: 首屏 100vh 只留地球+导航；行情/事件在首屏下方可滚动。 */
html.hw-public,
html.hw-public body,
html.hw-theme.hw-public,
html.hw-theme.hw-public body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html.hw-public .app {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: block !important;
}
html.hw-public .earth-bg,
html.hw-public #earthBg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
}

#hwPub {
  position: relative; z-index: 60;
  display: block; height: auto; min-height: 100vh;
  padding: 0; color: #e8eef8;
  font-family: Inter, "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  pointer-events: none;
  background: none;
}
#hwPub > * { pointer-events: auto; }

.hwp-stage {
  position: relative;
  height: 100vh; min-height: 100vh;
  box-sizing: border-box;
  padding: 18px clamp(18px, 3.2vw, 48px) 16px;
  display: flex; flex-direction: column;
}
.hwp-scrollcue {
  margin-top: auto; align-self: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .26em; color: #8d9cb5;
  padding: 10px 0 18px;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
html.hw-public.hw-intro-done .hwp-scrollcue { opacity: .8; }

.hwp-below {
  position: relative; z-index: 2;
  padding: 48px clamp(18px, 3.2vw, 48px) 36px  ;
  background:
    linear-gradient(180deg, rgba(7,9,16,.92) 0%, rgba(7,9,16,.97) 40%, #070910 100%);
  border-top: 1px solid rgba(77,124,254,.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hwp-below-row {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: minmax(0, 1fr) min(320px, 34vw);
  margin-top: 28px;
}

/* ---------- 顶部导航 ---------- */
.hwp-nav {
  display: flex; align-items: center; gap: 26px;
  padding: 10px 16px; border-radius: 14px;
  border: 1px solid rgba(77,124,254,.16);
  background: linear-gradient(180deg, rgba(10,14,23,.86), rgba(8,10,18,.62));
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.hwp-brand { display: flex; align-items: center; gap: 9px; color: #eef4ff; text-decoration: none; font-size: 13px; letter-spacing: .06em; }
.hwp-brand b { font-weight: 700; color: #fff; }
.hwp-logo {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #dfe9ff;
  background: linear-gradient(140deg, rgba(77,124,254,.42), rgba(10,14,23,.9));
  border: 1px solid rgba(120,160,255,.36);
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.hwp-links { display: flex; gap: 20px; font-size: 12.5px; }
.hwp-links a { color: #98a6bd; text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.hwp-links a:hover { color: #dfe9ff; }
.hwp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hwp-amb {
  font: inherit; font-size: 11.5px; color: #9fb0c9; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 7px 12px; transition: all .2s;
}
.hwp-amb:hover { color: #e8eef8; border-color: rgba(77,124,254,.45); }
.hwp-quiet {
  font-size: 12px; color: #7f8ea6; text-decoration: none; letter-spacing: .04em;
  padding: 6px 2px; border-bottom: 1px solid rgba(127,142,166,.28);
  transition: color .2s, border-color .2s;
}
.hwp-quiet:hover { color: #cfdcf0; border-color: rgba(160,190,235,.55); }
.hwp-cont { margin: 22px 0 0; font-size: 12px; color: #6f7d93; }
.hwp-cont .hwp-quiet { margin-left: 8px; }

/* ---------- 主视觉 ---------- */
.hwp-hero { margin-top: clamp(26px, 7vh, 84px); max-width: 560px; }
.hwp-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px;
  letter-spacing: .32em; color: #7f93b4; text-transform: uppercase; margin: 0 0 14px;
}
.hwp-hero h1 {
  margin: 0; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12;
  letter-spacing: -.02em; font-weight: 700;
  background: linear-gradient(112deg, #ffffff 0%, #d8e6ff 46%, #7fa6ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hwp-hero .hwp-sub {
  margin: 16px 0 0; font-size: 13.5px; line-height: 1.72; color: #9dabc2; max-width: 470px;
}
.hwp-btn {
  font-size: 13px; font-weight: 600; color: #eef4ff; text-decoration: none;
  padding: 11px 20px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(77,124,254,.22), rgba(10,14,23,.7));
  border: 1px solid rgba(120,160,255,.42);
  box-shadow: inset 0 1px rgba(255,255,255,.1);
  transition: all .2s;
}
.hwp-btn:hover { border-color: rgba(160,200,255,.75); box-shadow: 0 0 26px -8px rgba(77,124,254,.85), inset 0 1px rgba(255,255,255,.16); }
.hwp-note { font-size: 11px; color: #6f7d93; }

/* ---------- 公开行情条 ---------- */
.hwp-market {
  margin-top: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  max-width: none;
}
.hwp-mk {
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(160deg, rgba(16,21,33,.86), rgba(9,12,19,.74));
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: border-color .2s, transform .2s;
}
.hwp-mk:hover { border-color: rgba(77,124,254,.42); transform: translateY(-1px); }
.hwp-mk .k { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8d9cb5; letter-spacing: .08em; }
.hwp-mk .p { margin-top: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 16px; font-weight: 600; color: #f0f5ff; font-variant-numeric: tabular-nums; }
.hwp-mk .c { margin-top: 2px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hwp-up { color: #35d69c; } .hwp-dn { color: #ff6b81; } .hwp-flat { color: #8d9cb5; }
.hwp-skel { height: 62px; border-radius: 12px; border: 1px solid rgba(255,255,255,.05); background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)) 0 0/220% 100%; animation: hwpShine 1.4s linear infinite; }
@keyframes hwpShine { 0% { background-position: 0 0; } 100% { background-position: 100% 0; } }

/* ---------- 右侧情报（随下方滚动区排版，不再绝对定位盖在首屏上） ---------- */
.hwp-side {
  position: static; width: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.hwp-card {
  padding: 13px 15px; border-radius: 13px;
  border: 1px solid rgba(77,124,254,.16);
  background: linear-gradient(160deg, rgba(12,17,27,.9), rgba(8,10,17,.72));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hwp-card h4 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: #7f93b4; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.hwp-card h4 i { width: 5px; height: 5px; border-radius: 50%; background: #4d7cfe; box-shadow: 0 0 8px #4d7cfeb3; display: inline-block; }
.hwp-ev { display: flex; align-items: baseline; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.hwp-ev:last-child { border-bottom: 0; }
.hwp-ev .t { flex: 1; min-width: 0; color: #cdd8ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwp-ev .w { flex: 0 0 auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: #8d9cb5; }
.hwp-ev.hot .w { color: #ff8b9c; font-weight: 600; }
.hwp-si { font-size: 12px; line-height: 1.5; color: #b9c6da; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.hwp-si:last-child { border-bottom: 0; }
.hwp-si b { color: #eef4ff; font-weight: 600; }
.hwp-si .src { display: block; margin-top: 3px; font-size: 10.5px; color: #6f7d93; }
.hwp-empty { font-size: 11.5px; color: #6f7d93; padding: 4px 0 2px; }

/* ---------- 底部 ---------- */
.hwp-foot {
  margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 10.5px; color: #5f6c82; letter-spacing: .04em;
}
.hwp-foot a { color: #7f93b4; text-decoration: none; }
.hwp-foot a:hover { color: #dfe9ff; }
.hwp-foot .dot { opacity: .45; }

/* ---------- 氛围关闭 ---------- */
html.hw-amb-off #earthBg, html.hw-amb-off .earth-bg { opacity: .18 !important; filter: saturate(.4) brightness(.7); transition: opacity .5s, filter .5s; }
html.hw-amb-off #coinTagLayer, html.hw-amb-off .hw-hud-frame { opacity: .12 !important; }
html.hw-amb-off #hwPub .hwp-below { background: #070910; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .hwp-links { display: none; }
  .hwp-below-row { grid-template-columns: 1fr; }
  .hwp-hero { margin-top: 8px; max-width: none; }
  .hwp-market { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .hwp-foot { margin-top: 12px; }
}
@media (max-width: 560px) {
  .hwp-stage { padding: 12px 14px 12px; }
  .hwp-below { padding: 28px 14px 24px; }
  .hwp-nav { gap: 10px; padding: 9px 11px; }
  .hwp-brand span:last-child { display: none; }
  .hwp-amb { padding: 6px 9px; font-size: 10.5px; }
  .hwp-quiet { font-size: 11.5px; }
  .hwp-hero h1 { font-size: 30px; }
  .hwp-hero .hwp-sub { font-size: 12.5px; }
  .hwp-market { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hwp-skel { animation: none; }
  .hwp-mk:hover { transform: none; }
}


/* ---------- 品牌 logo ---------- */
.hwp-logo-img {
  width: 26px; height: 26px; border-radius: 7px; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(120,160,255,.25), 0 4px 14px -6px rgba(77,124,254,.8);
}
.hwp-brand-tx { white-space: nowrap; }

/* ---------- 币圈大事件 ---------- */
.hwp-live {
  margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px; letter-spacing: .12em; color: #59e0b0;
  border: 1px solid rgba(53,214,156,.35); border-radius: 999px; padding: 1px 7px;
  background: rgba(53,214,156,.08);
}
.hwp-evlist { max-height: 216px; overflow-y: auto; margin: -2px -4px 0; padding: 0 4px; }
.hwp-evlist::-webkit-scrollbar { width: 4px; }
.hwp-evlist::-webkit-scrollbar-thumb { background: rgba(120,150,200,.28); border-radius: 4px; }
.hwp-evx {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.06);
  text-decoration: none; color: #b9c6da; font-size: 12px; line-height: 1.45;
}
.hwp-evx:last-child { border-bottom: 0; }
.hwp-evx:hover .ti { color: #eef4ff; }
.hwp-evx .ti { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hwp-evx .ts { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: #65748c; white-space: nowrap; }
.hwp-evx .cat {
  font-size: 9.5px; padding: 1px 6px; border-radius: 5px; white-space: nowrap;
  letter-spacing: .04em; border: 1px solid transparent;
}
.hwp-evx .cat.new { color: #59e0b0; background: rgba(53,214,156,.1); border-color: rgba(53,214,156,.28); }
.hwp-evx .cat.out { color: #ff8b9c; background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.28); }
.hwp-evx .cat.fut { color: #9bb4ff; background: rgba(77,124,254,.12); border-color: rgba(77,124,254,.32); }
.hwp-evx .cat.risk { color: #f0a35e; background: rgba(232,102,61,.12); border-color: rgba(232,102,61,.3); }
.hwp-evx .cat.news { color: #a9b8d0; background: rgba(160,180,210,.08); border-color: rgba(160,180,210,.2); }
.hwp-evx .cat.info { color: #8d9cb5; background: rgba(141,156,181,.08); border-color: rgba(141,156,181,.2); }

/* ---------- 空闲收起（t15u：只淡化下方行情卡，且仅在首屏停留时） ---------- */
.hwp-below {
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1), filter .9s ease;
}
html.hwp-idle .hwp-below {
  opacity: 0; transform: translateY(8px); filter: blur(2px); pointer-events: none;
}
html.hwp-idle .hwp-nav { opacity: .55; transition: opacity .9s ease; }
.hwp-dim { color: #65748c; }
@media (prefers-reduced-motion: reduce) {
  .hwp-below, .hwp-nav, .hwp-scrollcue { transition: none; }
}

/* ============================================================
   公开首页层 · 一次性去叠（2026-11-09）
   首页只保留：地球背景 + 公开数据层(#hwPub)。
   历史上叠在首页上的旧叙事页、遗留画布、HUD 框、悬浮控件全部关掉。
   作用域限定 html.hw-public，控制台与终端背景不受影响。
   ============================================================ */
html.hw-public #hwScrollStory,
html.hw-public .hw-hud-frame,
html.hw-public #hwTopSense,
html.hw-public #hwBattleBar,
html.hw-public #v9Progress,
html.hw-public #v9ScrollHint,
html.hw-public #v11Ambient,
html.hw-public #v9Field,
html.hw-public #v10Field,
html.hw-public #v11Field,
html.hw-public #v10Glow,
html.hw-public .hw-aurora,
html.hw-public #hwV4Act,
html.hw-public #hexCoinTip,
html.hw-public #hwSupHandle,
html.hw-public #hwSupPanel,
html.hw-public #cpFab,
html.hw-public #copilotPanel,
html.hw-public #hwTermFab,
html.hw-public .hw-zoom-hint,
html.hw-public #cmdOverlay,
html.hw-public .site-footer {
  display: none !important;
}

/* 旧控制台面板被搬到 body 下，会浮在首页：一律不显示 */
html.hw-public body > .hw-wide-band,
html.hw-public body > .home-band,
html.hw-public body > #homeLinks,
html.hw-public body > .ticker,
html.hw-public body > .site-footer {
  display: none !important;
}

/* 2026-11-10 t15u: 用 ID 选择器覆盖上面 html.hw-public #hwSupHandle {display:none}；仅在汇聚结束后（app）显示。 */
html.hw-public.hw-intro-done #hwSupHandle {
  display: grid !important;
}
html.hw-public.hw-intro-done #hwSupPanel {
  display: block !important;
}

/* ---------- v20261114a 小幅升级（整块可删即回滚） ---------- */
/* 1) 看不清的小字：只提亮文字，不改底色 */
html.hw-public.hw-intro-done .hwp-scrollcue { color: #b9c7de; opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.hwp-foot { color: #8a98b0; }
.hwp-foot a { color: #a6b7d4; }
.hwp-dim { color: #8b99b1; }
.hwp-empty, .hwp-si .src { color: #8a98ae; }
.hwp-mk .k { color: #a3b1c8; }
/* 2) 手机上导航链接不再消失：收成第二行，可左右滑 */
@media (max-width: 980px) {
  .hwp-nav { flex-wrap: wrap; row-gap: 6px; }
  .hwp-links {
    display: flex; order: 3; width: 100%; gap: 16px; font-size: 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 6px 2px 1px; border-top: 1px solid rgba(150,190,255,.10);
  }
  .hwp-links::-webkit-scrollbar { display: none; }
  .hwp-links a { color: #b3c1d8; white-space: nowrap; padding: 2px 0; }
}
/* 3) 手机上右侧礼物把手收窄变淡，不再压住内容 */
@media (max-width: 560px) {
  html.hw-public.hw-intro-done #hwSupHandle { width: 28px !important; min-width: 0 !important; height: 36px !important; bottom: 16px !important; opacity: .78; }
  html.hw-public.hw-intro-done #hwSupHandle svg { width: 14px; height: 14px; }
}
/* v20261114c：「市场情报」卡片一直空着，先隐藏（删掉这一行即恢复） */
html.hw-public #hwpIntelCard { display: none !important; }
