:root {
  color-scheme: light;
  --ink: #20352d;
  --ink-soft: #52645d;
  --paper: #f4f1ea;
  --paper-deep: #e9e2d6;
  --card: #fffdf9;
  --green: #456e5b;
  --green-dark: #315344;
  --coral: #d97859;
  --line: rgba(32, 53, 45, 0.13);
  --shadow: 0 24px 70px rgba(49, 62, 54, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.94);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 78px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 12px 12px 12px 4px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(69, 110, 91, 0.24);
}
.site-nav { display: flex; gap: 32px; color: var(--ink-soft); font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible,
.footer-meta a:hover, .footer-meta a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero { position: relative; overflow: hidden; padding: 96px 0 108px; }
.hero::before, .hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}
.hero::before {
  top: -260px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: rgba(205, 221, 207, 0.48);
}
.hero::after {
  bottom: -200px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: rgba(231, 197, 172, 0.24);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 62px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.16em;
}
.eyebrow span { width: 26px; height: 2px; background: var(--coral); }
.hero h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hero-intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .site-nav a:focus-visible, .brand:focus-visible, .footer-meta a:focus-visible {
  outline: 3px solid rgba(217, 120, 89, 0.5);
  outline-offset: 4px;
}
.button-primary { color: #fff; background: var(--green-dark); box-shadow: 0 12px 26px rgba(49, 83, 68, 0.22); }
.button-primary:hover { background: #243f34; }
.button-secondary { border-color: rgba(49, 83, 68, 0.25); background: rgba(255, 253, 249, 0.58); }
.button-secondary:hover { border-color: var(--green); background: var(--card); }

.product-preview { position: relative; padding: 35px 20px 28px; }
.preview-window {
  position: relative;
  display: grid;
  grid-template-columns: 31% 69%;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(32, 53, 45, 0.12);
  border-radius: 26px;
  background: #f9f7f2;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.preview-sidebar { padding: 30px 18px; color: #e8f0eb; background: #29483b; }
.preview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px 30px;
  font-size: 13px;
  font-weight: 700;
}
.preview-logo span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #29483b;
  background: #f3d3bc;
  border-radius: 9px 9px 9px 3px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
}
.preview-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: rgba(232, 240, 235, 0.68);
  font-size: 11px;
}
.preview-nav-item i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.preview-nav-item.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.preview-nav-item.is-active i { border-color: #f3d3bc; background: #f3d3bc; }
.preview-content { padding: 38px 34px; }
.preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.preview-heading small { display: block; margin-bottom: 5px; color: #7a8982; font-size: 10px; }
.preview-heading strong { font-family: "STSong", "Songti SC", serif; font-size: 25px; }
.preview-date { color: #78877f; font-size: 9px; }
.preview-card {
  padding: 23px;
  border: 1px solid rgba(32, 53, 45, 0.09);
  border-radius: 18px;
  background: #fffefa;
}
.preview-card-main { margin-bottom: 15px; background: #e6eee7; }
.preview-card-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.preview-card strong { display: block; font-size: 15px; }
.preview-card p { margin: 6px 0 0; color: #6c7b74; font-size: 9px; }
.preview-progress {
  display: block;
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(69, 110, 91, 0.14);
  border-radius: 10px;
}
.preview-progress i { display: block; width: 54%; height: 100%; background: var(--green); border-radius: inherit; }
.preview-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.preview-card-icon {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.preview-card-icon.coral { color: #98543e; background: #f4dace; }
.preview-card-icon.green { color: #456e5b; background: #dce9df; }
.preview-note {
  position: absolute;
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid rgba(32, 53, 45, 0.12);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(49, 62, 54, 0.12);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 13px;
}
.note-one { top: 6px; right: 0; transform: rotate(5deg); }
.note-two { bottom: 0; left: 0; transform: rotate(-5deg); }

.feature-section { padding: 104px 0 118px; background: #fffdf9; }
.section-heading { max-width: 690px; }
.section-heading h2, .about-copy h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.section-heading > p:last-child, .about-copy > p { margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.feature-card {
  min-height: 250px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover { box-shadow: 0 18px 40px rgba(49, 62, 54, 0.09); transform: translateY(-4px); }
.feature-number { color: var(--coral); font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.feature-card h3 { margin: 54px 0 12px; font-family: "STSong", "Songti SC", serif; font-size: 22px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.about-section { padding: 112px 0; background: var(--green-dark); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 100px;
  align-items: start;
}
.about-copy, .about-copy .eyebrow, .about-copy > p { color: #f7f5ee; }
.about-copy .eyebrow span { background: #efb897; }
.about-copy > p { color: rgba(247, 245, 238, 0.74); }
.about-copy .release-note {
  margin-top: 25px;
  padding-left: 15px;
  border-left: 2px solid #efb897;
  font-size: 13px;
}
.product-facts {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}
.product-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.product-facts div:last-child { border-bottom: 0; }
.product-facts dt { color: rgba(247, 245, 238, 0.55); font-size: 13px; }
.product-facts dd { margin: 0; color: #f7f5ee; font-size: 14px; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 20px; }
.site-footer p { margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; }
.footer-meta { text-align: right; }
.filing-links { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; margin-top: 6px; }
.footer-meta a { color: var(--ink-soft); font-size: 13px; text-decoration: none; }

.error-page { display: grid; min-height: 100vh; place-items: center; padding: 32px; }
.error-card {
  width: min(520px, 100%);
  padding: 52px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.error-card .brand-mark { margin-inline: auto; }
.error-code {
  margin: 24px 0 0;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.16em;
}
.error-card h1 { margin: 8px 0 0; font-family: "STSong", "Songti SC", serif; font-size: 34px; }
.error-card > p:not(.error-code) { margin: 14px 0 28px; color: var(--ink-soft); }

/* Pro portal */
.is-hidden { display: none !important; }
.portal-body { background: #f7f5ef; }
.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.portal-header .site-nav a { position: relative; padding: 27px 0 25px; }
.portal-header .site-nav a.is-current { color: var(--green-dark); font-weight: 750; }
.portal-header .site-nav a.is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--coral);
  border-radius: 3px 3px 0 0;
}
.account-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.account-trigger:hover { border-color: var(--line); background: var(--card); }
.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(69, 110, 91, 0.22);
  color: var(--green-dark);
  background: #e7efe9;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.account-avatar.large { width: 46px; height: 46px; font-size: 15px; }
.pro-main { padding: 66px 0 108px; }
.pro-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 76px;
  align-items: end;
  margin-bottom: 46px;
}
.pro-intro h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.pro-intro > div > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--ink-soft); }
.pro-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pro-benefits li {
  min-height: 126px;
  padding: 19px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.75);
  border-radius: 18px;
}
.pro-benefits strong, .pro-benefits span { display: block; }
.pro-benefits strong { margin-bottom: 8px; font-family: "STSong", "Songti SC", serif; font-size: 18px; }
.pro-benefits span { color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.7fr);
  gap: 22px;
  align-items: start;
}
.checkout-primary { display: grid; gap: 18px; }
.portal-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(49, 62, 54, 0.065);
}
.plan-section, .account-section, .order-summary { padding: 28px; }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.step-label { margin: 0 0 3px; color: var(--coral); font-family: Georgia, serif; font-size: 11px; font-style: italic; letter-spacing: 0.12em; }
.portal-card h2 { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: 25px; }
.portal-card h3 { margin: 0; }
.muted { color: var(--ink-soft); font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.plan-card, .skeleton-card {
  position: relative;
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffefb;
  border-radius: 18px;
}
.plan-card { color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.plan-card:hover { border-color: rgba(69, 110, 91, 0.55); transform: translateY(-2px); }
.plan-card.is-selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 10px 30px rgba(69, 110, 91, 0.09); }
.plan-card span { display: block; }
.plan-name { font-family: "STSong", "Songti SC", serif; font-size: 23px; font-weight: 700; }
.list-price { margin-top: 17px; color: #87918c; font-size: 13px; text-decoration: line-through; }
.sale-price { margin-top: 1px; color: var(--ink-soft); }
.sale-price strong { display: inline; color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; font-size: 37px; letter-spacing: -0.035em; }
.plan-check {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid !important;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(69, 110, 91, 0.32);
  color: #fff;
  background: transparent;
  border-radius: 50%;
  font-size: 13px;
}
.plan-card.is-selected .plan-check { border-color: var(--green); background: var(--green); }
.recommend-badge { position: absolute; top: -1px; right: 54px; padding: 3px 11px; color: #fff; background: var(--coral); border-radius: 0 0 9px 9px; font-size: 11px; font-weight: 800; }
.skeleton-card { overflow: hidden; background: #f1eee7; }
.skeleton-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 48%, transparent 75%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.inline-status { min-height: 22px; margin: 13px 0 0; color: var(--ink-soft); font-size: 13px; }
.inline-status.error { color: #a84836; }
.text-button { padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.account-summary { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 17px 19px; background: #edf2ed; border-radius: 16px; }
.account-summary span, .account-summary strong { display: block; }
.account-summary span { color: var(--ink-soft); font-size: 12px; }
.account-summary strong { margin-top: 1px; font-size: 20px; letter-spacing: 0.025em; }
.login-panel > p { margin: 17px 0 16px; color: var(--ink-soft); font-size: 14px; }
.login-form { display: grid; gap: 10px; }
.login-form label:not(.agreement-check) { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.phone-input-row, .code-input-row { display: flex; min-height: 50px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.phone-input-row > span { padding: 0 14px; border-right: 1px solid var(--line); color: var(--ink-soft); }
.phone-input-row input, .code-input-row input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; background: transparent; font: inherit; }
.code-input-row .text-button { padding-right: 14px; white-space: nowrap; }
.agreement-check { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.agreement-check input { margin-top: 4px; accent-color: var(--green); }
.agreement-check a { color: var(--green); }
.login-form .button { justify-self: start; margin-top: 4px; cursor: pointer; }
.continuity-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border-color: rgba(73, 116, 156, 0.24); background: #edf3f8; }
.continuity-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: #3c668c; border: 1px solid #8dafca; border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.continuity-card h2 { font-size: 18px; }
.continuity-card p { margin: 5px 0 0; color: #526b7f; font-size: 13px; }
.order-summary dl { margin: 19px 0 0; }
.order-summary dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-summary dt { color: var(--ink-soft); font-size: 13px; }
.order-summary dd { margin: 0; font-weight: 700; }
.order-summary .summary-price dd { color: var(--green-dark); font-family: Georgia, serif; font-size: 24px; }
.confirm-check { margin-top: 15px; }
.payment-panel { position: sticky; top: 98px; padding: 28px; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.payment-method {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.payment-method.is-selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.payment-method.is-unavailable { opacity: 0.48; cursor: not-allowed; }
.payment-method strong, .payment-method small { display: block; }
.payment-method strong { font-size: 14px; }
.payment-method small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; line-height: 1.35; }
.payment-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 800; }
.payment-icon.wechat { background: #29b45a; }
.payment-icon.alipay { background: #1677ff; }
.qr-stage { margin: 22px auto 0; padding: 17px; border: 1px solid var(--line); background: #fff; border-radius: 16px; text-align: center; }
.qr-stage img { display: block; width: min(230px, 100%); aspect-ratio: 1; margin: auto; }
.qr-stage p { margin: 10px 0 1px; color: var(--ink-soft); font-size: 13px; }
.qr-stage strong { color: var(--coral); font-size: 12px; }
.payment-result { margin-top: 22px; padding: 28px 18px; background: #edf4ee; border-radius: 16px; text-align: center; }
.result-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 12px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 24px; }
.payment-result h3 { font-family: "STSong", "Songti SC", serif; font-size: 22px; }
.payment-result p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.payment-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.payment-result-actions .button { min-width: 112px; padding: 10px 14px; }
.payment-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.pay-button { width: 100%; margin-top: 13px; border: 0; cursor: pointer; }
.button:disabled { opacity: 0.52; cursor: not-allowed; transform: none; box-shadow: none; }
.my-pro-link { display: block; margin-top: 14px; color: var(--green); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }

@media (max-width: 480px) {
  .payment-result-actions { flex-direction: column; }
  .payment-result-actions .button { width: 100%; }
}
.my-pro-section { padding-top: 78px; }
.my-pro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; margin-top: 28px; }
.entitlement-card, .orders-card { min-height: 224px; padding: 28px; }
.state-pill, .order-status { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.state-pill { color: var(--green-dark); background: #e2ede4; }
.entitlement-card h3 { margin-top: 17px; font-family: "STSong", "Songti SC", serif; font-size: 23px; }
.entitlement-card p { margin: 8px 0 20px; color: var(--ink-soft); font-size: 13px; }
.account-safety-link { display: inline-block; margin-left: 16px; color: var(--ink-soft); font-size: 12px; text-underline-offset: 4px; }
.orders-list { display: grid; margin-top: 14px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-row strong, .order-row span { display: block; }
.order-row > div > span { color: var(--ink-soft); font-size: 11px; }
.order-status { color: #6c6e6d; background: #efefec; }
.status-paid { color: #315344; background: #e2ede4; }
.status-provider_processing, .status-pending { color: #806329; background: #f5ecd4; }
.status-failed, .status-expired, .status-canceled { color: #8b4d43; background: #f5e5e1; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }

/* Public documents and account safety pages */
.document-main, .account-page-main { min-height: 65vh; padding: 70px 0 96px; }
.document-shell { width: min(820px, calc(100% - 48px)); margin: auto; }
.document-shell h1, .account-page-main h1 { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: clamp(36px, 5vw, 52px); }
.document-meta { color: var(--ink-soft); font-size: 13px; }
.document-card { margin-top: 28px; padding: 34px 38px; border: 1px solid var(--line); background: var(--card); border-radius: 22px; }
.document-card h2 { margin: 30px 0 8px; font-family: "STSong", "Songti SC", serif; }
.document-card h2:first-child { margin-top: 0; }
.document-card p, .document-card li { color: var(--ink-soft); font-size: 14px; }
.document-card a { color: var(--green); }
.danger-card { margin-top: 28px; padding: 28px; border: 1px solid rgba(168,72,54,.28); background: #fffaf8; border-radius: 22px; }
.danger-card .button { color: #fff; background: #9f493b; border: 0; cursor: pointer; }
.account-panel { width: min(720px, 100%); margin-top: 30px; padding: 30px; }
.account-panel h2 { margin: 0; font-family: "STSong", "Songti SC", serif; }
.account-panel > p { color: var(--ink-soft); }
.account-panel .login-form { margin-top: 22px; }
.consequence-list { margin: 18px 0; padding-left: 22px; color: var(--ink-soft); font-size: 14px; }
.danger-confirm { margin: 18px 0; }
.status-panel { padding: 24px; background: #edf2ed; border-radius: 16px; }

@media (max-width: 1040px) {
  .pro-intro { grid-template-columns: 1fr; gap: 32px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .payment-panel { position: static; }
}

@media (max-width: 980px) {
  .hero { padding-top: 72px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .about-grid { gap: 48px; }
  .hero-copy { max-width: 720px; }
  .product-preview { width: min(690px, 100%); margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-pro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), 1160px); }
  .header-inner { min-height: 68px; }
  .site-nav { display: none; }
  .portal-header .brand > span:last-child { display: none; }
  .account-trigger { max-width: 190px; }
  #account-trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 62px 0 76px; }
  .hero h1 { font-size: clamp(38px, 11vw, 44px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .product-preview { margin-top: 6px; padding: 25px 0 22px; }
  .preview-window { grid-template-columns: 1fr; min-height: 410px; transform: none; }
  .preview-sidebar { display: flex; overflow: hidden; align-items: center; gap: 8px; padding: 14px; }
  .preview-logo { min-width: max-content; margin: 0 10px 0 0; }
  .preview-nav-item { min-width: max-content; margin: 0; }
  .preview-nav-item:not(.is-active) { display: none; }
  .preview-content { padding: 26px 20px 24px; }
  .preview-note { display: none; }
  .feature-section, .about-section { padding: 78px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 30px; }
  .product-facts div { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-meta { text-align: left; }
  .filing-links { align-items: flex-start; }
  .pro-main { padding: 42px 0 78px; }
  .pro-intro { margin-bottom: 30px; }
  .pro-benefits { grid-template-columns: 1fr; }
  .pro-benefits li { min-height: auto; }
  .plan-section, .account-section, .order-summary, .payment-panel, .entitlement-card, .orders-card { padding: 21px; }
  .plan-grid, .payment-methods { grid-template-columns: 1fr; }
  .plan-card { min-height: 148px; }
  .card-heading-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .order-summary dl > div { grid-template-columns: 90px 1fr; }
  .my-pro-section { padding-top: 60px; }
  .footer-links { justify-content: flex-start; }
  .document-shell { width: min(calc(100% - 32px), 820px); }
  .document-card { padding: 25px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
