/* 升级会员页 /upgrade/ */

.up-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ── Hero ── */
.up-hero { text-align: center; margin-bottom: 44px; }
.up-hero-kicker {
  display: inline-block;
  padding: 3px 12px; border-radius: 99px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--primary, #1C3DB8) 14%, transparent);
  color: var(--primary, #1C3DB8);
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.up-hero-title {
  font-family: var(--font-serif, serif);
  font-size: 36px; font-weight: 700; letter-spacing: -0.8px;
  color: var(--text-1, #0c0c0c); margin-bottom: 12px;
}
.up-hero-sub {
  font-size: 15px; color: var(--text-2, #555); line-height: 1.7;
  max-width: 480px; margin: 0 auto;
}

/* ── 对比表（卡片面板：不改页面背景，仅抬高表格可读性） ── */
.up-compare {
  margin-bottom: 52px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e5e1) 92%, #0f172a);
  background: #fff;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.up-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.up-table th, .up-table td {
  padding: 11px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e5e1) 88%, #94a3b8);
  text-align: left;
}
.up-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-2, #555);
  background: color-mix(in srgb, var(--surface-2, #f1f1ee) 55%, #e8e9ef);
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e5e1) 75%, #64748b);
}
.up-th-free, .up-th-pro { width: 130px; text-align: center; }
.up-th-pro { color: var(--primary, #1C3DB8) !important; }
.up-table td:nth-child(2), .up-table td:nth-child(3) { text-align: center; }
.up-table tbody tr:nth-child(odd) td { background: #fff; }
.up-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2, #f8f8f6) 65%, #fff); }
.up-table tbody tr:hover td {
  background: color-mix(in srgb, var(--primary, #1C3DB8) 8%, #fff) !important;
}
.up-table tbody tr:last-child td { border-bottom: none; }

.up-feat-group {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-2, #555);
  padding-top: 18px !important;
  background: color-mix(in srgb, var(--surface-2, #f1f1ee) 40%, #e2e4ea) !important;
  border-bottom: none !important;
}
.up-check { font-size: 15px; font-weight: 700; }
.up-yes { color: var(--primary, #1C3DB8); }
.up-no { color: var(--text-3, #999); }
.up-dim { color: var(--text-3, #999); }
.up-pro-val { color: var(--primary, #1C3DB8); font-weight: 600; }

/* ── 套餐 ── */
.up-pricing { text-align: center; }
.up-pricing-title {
  font-family: var(--font-serif, serif);
  font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text-1);
}

.up-already-pro {
  padding: 18px 24px;
  background: color-mix(in srgb, var(--primary, #1C3DB8) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary, #1C3DB8) 28%, transparent);
  border-radius: 12px; font-size: 15px; color: var(--primary, #1C3DB8); font-weight: 600;
}
.up-already-pro a { color: var(--primary); }

/* 标签切换 */
.up-tabs {
  display: inline-flex; gap: 6px;
  background: var(--surface-2, #f1f1ee); border-radius: 12px; padding: 5px;
  margin-bottom: 24px;
}
.up-tab {
  padding: 8px 20px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-2, #555);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body, system-ui);
  transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 6px;
}
.up-tab:hover { background: rgba(255,255,255,.7); color: var(--text-1); }
.up-tab.active {
  background: #fff; color: var(--primary, #1C3DB8);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
}
.up-tab-badge {
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px;
  background: color-mix(in srgb, var(--primary, #1C3DB8) 16%, transparent);
  color: var(--primary, #1C3DB8);
}
.up-tab.active .up-tab-badge { background: var(--primary); color: #fff; }

/* 套餐卡片 */
.up-cards { display: flex; justify-content: center; }
.up-card {
  display: none; flex-direction: column; align-items: center;
  width: 280px; padding: 28px 24px 24px;
  background: #fff; border: 2px solid var(--border, #e5e5e1);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15,23,42,.06);
  transition: border-color .15s;
}
.up-card.active { display: flex; border-color: var(--primary, #1C3DB8); }

.up-card-period {
  font-size: 13px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px;
}
.up-card-price-row {
  display: flex; align-items: flex-end; gap: 2px; margin-bottom: 4px;
}
.up-card-currency { font-size: 20px; font-weight: 700; color: var(--text-1); padding-bottom: 4px; }
.up-card-price {
  font-size: 52px; font-weight: 800; letter-spacing: -2px;
  color: var(--text-1, #0c0c0c); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.up-card-unit { font-size: 14px; color: var(--text-3); padding-bottom: 8px; }

.up-card-original {
  font-size: 12.5px; color: var(--text-3);
  text-decoration: line-through; margin-bottom: 2px;
}
.up-card-save { color: var(--primary); text-decoration: none; font-size: 12.5px; }
.up-card-monthly { font-size: 13px; color: var(--text-3); margin-bottom: 22px; }

.up-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; border-radius: 10px;
  background: var(--primary, #1C3DB8); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: filter .15s, transform .12s;
}
.up-cta:hover { filter: brightness(1.08); }
.up-cta:active { transform: translateY(1px); }

.up-footer-note {
  margin-top: 18px; font-size: 12.5px; color: var(--text-3);
}

@media (max-width: 600px) {
  .up-wrap { padding: 28px 16px 48px; }
  .up-hero-title { font-size: 28px; }
  .up-tabs { flex-wrap: wrap; }
  .up-card { width: 100%; max-width: 320px; }
}
