/* 雾电竞 · H5 视觉系统 v2 */

:root {
  /* 底色 */
  --bg: #0A0D12;
  --surface: #12171F;
  --surface-2: #1A212B;
  --surface-3: #212A36;
  --line: #232B36;
  --line-2: #2E3742;

  /* 文字 */
  --text: #F2F6FB;
  --text-2: #A9B4C4;
  --text-3: #6B7788;

  /* 品牌 */
  --lime: #B8F04A;
  --lime-2: #8FBF2E;
  --lime-soft: rgba(184, 240, 74, 0.12);
  --cyan: #5EEAD4;
  --violet: #8B5CF6;
  --danger: #FF5F5F;
  --warn: #FFA53D;
  --info: #63B3FF;

  /* 形状 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --sh-1: 0 2px 8px rgba(0, 0, 0, 0.24);
  --sh-2: 0 10px 30px rgba(0, 0, 0, 0.38);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 14px 96px;
  position: relative;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---------------- 排版 ---------------- */
h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.4px; }
h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }

.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.lime { color: var(--lime); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.price { font-size: 21px; font-weight: 800; color: var(--lime); font-family: 'SF Mono', Menlo, monospace; letter-spacing: -0.5px; }
.punit { font-size: 12px; color: var(--lime-2); margin-left: 3px; font-weight: 500; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh-1);
}
.card.tap:active { background: var(--surface-2); }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.3px;
}
.t-blue { background: rgba(99, 179, 255, 0.14); color: var(--info); }
.t-lime { background: var(--lime-soft); color: var(--lime); }
.t-orange { background: rgba(255, 165, 61, 0.14); color: var(--warn); }
.t-red { background: rgba(255, 95, 95, 0.14); color: var(--danger); }
.t-grey { background: rgba(169, 180, 196, 0.1); color: var(--text-2); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; border-radius: var(--r-md); font-size: 15px; font-weight: 700;
  border: none; width: 100%; cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, #C8F75C, #A8E23A); color: #0A0D12; box-shadow: 0 6px 18px rgba(184, 240, 74, 0.22); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-danger { background: rgba(255, 95, 95, 0.12); color: var(--danger); border: 1px solid rgba(255, 95, 95, 0.28); }
.btn-mini { height: 34px; font-size: 13px; padding: 0 16px; width: auto; border-radius: 9px; }
.btn[disabled] { opacity: 0.4; box-shadow: none; }

/* ---------------- 选择器 ---------------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px;
  border-radius: 8px; background: var(--surface-2); color: var(--text-2);
  font-size: 13px; margin: 0 7px 7px 0; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.on { background: var(--lime-soft); color: var(--lime); border-color: rgba(184, 240, 74, 0.38); font-weight: 600; }
.chip:active { background: var(--surface-3); }

/* ---------------- 表单 ---------------- */
.field { padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: none; }
.field-label { font-size: 12px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.input {
  width: 100%; height: 44px; background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 0 12px; color: var(--text); font-size: 15px;
  font-family: inherit; outline: none; transition: border-color 0.15s, background 0.15s;
}
.input:focus { border-color: rgba(184, 240, 74, 0.45); background: #1C2430; }
textarea.input { height: auto; min-height: 76px; padding: 11px 12px; line-height: 1.6; resize: vertical; }
.input::placeholder { color: var(--text-3); font-size: 14px; }

/* ---------------- 顶部 ---------------- */
.hero { padding: 6px 2px 18px; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-sub { font-size: 12px; color: var(--text-3); margin-top: 7px; letter-spacing: 0.2px; }
.hero-num-wrap { text-align: right; position: relative; }
.hero-num { font-size: 32px; font-weight: 800; color: var(--lime); font-family: 'SF Mono', Menlo, monospace; line-height: 1; letter-spacing: -1px; }
.hero-lab { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 480px; margin: 0 auto; height: 60px;
  background: rgba(10, 13, 18, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--text-3); cursor: pointer; position: relative;
  transition: color 0.15s;
}
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--lime); }
.tab.on::after {
  content: ''; position: absolute; top: 6px; width: 22px; height: 22px;
  background: radial-gradient(circle, rgba(184, 240, 74, 0.22), transparent 70%);
  border-radius: 50%;
}

/* ---------------- 提示条 ---------------- */
.notice {
  display: flex; gap: 8px; padding: 11px 13px; margin-bottom: 12px; border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(184, 240, 74, 0.09), rgba(184, 240, 74, 0.03));
  border: 1px solid rgba(184, 240, 74, 0.16);
  font-size: 12px; color: var(--lime); line-height: 1.55;
}

/* ---------------- 订单卡 ---------------- */
.order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 15px 13px;
  margin-bottom: 11px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
  box-shadow: var(--sh-1);
}
.order:active { transform: scale(0.995); background: var(--surface-2); }
.order-top { display: flex; align-items: center; gap: 8px; }
.order-mode { font-size: 12px; color: var(--text-3); }
.order-time { margin-left: auto; font-size: 11px; color: var(--text-3); }
.order-mid { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
.qty { display: flex; align-items: baseline; gap: 3px; }
.qty b { font-size: 26px; font-weight: 800; letter-spacing: -1px; font-family: 'SF Mono', Menlo, monospace; }
.qty span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.order-price { text-align: right; }
.order-price .num { font-size: 24px; font-weight: 800; color: var(--lime); font-family: 'SF Mono', Menlo, monospace; letter-spacing: -0.8px; }
.order-price .cur { font-size: 14px; color: var(--lime-2); margin-right: 1px; }
.order-price .per { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.2px; }
.order-meta { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--surface-2); font-size: 11px; color: var(--text-2);
}
.pill.mono { font-family: 'SF Mono', Menlo, monospace; letter-spacing: 0.5px; }
.order-bot {
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.order-no { font-size: 10px; color: var(--text-3); font-family: 'SF Mono', Menlo, monospace; }
.grab {
  height: 34px; padding: 0 20px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #C8F75C, #A8E23A); color: #0A0D12;
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px; font-family: inherit;
  box-shadow: 0 4px 14px rgba(184, 240, 74, 0.2);
}
.grab:active { transform: scale(0.96); }

/* ---------------- 发单：价格区 ---------------- */
.price-block {
  background: linear-gradient(160deg, #1A2230, #141A23);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  margin-bottom: 12px;
}
.price-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.price-input-wrap { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px; }
.price-input-wrap .cur { font-size: 22px; color: var(--lime-2); font-weight: 700; }
.price-input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 36px; font-weight: 800; font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: -1px; padding: 0;
}
.price-input::placeholder { color: #3A4553; font-size: 30px; }
.quick-prices { display: flex; gap: 8px; margin-top: 10px; }
.quick-prices .qp {
  flex: 1; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--text-2); cursor: pointer; font-family: 'SF Mono', Menlo, monospace;
}
.quick-prices .qp:active { background: rgba(184, 240, 74, 0.12); color: var(--lime); }

/* 发单底部条 */
.pub-bar {
  position: fixed; left: 0; right: 0; bottom: 60px; z-index: 29;
  max-width: 480px; margin: 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom) * 0.2);
  background: rgba(10, 13, 18, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.pub-bar .sum { flex: none; }
.pub-bar .sum .k { font-size: 10px; color: var(--text-3); }
.pub-bar .sum .v { font-size: 20px; font-weight: 800; color: var(--lime); font-family: 'SF Mono', Menlo, monospace; }
.pub-bar .sum .v small { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.pub-bar .btn { flex: 1; height: 46px; }

/* ---------------- 详情 ---------------- */
.status-card {
  position: relative;
  background: linear-gradient(150deg, #1C2534, #141A23);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.status-card::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(184, 240, 74, 0.16), transparent 70%);
}
.status-label { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.status-label.lime { color: var(--lime); }
.status-label.red { color: var(--danger); }
.status-label.orange { color: var(--warn); }
.status-label.blue { color: var(--info); }
.status-label.grey { color: var(--text-2); }
.status-hint { font-size: 12px; color: var(--text-3); margin-top: 7px; }
.info-row { display: flex; padding: 8px 0; font-size: 14px; }
.info-k { width: 78px; flex: none; color: var(--text-3); font-size: 12px; padding-top: 1px; }
.info-v { flex: 1; word-break: break-all; }

.tl { display: flex; gap: 10px; }
.tl-rail { width: 12px; display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none;
  box-shadow: 0 0 0 3px rgba(184, 240, 74, 0.12);
}
.dot.mute { background: var(--line-2); box-shadow: none; }
.tl-line { flex: 1; width: 1px; background: var(--line); margin: 3px 0; }
.tl-body { flex: 1; padding-bottom: 14px; }
.tl-label { font-size: 13px; font-weight: 600; }
.tl-note { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.shots { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.shots img {
  width: calc((100% - 14px) / 3); max-width: 110px; aspect-ratio: 1 / 1; height: auto;
  object-fit: cover; border-radius: 10px; border: 1px solid var(--line);
}
.proof-box {
  border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 18px;
  text-align: center; cursor: pointer; color: var(--text-3); font-size: 13px;
  background: rgba(255, 255, 255, 0.015); transition: border-color 0.15s, color 0.15s;
}
.proof-box:active { border-color: rgba(184, 240, 74, 0.4); color: var(--lime); }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 480px; margin: 0 auto;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(10, 13, 18, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); display: flex; gap: 10px;
}
.action-bar .btn { flex: 1; }

/* ---------------- 钱包 / 我的 ---------------- */
.bal {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(94, 234, 212, 0.12), transparent 55%),
    radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 20px 16px 16px; margin-bottom: 12px;
}
.bal-num { font-size: 38px; font-weight: 800; color: var(--text); font-family: 'SF Mono', Menlo, monospace; line-height: 1; letter-spacing: -1.5px; }
.bal-row { display: flex; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bal-cell { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.bal-num2 { font-size: 15px; font-family: 'SF Mono', Menlo, monospace; font-weight: 600; }
.tx { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tx:last-child { border-bottom: none; }

.profile { display: flex; align-items: center; gap: 13px; padding: 12px 4px 20px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 900; color: #0A0D12;
  box-shadow: 0 6px 20px rgba(94, 234, 212, 0.18);
}
.avatar-img { object-fit: cover; display: block; }
.menu { padding: 0 16px; }
.menu-row {
  display: flex; align-items: center; gap: 10px; height: 54px;
  border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer;
}
.menu-row:last-child { border-bottom: none; }
.menu-row:active { opacity: 0.7; }
.arrow { color: var(--text-3); font-size: 16px; }

.switch { width: 46px; height: 27px; border-radius: 14px; background: var(--surface-3); position: relative; flex: none; cursor: pointer; transition: background 0.2s; }
.switch.on { background: linear-gradient(180deg, #C8F75C, #A8E23A); }
.switch::after {
  content: ''; position: absolute; width: 21px; height: 21px; border-radius: 50%; background: #0A0D12;
  top: 3px; left: 3px; transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch.on::after { left: 22px; }

/* ---------------- 登录 ---------------- */
.login { position: fixed; inset: 0; background: radial-gradient(120% 80% at 50% 0%, #151C26, #0A0D12 60%); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 330px; text-align: center; }
.login-logo {
  width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 24px;
  background: linear-gradient(140deg, var(--cyan), var(--violet)); color: #0A0D12;
  font-size: 36px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.28);
}
.login-title { font-size: 23px; font-weight: 900; letter-spacing: 4px; }
.login-sub { font-size: 12px; color: var(--text-3); margin: 7px 0 26px; letter-spacing: 3px; }
.login .input { margin-bottom: 10px; text-align: center; height: 46px; }
.login-tip { font-size: 11px; color: var(--text-3); margin-top: 14px; line-height: 1.7; text-align: left; }

.auth-tabs { display: flex; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.auth-tab { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.auth-tab.on { background: var(--surface-2); color: var(--lime); font-weight: 700; }
#pane-phone .input, #pane-guest .input { margin-bottom: 10px; }
#pane-wx .btn { margin-bottom: 4px; }
.login-links { display: flex; justify-content: center; gap: 16px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.login-links span { cursor: pointer; }
.login-links span:active { color: var(--lime); }

/* ---------------- 反馈 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(26, 33, 43, 0.98); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 13px; z-index: 70; max-width: 82%;
  text-align: center; line-height: 1.5; box-shadow: var(--sh-2);
  animation: toastIn 0.18s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.empty { padding: 64px 20px; text-align: center; color: var(--text-3); font-size: 13px; line-height: 1.9; }
.empty-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  background: linear-gradient(140deg, rgba(94, 234, 212, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-size: 26px; opacity: 0.9;
}

/* 骨架屏 */
.sk { background: linear-gradient(90deg, #161C25 25%, #1E2530 37%, #161C25 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 148px; border-radius: var(--r-lg); margin-bottom: 11px; }

/* 弹层 */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.66); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 480px; margin: 0 auto;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2); box-shadow: var(--sh-2);
}

/* 分割与工具 */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.fee-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.section-title { font-size: 12px; color: var(--text-2); margin: 14px 4px 10px; font-weight: 600; letter-spacing: 0.5px; }

.mi { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); flex: none; }
.mi svg { width: 18px; height: 18px; }
.menu-row:active .mi { color: var(--lime); }

.legal-line { font-size: 11px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.legal-line a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.legal-line a:active { color: var(--lime); }

/* 品牌标识 */
.login-brand {
  display: block; width: 246px; max-width: 74%; height: auto;
  margin: 0 auto 30px; filter: drop-shadow(0 10px 30px rgba(94, 234, 212, 0.12));
}

/* 验证码行 */
.code-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.code-row .input { margin-bottom: 0; flex: 1; }
.captcha { width: 120px; height: 44px; flex: none; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--line); background: var(--card2); }
.captcha svg { display: block; width: 100%; height: 100%; }
.code-btn { width: 108px; flex: none; height: 44px; font-size: 13px; padding: 0; }
.code-btn[disabled] { opacity: .5; }
.login-links { display: flex; justify-content: space-between; margin-top: 10px; }
