:root {
  --bg: #f4f5f7;
  --shell-bg: #f9fafc;
  --card: #ffffff;
  --text: #1f2632;
  --muted: #7d8798;
  --line: #e6e9ef;
  --brand: #c38b45;
  --brand-deep: #9b6a34;
  --brand-soft: #f5eadb;
  --shadow-soft: 0 8px 24px rgba(30, 46, 82, 0.08);
  --shadow-card: 0 4px 18px rgba(24, 35, 60, 0.06);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "SF Pro Display", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #ffffff 0%, #f4f6fb 52%, #f0f1f5 100%);
  display: grid;
  place-items: center;
  padding: 18px;
}

button {
  color: inherit;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(195, 139, 69, 0.08), transparent 38%),
    radial-gradient(circle at 85% 78%, rgba(112, 160, 226, 0.08), transparent 35%);
}

.phone-shell {
  position: relative;
  width: min(390px, 100%);
  min-height: 844px;
  height: 844px;
  padding: 14px 14px 12px;
  border-radius: 34px;
  border: 1px solid #dde3ec;
  background: var(--shell-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.status-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 0 4px;
  color: #465166;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.battery {
  width: 22px;
  height: 12px;
  border: 1.6px solid #3f4a5f;
  border-radius: 3px;
  padding: 1.6px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3.8px;
  top: 3px;
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: #3f4a5f;
}

.battery i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 1px;
  background: #3f4a5f;
}

.page {
  display: none;
  animation: page-rise 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.page.is-active {
  display: block;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}

.page.is-active::-webkit-scrollbar {
  display: none;
}

.page-header,
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 8px 2px 14px;
}

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

.page-header h1,
.profile-header h1 {
  margin: 3px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.brand-caption {
  letter-spacing: 0.04em;
  color: #666f80;
}

.profile-header h1 {
  font-size: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  color: #566076;
}

.home-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 136px;
  box-shadow: var(--shadow-card);
}

.hero-image {
  width: 100%;
  height: 136px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(15, 21, 33, 0) 0%, rgba(15, 21, 33, 0.82) 92%);
}

.hero-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.hero-overlay h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

#page-home .page-header {
  margin-bottom: 10px;
}

#page-home .page-header h1 {
  font-size: 27px;
}

#page-home .card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 15px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2,
.group-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ghost-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.search-card {
  padding: 12px;
  background: linear-gradient(165deg, #ffffff 8%, #f7f9ff 100%);
}

.search-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.search-field {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 8px;
  background: #fff;
}

.search-field strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  border: none;
  border-radius: 11px;
  padding: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.quick-grid,
.order-grid,
.wallet-grid,
.benefit-grid {
  display: grid;
  gap: 8px;
}

.quick-grid {
  grid-template-columns: repeat(2, 1fr);
}

.quick-item {
  border: 1px solid #ead9bf;
  border-radius: 11px;
  background: linear-gradient(145deg, #fffaf2, #f8ecdb);
  text-align: left;
  padding: 10px 9px;
  cursor: pointer;
}

.quick-item span {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.quick-item small {
  display: block;
  margin-top: 3px;
  color: #8f7955;
  font-size: 10px;
}

.promo-strip {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  height: 72px;
}

.promo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-grid {
  grid-template-columns: repeat(4, 1fr);
}

.order-grid button,
.wallet-grid button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 6px;
  cursor: pointer;
}

.order-grid button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.wallet-grid strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.wallet-grid span,
.order-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.wallet-grid span {
  margin-top: 6px;
}

.order-grid span {
  margin-top: 0;
}

.order-icon {
  width: 20px;
  height: 20px;
  color: #60708b;
}

.order-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#page-home .order-grid {
  gap: 6px;
}

#page-home .order-grid button {
  border-radius: 10px;
  padding: 9px 5px;
}

#page-home .order-grid span {
  font-size: 10px;
}

.section-head-spaced {
  margin: 10px 2px 8px;
}

.list-block {
  margin-bottom: 2px;
}

.hotel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 106px 1fr;
  column-gap: 10px;
  align-items: stretch;
}

.hotel-image {
  height: 100%;
  min-height: 96px;
  border-radius: 10px;
  margin-bottom: 0;
  width: 100%;
  object-fit: cover;
  display: block;
}

