:root {
  --primary: #22b8cf;
  --primary-2: #5c7cfa;
  --accent: #ffb86b;
  --accent-2: #8ce99a;
  --pink: #ff8cc6;
  --text: #203047;
  --muted: #6b7a90;
  --bg: #f7fbff;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(92, 124, 250, 0.12);
  --shadow: 0 18px 40px rgba(92, 124, 250, 0.16);
  --soft-shadow: 0 10px 24px rgba(34, 184, 207, 0.11);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: radial-gradient(circle at 14% 4%, rgba(140, 233, 154, 0.34), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 140, 198, 0.24), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(34, 184, 207, 0.18), transparent 32%),
    var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:active,
.card.clickable:active,
.list-item:active {
  transform: scale(0.98);
}

.app-shell {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f1fffb 38%, #fff7fb 72%, #ffffff 100%);
  padding-bottom: 88px;
  box-shadow: 0 0 46px rgba(92, 124, 250, 0.12);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(circle at 12% 20%, rgba(140, 233, 154, 0.32), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(255, 184, 107, 0.28), transparent 32%),
    radial-gradient(circle at 70% 32%, rgba(255, 140, 198, 0.16), transparent 28%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 184, 207, 0.96), rgba(92, 124, 250, 0.9));
  box-shadow: 0 12px 28px rgba(34, 184, 207, 0.18);
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.logo-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary);
  background: linear-gradient(145deg, #ffffff, #ecfff6);
  box-shadow: inset 0 -2px 8px rgba(140, 233, 154, 0.2), 0 8px 18px rgba(34, 184, 207, 0.16);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.88;
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(92, 124, 250, 0.16);
  border-radius: 16px;
  padding: 10px 12px;
  color: #203047;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  line-height: 1.5;
}

.flash.error {
  border-color: rgba(255, 184, 107, 0.42);
  color: #8a5a10;
  background: #fff7e8;
}

.flash button {
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--primary);
  background: #ecfffa;
  white-space: nowrap;
  cursor: pointer;
}

.page {
  position: relative;
  z-index: 1;
  padding: 18px 16px 22px;
}

.hero-stack {
  display: grid;
  gap: 10px;
}



.banner {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #22b8cf 0%, #8ce99a 48%, #ffb86b 110%);
  box-shadow: var(--shadow);
}

.banner::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.banner::after {
  content: "AI";
  position: absolute;
  right: 18px;
  bottom: -18px;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -5px;
  color: rgba(255, 255, 255, 0.16);
}

.banner h2,
.banner p,
.banner .actions {
  position: relative;
  z-index: 1;
}

.banner h2 {
  margin: 0 0 10px;
  max-width: 290px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.banner p {
  max-width: 310px;
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
  opacity: 0.94;
}

.section {
  margin-top: 20px;
}

.register-panel {
  margin-top: 14px;
}

.register-panel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 123, 191, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 242, 248, 0.94));
  box-shadow: 0 14px 30px rgba(92, 124, 250, 0.08), var(--soft-shadow);
  position: relative;
  overflow: hidden;
}

.register-panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 123, 191, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(92, 124, 250, 0.1), transparent 28%);
  pointer-events: none;
}

.register-panel-copy,
.hero-register-btn {
  position: relative;
  z-index: 1;
}

.register-panel-copy {
  display: grid;
  gap: 6px;
}

.register-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #22b8cf, #5c7cfa);
  box-shadow: 0 8px 16px rgba(92, 124, 250, 0.18);
}

.register-panel-card h3 {
  margin: 0;
  color: #203047;
  font-size: 19px;
  line-height: 1.25;
}

.register-panel-card p {
  margin: 0;
  color: #16889a;
  font-size: 13px;
  line-height: 1.65;
  max-width: 240px;
}

.hero-register-btn {
  flex: 0 0 auto;
  min-width: 160px;
  min-height: 64px;
  padding: 0 22px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ff7bbf 0%, #ffb86b 45%, #5c7cfa 100%);
  box-shadow: 0 16px 30px rgba(255, 123, 191, 0.28);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h3 {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.section-title h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-2), var(--accent));
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card,
.list-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.card.clickable {
  cursor: pointer;
  min-height: 108px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 255, 250, 0.92));
}

.card.clickable::before {
  content: "";
  display: block;
  width: 28px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
}

.card h4,
.card h3,
.list-item h3 {
  margin: 0 0 8px;
  color: #203047;
  line-height: 1.35;
}

.card h4 {
  font-size: 15px;
}

.card h3,
.list-item h3 {
  font-size: 16px;
}

.card p,
.list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 20px rgba(34, 184, 207, 0.18);
}

.btn.compact {
  padding: 8px 12px;
  font-size: 13px;
}

.btn.secondary {
  color: var(--primary);
  background: linear-gradient(135deg, #f1fff8, #fff4fb);
  box-shadow: none;
}

.btn.light {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.22);
}

.btn:hover {
  box-shadow: 0 14px 26px rgba(255, 140, 198, 0.16);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  position: relative;
  overflow: hidden;
}

.list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--primary-2), var(--accent));
}

.list-item h3,
.list-item p,
.list-item .meta {
  position: relative;
  z-index: 1;
}

