/* 酿酒师 H5 — 拟物 (skeuomorphic) 基础样式
   主色:酒红 + 木纹;关键控件用内外阴影营造浮雕/凹刻感
*/
:root {
  --wood-1: #6b3a1f;
  --wood-2: #4b2612;
  --wood-3: #2e150a;
  --wine-1: #8a1c2a;
  --wine-2: #5d0f1b;
  --gold-1: #d9b36b;
  --gold-2: #8a6b2e;
  --ivory: #f4ead8;
  --ink: #2b1a10;
  --muted: #8a7a66;
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, .25);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .08);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -200px, #6b3a1f 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      #3d1e10 0px, #3d1e10 6px, #351808 6px, #351808 12px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  color: var(--ivory);
  background: linear-gradient(180deg, #4b2612 0%, #2e150a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .5);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .04) inset, 0 4px 8px rgba(0, 0, 0, .3);
}
.brand {
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px; letter-spacing: 4px;
  text-shadow: 0 1px 0 #1a0a04, 0 2px 4px rgba(0, 0, 0, .6);
  color: var(--gold-1);
}
.topbar__right { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gold-2); }
.nick { color: var(--ivory); font-size: 13px; }

.container { padding: 14px; display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }

.panel {
  background: linear-gradient(180deg, #f6ecd5, #e6d7b6);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid #b99b63;
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.panel--wood {
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.2)),
    repeating-linear-gradient(0deg, #6b3a1f 0 3px, #5a2f19 3px 6px);
  color: var(--ivory);
  border-color: #2e150a;
}
.panel--wood .panel__title { color: var(--gold-1); }
.panel__title {
  margin: 0 0 10px; font-size: 16px; font-weight: 600;
  letter-spacing: 2px;
  border-bottom: 1px dashed rgba(0, 0, 0, .2);
  padding-bottom: 6px;
}

.resList {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.resList li {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2e150a, #4b2612);
  box-shadow: var(--shadow-inset);
  color: var(--ivory);
}
.resList .res__t { font-size: 11px; color: var(--gold-1); letter-spacing: 1px; }
.resList .res__v { font-size: 16px; font-weight: 700; margin-top: 2px; }

.brewList { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.brewList li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbf5e3;
  border: 1px solid #d9c38a;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.08);
  display: flex; justify-content: space-between; align-items: center;
}
.brewList .brew__name { font-weight: 600; }
.brewList .brew__time { color: var(--muted); font-size: 12px; }

.statGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
  text-align: center; padding: 10px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #efe2c2);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .08);
}
.stat__label { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.stat__v { font-size: 18px; font-weight: 700; margin-top: 2px; color: var(--wine-2); }

.muted { color: var(--muted); }

.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #a3243a, #5d0f1b);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.3),
    0 2px 4px rgba(0,0,0,.3);
}
.btn--primary { background: linear-gradient(180deg, #d9b36b, #8a6b2e); color: #2b1a10; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }

.mask {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.loginBox {
  width: min(92vw, 360px);
  background: linear-gradient(180deg, #f6ecd5, #e6d7b6);
  border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.loginBox h3 { margin: 0 0 8px; }
.loginBox input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #b99b63; background: #fff;
  margin: 10px 0;
}

/* 底部 tabbar */
body { padding-bottom: 64px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; max-width: 640px; margin: 0 auto;
  background: linear-gradient(180deg, #4b2612 0%, #2e150a 100%);
  border-top: 1px solid #1a0a04;
  box-shadow: 0 -2px 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 9;
}
.tabbar__item {
  flex: 1; text-align: center; padding: 12px 0;
  color: #8a7a66; text-decoration: none;
  font-size: 13px; letter-spacing: 2px;
}
.tabbar__item--on {
  color: #d9b36b;
  text-shadow: 0 1px 0 #1a0a04;
}

/* 多页通用控件 */
.search {
  display: flex; gap: 8px; padding: 10px 14px;
  background: rgba(0,0,0,.2);
  position: sticky; top: 56px; z-index: 5;
  border-bottom: 1px solid rgba(0,0,0,.4);
}
.search input {
  flex: 1; padding: 8px 12px; border-radius: 999px;
  border: 1px solid #b99b63; background: #fbf5e3;
}

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin: 8px 14px;
  background: #fbf5e3; border: 1px solid #d9c38a;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.08);
}
.row__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #8a6b2e;
  background: linear-gradient(180deg, #6b3a1f, #2e150a);
  color: #d9b36b;
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-weight: 700;
  flex-shrink: 0;
}
.row__main { flex: 1; min-width: 0; }
.row__name { font-weight: 600; color: #5d0f1b; }
.row__sub { font-size: 12px; color: #8a7a66; }
.row__amount { font-weight: 700; color: #5d0f1b; }

.tabs {
  display: flex; gap: 6px; padding: 10px 14px;
}
.tabs__item {
  flex: 1; text-align: center; padding: 8px 0;
  background: rgba(0,0,0,.25); color: #d9b36b;
  border-radius: 999px; font-size: 13px;
  border: 1px solid rgba(0,0,0,.4);
  cursor: pointer; user-select: none;
}
.tabs__item--on {
  background: linear-gradient(180deg, #d9b36b, #8a6b2e); color: #2b1a10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  border-color: #8a6b2e;
}

.empty { text-align: center; padding: 60px 0; color: #8a7a66; }
.loadMore { text-align: center; padding: 12px; color: #8a7a66; font-size: 12px; }

.field {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #b99b63; background: #fff;
  margin: 8px 0;
}

/* sheet (用于实名等) */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #f6ecd5, #e6d7b6);
  padding: 20px 16px 80px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
  z-index: 100; max-width: 640px; margin: 0 auto;
}
.sheet h3 { margin: 0 0 6px; color: #5d0f1b; }
.sheet__btns { display: flex; gap: 10px; margin-top: 14px; }
.sheet__btns .btn { flex: 1; }
