/* 心安咨询 · 手机网页版 —— 借鉴 portal.toptica-bj.com 的深色极简品牌风
   黑底 + TOPTICA 红 #E30613，大圆角卡片，大号触摸目标，单列居中 */
:root {
  --bg: #000000;
  --card: #111111;
  --card2: #141414;
  --border: #2a2a2a;
  --input-bg: #050505;
  --input-border: #232323;
  --red: #e30613;
  --red-dark: #b00510;
  --red-glow: rgba(227, 6, 19, .45);
  --text: #ffffff;
  --label: #d1d5db;
  --muted: #9ca3af;
  --green: #34d399;
  --amber: #fbbf24;
  --radius-card: 28px;
  --radius-input: 18px;
  --radius-btn: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
/* 顶部左上角裁切的巨大红色半圆（portal 标志性装饰） */
.deco {
  position: fixed; top: -140px; left: -140px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--red); opacity: .9; z-index: 0; pointer-events: none;
}
.app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 0 20px 96px; min-height: 100vh; }
a { color: var(--text); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--text); }
input::placeholder, textarea::placeholder { color: #6b7280; }

/* 顶部品牌行 */
.brand { display: flex; align-items: center; gap: 12px; padding: 28px 0 8px; }
.logo { width: 52px; height: 52px; border-radius: 14px; background: #1c1c1e; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--red); flex: none; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .18em; }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; margin-top: 20px; }
.card h2 { font-size: 32px; font-weight: 800; line-height: 1.25; }
.card .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* 表单 */
.field { margin-top: 18px; }
.field > label { display: block; font-size: 15px; font-weight: 700; color: var(--label); margin-bottom: 8px; }
.field > label .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; height: 56px; background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: var(--radius-input);
  padding: 0 16px; outline: none; box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
}
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.input:focus { border-color: var(--red); box-shadow: inset 0 1px 3px rgba(0,0,0,.6), 0 0 0 2px rgba(227,6,19,.25); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--input-border);
  background: var(--input-bg); font-size: 15px; color: var(--label);
}
.chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

/* 按钮 */
.btn {
  display: block; width: 100%; height: 58px; border-radius: var(--radius-btn);
  background: linear-gradient(180deg, #f01420, var(--red));
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .05em;
  box-shadow: 0 8px 28px var(--red-glow); margin-top: 24px;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn-ghost {
  display: block; width: 100%; height: 52px; border-radius: var(--radius-btn);
  border: 1px solid var(--border); background: var(--card2);
  color: var(--label); font-size: 16px; font-weight: 700; margin-top: 12px;
}
.btn-danger { background: none; border: 1px solid #7f1d1d; color: #fca5a5; box-shadow: none; height: 48px; font-size: 15px; }
.link { color: var(--muted); font-size: 14px; text-align: center; display: block; margin-top: 16px; }
.link b { color: var(--text); }

/* 服务卡片 */
.service { border: 1px solid var(--border); border-radius: 20px; padding: 18px; margin-top: 12px; background: var(--card2); }
.service.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.service .s-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service .s-name { font-size: 18px; font-weight: 800; }
.service .s-price { font-size: 20px; font-weight: 800; color: var(--red); white-space: nowrap; }
.service .s-price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.service .s-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.service .s-intro { color: var(--label); font-size: 14px; margin-top: 8px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #1c1c1e; color: var(--label); margin: 8px 6px 0 0; }

/* 日历 */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cal-head .m { font-size: 18px; font-weight: 800; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card2); font-size: 20px; color: var(--label); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent;
  background: var(--card2); color: var(--text); font-size: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.cal-day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.cal-day.off { opacity: .28; }
.cal-day.sel { background: var(--red); font-weight: 800; }
.cal-day.sel .dot { background: #fff; }
.cal-day.today { border-color: var(--red); }
.cal-day:disabled { opacity: .2; }

/* 时段 */
.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.slot { min-width: 76px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--input-border); background: var(--input-bg); font-size: 15px; text-align: center; }
.slot.on { background: var(--red); border-color: var(--red); font-weight: 700; }
.slot:disabled { opacity: .25; text-decoration: line-through; }

/* 列表行 / 状态 */
.row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #1f1f1f; font-size: 15px; }
.row:last-child { border-bottom: none; }
.row .k { color: var(--muted); flex: none; }
.row .v { text-align: right; word-break: break-all; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pill.booked { background: rgba(52,211,153,.15); color: var(--green); }
.pill.pending_payment { background: rgba(251,191,36,.15); color: var(--amber); }
.pill.completed { background: #1c1c1e; color: var(--label); }
.pill.cancelled, .pill.refunded { background: rgba(227,6,19,.15); color: #fca5a5; }
.pill.no_show { background: #1c1c1e; color: var(--muted); }
.notice { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #fde68a; border-radius: 16px; padding: 14px 16px; font-size: 14px; margin-top: 16px; }
.err { background: rgba(227,6,19,.12); border: 1px solid rgba(227,6,19,.4); color: #fca5a5; border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-top: 16px; display: none; }
.err.show { display: block; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.big-price { font-size: 44px; font-weight: 800; color: var(--red); }
.countdown { font-size: 15px; color: var(--amber); font-weight: 700; }

/* 底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(10,10,10,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.tabbar-in { max-width: 480px; margin: 0 auto; display: flex; }
.tabbar a { flex: 1; text-align: center; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.tabbar a.on { color: var(--text); font-weight: 700; }
.tabbar a .ic { display: block; font-size: 22px; line-height: 1.2; }

/* 顶部小字链接 */
.top-link { float: right; font-size: 14px; color: var(--muted); padding-top: 40px; }
.hero { margin-top: 20px; }
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 800; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: #1c1c1e; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--red); flex: none; }
.counselor { display: flex; gap: 16px; align-items: center; }
.counselor .c-name { font-size: 20px; font-weight: 800; }
.counselor .c-title { color: var(--muted); font-size: 14px; margin-top: 2px; }
.spin { text-align: center; color: var(--muted); padding: 40px 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 15px; }
