:root {
  color-scheme: light;
  --customer-blue: #0879b5;
  --customer-blue-pressed: #056691;
  --customer-nav-blue: #075ea5;
  --customer-ink: #152f43;
  --customer-muted: #5c6f7c;
  --customer-border: #c9d5dc;
  --customer-soft-border: #e2e8ec;
  --customer-page: #f5f8fa;
  --customer-surface: #fff;
  --customer-error: #b92f35;
  --customer-warning: #94600a;
  --customer-success: #267348;
  --customer-focus: rgba(8, 121, 181, .26);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--customer-ink);
  background: var(--customer-page);
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select { font: inherit; letter-spacing: 0; }

button,
a,
input,
select { -webkit-tap-highlight-color: transparent; }

a { color: var(--customer-blue-pressed); }

.customer-auth-page {
  max-width: 580px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--customer-surface);
}

.customer-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: 100%;
  height: 52px;
  color: #fff;
  background: var(--customer-blue);
}

.customer-topbar h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-topbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.customer-topbar__home { font-size: 22px; }

.customer-login-main {
  min-height: calc(100svh - 52px);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  background: var(--customer-page);
}

.customer-intro {
  padding: 22px 20px 20px;
  color: #47616f;
  background: #eef7fc;
  border-bottom: 1px solid #d4e3ec;
}

.customer-intro p {
  max-width: 28rem;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.customer-login-form {
  padding: 27px 20px 48px;
  background: var(--customer-surface);
}

.customer-form-note {
  margin: 0 0 25px;
  color: var(--customer-muted);
  font-size: 14px;
  line-height: 1.5;
}

.customer-field {
  display: block;
  margin: 0 0 20px;
}

.customer-field__label {
  display: block;
  margin: 0 0 8px;
  color: #112c3e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.customer-phone-control,
.customer-code-control {
  display: grid;
  min-height: 54px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--customer-border);
  border-radius: 5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.customer-phone-control { grid-template-columns: 98px minmax(0, 1fr); }
.customer-code-control { grid-template-columns: minmax(0, 1fr) 120px; }

.customer-phone-control:focus-within,
.customer-code-control:focus-within {
  border-color: var(--customer-blue);
  box-shadow: 0 0 0 3px var(--customer-focus);
}

.customer-phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: #334f60;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--customer-soft-border);
}

.customer-field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  color: var(--customer-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-size: 16px;
}

.customer-field input::placeholder { color: #73838d; opacity: 1; }

.customer-send-button {
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  color: var(--customer-blue-pressed);
  background: #f9fbfc;
  border: 0;
  border-left: 1px solid var(--customer-soft-border);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.customer-send-button:disabled { color: #6c7b84; cursor: default; }

.customer-inline-message {
  margin: -8px 0 17px;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-inline-message.is-error { color: var(--customer-error); }
.customer-inline-message.is-warning { color: var(--customer-warning); }
.customer-inline-message.is-success { color: var(--customer-success); }

.customer-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 9px 0;
  color: #4f6470;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.customer-consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--customer-blue);
}

.customer-consent a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -9px 0;
}

.customer-consent input:focus-visible,
.customer-send-button:focus-visible,
.customer-primary-button:focus-visible,
.customer-account-bar button:focus-visible,
.customer-order-filter select:focus-visible,
.customer-order-action:focus-visible,
.customer-bottom-nav a:focus-visible {
  outline: 3px solid var(--customer-focus);
  outline-offset: 2px;
}

.customer-primary-button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: var(--customer-blue);
  border: 1px solid var(--customer-blue);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.customer-primary-button:active { background: var(--customer-blue-pressed); }

.customer-primary-button:disabled {
  color: #71818a;
  background: #e8edf0;
  border-color: #d9e1e5;
  cursor: default;
}

.customer-account-note {
  margin: 13px 0 0;
  color: #6b7b84;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.customer-orders-main {
  min-height: calc(100svh - 52px);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  background: var(--customer-page);
}

.customer-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--customer-soft-border);
}

.customer-account-bar p {
  margin: 0;
  color: #536a76;
  font-size: 13px;
}

.customer-account-bar strong {
  color: var(--customer-ink);
  font-variant-numeric: tabular-nums;
}

.customer-account-bar button {
  min-width: 72px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--customer-blue-pressed);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.customer-order-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 16px;
  background: #fff;
  border-bottom: 1px solid var(--customer-soft-border);
}

.customer-order-filter label { font-size: 14px; font-weight: 700; }

