:root {
  --bg: #f2f8f7;
  --panel: #ffffff;
  --ink: #10221f;
  --ink-soft: #3f5a56;
  --muted: #8aa19d;
  --line: #dde9e7;
  --line-soft: #ecf4f2;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #e4f5f2;
  --ok: #067647;
  --ok-soft: #e8f7ef;
  --warn: #b54708;
  --warn-soft: #fef3e7;
  --danger: #b42318;
  --danger-soft: #feeceb;
  --info: #175cd3;
  --info-soft: #eaf2ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 34, 31, 0.05), 0 8px 24px rgba(16, 34, 31, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12.5px;
}

.muted {
  color: var(--muted);
}

.strong {
  font-weight: 600;
}

.hint {
  display: block;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---- 认证页 ---- */
.auth-body {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  flex: none;
}

img.brand-mark {
  background: #fff;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.auth-card h1 {
  font-size: 20px;
}

.auth-tip {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-foot {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ---- 表单 ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.field-hint {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.field input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-row input {
  flex: 1;
  min-width: 0;
}

.captcha-img {
  flex: none;
  width: 140px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.captcha-img svg {
  width: 100%;
  height: 100%;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ---- 顶部导航 ---- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-item {
  padding: 7px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-item:hover {
  background: var(--line-soft);
  text-decoration: none;
}

.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
}

.topbar-user form {
  margin: 0;
}

/* ---- 主体 ---- */
.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

.page-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.site-foot {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* ---- 提示 ---- */
.flash {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.flash-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: #bfe5d2;
}

.flash-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f5c6c0;
}

/* ---- 卡片 ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h2 {
  font-size: 16px;
}

.card-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  margin: 0 -6px;
}

.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  background: #f8fbfa;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 6px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 6px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  text-align: right;
}

.data-table tbody tr:hover {
  background: #fafcfb;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 18px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav {
    order: 3;
    width: 100%;
  }
}

/* ---- 会员卡 ---- */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  padding: 24px 26px;
  margin-bottom: 16px;
}

.hero-upgrade {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.hero-upgrade:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.log-list {
  display: flex;
  flex-direction: column;
}

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.log-item:last-child {
  border-bottom: none;
}

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

.log-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.hero-level {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.hero-info {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card .muted {
  color: rgba(255, 255, 255, 0.78);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.badge-ok {
  background: #d1fae5;
  color: var(--ok);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

/* Payment plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}

.plan-carousel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
}

.plan-carousel .plan-grid {
  margin: 0;
}

.plan-scroll-btn {
  width: 34px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.plan-scroll-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.plan-grid.is-scrollable {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding: 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 6px 4px 12px;
}

.plan-grid.is-scrollable > .plan-card {
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 560px) {
  .plan-carousel {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 4px;
  }

  .plan-scroll-btn {
    width: 28px;
  }

  .plan-grid.is-scrollable {
    grid-auto-columns: 100%;
  }
}

.plan-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card:hover {
  border-color: #c0c8d6;
}

.plan-card:has(input[type="radio"]:checked) {
  border-color: #B8CFFF;
  box-shadow: 0 4px 16px rgba(184, 207, 255, 0.38), 0 0 0 4px rgba(184, 207, 255, 0.26);
  background: #f7faff;
}

.plan-card.is-recommend {
  border-color: #f0a020;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 46%);
}

.plan-card.is-recommend:has(input[type="radio"]:checked) {
  border-color: #f0a020;
  box-shadow: 0 6px 24px rgba(240, 160, 32, 0.28), 0 0 0 5px rgba(240, 160, 32, 0.18);
  background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
}

.btn-lg {
  padding: 12px 48px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.plan-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-price {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.plan-price-currency {
  font-size: 16px;
  margin-right: 2px;
}

.plan-duration {
  font-size: 13px;
  margin-bottom: 6px;
}

.plan-limit {
  font-size: 12px;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 13px;
  color: #5a6677;
  margin: 2px 0 12px;
  flex: 1;
  white-space: pre-line;
}

.plan-specs {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.plan-spec {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-spec > span {
  color: var(--muted);
  flex: none;
}

.plan-spec > strong {
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.45;
}

.plan-service {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-service > span {
  color: var(--muted);
  flex: none;
}

.plan-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.45;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 4px;
}

/* ---- 配额 ---- */
.usage {
  margin-bottom: 14px;
}

.usage-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.usage-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #2dd4bf);
  transition: width 0.3s;
}

/* ---- 信息网格 ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.info-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--line-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 产品介绍 ---- */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f4fbfa);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 20px;
}

.product-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
}

.product-title {
  margin: 16px 0 12px;
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.product-title-accent {
  color: var(--accent);
}

.product-lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

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

.product-sync-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 34, 31, 0.07);
  padding: 20px;
}

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

.sync-title {
  font-weight: 600;
}

.sync-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.sync-row span {
  color: var(--muted);
}

.sync-row strong {
  font-weight: 500;
  text-align: right;
}

.sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sync-cell {
  background: #f6faf9;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sync-cell span {
  font-size: 12px;
  color: var(--muted);
}

.sync-cell strong {
  font-size: 14px;
  font-weight: 600;
}

.sync-cell-tag {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sync-cell-tag strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.product-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  margin-bottom: 20px;
  text-align: center;
}

.product-section-title {
  font-size: 24px;
}

.product-section-sub {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
}

.service-list {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 0 0 0 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.service-list strong {
  color: var(--ink);
  font-weight: 600;
}

.spec-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.spec-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #f8fbfa;
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table .empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 12px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  text-align: left;
}

.feature-card {
  background: #fbfdfc;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 12px;
}

.product-stat {
  text-align: center;
  border-right: 1px solid var(--line-soft);
}

.product-stat:last-child {
  border-right: none;
}

.product-stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .product-title {
    font-size: 27px;
  }
  .product-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }
  .product-stat:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .product-features {
    grid-template-columns: 1fr;
  }
  .product-stats {
    grid-template-columns: 1fr;
  }
  .product-stat {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 14px;
  }
  .product-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 兑换成功祝贺弹层 */
.celebrate-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.celebrate-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: celebrate-pop 0.25s ease-out;
}
@keyframes celebrate-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.celebrate-emoji { font-size: 52px; line-height: 1; }
.celebrate-card h2 { margin: 14px 0 8px; font-size: 22px; color: #0f172a; }
.celebrate-msg { margin: 0 0 22px; color: #475569; font-size: 15px; }
.celebrate-actions { display: flex; gap: 12px; justify-content: center; }

/* 券码预检查提示 */
.code-check { margin-top: 6px; font-size: 13px; }
.code-check-ok { color: #15803d; }
.code-check-err { color: #b91c1c; }

.plan-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}
.plan-card.is-disabled input[type=radio] {
  pointer-events: none;
}
.plan-card.is-disabled:hover {
  border-color: var(--line);
  transform: none;
}
.plan-badge-recommend,
.plan-badge-locked,
.plan-badge-ok {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  color: #fff;
}
.plan-badge-recommend {
  left: 16px;
  right: auto;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  padding: 4px 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.32);
}
.plan-badge-locked { background: #9aa3b2; }
.plan-badge-ok { background: #13B2A1; }

/* 支付结果页 */
.pay-result-hero {
  text-align: center;
  padding: 6px 0 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}

.pay-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: #e7f7ee;
  color: #16a34a;
}

.pay-result-icon svg {
  width: 28px;
  height: 28px;
}

.pay-result-icon.is-pending { background: #fff7e6; color: #d97706; }
.pay-result-icon.is-error { background: #feeceb; color: #dc2626; }

.pay-result-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.pay-result-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pay-result-amount {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.pay-result-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 站内收银台 */
.cashier-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.cashier-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #eef1f6;
  color: var(--muted);
}

.cashier-steps li.is-done .step-dot { background: #e8eeff; color: var(--brand); }

.cashier-steps li.is-active {
  color: var(--ink);
  font-weight: 600;
}

.cashier-steps li.is-active .step-dot {
  background: var(--brand);
  color: #fff;
}

.step-bar {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.cashier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.cashier-main {
  display: grid;
  gap: 20px;
}

.order-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.order-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.order-product-icon svg {
  width: 24px;
  height: 24px;
}

.order-product-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.order-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  background: #eef2ff;
  border-radius: 4px;
  padding: 1px 6px;
}

.order-product-body p {
  margin: 2px 0;
  font-size: 12px;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 16px 0 0;
  font-size: 13px;
}

.order-meta div {
  display: flex;
  gap: 8px;
}

.order-meta dt {
  color: var(--muted);
  flex: none;
}

.order-meta dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pay-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.cashier-side .card {
  position: sticky;
  top: 16px;
}

.summary {
  margin: 0;
  font-size: 13px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.summary dt { color: var(--muted); }

.summary dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 6px;
}

.summary-total span {
  font-size: 13px;
  color: var(--muted);
}

.summary-total strong {
  color: #e4393c;
  font-size: 24px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.refund-notice {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #b45309;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.cashier-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  vertical-align: middle;
  text-decoration: none;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.org-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.org-add-field {
  flex: 1 1 240px;
  min-width: 0;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pager-info {
  font-size: 12px;
  color: var(--muted);
}

.pager .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 860px) {
  .cashier-grid { grid-template-columns: 1fr; }
  .cashier-side .card { position: static; }
}

@media (max-width: 560px) {
  .order-meta { grid-template-columns: 1fr; }
  .step-bar { width: 28px; }
}
