:root {
  --gold: #c2a568;
  --gold-dark: #987b42;
  --ink: #2b2b29;
  --muted: #92928e;
  --paper: #faf5f4;
  --line: #efeeec;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eeece7;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
}
svg.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.accent {
  stroke: var(--gold);
}
.preview-meta {
  position: fixed;
  top: 35px;
  left: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #554f42;
  font-size: 17px;
}
.preview-meta small {
  display: block;
  font-size: 11px;
  color: #969086;
  letter-spacing: 2px;
  margin-top: 6px;
}
.preview-meta a {
  position: fixed;
  right: 35px;
  top: 42px;
  font-size: 13px;
  padding: 10px 18px;
  border: 1px solid #d4cbb9;
  border-radius: 30px;
}
.brand-seal {
  display: grid;
  place-content: center;
  background: #8e4038;
  border-radius: 6px;
  color: #fff4df;
  font: 18px/1.1 serif;
  width: 34px;
  height: 44px;
}
#phone {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: auto;
  background: var(--paper);
  box-shadow: 0 0 80px #5048340b;
  position: relative;
}
#header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8f8f8;
}
.statusbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  font-size: 18px;
  font-weight: 650;
}
.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: -1px;
}
.battery {
  display: inline-block;
  background: #56a55e;
  color: white;
  font-size: 10px;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 4px;
}
.navbar {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.navbar h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  max-width: 205px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-home {
  position: absolute;
  left: 12px;
  padding: 4px;
}
.nav-home svg {
  width: 25px;
  height: 25px;
  stroke: #292925;
}
.capsule {
  position: absolute;
  right: 10px;
  display: flex;
  border: 1px solid #ecebe7;
  background: #ffffff75;
  border-radius: 24px;
  height: 36px;
  width: 113px;
  align-items: center;
  justify-content: space-around;
}
.capsule span {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 3px;
  padding-left: 5px;
}
.capsule i {
  height: 20px;
  width: 1px;
  background: #eeede9;
}
.capsule b {
  width: 20px;
  height: 20px;
  border: 3px solid #292925;
  border-radius: 50%;
  position: relative;
}
.capsule b:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #292925;
}
.navbar.has-capsule h1 {
  margin-right: 56px;
}
.navbar.profile-title h1 {
  margin-right: 0;
}
.navbar.profile-title .capsule {
  width: 113px;
}
.navbar.profile-title h1 {
  transform: translateX(-5px);
}
#app {
  padding-bottom: 100px;
  min-height: calc(100dvh - 98px);
}
.banner {
  width: 100%;
  aspect-ratio: 931/479;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.banner img {
  position: absolute;
  width: 100%;
  height: auto;
  top: -44.68%;
  left: 0;
}
.banner .dot {
  position: absolute;
  bottom: 12px;
  left: calc(50% - 7px);
  width: 14px;
  height: 5px;
  background: white;
  border-radius: 10px;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 29px 8px 27px;
}
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  white-space: nowrap;
}
.shortcut .icon {
  width: 34px;
  height: 34px;
  color: #656561;
}
.health-card {
  margin: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  height: 91px;
  border-radius: 15px 48px 15px 48px;
  background: linear-gradient(110deg, #c9ac72, #bf9e5b);
  color: #fff7e7;
  position: relative;
  overflow: hidden;
  width: calc(100% - 36px);
  text-align: left;
}
.health-plus {
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  border: 3px solid #f6ead0;
  border-radius: 50%;
  flex-shrink: 0;
}
.health-plus svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.6;
}
.health-card strong {
  display: block;
  font-size: 21px;
  letter-spacing: 1px;
  line-height: 1.25;
}
.health-card small {
  display: block;
  font-size: 18px;
  margin-top: 7px;
}
.health-card:after,
.health-card:before {
  content: "";
  position: absolute;
  background: #e4c58a35;
  right: 32px;
  bottom: 7px;
  width: 22px;
  height: 90px;
  border-radius: 100% 0 100% 0;
  transform: rotate(30deg);
}
.health-card:before {
  right: 24px;
  bottom: 14px;
  height: 58px;
  width: 35px;
  transform: rotate(28deg);
}
.notice {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 18px 24px;
  background: white;
  border-radius: 13px;
  box-shadow: 0 0 8px #5c483008;
  padding: 14px 18px;
  height: 54px;
  width: calc(100% - 36px);
  color: var(--gold);
  text-align: left;
}
.notice .speaker {
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.speaker svg {
  width: 18px;
  height: 18px;
}
.notice span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}
.panel {
  margin: 0 18px 20px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 2px 15px #705b3310;
}
.panel h2 {
  font-size: 20px;
  margin: 0 0 17px;
  font-weight: 750;
  letter-spacing: 1px;
}
.doctor-row {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 9px 0 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.doctor-row + .doctor-row {
  padding-top: 18px;
}
.doctor-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f0e6d3;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.reference img {
  position: absolute;
  width: 470.2%;
  height: auto;
  max-width: none;
  left: -41.4%;
  top: -769.7%;
}
.avatar.placeholder {
  background: linear-gradient(140deg, #eadcbe, #d1b97f);
  color: #fff;
  flex-direction: column;
  font-family: serif;
}
.placeholder span {
  font-size: 27px;
  letter-spacing: 3px;
}
.placeholder small {
  font: 10px sans-serif;
  opacity: 0.9;
  margin-top: 8px;
  letter-spacing: 3px;
}
.doctor-info {
  flex: 1;
  min-width: 0;
}
.doctor-top {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-bottom: 13px;
}
.doctor-top strong {
  font-size: 20px;
}
.doctor-top .title {
  font-size: 16px;
  color: #62625d;
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  border-radius: 30px;
  padding: 6px 13px;
  font-size: 15px;
  line-height: 1.2;
  margin-left: auto;
  white-space: nowrap;
}
.badge.gray {
  background: #eeece7;
  color: #999;
}
.department {
  font-size: 18px;
  margin: 0 0 7px;
  color: #5f605b;
}
.specialty {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #92938d;
  font-size: 16px;
  margin: 0;
}
.doctor-row .avatar {
  width: 92px;
  height: 92px;
}
.doctor-top .badge {
  padding: 6px 12px;
}
.doctor-top {
  gap: 9px;
}
.doctor-row .title {
  font-size: 16px;
}
.doctor-row .doctor-top strong {
  font-size: 19px;
}
#tabs {
  position: fixed;
  bottom: 0;
  background: #fff;
  width: 100%;
  max-width: 430px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 9px 0 max(17px, env(safe-area-inset-bottom));
  box-shadow: 0 -1px 8px #00000002;
  height: 78px;
}
#tabs a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  color: #9b9b96;
}
#tabs svg {
  width: 27px;
  height: 27px;
}
#tabs .active {
  color: var(--gold);
}
#tabs .active svg {
  fill: var(--gold);
  stroke: var(--gold);
}
#phone.profile {
  background: linear-gradient(#ece0c9 0, #f1e8d9 40%, #faf5f4 92%);
}
.profile #header {
  background: #ece0c9;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 132px;
  padding: 30px 24px;
}
.profile-photo {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-photo img {
  position: absolute;
  width: 596.8%;
  max-width: none;
  top: -178.85%;
  left: -32.7%;
}
.profile-head button {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
}
.profile-head button svg {
  width: 26px;
  height: 26px;
}
.profile .health-card {
  margin-top: 0;
  height: 91px;
  margin-left: 24px;
  margin-right: 24px;
  width: calc(100% - 48px);
}
.profile-menu {
  margin: 24px 24px 0;
  border-radius: 19px;
  background: #fff;
  padding: 0 18px;
  box-shadow: 0 3px 18px #785c3210;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: #80817c;
  text-align: left;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item > .icon:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #acaca7;
}
.menu-item > .icon:first-child {
  width: 22px;
  height: 22px;
}
.support {
  text-align: center;
  color: #aaa79e;
  font-size: 15px;
  letter-spacing: 1px;
  margin: 37px 0;
}
.content {
  padding: 21px 18px;
}
.content > .panel {
  margin: 0 0 16px;
}
.section-label {
  font-size: 14px;
  color: #969287;
  margin: 24px 0 12px;
}
.button {
  width: 100%;
  border-radius: 10px;
  background: var(--gold);
  color: white;
  padding: 14px 18px;
  font-size: 16px;
  text-align: center;
  display: block;
  border: 1px solid transparent;
}
.button.secondary {
  color: var(--gold-dark);
  background: #faf5e9;
  border-color: #e8dbc0;
}
.button.ghost {
  background: white;
  color: #777;
  border-color: #e9e7e2;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.muted {
  color: #99958b;
}
.subtle {
  font-size: 13px;
  color: #a09a8f;
  line-height: 1.7;
}
.text-body {
  color: #77736b;
  line-height: 1.9;
  font-size: 15px;
  white-space: pre-line;
}
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.info-line:last-child {
  border: 0;
}
.info-line svg {
  width: 21px;
  color: var(--gold);
  margin-top: 2px;
}
.page-heading {
  margin: 0 0 18px;
  font-size: 24px;
}
.empty {
  text-align: center;
  padding: 44px 15px;
  color: #a19a8d;
}
.empty svg {
  height: 50px;
  width: 50px;
  color: #d6c6a7;
  margin-bottom: 10px;
}
.empty strong {
  display: block;
  font-size: 17px;
  color: #746d60;
  margin: 4px 0 10px;
}
.empty p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.loading {
  text-align: center;
  padding: 60px 15px;
  color: #a39270;
}
.doctor-detail {
  display: flex;
  gap: 18px;
  align-items: center;
}
.doctor-detail .avatar {
  width: 72px;
  height: 72px;
}
.doctor-detail h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.doctor-detail p {
  margin: 0;
  font-size: 14px;
  color: #8d877a;
}
.date-scroll {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 -18px;
  padding: 0 18px 6px;
}
.date-chip {
  min-width: 69px;
  padding: 12px 7px;
  background: white;
  border: 1px solid #ece6da;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.date-chip b {
  display: block;
  font-size: 18px;
  font-weight: 500;
}
.date-chip.active {
  color: var(--gold-dark);
  border-color: var(--gold);
  background: #f6edda;
}
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.slot {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e9e4dc;
  background: #fff;
  text-align: left;
  font-size: 14px;
}
.slot strong {
  font-size: 17px;
}
.slot span {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: #9c9586;
}
.slot.active {
  background: #f8f0df;
  border-color: var(--gold);
  color: var(--gold-dark);
}
.patient-select {
  display: flex;
  width: 100%;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #ebe5d9;
}
.patient-select.active {
  border-color: var(--gold);
  background: #fcf7eb;
}
.patient-select + .patient-select {
  margin-top: 9px;
}
.patient-select svg {
  color: var(--gold);
}
.patient-select small {
  display: block;
  color: #9e978b;
  margin-top: 6px;
}
.patient-select > svg:last-child {
  margin-left: auto;
}
.sticky-action {
  position: sticky;
  bottom: 90px;
  margin-top: 25px;
  background: #faf5f4e6;
  padding-top: 12px;
}
.checkline {
  display: flex;
  gap: 9px;
  font-size: 12px;
  align-items: flex-start;
  line-height: 1.7;
  color: #999183;
  margin: 18px 0;
}
.checkline input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.field {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}
.field > span {
  display: block;
  color: #857c6e;
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e8e1d5;
  background: #fff;
  border-radius: 9px;
  padding: 13px 12px;
  color: #454138;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.patient-card {
  background: linear-gradient(120deg, #c9ad72, #b59655);
  border-radius: 16px;
  padding: 22px;
  color: #fff9e9;
  margin-bottom: 14px;
}
.patient-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 650;
}
.patient-card p {
  font-size: 14px;
  opacity: 0.9;
}
.patient-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 25px;
}
.patient-card footer button {
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0.8;
}
.filters {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e9e4dc;
  margin: 0 0 22px;
  padding-bottom: 0;
}
.filters button {
  font-size: 14px;
  padding: 0 0 12px;
  color: #9c958a;
  position: relative;
  white-space: nowrap;
}
.filters button.active {
  color: var(--gold-dark);
  font-weight: 600;
}
.filters button.active:after {
  content: "";
  height: 3px;
  border-radius: 4px;
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  background: var(--gold);
}
.appointment {
  background: white;
  border-radius: 14px;
  padding: 19px;
  margin-bottom: 15px;
}
.appointment header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 16px;
  font-size: 14px;
}
.status {
  font-size: 12px;
  color: var(--gold-dark);
  background: #f5eddd;
  padding: 5px 9px;
  border-radius: 6px;
}
.status.cancelled {
  background: #f1f1ee;
  color: #999;
}
.status.completed {
  color: #638570;
  background: #ebf3ed;
}
.status.missed {
  color: #b47768;
  background: #f8eeeb;
}
.appointment h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.appointment h3 small {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  margin-left: 9px;
}
.appointment p {
  font-size: 14px;
  margin: 8px 0;
  color: #858076;
}
.appointment footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 17px;
  font-size: 10px;
  color: #aaa18f;
}
.small-button {
  padding: 7px 12px;
  border: 1px solid #dfd8ca;
  border-radius: 6px;
  font-size: 12px;
  color: #8e8067;
}
.login-hero {
  text-align: center;
  padding: 44px 0 32px;
}
.login-hero .brand-seal {
  margin: 0 auto 24px;
  width: 58px;
  height: 72px;
  font-size: 28px;
}
.login-hero h2 {
  font-family: serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 3px;
}
.login-hero p {
  font-size: 14px;
  color: #9d907c;
}
.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #f4ebd9;
  color: var(--gold);
  margin: 0 auto 18px;
}
.success-mark svg {
  width: 36px;
  height: 36px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 24px;
  max-width: calc(100% - 40px);
  width: 360px;
  color: var(--ink);
  box-shadow: 0 20px 80px #2e241d33;
}
dialog::backdrop {
  background: #24211b66;
}
dialog h2 {
  margin: 0 0 16px;
  font-size: 20px;
}
dialog p {
  color: #8f8677;
  line-height: 1.8;
  font-size: 14px;
}
dialog .row {
  margin-top: 20px;
}
#toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 10px);
  max-width: calc(100% - 40px);
  background: #33312def;
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .preview-meta {
    display: none;
  }
}
@media (max-width: 390px) {
  .doctor-row {
    gap: 12px;
  }
  .doctor-row .avatar {
    width: 80px;
    height: 80px;
  }
  .doctor-top {
    gap: 7px;
  }
  .doctor-row .title {
    font-size: 14px;
  }
  .doctor-row .doctor-top strong {
    font-size: 17px;
  }
  .doctor-top .badge {
    font-size: 14px;
    padding: 6px 10px;
  }
  .profile-head {
    gap: 25px;
  }
  .navbar h1 {
    font-size: 18px;
  }
  .capsule {
    width: 100px;
  }
  .navbar.profile-title .capsule {
    width: 100px;
  }
  .health-card strong {
    font-size: 20px;
  }
  .shortcut {
    font-size: 15px;
  }
  .panel {
    padding: 18px;
  }
  .specialty {
    font-size: 14px;
  }
  .profile-menu .menu-item {
    padding: 18px 0;
  }
}

.banner.custom img {top:0;height:100%;object-fit:cover;}

.registration-fee{color:#a27e3f;font-weight:600;margin:8px 0}.payment-note{font-size:13px;line-height:1.65;color:#797568}.payment-amount{font-size:32px;font-weight:700;text-align:center;color:#a27e3f}

.preview-mode{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#eee3cd;color:#715a30;padding:12px 16px;font-size:13px}.preview-mode[hidden]{display:none}.preview-mode strong{display:block;font-size:14px}.preview-mode small{display:block;font-size:11px;line-height:1.5;margin-top:4px}.preview-mode button{white-space:nowrap;border:1px solid #baaa87;border-radius:6px;padding:7px 8px;font-size:12px}

.icp-footer{text-align:center;padding:18px 12px 24px;color:#8b877e;font-size:12px}.icp-footer a{color:inherit;text-decoration:none}