.hotel-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hotel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.hotel-meta {
  margin: 3px 0 5px;
  font-size: 11px;
  color: var(--muted);
}

.hotel-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.hotel-tags span {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  color: #896338;
  background: var(--brand-soft);
}

.hotel-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hotel-price strong {
  font-size: 20px;
  color: #be7535;
}

.hotel-price small {
  font-size: 10px;
  color: var(--muted);
}

.membership-hero {
  background: linear-gradient(145deg, #323845, #4c5568 52%, #5f6878);
  border-radius: 18px;
  color: #f5f7fa;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(44, 52, 72, 0.28);
}

.chip {
  margin: 0;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
}

.member-number {
  margin: 14px 0 5px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 250, 0.75);
}

.progress-text {
  margin: 0;
  font-size: 12px;
  color: rgba(245, 247, 250, 0.9);
}

.progress-track {
  margin: 10px 0 12px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fed8a0, #d88d3f);
}

.member-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.member-kpis strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.member-kpis span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(245, 247, 250, 0.8);
}

.benefit-grid {
  grid-template-columns: repeat(2, 1fr);
}

.benefit-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: #fafbff;
}

.benefit-grid strong {
  display: block;
  font-size: 13px;
}

.benefit-grid small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #f4f6fb;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 10px;
}

.segment-btn {
  border: none;
  border-radius: 9px;
  background: transparent;
  padding: 8px;
  font-size: 13px;
  color: #626d81;
  cursor: pointer;
}

.segment-btn.is-active {
  background: #fff;
  color: #242d3b;
  box-shadow: 0 3px 8px rgba(29, 41, 64, 0.1);
}

.segment-panel {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.segment-panel.is-active {
  display: block;
}

.segment-panel li,
.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segment-panel li {
  border-bottom: 1px dashed var(--line);
  padding: 12px 2px;
  font-size: 13px;
}

.segment-panel li:last-child,
.service-list li:last-child {
  border-bottom: none;
}

.segment-panel strong {
  color: #3c4e6d;
  font-size: 13px;
}

.profile-header p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

#page-me .profile-header {
  margin-bottom: 10px;
}

#page-me .icon-button {
  border: none;
  box-shadow: 0 4px 12px rgba(24, 35, 60, 0.08);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5a7299, #3f5478);
}

.wallet-grid {
  grid-template-columns: repeat(3, 1fr);
}

.my-orders .order-grid {
  grid-template-columns: repeat(4, 1fr);
}

#page-me .card {
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 20px rgba(24, 35, 60, 0.06);
}

#page-me .wallet-card,
#page-me .my-orders {
  padding: 12px;
}

#page-me .wallet-grid button,
#page-me .my-orders .order-grid button {
  border: none;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

#page-me .wallet-grid button strong {
  color: #2f3b4f;
}

#page-me .my-orders .order-icon {
  color: #526381;
}

.group-title {
  margin: 6px 0 8px;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

#page-me .service-list-card {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(24, 35, 60, 0.05);
}

#page-me .group-title {
  margin-top: 2px;
  margin-bottom: 8px;
  color: #667084;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

#page-me .service-list li {
  border-bottom: none;
  padding: 10px 2px;
  border-radius: 10px;
}

#page-me .service-list li + li {
  margin-top: 2px;
}

#page-me .service-list li:hover {
  background: #f6f8fc;
}

.service-list i {
  font-style: normal;
  color: #9aa3b2;
}

.tabbar {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid #dbe2ee;
  background: rgba(252, 253, 255, 0.95);
  backdrop-filter: blur(10px);
}

.tab {
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #7b8596;
  padding: 8px 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 3px;
}

.tab svg {
  width: 20px;
  height: 20px;
}

.tab span {
  font-size: 11px;
}

.tab.is-active {
  background: linear-gradient(140deg, #fff4e7, #ffedd8);
  color: #8e5a2a;
}

.tab:active,
.primary-btn:active,
.icon-button:active,
.quick-item:active,
.order-grid button:active,
.wallet-grid button:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  body {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .tabbar {
    margin-top: 6px;
  }
}
