/* ChatGPT 风格购买页 v20260920 */
body.buy-page {
  font-family: "PingFang SC", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  background: #f7f7f8;
  color: #0d0d0d;
  min-height: 100vh;
  margin: 0;
  padding: 72px 20px 40px;
}

.buy-shell {
  max-width: 920px;
  margin: 0 auto;
}

.buy-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  color: #0066ff;
  text-decoration: none;
  margin-bottom: 24px;
}

.buy-hero {
  text-align: center;
  margin-bottom: 32px;
}

.buy-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0d0d0d;
}

.buy-hero p {
  margin: 0;
  font-size: 0.95rem;
  color: #6e6e80;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 28px;
}

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

.plan-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  overflow: hidden;
}

.plan-card.featured {
  border-color: #10a37f;
  box-shadow: 0 4px 16px rgba(16, 163, 127, 0.08);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f5f1;
  color: #0d8a6a;
  white-space: nowrap;
}

.plan-price {
  margin: 8px 0 4px;
  line-height: 1.2;
}

.plan-price .orig {
  font-size: 0.9rem;
  color: #8e8ea0;
  text-decoration: line-through;
  margin-right: 6px;
}

.plan-price .sale {
  font-size: 1.75rem;
  font-weight: 600;
}

.plan-price .unit {
  font-size: 0.88rem;
  color: #6e6e80;
  font-weight: 400;
}

.plan-sub {
  font-size: 0.82rem;
  color: #6e6e80;
  margin: 0 0 18px;
  line-height: 1.5;
}

.plan-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  transition: opacity 0.15s;
}

.plan-btn:active { opacity: 0.85; }

.plan-btn.current {
  background: #f4f4f4;
  color: #8e8ea0;
  border: 1px solid #e5e5e5;
  cursor: default;
}

.plan-btn.buy {
  background: #10a37f;
  color: #fff;
}

.plan-btn.buy:hover { background: #0d8f6e; }

.plan-btn.taobao {
  background: #ff5000;
  color: #fff;
}

.plan-btn.taobao:hover { background: #e64800; }

.plan-btn.taobao.disabled,
.plan-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  pointer-events: none;
  cursor: not-allowed;
}

.plan-btn.secondary {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
  margin-top: -8px;
}

.plan-btn.secondary:hover {
  background: #f9fafb;
}

.taobao-img-wrap {
  margin: -8px 0 16px;
  text-align: center;
}

.taobao-img-wrap img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* —— 结账页（配置套餐） —— */
.checkout-page {
  padding-top: 32px;
}

.checkout-shell {
  max-width: 960px;
  margin: 0 auto;
}

.checkout-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #0d0d0d;
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.checkout-top h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.checkout-pay h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #353740;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d0d0d;
}

.pay-method:hover {
  border-color: #c5c5d2;
}

.pay-method.active {
  border-color: #0d0d0d;
  box-shadow: 0 0 0 1px #0d0d0d;
}

.pay-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-method-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.pay-method-ico.wechat { background: #07c160; }
.pay-method-ico.alipay { background: #1677ff; }

.checkout-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #8e8ea0;
  font-size: 0.82rem;
}

.checkout-or::before,
.checkout-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.checkout-status {
  font-size: 0.82rem;
  margin-top: 14px;
  min-height: 1.2em;
  color: #6e6e80;
}

.checkout-status.ok { color: #059669; }
.checkout-status.err { color: #dc2626; }

.checkout-code-link {
  margin-top: 20px;
  font-size: 0.82rem;
}

.checkout-code-link a {
  color: #0066ff;
  text-decoration: none;
}

.checkout-code-link a:hover { text-decoration: underline; }

.checkout-taobao {
  margin-bottom: 8px;
}

.checkout-taobao h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.checkout-taobao-lead {
  font-size: 0.82rem;
  color: #6e6e80;
  line-height: 1.55;
  margin: 0 0 14px;
}

.checkout-taobao-lead a {
  color: #0066ff;
  text-decoration: none;
}

.checkout-taobao-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ff5000;
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
}

.checkout-taobao-btn:hover { background: #e64800; }

.checkout-taobao-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  pointer-events: none;
}

.checkout-or-wide {
  margin: 22px 0 18px;
}

#sitePaySection.hidden {
  display: none;
}

.summary-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.summary-card h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 600;
}

