/* WritNex Buy — Soft UI (stylekit soft-ui) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --secondary: #f1f5f9;
  --ink: #0f172a;
  --fog: #64748b;
  --mist: #94a3b8;
  --line: #e2e8f0;
  --primary: #6366f1;
  --primary-soft: #e0e7ff;
  --primary-deep: #4f46e5;
  --pink: #ec4899;
  --green: #10b981;
  --amber: #f59e0b;
  /* Lite / Pro 只做深浅区分，主色始终 Soft UI 靛蓝 */
  --lite: #818cf8;
  --lite-soft: #e0e7ff;
  --pro: #4f46e5;
  --pro-soft: #c7d2fe;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-btn: 16px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-primary: 0 12px 28px rgba(99, 102, 241, 0.22);
  --shadow-lite: 0 12px 28px rgba(99, 102, 241, 0.14);
  --shadow-pro: 0 14px 32px rgba(79, 70, 229, 0.24);
  --sans: "Nunito", "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(236, 72, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 80% 90%, rgba(16, 185, 129, 0.07), transparent 50%);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.sky, .grain { display: none; }
.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 96px;
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 20px;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav .brand,
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav .brand span,
.brand span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--secondary);
  border-radius: 999px;
}
.nav-links a,
.nav-link {
  color: var(--fog);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nav-links a:hover,
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}
.nav-links a.active,
.nav-link.is-active {
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 20px 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fog);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  padding: 0.12em 0 0.06em;
  margin-bottom: 14px;
  color: var(--ink);
  animation: rise 0.55s 0.05s ease both;
}
.hero h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, #6366f1, #a855f7 55%, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p,
.hero-sub {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
  padding: 0.1em 0;
  color: var(--fog);
  font-weight: 500;
  animation: rise 0.55s 0.1s ease both;
}
.hero-cta { display: none; }

/* —— Container —— */
.container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 72px;
}
.container#plans {
  padding-top: 0;
}
.section-header,
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2,
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section-header p,
.section-head p {
  color: var(--fog);
  font-size: 1rem;
  font-weight: 500;
  max-width: 36rem;
  margin: 0 auto;
}
.page-block {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 20px 72px;
}
.page-block.narrow { max-width: 560px; }


.plan-groups {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.plan-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan-group-head h3 {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
}
.plan-group-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.plan-group.is-buyout .packages { grid-template-columns: 1fr; }

/* —— Soft cards —— */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  padding-top: 44px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.25);
}
.plan.is-featured {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.16);
  background:
    linear-gradient(165deg, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--surface);
}
.plan.is-tier-lite:hover {
  box-shadow: var(--shadow-lite);
  border-color: rgba(99, 102, 241, 0.22);
}
.plan.is-tier-pro {
  border-color: rgba(79, 70, 229, 0.28);
  background:
    linear-gradient(165deg, rgba(79, 70, 229, 0.06), transparent 48%),
    var(--surface);
}
.plan.is-tier-pro:hover {
  box-shadow: var(--shadow-pro);
  border-color: rgba(79, 70, 229, 0.4);
}

.pkg-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 70%;
  margin: 0;
}

.badge {
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-featured {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.badge-discount {
  background: #ffe4e6;
  color: #e11d48;
}
.badge-time {
  background: var(--pro-soft);
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.plan-head .plan-title {
  flex: 1;
  min-width: 0;
  padding-right: 0;
}
.plan-head .plan-price {
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

.plan-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink);
  line-height: 1.35;
}
.plan-tier {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--fog);
}
.plan.is-tier-lite .plan-tier {
  background: var(--lite-soft);
  color: #4338ca;
}
.plan.is-tier-pro .plan-tier {
  background: var(--pro-soft);
  color: #3730a3;
}

.plan-price { margin: 0; }
.plan-origin {
  font-size: 0.85rem;
  color: var(--mist);
  text-decoration: line-through;
  font-weight: 600;
  margin-bottom: 2px;
}
.plan-now {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-content: flex-end;
}
.plan-price .currency {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.plan-price .amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.plan.is-tier-lite .currency { color: var(--primary); }
.plan.is-tier-pro .currency { color: var(--primary-deep); }

/* regular cards: horizontal spec chips */
.plan:not(.is-custom) .plan-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: transparent;
  border-radius: 0;
}
.plan:not(.is-custom) .plan-specs li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: var(--secondary);
  border-radius: 14px;
  font-size: 0.84rem;
}
.plan:not(.is-custom) .plan-specs li::before { display: none; }
.plan:not(.is-custom) .plan-specs .spec-value {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}
.plan:not(.is-custom) .plan-specs .spec-label {
  color: var(--mist);
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 0;
}

