/* ============================================================
   汇链仓 · 黑金清算 设计系统 v1.0（2026-10-19）
   曜石黑底 #0B0F19 · 钛金深卡 #151C2C · 香槟金 #D4AF37
   用法：每个页面 <link rel="stylesheet" href="../css/hlc-business.css">
   数据位标注：HTML 内用 <!-- DATA:xxx --> 注释标出后端需填充的位置
   ============================================================ */

:root {
  --bg: #0B0F19;            /* 页面底 */
  --card: #151C2C;          /* 一级卡片 */
  --card2: #1C2536;         /* 二级块/输入底 */
  --deep1: #1C2536;         /* 深卡渐变起 */
  --deep2: #10151F;         /* 深卡渐变止 */
  --gold: #D4AF37;          /* 香槟金主色 */
  --gold-hi: #E5C368;       /* 金渐变亮端 */
  --gold-lo: #B08D3E;       /* 金渐变暗端 */
  --gold-dim: #8A7326;      /* 金弱化 */
  --ink: #F2EFE6;           /* 主文字（暖白） */
  --sub: #AAB3C5;           /* 次文字 */
  --muted: #6E7891;         /* 弱文字 */
  --line: #26304A;          /* 描边 */
  --green: #34D399;         /* 成功/进行中 */
  --amber: #FBBF24;         /* 等待/待解锁 */
  --red: #F87171;           /* 危险/退出 */
  --num: "Inter", "PingFang SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); font-size: 13px; line-height: 1.5;
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: 80px;
}

