:root {
  --green: #148a43;
  --green-2: #38b565;
  --blue: #087df1;
  --blue-2: #56b8ff;
  --soft-green: #eefaf1;
  --bg: #f1f7fb;
  --text: #151917;
  --muted: #717c84;
  --line: #dce8ef;
  --white: #ffffff;
  --warn-bg: #fff4e8;
  --warn: #8a5b14;
  --shadow: 0 18px 42px rgba(28, 88, 53, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(76, 169, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 98px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.94) 46%, #f7fbff 100%);
  box-shadow: 0 0 0 1px rgba(8, 125, 241, 0.05);
}

.wechat-chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 24px;
  font-size: 14px;
  color: #111;
}

.status-bar strong {
  font-size: 16px;
  letter-spacing: 0;
}

.status-bar span:last-child {
  text-align: right;
}

.title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.mini-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.back-btn {
  position: absolute;
  left: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  line-height: 34px;
}

.capsule {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 86px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.capsule span {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #111 0 3px, transparent 4px) 0 0 / 10px 6px repeat-x;
}

.capsule i {
  width: 20px;
  height: 20px;
  border: 4px solid #111;
  border-radius: 50%;
}

.view-card {
  min-height: 280px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  margin: 8px -16px 0;
  padding: 18px 0 10px;
  background: url("./assets/image.png") right 2px bottom 26px / auto 80% no-repeat;
}

.home-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(250, 253, 255, 0.98) 0%, rgba(250, 253, 255, 0.9) 32%, rgba(250, 253, 255, 0.3) 54%, rgba(250, 253, 255, 0) 68%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.86) 0%, rgba(248, 252, 255, 0.2) 14%, rgba(248, 252, 255, 0) 32%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 56px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(247, 251, 255, 0.94));
  pointer-events: none;
}

.home-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 16px;
  font-size: 17px;
  color: #2b302d;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.78);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.meta-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.meta-link:active {
  opacity: 0.74;
}

.pin,
.leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
}

.leaf {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
}

.pin i,
.leaf i {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.headline {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  max-width: 274px;
  margin-left: 16px;
  padding: 0;
  text-shadow: 0 1px 9px rgba(255, 255, 255, 0.72);
}

.headline h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.headline h1 span,
.headline h1 strong {
  display: block;
  white-space: nowrap;
}

.headline h1 span {
  font-size: 30px;
  font-weight: 800;
}

.headline h1 strong {
  margin-top: 3px;
  font-size: 55px;
  font-weight: 900;
  line-height: 0.96;
  color: var(--blue);
}

.headline p {
  margin: 10px 0 0;
  color: #55636d;
  font-size: 16px;
  line-height: 1.38;
  white-space: nowrap;
}

.campus-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 56px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(247, 251, 255, 0.98));
  pointer-events: none;
}

.home-transition {
  position: relative;
  margin: -2px -16px 0;
  height: 26px;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(170, 208, 247, 0.18), rgba(170, 208, 247, 0) 62%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.25), rgba(247, 251, 255, 0.94) 65%, rgba(247, 251, 255, 1));
}

.feature-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -42px;
}

.feature-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  column-gap: 10px;
  align-items: center;
  min-height: 142px;
  padding: 16px 14px;
  border: 1px solid rgba(8, 125, 241, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--tint));
  color: var(--text);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-bg-icon {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  pointer-events: none;
}

.feature-bg-icon i {
  font-size: 64px;
  line-height: 1;
  color: rgba(8, 125, 241, 0.12);
}

.feature-card[data-view="ai"] .feature-bg-icon i {
  font-size: 68px;
  color: rgba(12, 148, 238, 0.2);
  text-shadow: 0 0 18px rgba(12, 148, 238, 0.18);
}

.feature-copy strong {
  display: block;
  overflow: visible;
  font-size: 20px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
  word-break: keep-all;
}

.feature-copy span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.feature-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-right: 14px;
}

.chevron {
  position: relative;
  z-index: 2;
  color: #9aa09c;
  font-size: 30px;
}

.promo-card {
  margin: 14px 0 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.promo-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.promo-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.promo-player {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  background: #dfeeff;
  aspect-ratio: 16 / 9;
}

.promo-placeholder {
  display: grid;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(8, 125, 241, 0.38);
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f9ff, #ecf5ff);
  color: #2a3d4a;
  text-align: center;
}

.promo-play {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff;
  font-size: 24px;
}

.promo-placeholder span {
  font-size: 17px;
  font-weight: 800;
}

.promo-placeholder small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.promo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.trust-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.9));
  border: 1px solid rgba(8, 125, 241, 0.08);
  box-shadow: var(--shadow);
}

.trust-card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 116px;
  height: 84px;
  border-radius: 70px 0 0 0;
  background: radial-gradient(circle at 22% 18%, rgba(8, 125, 241, 0.1), transparent 62%);
}

.trust-copy {
  min-width: 0;
}

.trust-copy strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
  color: #2a3642;
}