/* custom buyout: left info + right price/cta */
.plan.is-custom {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
  padding: 28px 28px;
  padding-top: 28px;
}
.plan-custom-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.plan-custom-info .plan-title {
  font-size: 1.55rem;
}
.plan.is-custom .plan-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}
.plan.is-custom .plan-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--secondary);
  border-radius: 999px;
  font-size: 0.86rem;
}
.plan.is-custom .plan-specs li::before { display: none; }
.plan.is-custom .plan-specs .spec-label {
  color: var(--mist);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 0;
}
.plan.is-custom .plan-specs .spec-value {
  color: var(--ink);
  font-weight: 800;
}
.plan-custom-cta {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--secondary);
  border-radius: 18px;
}
.plan-custom-cta .plan-price {
  text-align: center;
}
.plan-custom-cta .plan-now {
  justify-content: center;
}
.plan-custom-cta .buy-btn {
  width: 100%;
  margin: 0;
}

.buy-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  overflow: visible;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-top: auto;
}
.buy-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.3);
  background: var(--primary-deep);
}
.plan.is-tier-lite .buy-btn {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}
.plan.is-tier-lite .buy-btn:hover {
  background: var(--primary-deep);
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.3);
}
.plan.is-tier-pro .buy-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #7c3aed);
  color: #fff;
  box-shadow: var(--shadow-pro);
}
.plan.is-tier-pro .buy-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca 55%, #6d28d9);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--fog);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 4px;
}
.btn-ghost:hover { color: var(--primary); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow: visible;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--mist);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.footer-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}
.footer-actions .btn-primary,
.footer-actions .btn-secondary,
.footer-actions .buy-btn,
.footer-actions .footer-buy {
  display: inline-flex;
  width: auto;
  min-width: 110px;
  min-height: 44px;
  padding: 10px 18px;
  margin: 0;
  white-space: nowrap;
  line-height: 1.45;
}

/* FAQ / query / contact */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 20px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 16px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0 0 16px;
  color: var(--fog);
  font-weight: 500;
  line-height: 1.7;
}

.query-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fog);
  margin-bottom: 8px;
}
.query-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: var(--secondary);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.query-form input:focus {
  outline: none;
  background: var(--surface);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.query-form .btn-primary,
.query-form .buy-btn { width: 100%; }
.query-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.query-result.is-ok { border-color: rgba(16, 185, 129, 0.35); background: #ecfdf5; }
.query-result.is-bad { border-color: rgba(244, 63, 94, 0.35); background: #fff1f2; }
.query-result p { margin: 0; font-weight: 600; }
.query-result ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--fog);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 22px 18px;
  box-shadow: var(--shadow);
}
.contact-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fog);
  font-weight: 700;
}
.contact-ico { width: 22px; height: 22px; }
.contact-ico.ico-wechat { color: #22c55e; }
.contact-ico.ico-qq { color: #38bdf8; }
.contact-ico.ico-mail { color: var(--primary); }
.contact-value { font-weight: 800; word-break: break-all; }
.btn-copy {
  justify-self: end;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.18);
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.btn-copy.is-copied {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-copy.is-copied:hover {
  background: var(--primary-deep);
  color: #fff;
}
.contact-note {
  margin: 14px 0 0;
  color: var(--fog);
  font-weight: 500;
}

.panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 40px));
  margin: 16vh auto;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  animation: rise 0.5s ease both;
}
.panel .brand { display: inline-block; margin-bottom: 16px; }
.panel h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.panel p { color: var(--fog); font-weight: 500; line-height: 1.7; }
.form-error {
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 12px 0;
}
.qr-box {
  margin: 18px 0 8px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.04);
}
.qr-box img {
  width: min(240px, 70vw);
  height: auto;
  display: block;
}
.qr-hint { font-size: 0.9rem; margin-top: 8px !important; }
.code-box {
  margin: 18px 0;
  padding: 16px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.03em;
  word-break: break-all;
  color: var(--primary-deep);
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.actions .buy-btn,
.actions .btn-primary {
  width: auto;
  min-width: 140px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .hero { padding: 56px 16px 36px; }
  .packages { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; }
  .plan-head { flex-direction: column; gap: 10px; }
  .plan-head .plan-price { text-align: left; }
  .plan-head .plan-now { justify-content: flex-start; }
  .plan:not(.is-custom) .plan-specs { grid-template-columns: 1fr; }
  .plan.is-custom {
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }
  .plan-custom-cta { flex: none; width: 100%; }
  .nav-links { width: 100%; justify-content: space-between; }
  .contact-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label copy"
      "value value";
  }
  .contact-label { grid-area: label; }
  .contact-value { grid-area: value; }
  .btn-copy { grid-area: copy; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