.summary-period {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: #6e6e80;
}

.summary-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #353740;
  margin-bottom: 10px;
}

.summary-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
}

.summary-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #353740;
  margin-bottom: 10px;
  line-height: 1.45;
}

.summary-features .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #10a37f;
  margin-top: 1px;
}

.summary-lines {
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #353740;
  margin-bottom: 8px;
}

.summary-line.muted {
  color: #8e8ea0;
  font-size: 0.8rem;
}

.summary-line.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 0.92rem;
}

.checkout-subscribe {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.checkout-subscribe:hover { background: #2a2a2a; }
.checkout-subscribe:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-legal {
  margin-top: 14px;
  font-size: 0.72rem;
  color: #8e8ea0;
  line-height: 1.65;
}

.checkout-legal a {
  color: #6e6e80;
  text-decoration: underline;
}

.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.pay-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  width: min(360px, 100%);
  position: relative;
  text-align: center;
}

.pay-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #8e8ea0;
  cursor: pointer;
}

.pay-modal-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.pay-modal-sub,
.pay-modal-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #6e6e80;
}

.pay-qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 12px;
  margin: 0 auto 10px;
}

.plan-btn.member {
  background: #0d0d0d;
  color: #fff;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: #353740;
  line-height: 1.45;
  margin-bottom: 12px;
}

.plan-features .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #6e6e80;
}

.activate-inline {
  margin: 16px 0 20px;
}

.activate-box {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
}

.activate-box label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #353740;
  margin-bottom: 10px;
}

.activate-input-wrap {
  display: flex;
  gap: 8px;
}

.activate-input-wrap input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activate-input-wrap input:focus {
  outline: none;
  border-color: #10a37f;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.08);
}

.activate-input-wrap .submit {
  flex-shrink: 0;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: #10a37f;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.activate-input-wrap .submit:hover {
  background: #0d8f6e;
}

.activate-box .msg {
  font-size: 0.84rem;
  min-height: 1.2em;
  margin-top: 10px;
}

.plan-footnote {
  font-size: 0.72rem;
  color: #8e8ea0;
  line-height: 1.55;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* 激活区 */
.activate-panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 24px;
}

.activate-panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.activate-panel .lead {
  font-size: 0.84rem;
  color: #6e6e80;
  margin: 0 0 16px;
  line-height: 1.55;
}

.activate-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.activate-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  color: #353740;
}

.activate-tab.active {
  background: #f0faf6;
  border-color: #10a37f;
  color: #0d8a6a;
  font-weight: 600;
}

.activate-pane { display: none; }
.activate-pane.active { display: block; }

.activate-panel label {
  display: block;
  font-size: 0.8rem;
  color: #6e6e80;
  margin-bottom: 6px;
}

.activate-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  background: #fafafa;
}

.activate-panel input#code {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activate-panel input#phone {
  text-transform: none;
  letter-spacing: 0;
}

.activate-panel .submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.activate-panel .submit.secondary {
  background: #f4f4f4;
  color: #0d0d0d;
  border: 1px solid #e5e5e5;
  margin-top: 8px;
}

.msg { font-size: 0.88rem; min-height: 1.2em; margin-top: 8px; }
.msg.ok { color: #059669; }
.msg.err { color: #dc2626; }

.demo-tip {
  font-size: 0.76rem;
  color: #8e8ea0;
  margin-top: 10px;
}

.demo-tip code {
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
}

.buy-legal {
  text-align: center;
  font-size: 0.76rem;
  color: #8e8ea0;
  line-height: 1.8;
  padding-top: 8px;
}

.buy-legal a {
  color: #6e6e80;
  text-decoration: none;
  margin: 0 6px;
}

.buy-legal a:hover { color: #0d0d0d; text-decoration: underline; }

.buy-disclaimer {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 0.72rem;
  color: #acacbe;
  line-height: 1.6;
  text-align: center;
}

.hidden { display: none !important; }