.trust-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.trust-action {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(8, 125, 241, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.trust-action:active {
  transform: translateY(1px);
}

.section-title {
  margin: 22px 0 12px;
  font-size: 23px;
  line-height: 1.3;
}

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

.content-media {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(8, 125, 241, 0.08);
  background: #eef5ff;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-media-guide {
  margin: 0 0 14px;
  border-radius: 16px;
  aspect-ratio: 5 / 3;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.user-id-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border: 1px solid rgba(8, 125, 241, 0.12);
  background:
    linear-gradient(140deg, #eff5fb, #f8fbff 52%, #eef4fb);
}

.user-id-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.id-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8, 125, 241, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.id-type {
  color: #63788d;
  font-size: 13px;
  font-weight: 700;
}

.user-id-body {
  margin-top: 10px;
}

.user-id-body h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.06;
}

.user-id-body p {
  margin: 8px 0 0;
  color: #5f7182;
  font-size: 17px;
  line-height: 1.35;
}

.user-id-body .id-no {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.member-barcode {
  margin-top: 14px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 125, 241, 0.12);
}

.member-bars {
  display: block;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      #1d3146 0 2px,
      transparent 2px 4px,
      #1d3146 4px 8px,
      transparent 8px 9px,
      #1d3146 9px 10px,
      transparent 10px 13px,
      #1d3146 13px 16px,
      transparent 16px 18px
    );
}

.member-barcode small {
  display: block;
  margin-top: 6px;
  text-align: center;
  color: #63788d;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.record-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(8, 125, 241, 0.2);
}

.order-card {
  margin-top: 10px;
  padding: 12px 0;
  border-top: 1px dashed rgba(8, 125, 241, 0.2);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.order-head strong {
  color: var(--blue);
  font-size: 14px;
}

.order-body p {
  margin: 8px 0 0;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.order-foot > span {
  font-size: 16px;
  font-weight: 800;
  color: #1d2b36;
}

.order-actions {
  display: flex;
  gap: 12px;
}

.meta {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.product-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.product-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 16px;
  background: #edf6ff;
  color: var(--blue);
  font-weight: 900;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 16px;
}

.page-head h2 {
  margin: 0;
  font-size: 25px;
}

.page-head span {
  color: var(--muted);
  font-size: 15px;
}

.inline-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.category-row,
.zone-row {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}

.category-row {
  flex-wrap: wrap;
  overflow: visible;
}

.zone-row {
  overflow-x: auto;
}

.pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}

.pill.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.field {
  margin-top: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-size: 17px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
}

.primary-btn {
  border: 0;
  background: var(--blue);
  color: var(--white);
}

.secondary-btn {
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
}

.hall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-spot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(8, 125, 241, 0.2);
}

.zone-block {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-green);
  color: var(--text);
  font-weight: 800;
}

.zone-block.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.notice {
  padding: 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 15px;
  line-height: 1.5;
}

.chatbot-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.94));
  box-shadow: var(--shadow);
}

.chatbot-notice {
  margin-bottom: 12px;
}

.chat-thread {
  flex: 1;
  min-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.chat-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.chat-row.user {
  grid-template-columns: 1fr 34px;
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.chat-row.user .chat-avatar {
  order: 2;
  background: rgba(8, 125, 241, 0.14);
}

.bubble {
  width: fit-content;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(30, 69, 47, 0.06);
  font-size: 16px;
  line-height: 1.55;
}

.bubble.user {
  order: 1;
  margin-left: auto;
  background: var(--blue);
  color: var(--white);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.75), rgba(245, 250, 255, 0.98));
  border-top: 1px solid rgba(8, 125, 241, 0.1);
}

.chat-input textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
}

.send-btn {
  min-width: 74px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.view-card.ai-view {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 214px);
}

.view-card.ai-view .page-head {
  flex: 0 0 auto;
}

.view-card.ai-view .chatbot-panel {
  flex: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(31, 47, 39, 0.92);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: grid;
  width: min(100%, 430px);
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transform: translateX(-50%);
}

.bottom-tabs::before,
.bottom-tabs::after {
  content: none !important;
}

.tab-btn {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #9a9f9b;
  font-size: 13px;
}

.tab-btn span:last-child {
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--blue);
  font-weight: 800;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.tab-icon i {
  font-size: 23px;
  line-height: 1;
}

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

  .wechat-chrome {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-row {
    grid-template-columns: 72px 1fr;
  }

  .product-icon {
    width: 72px;
    height: 72px;
  }

  .feature-grid {
    gap: 9px;
  }

  .home-hero {
    min-height: 236px;
    background-size: auto 76%;
    background-position: right 2px bottom 20px;
  }

  .headline {
    max-width: 242px;
    margin-top: 28px;
    margin-left: 12px;
    padding: 0;
  }

  .headline h1 {
    line-height: 1.06;
  }

  .headline h1 span {
    font-size: 28px;
  }

  .headline h1 strong {
    font-size: 48px;
  }

  .headline p {
    font-size: 15px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    min-height: 176px;
  }

  .user-id-body h3 {
    font-size: 30px;
  }

  .feature-bg-icon {
    right: 8px;
    bottom: 8px;
  }

  .feature-bg-icon i {
    font-size: 58px;
  }

  .feature-card[data-view="ai"] .feature-bg-icon i {
    font-size: 62px;
  }

  .feature-copy strong {
    font-size: 19px;
  }

  .trust-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 12px 11px;
  }

  .trust-copy strong {
    font-size: 23px;
  }

  .trust-copy span {
    margin-top: 4px;
    font-size: 14px;
  }

  .trust-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .chevron {
    position: absolute;
    right: 14px;
    top: 18px;
  }
}