/* ---------- 页面骨架 ---------- */
.hlc-page { display: flex; flex-direction: column; min-height: 100vh; }
.hlc-main { flex: 1; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 子页头部（返回 + 标题） ---------- */
.hlc-subheader { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; }
.hlc-back {
  width: 32px; height: 32px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1;
}
.hlc-subheader h1 { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- 卡片 ---------- */
.hlc-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.hlc-card--deep {
  background: linear-gradient(180deg, var(--deep1), var(--deep2));
  border: 1px solid rgba(212, 175, 55, .25);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
.hlc-card--row { flex-direction: row; align-items: center; gap: 11px; }

/* ---------- 段落标题（金条 + 文案） ---------- */
.hlc-sec { display: flex; align-items: center; justify-content: space-between; }
.hlc-sec-l { display: flex; align-items: center; gap: 8px; }
.hlc-sec-l::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }
.hlc-sec-l span { font-size: 14px; font-weight: 700; color: var(--ink); }
.hlc-sec-more { font-size: 10.5px; color: var(--muted); text-decoration: none; }

/* ---------- 按钮 ---------- */
.hlc-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border-radius: 13px; border: none; width: 100%;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: #1A1405; text-decoration: none;
}
.hlc-btn:active { opacity: .88; }
.hlc-btn--sm { height: 38px; width: auto; padding: 0 16px; border-radius: 11px; font-size: 12px; }
.hlc-btn--ghost { background: #EDF0F5; color: var(--muted); font-weight: 400; }
.hlc-btn--dark { background: var(--deep2); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.hlc-btn--danger { background: rgba(248, 113, 113, .1); color: var(--red); }

/* ---------- 胶囊 / 徽标 ---------- */
.hlc-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 9.5px; line-height: 1;
}
.hlc-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hlc-pill--green { background: rgba(52, 211, 153, .13); color: var(--green); }
.hlc-pill--gold   { background: rgba(212, 175, 55, .13); color: var(--gold); }
.hlc-pill--amber  { background: rgba(251, 191, 36, .13); color: var(--amber); }
.hlc-pill--red    { background: rgba(248, 113, 113, .13); color: var(--red); }
.hlc-pill--glass  { background: rgba(255, 255, 255, .08); color: #E4ECF7; }

/* ---------- 数字 / 金额 ---------- */
.hlc-num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.hlc-amount { font-family: var(--num); font-size: 24px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.hlc-amount--hero { font-size: 30px; color: #FFFFFF; }
.hlc-amount--green { color: var(--green); }
.hlc-amount--ink { color: var(--ink); }

/* ---------- 指标行（资产卡内四格） ---------- */
.hlc-metrics { display: flex; flex-wrap:wrap; }
.hlc-metric { flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: center; }
.hlc-metric b { font-family: var(--num); font-size: 12px; color: #FFF; font-variant-numeric: tabular-nums; display:block; }
.hlc-metric span { font-size: 9.5px; color: #B8AE8F; }

/* ---------- 分割线 ---------- */
.hlc-hr { height: 1px; background: rgba(255, 255, 255, .12); border: none; }
.hlc-hr--dark { background: var(--line); }

/* ---------- 列表行（明细/订单） ---------- */
.hlc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px; text-decoration: none; color: inherit;
}
.hlc-row-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hlc-row-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.hlc-row-sub { font-size: 9.5px; color: var(--muted); }
.hlc-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hlc-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: rgba(212, 175, 55, .1); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 17px;
}

/* ---------- 表单字段 ---------- */
.hlc-field { display: flex; flex-direction: column; gap: 7px; }
.hlc-field label { font-size: 11.5px; color: var(--sub); }
.hlc-input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px;
  background: #10151F; border: 1px solid rgba(212, 175, 55, .2);
  color: var(--ink); font-size: 13.5px; font-family: inherit; outline: none;
}
.hlc-input::placeholder { color: var(--muted); }
.hlc-input:disabled, .hlc-input--locked { border-color: var(--line); color: var(--muted); background: #0E121B; }

/* ---------- 页签（交易中/已完成） ---------- */
.hlc-tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.hlc-tab { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 12.5px; color: var(--sub); text-decoration: none; }
.hlc-tab--on { background: rgba(212, 175, 55, .15); color: var(--gold); font-weight: 700; }

/* ---------- 空状态 ---------- */
.hlc-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px 40px; }
.hlc-empty-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .25);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--gold);
}
.hlc-empty h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.hlc-empty p { font-size: 11px; color: var(--sub); }

/* ---------- 底部导航（主 Tab 四页用） ---------- */
.hlc-tabbar-wrap { padding: 6px 16px 12px; position:fixed; bottom:0px; width:100%; background:#0B0F19; }
.hlc-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(21, 28, 44, .93); border: 1px solid var(--line);
  border-radius: 30px; padding: 7px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.hlc-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 15px; border-radius: 20px; text-decoration: none;
  color: var(--muted); font-size: 9px;
}
.hlc-tabbar a .ico { font-size: 20px; line-height: 1; }
.hlc-tabbar a.on { color: var(--gold); font-weight: 600; }

/* ---------- 顶栏（主 Tab 四页：Logo + 节点状态） ---------- */
.hlc-topbar { display: flex; align-items: center; gap: 10px; }
.hlc-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(180deg, #E5C368, #8A7326);
  display: flex; align-items: center; justify-content: center; color: #1A1405; font-size: 19px;
}
.hlc-brand { display: flex; flex-direction: column; gap: 2px; }
.hlc-brand b { font-size: 17px; color: var(--ink); }
.hlc-brand span { font-family: var(--num); font-size: 8px; letter-spacing: 2px; color: var(--muted); }
.hlc-topbar-end { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* ---------- 票券（优惠券示意） ---------- */
.hlc-ticket { display: flex; height: 92px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid rgba(212, 175, 55, .25); }
.hlc-ticket-l {
  width: 104px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(212, 175, 55, .08); border-right: 1px dashed var(--line);
}
.hlc-ticket-l .v { font-family: var(--num); font-size: 26px; font-weight: 700; color: var(--gold); }
.hlc-ticket-l .u { font-size: 8px; color: var(--muted); }
.hlc-ticket-r { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 12px; }
.hlc-ticket.used .hlc-ticket-l .v, .hlc-ticket.used .hlc-ticket-name { color: var(--muted); }

/* ---------- 提示条 ---------- */
.hlc-note { font-size: 9px; color: var(--muted); line-height: 1.6; }

/* ---------- 遮罩弹层（转售确认等，原站 popupModal 对应） ---------- */
.hlc-mask { position: fixed; inset: 0; background: rgba(5, 8, 14, .72); display: none; align-items: center; justify-content: center; padding: 32px; z-index: 90; }
.hlc-mask.show { display: flex; }
.hlc-modal { width: 100%; max-width: 320px; background: var(--card); border: 1px solid rgba(212, 175, 55, .3); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 工具类 ---------- */
.t-sub { color: var(--sub); } .t-muted { color: var(--muted); } .t-gold { color: var(--gold); }
.t-green { color: var(--green); } .t-amber { color: var(--amber); } .t-red { color: var(--red); }
.fs9 { font-size: 9px; } .fs10 { font-size: 10px; } .fs11 { font-size: 11px; } .fs12 { font-size: 12px; }
.fw6 { font-weight: 600; } .fw7 { font-weight: 700; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; }
.between { justify-content: space-between; } .center { align-items: center; } .end { justify-content: flex-end; }
.flex1 { flex: 1; min-width: 0; } .tc { text-align: center; } .break { word-break: break-all; }
