:root {
  color-scheme: light;
  --paper: #fffdf8;
  --paper-soft: #faf7f0;
  --canvas: #f7f3ea;
  --ink: #4e463b;
  --muted: #81786c;
  --line: rgba(117, 87, 58, 0.13);
  --green: #4f6d56;
  --green-soft: #e7eee4;
  --gold: #a77d43;
  --red: #a94f43;
  --shadow: 0 10px 28px rgba(87, 69, 43, 0.075);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ece7dd;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% -4%, rgba(255, 255, 255, 0.82), transparent 25%),
    var(--canvas);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  border-bottom: 1px solid rgba(117, 87, 58, 0.08);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-seal {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border: 2px solid var(--red);
  border-radius: 9px;
  place-items: center;
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 700;
  transform: rotate(-2deg);
}

.topbar-brand strong,
.topbar-brand small {
  display: block;
}

.topbar-brand strong {
  overflow: hidden;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(79, 109, 86, 0.09);
  color: var(--green);
  font-size: 12px;
}

.topbar-status i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #6f9477;
  box-shadow: 0 0 0 4px rgba(111, 148, 119, 0.13);
}

main {
  flex: 1;
  min-height: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-content {
  padding: 18px 16px 24px;
}

.loading-block,
.error-block {
  display: grid;
  min-height: 52vh;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.loading-block p,
.error-block p {
  margin: 14px 0 0;
  font-size: 14px;
}

.loading-ring {
  width: 30px;
  height: 30px;
  border: 3px solid #e8dfd2;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.paper-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.86), transparent 35%),
    linear-gradient(145deg, #f8f1df 0%, #ece0c7 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(167, 125, 67, 0.18);
  border-radius: 999px;
}

.hero::before {
  top: 42px;
  left: -48px;
  width: 180px;
  height: 48px;
  transform: rotate(-10deg);
}

.hero::after {
  right: -58px;
  bottom: 28px;
  width: 210px;
  height: 58px;
  transform: rotate(9deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 25px;
  text-align: center;
}

.brand-seal {
  display: grid;
  width: 48px;
  height: 48px;
  border: 2px solid var(--red);
  border-radius: 10px;
  place-items: center;
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 700;
  transform: rotate(-3deg);
}

.hero-kicker,
.intro-kicker {
  color: #9a8466;
  font-size: 10px;
  letter-spacing: 4px;
}

.hero-kicker {
  margin-top: 14px;
}

.hero-title {
  margin-top: 8px;
  color: #674b31;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero-divider {
  display: flex;
  align-items: center;
  margin: 14px 0 12px;
}

.hero-divider::before,
.hero-divider::after {
  width: 42px;
  height: 1px;
  content: "";
  background: rgba(117, 87, 58, 0.36);
}

.hero-divider i {
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-slogan {
  color: var(--green);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  letter-spacing: 3px;
}

.hero-hours {
  margin-top: 12px;
  color: #786f61;
  font-size: 13px;
}

.quick-actions {
  position: relative;
  z-index: 4;
  display: grid;
  margin: -13px 12px 0;
  padding: 13px 10px;
  grid-template-columns: repeat(3, 1fr);
}

.quick-action {
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 50%;
  place-items: center;
  background: #edf1e9;
  color: var(--green);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
}

.quick-action span:last-child {
  font-size: 14px;
}

.section {
  margin-top: 28px;
}

.section-heading,
.content-heading,
.notice-heading,
.table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title,
.content-title {
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-subtitle {
  margin-top: 3px;
  color: #938a7e;
  font-size: 12px;
}

.section-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
}

.horizontal-list {
  display: grid;
  margin: 13px -16px 0;
  padding: 1px 16px 14px;
  grid-auto-columns: 168px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar,
.date-row::-webkit-scrollbar {
  display: none;
}

.service-mini {
  padding: 16px;
  text-align: left;
}

.service-mark {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 18px 18px 18px 6px;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 27px;
}

.service-mark.moxa {
  background: #f1e2c5;
  color: #8c5d2d;
}

.service-mark.cupping {
  background: #eadfd7;
  color: #7d5540;
}

.service-mark.massage,
.service-mark.default {
  background: #dfe8df;
  color: var(--green);
}

.service-mini h3 {
  margin: 14px 0 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
}

.service-mini p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.service-mini footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: #75573a;
  font-size: 17px;
  font-weight: 700;
}

.card-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
}

.store-notice,
.package-card {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 15px 16px;
}

.store-notice {
  border-left: 5px solid var(--green);
  background: linear-gradient(135deg, #edf3eb, #fbfdf9);
}

.notice-mark,
.package-seal,
.record-mark,
.appointment-mark {
  display: grid;
  flex: none;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
}

.notice-mark {
  width: 38px;
  height: 38px;
  margin-right: 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
}

.notice-copy {
  min-width: 0;
  flex: 1;
}

.notice-copy strong,
.notice-copy span {
  display: block;
}

.notice-copy strong {
  font-size: 15px;
}

.notice-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.package-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #f2e7d4 0%, #fffaf0 100%);
}

.package-seal {
  width: 46px;
  height: 46px;
  margin-right: 14px;
  border: 2px solid var(--red);
  border-radius: 10px;
  color: var(--red);
  font-size: 25px;
}

.package-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
}

.package-copy small {
  color: var(--green);
  font-size: 12px;
}

.package-copy h3 {
  margin: 5px 0 3px;
  color: #63482f;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
}

.package-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.safe-note {
  margin-top: 26px;
  padding: 0 8px;
  color: #999185;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.page-intro {
  position: relative;
  padding: 8px 3px 24px;
}

.intro-title {
  margin-top: 5px;
  color: #604930;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
}

.intro-desc {
  margin: 11px 0 0;
  color: #756f64;
  font-size: 15px;
  line-height: 1.7;
}

.view-only-badge {
  position: absolute;
  top: 10px;
  right: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf2eb;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.content-heading {
  margin-bottom: 14px;
}

.content-heading::after {
  height: 1px;
  margin: 0 0 8px 14px;
  content: "";
  flex: 1;
  background: var(--line);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-card {
  display: flex;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  text-align: left;
}

.service-card .service-mark {
  width: 62px;
  height: 62px;
  margin-right: 15px;
  font-size: 31px;
}

.service-main {
  min-width: 0;
  flex: 1;
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.service-name {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
}

.service-tag {
  margin-top: 3px;
  color: var(--green);
  font-size: 12px;
}

.service-price {
  flex: none;
  color: #75573a;
  font-size: 18px;
  font-weight: 700;
}

.service-price small {
  color: #8c8375;
  font-size: 11px;
  font-weight: 400;
}

.combo-label,
.duration-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.combo-label {
  flex: none;
  padding: 7px 10px;
  background: #e5ede3;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.service-summary {
  margin: 10px 0 0;
  color: #6f6a61;
  font-size: 13px;
  line-height: 1.65;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
}

.duration-pill {
  padding: 5px 9px;
  background: #f1eee6;
  color: #7a7469;
  font-size: 11px;
}

.detail-link {
  color: var(--gold);
  font-size: 12px;
}

.schedule-notice {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3ead8;
  color: #7a6447;
  font-size: 13px;
}

.schedule-notice b {
  display: grid;
  width: 23px;
  height: 23px;
  margin-right: 9px;
  border-radius: 50%;
  place-items: center;
  background: var(--gold);
  color: #fff;
}

.date-row {
  display: flex;
  margin: 15px -16px 0;
  padding: 1px 16px 8px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-item {
  flex: 0 0 70px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.date-item.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.date-item small,
.date-item strong {
  display: block;
}

.date-item small {
  color: inherit;
  opacity: 0.82;
  font-size: 12px;
}

.date-item strong {
  margin-top: 4px;
  font-size: 14px;
}

.table-heading {
  margin: 12px 2px 10px;
}

.schedule-date {
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
}

.schedule-tip {
  margin-top: 3px;
  color: #8c8478;
  font-size: 11px;
}

.legend {
  display: flex;
  align-items: center;
  color: #8e6257;
  font-size: 11px;
}

.legend i {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border-radius: 3px;
  background: #b55f54;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.schedule-table {
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  height: 48px;
  padding: 5px 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

.schedule-table thead th {
  height: 60px;
  background: #f1eadf;
  font-size: 12px;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 58px;
  background: #faf7f1;
  color: #5f574d;
  font-size: 12px;
  font-weight: 700;
}

.schedule-table thead th:first-child {
  z-index: 3;
  background: #f1eadf;
}

.schedule-cell {
  background: var(--paper);
  color: transparent;
  font-size: 11px;
  font-weight: 700;
}

.schedule-cell.arranged {
  background: #b55f54;
  color: #fff;
}

.schedule-cell.off {
  background: #a9675e;
  color: #fff;
}

.phone-button,
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.phone-button,
.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.phone-button {
  margin-top: 16px;
}

.secondary-button {
  border: 1px solid rgba(79, 109, 86, 0.32);
  background: var(--paper);
  color: var(--green);
}

.member-hero {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 12px 13px;
  border: 1px solid rgba(117, 87, 58, 0.2);
  border-radius: 17px;
  background: linear-gradient(135deg, #f1e5d3 0%, #ead8bd 100%);
  box-shadow: var(--shadow);
}

.member-avatar {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 11px;
  overflow: hidden;
  border-radius: 14px 14px 14px 5px;
  place-items: center;
  background: rgba(214, 188, 149, 0.72);
  color: #71563d;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-main {
  min-width: 0;
  flex: 1;
}

.member-name {
  display: block;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-phone {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #796b5c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-level {
  display: block;
  margin-top: 3px;
  color: #8b745c;
  font-size: 10px;
}

.member-sanfu {
  flex: none;
  min-width: 74px;
  margin-left: 10px;
  padding-left: 11px;
  border-left: 1px solid rgba(117, 87, 58, 0.18);
  text-align: center;
}

.member-sanfu span {
  display: block;
  color: #806b54;
  font-size: 11px;
}

.member-sanfu strong {
  display: block;
  margin-top: 2px;
  color: #925041;
  font-size: 22px;
}

.member-sanfu small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
}

.balance-grid {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.balance-card {
  min-width: 0;
  min-height: 88px;
  padding: 17px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 7px 20px rgba(87, 69, 43, 0.06);
  text-align: center;
}

.balance-label {
  color: #675b4e;
  font-size: 13px;
  font-weight: 700;
}

.balance-value {
  overflow: hidden;
  margin-top: 9px;
  color: #786b5d;
  font-size: clamp(15px, 5vw, 21px);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-value.consumption {
  color: #9a673d;
}

.balance-value.current {
  color: #9f493d;
}

.records-card {
  margin-top: 13px;
  padding: 0 14px;
}

.record-row,
.appointment-row,
.notification-row {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 11px 0;
}

.record-row + .record-row,
.appointment-row + .appointment-row,
.notification-row + .notification-row {
  border-top: 1px solid rgba(117, 87, 58, 0.1);
}

.record-mark,
.appointment-mark {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 11px;
  background: #efe3d2;
  color: #75573a;
  font-size: 13px;
  font-weight: 700;
}

.record-main,
.appointment-main,
.notification-main {
  min-width: 0;
  flex: 1;
}

.record-title,
.appointment-time,
.notification-name {
  display: block;
  color: #514a41;
  font-size: 14px;
  font-weight: 700;
}

.record-meta,
.appointment-meta,
.notification-time {
  display: block;
  margin-top: 4px;
  color: #91897d;
  font-size: 11px;
  line-height: 1.45;
}

.record-amount {
  margin-left: 7px;
  color: #806b58;
  font-size: 14px;
  font-weight: 700;
}

.record-amount.income {
  color: var(--green);
}

.card-footer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  border-top: 1px solid rgba(117, 87, 58, 0.1);
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14px;
  font-weight: 700;
}

.card-footer-label small {
  color: #9a9287;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
}

.subsection-title {
  margin: 20px 2px 9px;
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
}

.appointment-list,
.history-list,
.notification-list {
  padding: 0 14px;
}

.appointment-mark {
  background: #e6eee4;
  color: var(--green);
}

.appointment-service {
  display: block;
  margin-top: 4px;
  color: #6c6459;
  font-size: 13px;
}

.status-pill {
  flex: none;
  margin-left: 8px;
  padding: 5px 8px;
  background: #e7eee4;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.empty-card {
  padding: 22px 16px;
  color: #9a9287;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.notification-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.notification-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 11px;
  border-radius: 50%;
  background: #d5d0c7;
}

.notification-dot.unread {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(169, 79, 67, 0.1);
}

.notification-content {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #7d7569;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-actions {
  display: grid;
  margin-top: 16px;
  gap: 10px;
}

.account-note {
  margin-top: 18px;
  color: #999185;
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.bind-card {
  padding: 24px 20px;
}

.bind-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 2px solid var(--green);
  border-radius: 18px 18px 18px 6px;
  place-items: center;
  background: #edf2eb;
  color: var(--green);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 700;
}

.bind-card h2 {
  margin: 15px 0 0;
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 25px;
  text-align: center;
}

.bind-card > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.form-field {
  display: block;
  margin-top: 13px;
}

.form-field span {
  display: block;
  margin: 0 0 7px 2px;
  color: #655b50;
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(117, 87, 58, 0.2);
  border-radius: 14px;
  outline: none;
  background: #fffefb;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 5px;
}

.form-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 109, 86, 0.1);
}

.bind-submit {
  margin-top: 18px;
}

.wechat-login {
  margin-bottom: 14px;
}

.bind-divider {
  display: flex;
  align-items: center;
  margin: 18px 0 4px;
  color: #a0978b;
  font-size: 11px;
}

.bind-divider::before,
.bind-divider::after {
  height: 1px;
  content: "";
  flex: 1;
  background: var(--line);
}

.bind-divider span {
  margin: 0 10px;
}

.bind-help {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f4efe5;
  color: #7d7366;
  font-size: 12px;
  line-height: 1.6;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 68px;
  padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(117, 87, 58, 0.1);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 -8px 25px rgba(72, 60, 43, 0.06);
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #847a69;
  font-size: 11px;
}

.nav-item.active {
  color: var(--green);
  font-weight: 700;
}

.nav-icon {
  display: grid;
  width: 29px;
  height: 29px;
  margin-bottom: 2px;
  border-radius: 10px 10px 10px 4px;
  place-items: center;
  background: #f0ede6;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 16px;
}

.nav-item.active .nav-icon {
  background: var(--green-soft);
}

.nav-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 9px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  line-height: 13px;
  text-align: center;
}

.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 14px max(20px, env(safe-area-inset-bottom));
  background: rgba(53, 47, 39, 0.46);
  backdrop-filter: blur(4px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(49, 40, 29, 0.25);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: #f1eee7;
  color: #796e61;
  font-size: 24px;
}

.dialog-service-head {
  display: flex;
  align-items: center;
  padding-right: 30px;
}

.dialog-service-head .service-mark {
  margin-right: 13px;
}

.dialog h2 {
  margin: 0;
  color: #5f4b34;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 25px;
}

.dialog h3 {
  margin: 18px 0 7px;
  color: #635444;
  font-size: 14px;
}

.dialog p,
.dialog li {
  color: #726a60;
  font-size: 13px;
  line-height: 1.7;
}

.dialog ul {
  margin: 0;
  padding-left: 20px;
}

.toast {
  position: fixed;
  z-index: 120;
  top: 50%;
  left: 50%;
  max-width: min(82vw, 360px);
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(52, 47, 40, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.toast[hidden] {
  display: none;
}

.site-footer {
  flex: none;
  padding: 4px 16px calc(88px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:focus-visible,
.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 560px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    width: 520px;
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(117, 87, 58, 0.12);
    border-radius: 26px;
    box-shadow: 0 20px 70px rgba(60, 49, 35, 0.14);
    overflow: hidden;
  }

  .topbar {
    top: 18px;
    border-radius: 26px 26px 0 0;
  }

  .bottom-nav {
    right: auto;
    left: 50%;
    width: 518px;
    bottom: 18px;
    border-radius: 0 0 25px 25px;
    transform: translateX(-50%);
  }
}

@media (max-width: 360px) {
  .view-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar-status {
    padding: 6px 8px;
    font-size: 10px;
  }

  .member-sanfu {
    min-width: 64px;
  }

  .balance-label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
