/* 仓库提成 · BBVA 深蓝风格 · v2(2026-07-05 首页照设计稿改版:浅底渐变+主卡打卡条+图标底色四格) */
:root {
  --navy: #072146;
  --grad1: #004481;
  --grad2: #1464A5;
  --cobalt: #1464A5;
  --btn: #053074;
  --bg1: #f3f6fb;
  --bg2: #eaeff7;
  --ink: #0a2540;
  --money: #1F9D55;
  --warn: #B7791F;
  --bad: #C53030;
  --card: #ffffff;
  --muted: #5C6B80;
  --line: #E3E8F0;
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%) fixed;
  color: var(--ink);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
button { font-family: inherit; }

/* ===== 顶部(首页浅色) ===== */
.topbar {
  background: transparent; color: var(--ink);
  padding: calc(14px + env(safe-area-inset-top)) 16px 2px;
  display: flex; align-items: center; gap: 11px;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #004481, #1464A5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; flex: none;
  box-shadow: 0 4px 10px rgba(0,68,129,.3);
}
.who { flex: 1; min-width: 0; }
.who .nm { font-size: 19px; font-weight: 800; line-height: 1.2; }
.lanetag {
  display: inline-block; margin-top: 3px; padding: 2px 10px; border-radius: 999px;
  background: #e3edf8; color: #1464A5; font-size: 13px; font-weight: 700;
}
.langbtn {
  background: #fff; color: #004481; border: none;
  border-radius: 13px; padding: 8px 13px; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(10,37,64,.08);
}
.iconbtn { background: none; border: none; color: #8595A9; font-size: 15px; padding: 6px; }

/* ===== 主卡(渐变+€水印+打卡条) ===== */
.hero {
  margin: 12px 16px 0; border-radius: 22px; padding: 18px 18px 16px; color: #fff;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #004481 0%, #0a5aa8 55%, #1464A5 100%);
  box-shadow: 0 12px 28px rgba(0,68,129,.35);
}
.hero::after {
  content: "€"; position: absolute; right: -8px; bottom: -26px;
  font-size: 140px; font-weight: 900; opacity: .10; pointer-events: none;
}
.heromain { position: relative; z-index: 2; }
.heromain .go { position: absolute; right: 0; top: 0; font-size: 22px; opacity: .6; }
.hero .lbl { font-size: 15px; opacity: .88; font-weight: 600; }
.hero .amt { font-size: 44px; font-weight: 900; letter-spacing: -1px; margin: 3px 0 8px; }
.hero .amt small { font-size: 25px; font-weight: 800; }
.hbadge {
  display: inline-block; font-size: 13.5px; font-weight: 700; padding: 5px 12px;
  border-radius: 13px; background: rgba(255,255,255,.22);
}
.hbadge b { color: #7BE3A7; font-weight: 800; }
.checkin {
  margin-top: 14px; background: rgba(255,255,255,.95); color: #1a1a1a;
  border-radius: 15px; padding: 13px 14px; display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; position: relative; z-index: 2;
  border: none; width: 100%; text-align: left;
}
.checkin.on { color: #17804A; }
.checkin .hint { font-weight: 500; opacity: .55; font-size: 13.5px; min-width: 0; }
.checkin .go2 { margin-left: auto; opacity: .4; font-size: 19px; flex: none; }
.checkin .outbtn2 {
  margin-left: auto; border: 1.5px solid var(--bad); color: var(--bad); background: #fff;
  border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 700; flex: none;
}

/* ===== 2×2 四格 ===== */
.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px 16px 0;
}
.tile {
  background: var(--card); border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 3px 12px rgba(10,37,64,.07);
}
.tile .trow { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.tile .lbl { font-size: 14px; font-weight: 700; color: var(--ink); min-width: 0; }
.tile .cico {
  margin-left: auto; width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.tile .amt { font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: var(--ink); }
.tile .amt.zero { color: #9AA7B8; }
.tile .sub { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.tile .spark { margin-top: 9px; height: 4px; border-radius: 2px; }
.tile.c1 .cico { background: #e3edf8; } .tile.c1 .spark { background: linear-gradient(90deg,#1464A5,#5bc2e7); }
.tile.c2 .cico { background: #e2f5ec; } .tile.c2 .spark { background: linear-gradient(90deg,#2dce89,#7be3b4); }
.tile.c3 .cico { background: #fdeee2; } .tile.c3 .spark { background: linear-gradient(90deg,#f5a623,#ffd47f); }
.tile.c4 .cico { background: #efe7fa; } .tile.c4 .spark { background: linear-gradient(90deg,#7c4dcc,#b79aed); }

.footnote { text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 13px 20px 0; }
.ver { text-align: center; font-size: 11px; color: #A5B1C2; padding: 6px 0 2px; }

/* ===== 列表页 ===== */
.pagehead {
  background: var(--navy); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.pagehead .bk { background: none; border: none; color: #fff; font-size: 24px; padding: 4px 8px 4px 0; }
.pagehead h2 { font-size: 19px; flex: 1; }
.pagehead .langbtn { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.list { padding: 12px 16px; }
.row {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.row .l { flex: 1; min-width: 0; }
.row .d1 { font-size: 16px; font-weight: 700; }
.row .d2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row .r { text-align: right; }
.row .money { font-size: 18px; font-weight: 800; color: var(--money); }
.row .money.zero { color: #9AA7B8; }
.row .sm { font-size: 12px; color: var(--muted); }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-right: 5px; margin-top: 3px;
}
.chip.g { background: #E3F7EC; color: #17804A; }
.chip.y { background: #FDF3DE; color: #96690E; }
.chip.r { background: #FDE8E8; color: #B32020; }
.chip.b { background: #E3EDF9; color: #0F5194; }
.chip.gr { background: #EDF1F6; color: #5C6B80; }
.sumline { font-size: 15px; color: var(--muted); padding: 4px 18px 8px; }
.sumline b { color: var(--money); font-size: 18px; }
.emptybox { text-align: center; color: #9AA7B8; padding: 46px 0; font-size: 15px; }
.notebox {
  margin: 12px 16px; background: #FDF6E3; border: 1px solid #F0DFAE; color: #7A5C0B;
  border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5;
}

/* ===== 打板页 ===== */
.paletbig {
  margin: 16px; text-align: center; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 16px;
}
.paletbig .n { font-size: 54px; font-weight: 800; color: var(--navy); }
.paletbig .eq { font-size: 19px; color: var(--money); font-weight: 700; margin-top: 4px; }
.paletform { padding: 0 16px; display: flex; gap: 10px; }
.paletform input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px; font-size: 16px;
}
.addbtn {
  background: var(--btn); color: #fff; border: none; border-radius: 12px;
  padding: 13px 20px; font-size: 17px; font-weight: 700;
}

/* ===== 登录/改密码 ===== */
.loginwrap {
  min-height: 100vh; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 26px calc(30px + env(safe-area-inset-bottom));
}
.loginlogo {
  width: 84px; height: 84px; border-radius: 24px;
  background: linear-gradient(135deg, var(--grad1), var(--cobalt));
  display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.35); margin-bottom: 18px;
}
.loginwrap h1 { color: #fff; font-size: 27px; margin-bottom: 4px; }
.loginwrap .sub { color: rgba(255,255,255,.65); font-size: 14.5px; margin-bottom: 26px; }
.loginwrap input {
  width: 100%; max-width: 340px; padding: 15px 16px; margin-bottom: 12px;
  border-radius: 14px; border: none; font-size: 17px; background: rgba(255,255,255,.96);
}
.loginwrap .go {
  width: 100%; max-width: 340px; padding: 15px; margin-top: 6px;
  border-radius: 14px; border: none; background: var(--cobalt); color: #fff;
  font-size: 18px; font-weight: 700;
}
.loginwrap .err { color: #FF9C9C; font-size: 14.5px; min-height: 22px; margin-top: 12px; }
.loginwrap .langbtn {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none;
}

/* ===== 底部导航 ===== */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; box-shadow: 0 -4px 16px rgba(10,37,64,.08);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  flex: 1; text-align: center; padding: 9px 0 7px; text-decoration: none;
  color: #8595A9; font-size: 12px; font-weight: 700;
}
.nav a .ic { display: block; font-size: 23px; margin-bottom: 1px; }
.nav a.on { color: #004481; }

.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(7,33,70,.94); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 15px; z-index: 99; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