.customer-order-filter select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 32px 0 12px;
  color: var(--customer-ink);
  background: #fff;
  border: 1px solid var(--customer-border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.customer-orders-state {
  min-height: 230px;
  padding: 32px 16px;
}

.customer-state-message {
  padding: 38px 20px;
  color: var(--customer-muted);
  text-align: center;
}

.customer-state-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--customer-ink);
  font-size: 16px;
}

.customer-state-message p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }

.customer-state-message button,
.customer-state-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--customer-blue-pressed);
  background: #fff;
  border: 1px solid var(--customer-blue);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.customer-order-skeleton {
  padding: 16px;
  background: #fff;
  border: 1px solid #dbe3e8;
  border-radius: 5px;
}

.customer-order-skeleton span {
  display: block;
  height: 12px;
  margin: 0 0 13px;
  background: #e6ecef;
  border-radius: 2px;
  animation: customer-skeleton 1.2s ease-in-out infinite alternate;
}

.customer-order-skeleton span:nth-child(1) { width: 62%; }
.customer-order-skeleton span:nth-child(2) { width: 82%; height: 22px; }
.customer-order-skeleton span:nth-child(3) { width: 74%; }
.customer-order-skeleton span:nth-child(4) { width: 46%; margin-bottom: 0; }

@keyframes customer-skeleton { to { opacity: .52; } }

.customer-orders-list {
  display: grid;
  gap: 10px;
  padding: 10px 12px 24px;
}

.customer-order-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e0e5;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(31, 55, 70, .05);
}

.customer-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--customer-soft-border);
}

.customer-order-number {
  min-width: 0;
  overflow: hidden;
  color: #667984;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-order-status {
  flex: 0 0 auto;
  max-width: 56%;
  color: var(--customer-warning);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.customer-order-status[data-status="confirmed_pending_travel"],
.customer-order-status[data-status="completed"] { color: var(--customer-success); }
.customer-order-status[data-status="refund_processing"] { color: var(--customer-warning); }
.customer-order-status[data-status="refunded"] { color: #4f6571; }

.customer-order-card__body { padding: 14px 12px 11px; }

.customer-order-card h2 {
  margin: 0 0 2px;
  color: #122e40;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.customer-order-route {
  margin: 0 0 10px;
  color: var(--customer-blue-pressed);
  font-size: 13px;
  font-weight: 700;
}

.customer-order-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 0;
  color: #617581;
  font-size: 13px;
  line-height: 1.45;
}

.customer-order-facts div { min-width: 0; }
.customer-order-facts dt,
.customer-order-facts dd { display: inline; margin: 0; }
.customer-order-facts dd { color: #445f6d; font-variant-numeric: tabular-nums; }

.customer-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--customer-soft-border);
  color: #647681;
  font-size: 13px;
}

.customer-order-total strong {
  color: #bd3036;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.customer-order-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 5px 12px;
  border-top: 1px solid var(--customer-soft-border);
}

.customer-order-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--customer-blue-pressed);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.customer-order-action.is-bordered {
  min-width: 103px;
  border: 1px solid var(--customer-blue);
  border-radius: 4px;
}

.customer-order-extra {
  padding: 0 12px 12px;
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.customer-bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 580px;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  background: var(--customer-nav-blue);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.customer-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 5px 0 4px;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-decoration: none;
}

.customer-bottom-nav a svg {
  display: block;
  width: 17px;
  height: 17px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.customer-bottom-nav a span {
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-bottom-nav a.is-active { background: rgba(255, 255, 255, .08); }

@media (min-width: 768px) {
  html { background: #eef5fb; }
  .customer-auth-page { box-shadow: 0 16px 60px rgba(22, 59, 81, .16); }
}

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

/* C3D10 repair final override. */
html, html * {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
  transition-duration: 180ms !important;
  transition-timing-function: ease-out !important;
}
html a, html button, html input, html select, html textarea, html [role="button"] { min-height: 44px !important; height: auto !important; }
html input[type="checkbox"], html input[type="radio"] { width: 44px !important; height: 44px !important; }
@media (prefers-reduced-motion: reduce) {
  html, html * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* C3D10 repair: shared public-page interaction, typography and motion contract. */
html, body, body * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif !important;
}
html * {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
  transition-duration: 180ms !important;
  transition-timing-function: ease-out !important;
}
html a, html button, html input, html select, html textarea, html [role="button"] {
  min-height: 44px !important;
  height: auto !important;
}
html input[type="checkbox"], html input[type="radio"] {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
