/* =====================================================================
   GoldChat · 首页（黄金走势）与金价预报页
   ===================================================================== */

/* ---------------- 实时金价 ---------------- */
.price-hero {
  margin: 14px 14px 0; padding: 18px 18px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff8e6 0%, #fffdf7 55%, #ffffff 100%);
  border: 1px solid #f4e7c4; box-shadow: var(--shadow-1);
}
.hero-label { font-size: 12.5px; color: #9b8342; letter-spacing: .3px; }
.hero-price {
  margin-top: 6px; font-size: 42px; font-weight: 700; color: #3b2f06;
  line-height: 1.05; letter-spacing: -.8px; font-variant-numeric: tabular-nums;
}
.hero-price small { font-size: 14px; font-weight: 500; color: #9b8342; margin-left: 6px; letter-spacing: 0; }
.hero-change { margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.hero-change.up { color: #e64340; }
.hero-change.down { color: #07a35a; }
.hero-change.flat { color: #8b8f96; }
.hero-time { margin-top: 6px; font-size: 11.5px; color: #b3a476; }

/* ---------------- 走势图 ---------------- */
.chart-card, .wbe-card, .forecast-card {
  margin: 12px 14px 0; padding: 16px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-1);
}
.chart-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.chart-sub { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.chart-wrap { position: relative; }
#price-chart { width: 100%; height: 132px; display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.card-head { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.card-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

.wbe-list { display: flex; flex-direction: column; }
.wbe-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.wbe-item:last-child { border-bottom: 0; }
.wbe-item .label { font-size: 14px; color: #3f444b; }
.wbe-item .price { font-size: 16px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.wbe-item .price small { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 3px; }

/* ---------------- 账户区（v4 已移除底部按钮，仅保留右上角账号标识） ---------------- */
.home-account { display: none; }

/* ---------------- 预报页：双阈值输入 / 状态 / 口令验证 ---------------- */
.fc-threshold-row { margin-top: 10px; }
.fc-threshold-row > label {
  display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px;
}
.input-card .btn-primary { margin-top: 14px; letter-spacing: 4px; }

.btn-outline {
  display: block; width: 100%; margin-top: 10px; padding: 12px 16px;
  border: 1.5px solid var(--gold); border-radius: 12px; background: #fff;
  color: #8a6a00; font-size: 15.5px; font-weight: 600; letter-spacing: 1px;
}
.btn-outline:active { background: #fffdf3; }
.btn-outline:disabled { opacity: .55; }

.btn-primary.small, .btn-text.small { width: auto; margin: 0; padding: 9px 18px; font-size: 14.5px; letter-spacing: 1px; }

.fc-state { font-weight: 600; }
.fc-state.on { color: #0a8f4d; }
.fc-state.off { color: #b0742a; }

.fc-pwd {
  margin-top: 14px; padding: 14px; border-radius: 12px;
  background: #f7fbf8; border: 1px solid #d8f0e0;
}
.fc-pwd-tip { font-size: 12.5px; color: #2f7a52; margin-bottom: 10px; }
.fc-pwd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* 顶部导航右侧动作按钮（退出登录） */
.nav-action {
  margin-left: auto; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; color: var(--text-2); font-size: 12.5px;
}
.nav-action:active { background: #f2f3f5; }

/* =====================================================================
   金价预报页
   ===================================================================== */
.forecast-card { padding: 18px 16px; }
.forecast-title { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }

.forecast-line {
  display: flex; align-items: baseline; gap: 8px; padding: 13px 14px; margin-bottom: 10px;
  border-radius: 12px; background: #f8f9fb; border: 1px solid var(--line-soft);
}
.forecast-line.low { background: #f4fbf6; border-color: #d8f0e0; }
.forecast-line.high { background: #fff6f6; border-color: #f8dcdc; }
.fl-label { font-size: 13px; color: var(--text-2); }
.fl-value {
  font-size: 24px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.forecast-line.low .fl-value { color: #0a8f4d; }
.forecast-line.high .fl-value { color: #d93a37; }
.fl-unit { font-size: 12.5px; color: var(--text-3); }
.fl-tag {
  margin-left: auto; padding: 2px 9px; border-radius: 9px; font-size: 11.5px;
  background: var(--gold-soft); color: #8a6a00; border: 1px solid #ecd9a6;
}
.forecast-current {
  margin-top: 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.forecast-current b { color: var(--gold); font-size: 15px; }
.forecast-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

.input-card { margin-top: 12px; }
.fc-input-title { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.fc-input-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fafbfc;
}
.fc-input-row:focus-within { border-color: var(--green); background: #fff; }
.fc-input-row input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 12px 0; font-size: 17px; font-variant-numeric: tabular-nums;
}
.fc-input-unit { font-size: 12.5px; color: var(--text-3); }
.fc-msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: #fa5151; }
.fc-msg.ok { color: var(--green); }
.input-card .btn-primary { margin-top: 6px; letter-spacing: 4px; }

/* ---------------- 预报提示列表 ---------------- */
.alert-list { margin: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.alert-item { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); }
.alert-item .t { font-size: 14px; font-weight: 600; color: var(--text); }
.alert-item .d { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.65; }
.alert-item.up { background: #fff7f7; }
.alert-item.up .t { color: #d93a37; }
.alert-item.down { background: #f4fbf6; }
.alert-item.down .t { color: #0a8f4d; }
.alert-item.info { background: #fffdf3; }
.alert-item.info .t { color: #8a6a00; }

/* 版本标记：仅用于确认是否加载到最新前端，可随时删除 */
.build-tag {
  margin-left: auto; margin-right: 8px; font-size: 10.5px; color: #b9bec6;
  font-family: Consolas, monospace;
}