.clickable-news {
  cursor: pointer;
}

.read-more {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  box-shadow: 0 8px 18px rgba(34, 184, 207, 0.16);
}

.meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #16889a;
  background: #ecfffa;
  font-size: 12px;
}

.back-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(135deg, #f1fff8, #fff4fb);
  cursor: pointer;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.detail-card h2 {
  margin: 6px 0 12px;
  color: #203047;
  font-size: 24px;
  line-height: 1.32;
  letter-spacing: -0.4px;
}

.detail-card .lead {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: #16889a;
  font-size: 15px;
  line-height: 1.75;
}

.detail-body {
  margin-top: 16px;
  color: #253650;
  font-size: 15px;
  line-height: 1.9;
}

.detail-body p {
  margin: 0 0 14px;
}

.tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.tags::-webkit-scrollbar {
  display: none;
}

.tag {
  border: 1px solid rgba(34, 184, 207, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 14px rgba(34, 184, 207, 0.08);
  font-size: 13px;
  cursor: pointer;
}

.tag.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.notice {
  border: 1px solid rgba(54, 207, 201, 0.32);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  padding: 14px;
  color: #16889a;
  background: linear-gradient(135deg, #f0fff7, #fff6fb);
  line-height: 1.7;
  box-shadow: 0 10px 24px rgba(54, 207, 201, 0.08);
}

.notice.success {
  border-color: rgba(140, 233, 154, 0.42);
  color: #19734f;
  background: linear-gradient(135deg, #f0fff7, #f4fff9);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(32, 48, 71, 0.34);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(360px, 100%);
  border: 1px solid rgba(34, 184, 207, 0.18);
  border-radius: 24px;
  padding: 24px 20px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(32, 48, 71, 0.24);
}

.modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  font-size: 28px;
  font-weight: 900;
}

.modal-card h3 {
  margin: 0;
  color: #203047;
  font-size: 20px;
  line-height: 1.3;
}

.modal-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.plain-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.plain-list li + li {
  margin-top: 4px;
}

.value-card p,
.member-card p,
.benefit-entry p {
  font-size: 14px;
}

.locked-panel,
.auth-card {
  margin-top: 16px;
  border: 1px dashed rgba(255, 184, 107, 0.72);
  border-radius: 18px;
  padding: 16px;
  color: #8a5a10;
  background: linear-gradient(135deg, #fff7e8, #fff9f1);
}

.auth-card {
  margin-top: 0;
}

.locked-panel h3,
.auth-card h3 {
  margin: 0 0 8px;
  color: #7a4b0a;
  font-size: 16px;
}

.locked-panel p,
.auth-card p {
  margin: 0;
  line-height: 1.7;
  font-size: 13px;
}

.insight {
  margin-top: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff8ed;
}

.insight h3 {
  margin: 0 0 7px;
  color: #8a5a10;
  font-size: 15px;
}

.insight p {
  margin: 0;
}

.case-sections {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.detail-section h3 {
  margin: 0 0 7px;
  color: #203047;
  font-size: 15px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #344054;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(22, 61, 122, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(34, 184, 207, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(54, 207, 201, 0.9);
  box-shadow: 0 0 0 4px rgba(54, 207, 201, 0.16);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(22, 61, 122, 0.08);
  border-radius: 14px;
  padding: 10px 11px;
  color: #344054;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.field-check input {
  width: auto;
  margin-top: 3px;
  box-shadow: none;
}

.agreement-check {
  align-items: center;
  flex-wrap: wrap;
}

.agreement-box,
.agreement-links {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.agreement-box {
  gap: 9px;
}

.text-link.inline {
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.legal-page {
  display: grid;
  gap: 14px;
}

.legal-page .back-btn {
  width: fit-content;
  margin-bottom: 0;
}

.legal-sections {
  display: grid;
  gap: 12px;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.text-link.left {
  justify-self: start;
}

.small-muted {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.member-profile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 255, 250, 0.92));
}

.recharge-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.92));
}

.recharge-panel {
  display: grid;
  gap: 14px;
}

.qr-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(34, 184, 207, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f1fff8);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(34, 184, 207, 0.38);
  border-radius: 14px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 700;
}

.qr-placeholder[hidden] {
  display: none;
}

.menu-list .list-item {
  cursor: default;
}

.menu-list .list-item.clickable-news {
  cursor: pointer;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.footer p {
  margin: 0 0 8px;
}

.locked {
  border: 1px dashed #f0b25d;
  border-radius: 16px;
  padding: 12px;
  color: #8a5a10;
  background: #fff7e8;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(22, 61, 122, 0.08);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 -14px 28px rgba(34, 184, 207, 0.11);
}

.nav button {
  border: 0;
  border-radius: 16px;
  padding: 7px 2px 6px;
  color: #667085;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.nav button.active {
  color: var(--primary);
  font-weight: 800;
  background: linear-gradient(180deg, #ecfffa, #fff2f8);
}

.nav span {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 1.1;
}

.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 20px 16px;
  }

  .banner h2 {
    font-size: 22px;
  }

  .register-panel-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .register-panel-copy p {
    max-width: none;
  }

  .hero-register-btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 17px;
  }

  .page {
    padding: 14px 12px 18px;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 6px;
  }
}
