/* =============================================
   Small Helix — Packages & Checkout (v4)
   品牌色 #7C5CFC · Inter + Noto Sans SC
   ============================================= */

body.page-packages {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(124,92,252,0.10), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(59,130,246,0.10), transparent 34%),
    #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  margin: 0;
  padding: 0 16px 60px;
  -webkit-font-smoothing: antialiased;
}

.pk-wrap { max-width: 900px; margin: 0 auto; }

.pk-hero { text-align: center; padding: 40px 16px 24px; }
.pk-hero__badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #7C5CFC; background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.18); padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}
.pk-hero h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.pk-hero p { font-size: 15px; color: #6b7280; line-height: 1.6; margin: 0; }

/* Package grid */
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pk-card {
  background: #fff; border: 1px solid #e6e8f0; border-radius: 18px; padding: 22px;
  box-shadow: 0 8px 24px rgba(17,24,39,0.06); display: flex; flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; position: relative;
}
.pk-card:hover { box-shadow: 0 16px 38px rgba(17,24,39,0.12); transform: translateY(-3px); border-color: rgba(124,92,252,0.28); }
.pk-card--full { grid-column: 1 / -1; border-color: #7C5CFC; background: linear-gradient(180deg, #FAFAFF 0%, #fff 100%); }
.pk-card--featured { background: linear-gradient(180deg, #F3F0FF 0%, #fff 100%); border-color: #7C5CFC; }

.pk-card__phase {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 10px; border-radius: 8px; margin-bottom: 10px;
}
.pk-phase-1 { background: #2563eb; }
.pk-phase-2 { background: #7C5CFC; }
.pk-phase-3 { background: #059669; }
.pk-phase-all { background: linear-gradient(135deg, #7C5CFC, #6344E0); }

.pk-card__name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.pk-card__scope { font-size: 13px; color: #6b7280; margin: 0 0 14px; line-height: 1.5; }

.pk-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pk-price__now { font-size: 28px; font-weight: 800; color: #7C5CFC; letter-spacing: -0.02em; }
.pk-price__was { font-size: 14px; color: #aeaeb2; text-decoration: line-through; }
.pk-price__save { font-size: 12px; font-weight: 700; color: #dc2626; background: #fee2e2; padding: 1px 8px; border-radius: 8px; }
.pk-deliverable { font-size: 12px; color: #6d4df2; margin-bottom: 14px; }

.pk-modules { margin: 6px 0 16px; }
.pk-modules__toggle {
  background: none; border: none; color: #7C5CFC; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 0; font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.pk-modules__list { list-style: none; padding: 10px 0 0; margin: 0; display: none; }
.pk-modules__list.is-open { display: block; }
.pk-modules__list li { font-size: 13px; color: #374151; padding: 4px 0; border-bottom: 1px dashed #eef0f5; display: flex; justify-content: space-between; gap: 8px; }
.pk-modules__list li:last-child { border-bottom: none; }
.pk-modules__list .mid { color: #7C5CFC; font-weight: 600; font-family: ui-monospace, monospace; font-size: 12px; }

.pk-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
  border: none; background: #7C5CFC; color: #fff; text-decoration: none; transition: background 0.2s;
  font-family: inherit;
}
.pk-card__cta:hover { background: #6344E0; }
.pk-card--outline .pk-card__cta { background: rgba(124,92,252,0.10); color: #7C5CFC; }
.pk-card--outline .pk-card__cta:hover { background: rgba(124,92,252,0.18); }

/* Checkout */
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.co-panel { background: #fff; border: 1px solid #e6e8f0; border-radius: 18px; padding: 24px; box-shadow: 0 8px 24px rgba(17,24,39,0.06); }
.co-panel h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.co-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed #eef0f5; }
.co-summary__row .mid { color: #7C5CFC; font-weight: 600; font-family: ui-monospace, monospace; font-size: 12px; margin-right: 6px; }
.co-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 2px solid #f0f0f5; }
.co-summary__total .label { font-size: 14px; color: #6b7280; }
.co-summary__total .amount { font-size: 26px; font-weight: 800; color: #7C5CFC; }
.co-summary__save { font-size: 13px; color: #dc2626; text-align: right; margin-top: 4px; }

.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.co-field input {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 15px; font-family: inherit; color: #1d1d1f; background: #fff;
}
.co-field input:focus { outline: none; border-color: #7C5CFC; box-shadow: 0 0 0 3px rgba(124,92,252,0.12); }
.co-field input.is-invalid { border-color: #dc2626; }
.co-field__err { font-size: 12px; color: #dc2626; margin-top: 4px; display: none; }
.co-field__err.is-show { display: block; }

.co-submit {
  width: 100%; padding: 14px; border: none; border-radius: 12px; background: #7C5CFC; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 6px; transition: background 0.2s;
}
.co-submit:hover { background: #6344E0; }
.co-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.co-note { font-size: 12px; color: #9ca3af; line-height: 1.6; margin-top: 12px; text-align: center; }

.co-success { text-align: center; padding: 40px 20px; }
.co-success__icon { font-size: 48px; margin-bottom: 12px; }
.co-success h2 { font-size: 20px; margin: 0 0 8px; }
.co-success p { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0 0 6px; }
.co-success__no { font-family: ui-monospace, monospace; color: #7C5CFC; font-weight: 700; }
.co-success__actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.co-success__actions a { padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.co-success__actions a.pri { background: #7C5CFC; color: #fff; }
.co-success__actions a.ghost { background: #f3f4f6; color: #374151; }

.pk-back { text-align: center; margin-top: 28px; font-size: 14px; }
.pk-back a { color: #7C5CFC; font-weight: 600; text-decoration: none; }

.pk-loading, .pk-error { text-align: center; padding: 40px 0; color: #6b7280; font-size: 15px; }
.pk-error { color: #b91c1c; }

@media (max-width: 720px) {
  .pk-grid { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr; }
  .co-panel--summary { order: 2; }
}
