:root {
  --ink: #12241c;
  --ink-soft: #3d5248;
  --muted: #5f7468;
  --paper: #f3f7f4;
  --paper-2: #e7efe9;
  --line: rgba(18, 36, 28, 0.12);
  --accent: #0f8f5f;
  --accent-deep: #0a6b47;
  --patch: #d97706;
  --patch-deep: #b45309;
  --release: #16a34a;
  --phone: #1a2420;
  --screen: #101816;
  --max: 1120px;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Sora", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.6;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(15, 143, 95, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 640px at 12% -10%, rgba(15, 143, 95, 0.18), transparent 55%),
    radial-gradient(900px 520px at 88% 8%, rgba(217, 119, 6, 0.12), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(15, 143, 95, 0.08), transparent 60%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f0 42%, #e8f0ea 100%);
}

a { color: var(--accent-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 247, 244, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: rgba(15, 143, 95, 0.08);
  color: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100svh - 64px);
  padding: 2.25rem 1.5rem 2.75rem;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem 2.5rem;
  align-items: center;
  flex: 1;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  animation: rise 0.7s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  animation: rise 0.7s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  animation: rise 0.7s ease 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s ease 0.2s both;
}

.hero-support {
  display: grid;
  grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.25rem 2rem;
  align-items: stretch;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1.5px solid rgba(15, 143, 95, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 143, 95, 0.1), rgba(15, 143, 95, 0.03) 42%, rgba(217, 119, 6, 0.06)),
    rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(18, 36, 28, 0.06);
  animation: rise 0.75s ease 0.22s both;
}

.hero-support-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--line);
}

.hero-support-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-support-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.support-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 0.75rem;
  min-width: 0;
}

.support-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  animation: rise 0.55s ease calc(0.28s + var(--i, 0) * 0.06s) both;
}

.support-group-mobile {
  background: linear-gradient(160deg, rgba(15, 143, 95, 0.24), rgba(15, 143, 95, 0.1));
  box-shadow:
    inset 0 0 0 1.5px rgba(15, 143, 95, 0.48),
    0 8px 20px rgba(15, 143, 95, 0.14);
}

.support-group-desktop {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(18, 36, 28, 0.1);
}

.support-group-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.support-group-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.support-group-mobile .support-group-kicker {
  color: var(--accent-deep);
}

.support-group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.support-group-mobile .support-group-head h3 {
  font-size: 1.28rem;
  color: var(--accent-deep);
}

.support-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-items li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.support-group-mobile .support-items li {
  background: rgba(255, 255, 255, 0.72);
}

.support-platform {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.support-group-mobile .support-platform {
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.support-version code {
  display: inline-block;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(15, 143, 95, 0.14);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-group-mobile .support-version code {
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
  min-height: 320px;
  max-width: 460px;
  margin-left: auto;
  animation: rise 0.8s ease 0.18s both;
}

.signal-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--patch), transparent);
  opacity: 0.55;
  animation: beam 2.8s ease-in-out infinite;
  pointer-events: none;
}

.signal-beam::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--patch);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.2);
  animation: packet 2.8s ease-in-out infinite;
}

.phone {
  position: relative;
  z-index: 1;
}

.phone-android { transform: translateY(18px) rotate(-3deg); }
.phone-ios { transform: translateY(-8px) rotate(3deg); }

.phone-bezel {
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3530, #121a16 55%, #0c1210);
  box-shadow:
    0 24px 50px rgba(18, 36, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-bezel.ios { border-radius: 32px; }

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--screen);
  aspect-ratio: 9 / 17;
}

.demo-app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  height: 100%;
  padding: 1.1rem;
  color: #e8f2ea;
  background:
    radial-gradient(120px 80px at 20% 15%, rgba(61, 207, 142, 0.18), transparent),
    linear-gradient(180deg, #15201b, #0e1412);
}

.os-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9bb0a1;
}

.demo-label {
  margin: 0;
  font-size: 0.8rem;
  color: #9bb0a1;
}

.marker {
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.marker[data-phase="release"] {
  background: rgba(22, 163, 74, 0.22);
  color: #86efac;
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.35);
}

.marker[data-phase="patch"] {
  background: rgba(217, 119, 6, 0.24);
  color: #fdba74;
  box-shadow: inset 0 0 0 1px rgba(253, 186, 116, 0.4);
}

.demo-caption {
  margin: 0;
  font-size: 0.75rem;
  color: #7f9588;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  background: rgba(15, 143, 95, 0.045);
  border-block: 1px solid var(--line);
}

.ads-banner {
  /* Stay collapsed until JS removes [hidden]; display:block would override [hidden]. */
  display: none;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.ads-banner:not([hidden]) {
  display: block;
}

.account-page .ads-banner.account-ads {
  max-width: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.ads-shell {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 143, 95, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ads-viewport {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  background: rgba(15, 143, 95, 0.06);
}

.ads-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ads-slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  overflow: hidden;
  box-sizing: border-box;
}

.ads-slide.is-clickable {
  cursor: pointer;
}

.ads-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ads-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.92);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 36, 28, 0.14);
}

.ads-nav:hover {
  color: var(--accent-deep);
}

.ads-prev {
  left: 0.65rem;
}

.ads-next {
  right: 0.65rem;
}

.ads-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

.ads-dot {
  pointer-events: auto;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.55);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(18, 36, 28, 0.12);
}

.ads-dot.is-active {
  background: var(--accent);
  box-shadow: none;
}

.ads-text-dialog {
  width: min(94vw, 520px);
}

.ads-text-sheet {
  text-align: left;
}

.ads-text-sheet h2 {
  padding-right: 1.75rem;
}

.ads-text-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.flow-num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.flow-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
}

.cap-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.cap-list p {
  margin: 0;
  color: var(--muted);
}

.plan-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.plan-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-cloud .plan-kicker { color: var(--patch-deep); }

.plan h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.plan-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.plan ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.plan li + li { margin-top: 0.35rem; }

.demo-stage { max-width: 920px; }

.demo-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}

.demo-panel {
  margin: 0;
}

.demo-panel figcaption {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(15, 143, 95, 0.12), rgba(18, 36, 28, 0.06)),
    #dfe8e2;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  box-shadow: 0 16px 36px rgba(18, 36, 28, 0.12);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101816;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-frame.is-ready video {
  opacity: 1;
}

.video-load-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% - 2rem);
  max-width: 12rem;
  height: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(15, 143, 95, 0.95);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* author `display` must not override the HTML hidden attribute */
.video-load-btn[hidden],
.video-empty[hidden],
.video-frame.is-configured .video-empty {
  display: none !important;
}

.video-frame.is-ready .video-load-btn,
.video-frame.is-loading .video-load-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.video-frame.is-loading::after {
  content: "加载中…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(223, 232, 226, 0.72);
  z-index: 1;
}

.video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(223, 232, 226, 0.55);
  z-index: 2;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-note {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  text-align: center;
  padding-bottom: 2.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.faq-section .section-head {
  margin-bottom: 1.5rem;
}

.faq-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-status.is-error {
  color: #b45309;
}

.page-downloads .site-header .nav a[aria-current="page"],
.page-download .site-header .nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.downloads-page,
.download-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.downloads-page-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.download-hero {
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.download-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.download-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.download-lead {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.download-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  align-items: stretch;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(15, 143, 95, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.62);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.download-card.is-recommended {
  border-color: rgba(15, 143, 95, 0.5);
  box-shadow: 0 10px 28px rgba(15, 143, 95, 0.1);
}

.download-card-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.download-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.download-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-height: 8.5rem;
}

.download-empty {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-version {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.download-opts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-opt {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.download-opt:hover {
  border-color: rgba(15, 143, 95, 0.4);
  background: rgba(15, 143, 95, 0.06);
}

.download-opt.is-primary {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.08);
}

.download-opt-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.download-opt-btn {
  pointer-events: none;
  text-decoration: none;
}

.download-opt-size {
  color: var(--muted);
  font-size: 0.82rem;
}

.download-opt-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.download-opt-file {
  color: var(--muted);
  font-size: 0.75rem;
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.download-pick-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 2rem));
}

.download-pick-dialog::backdrop {
  background: rgba(18, 36, 28, 0.45);
}

.download-pick-sheet {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7faf8;
  box-shadow: 0 18px 48px rgba(18, 36, 28, 0.18);
}

.download-pick-sheet h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.download-pick-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-pick-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.download-pick-item:hover {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.07);
}

.download-pick-item.is-recommended {
  border-color: rgba(15, 143, 95, 0.5);
  background: rgba(15, 143, 95, 0.1);
}

.download-pick-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.download-pick-item-kind {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.download-pick-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.download-pick-item-meta {
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.download-pick-item-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.download-notes {
  max-width: 44rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.download-notes h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.download-notes ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.download-notes li + li {
  margin-top: 0.4rem;
}

.download-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .download-platforms {
    grid-template-columns: 1fr;
  }
}

.install-code {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 10px;
  background: #12241c;
  color: #e8f0ea;
  font-size: 0.88rem;
  line-height: 1.55;
}

.install-code code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.install-hint {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.downloads-shell {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.downloads-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: sticky;
  top: 5.25rem;
}

.downloads-cat {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.downloads-cat:hover {
  background: rgba(15, 143, 95, 0.06);
}

.downloads-cat.is-active {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.1);
}

.downloads-cat-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

.downloads-main {
  min-width: 0;
}

.install-panel {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 143, 95, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.55);
}

.install-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.versions-panel {
  min-width: 0;
}

.versions-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.version-list {
  display: flex;
  flex-direction: column;
}

.version-row {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.version-row:last-child {
  border-bottom: 0;
}

.version-row-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.version-row.is-expandable > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1.75rem;
  position: relative;
}

.version-row.is-expandable > summary::-webkit-details-marker {
  display: none;
}

.version-row.is-expandable > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.version-row.is-expandable[open] > summary::after {
  content: "−";
}

.version-row-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.version-row-body {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.version-row-body.md > :first-child {
  margin-top: 0;
}

.version-row-body.md > :last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .downloads-shell {
    grid-template-columns: 1fr;
  }

  .downloads-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .downloads-cat {
    flex: 1 1 12rem;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 44rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0 0.75rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.65rem 1.75rem 0.65rem 0;
  position: relative;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-answer.md > *:first-child { margin-top: 0; }
.faq-answer.md > *:last-child { margin-bottom: 0; }

.faq-answer.md p,
.faq-answer.md ul,
.faq-answer.md ol {
  margin: 0.55rem 0;
}

.faq-answer.md ul,
.faq-answer.md ol {
  padding-left: 1.2rem;
}

.faq-answer.md a {
  color: var(--accent-deep);
}

.faq-answer.md code {
  font-size: 0.88em;
}

.faq-answer.md pre {
  overflow-x: auto;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(18, 36, 28, 0.06);
}

.faq-answer.md pre code {
  background: none;
  padding: 0;
}

.messages-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
}

.messages-hero {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.messages-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  margin: 0 0 0.65rem;
}

.messages-hero p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.messages-compose,
.messages-board {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.messages-compose h2,
.messages-board h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.message-form label em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.message-form textarea,
.message-form input {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

.message-form textarea:focus,
.message-form input:focus {
  outline: 2px solid rgba(46, 125, 90, 0.35);
  border-color: var(--accent);
}

.message-form .btn {
  align-self: flex-start;
}

.message-body {
  padding: 0 0 0.65rem;
}

.message-content {
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.message-reply {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.message-reply-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.message-reply-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.message-pending {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-messages .site-header .nav a[aria-current="page"] {
  color: var(--accent-deep);
  font-weight: 600;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer .brand {
  font-size: 1rem;
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent-deep); }

.footer-beian {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-beian p {
  margin: 0;
}

.footer-beian a {
  color: var(--muted);
}

.footer-beian a:hover {
  color: var(--accent-deep);
}

.access-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(94vw, 440px);
  background: transparent;
  box-shadow: 0 28px 80px rgba(18, 36, 28, 0.28);
}

.access-dialog::backdrop {
  background: rgba(12, 24, 18, 0.45);
  backdrop-filter: blur(4px);
}

.access-sheet {
  position: relative;
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: #f7faf8;
  text-align: center;
  animation: pop 0.22s ease;
}

.access-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.access-sheet h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.access-sheet > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.qr-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0 auto 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-frame img {
  display: block;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  object-fit: contain;
  background: #fff;
}

.qr-fallback {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.qr-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

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

@keyframes beam {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

@keyframes packet {
  0% { left: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 1.75rem;
  }

  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero h1 { max-width: none; }

  .hero-stage {
    max-width: 420px;
    min-height: 340px;
    margin: 0 auto;
  }

  .hero-support {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-support-head {
    padding-right: 0;
    padding-bottom: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-flow,
  .cap-list,
  .plan-split,
  .demo-compare {
    grid-template-columns: 1fr;
  }

  .ads-banner {
    padding-bottom: 2rem;
  }

  .ads-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0.25rem 0 0;
  }
  .site-header .btn-sm { margin-left: auto; }

  .support-groups {
    grid-template-columns: 1fr;
  }
}

/* —— Auth / account —— */
.auth-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.account-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem 1.9rem;
  align-items: start;
}

.account-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.25rem;
}

.account-user {
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(18, 36, 28, 0.07);
}

.account-user-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-user-phone {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  min-width: 0;
  flex: 1;
}

.account-msg-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: -0.2rem -0.25rem 0 0;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.account-msg-btn:hover {
  color: var(--accent-deep);
  background: rgba(15, 143, 95, 0.08);
  border-color: rgba(15, 143, 95, 0.22);
}

.account-msg-icon {
  display: block;
}

.account-msg-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #d92d20;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.account-user-plan {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.35;
}

.account-user-expires {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.account-quota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.account-quota-card {
  border-radius: 14px;
  padding: 0.85rem 0.75rem 0.8rem;
  border: 1.5px solid transparent;
  min-width: 0;
}

.account-quota-card.is-ok {
  background: rgba(15, 143, 95, 0.14);
  border-color: rgba(15, 143, 95, 0.42);
  color: #087446;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 95, 0.08);
}

.account-quota-card.is-full {
  background: rgba(196, 60, 48, 0.14);
  border-color: rgba(196, 60, 48, 0.48);
  color: #9a271e;
  box-shadow: inset 0 0 0 1px rgba(196, 60, 48, 0.08);
}

.account-quota-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.account-quota-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.account-quota-sep {
  margin: 0 0.08em;
  opacity: 0.5;
  font-weight: 600;
}

.account-quota-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
  line-height: 1.3;
}

.account-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.05rem;
}

.account-upgrade-btn,
.account-renew-btn {
  display: block;
  width: 100%;
  border: 1px solid rgba(15, 143, 95, 0.4);
  border-radius: 11px;
  padding: 0.65rem 0.55rem;
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.account-renew-btn {
  border-color: rgba(30, 58, 95, 0.28);
  background: rgba(30, 58, 95, 0.06);
  color: var(--ink);
}

.account-upgrade-btn:hover {
  background: rgba(15, 143, 95, 0.2);
  border-color: rgba(15, 143, 95, 0.55);
}

.account-renew-btn:hover {
  background: rgba(30, 58, 95, 0.1);
  border-color: rgba(30, 58, 95, 0.4);
}

.account-upgrade-btn.is-personal {
  padding: 0.65rem 0.5rem;
  font-size: 0.9rem;
  background: linear-gradient(165deg, rgba(15, 143, 95, 0.22), rgba(15, 143, 95, 0.1));
  border-color: rgba(15, 143, 95, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.account-upgrade-btn.is-personal:hover {
  transform: translateY(-1px);
  background: linear-gradient(165deg, rgba(15, 143, 95, 0.3), rgba(15, 143, 95, 0.14));
}

.upgrade-custom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-stepper-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.plan-stepper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.plan-stepper-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.plan-stepper-btn:hover:not(:disabled) {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.08);
}

.plan-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.plan-stepper input {
  box-sizing: border-box;
  width: 3.6rem;
  height: 2rem;
  margin: 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  line-height: 2rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  -moz-appearance: textfield;
  appearance: textfield;
}

.plan-stepper input::-webkit-outer-spin-button,
.plan-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.plan-period-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-period-fieldset legend {
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.plan-period-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
}

.plan-period-chip:has(input:checked) {
  border-color: rgba(15, 143, 95, 0.55);
  background: rgba(15, 143, 95, 0.1);
  font-weight: 700;
}

.plan-period-chip input {
  accent-color: var(--accent-deep);
}

.plan-quote,
.renew-plan-summary {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 520px) {
  .account-side-actions,
  .plan-stepper-row,
  .plan-period-grid {
    grid-template-columns: 1fr;
  }
}

.upgrade-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.upgrade-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 560px) {
  .upgrade-types {
    grid-template-columns: 1fr;
  }
}

.upgrade-type-btn:hover:not(:disabled):not(.is-disabled) {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.08);
}

.upgrade-type-btn.is-selected {
  border-color: rgba(15, 143, 95, 0.65);
  background: rgba(15, 143, 95, 0.14);
  box-shadow: 0 0 0 1px rgba(15, 143, 95, 0.25);
}

.upgrade-type-btn.is-selected .upgrade-type-name {
  color: var(--accent-deep);
}

.upgrade-type-btn:disabled,
.upgrade-type-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--line);
  box-shadow: none;
}

.upgrade-type-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.upgrade-type-desc {
  color: var(--muted);
  font-size: 0.85rem;
}

.upgrade-target,
.renew-tenant {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-nav-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.account-nav-btn:hover {
  background: rgba(15, 143, 95, 0.06);
}

.account-nav-btn.is-active {
  border-color: rgba(15, 143, 95, 0.45);
  background: rgba(15, 143, 95, 0.1);
}

.nav-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  font-family: var(--font-display);
}

.account-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-notice-item {
  margin: 0;
}

.account-notice-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  position: relative;
}

.account-notice-item.is-unread .account-notice-btn {
  border-color: rgba(217, 45, 32, 0.35);
  background: rgba(217, 45, 32, 0.05);
}

.account-notice-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

.account-notice-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-notice-dot {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #d92d20;
}

.notice-detail-body {
  white-space: pre-wrap;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: var(--ink);
}

a.account-nav-link {
  text-decoration: none;
  color: inherit;
  display: block;
  box-sizing: border-box;
}

a.account-nav-link[hidden] {
  display: none !important;
}

.account-main {
  min-width: 0;
}

.account-panel[hidden] {
  display: none !important;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.account-panel-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.03em;
}

.account-panel-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.account-add-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 143, 95, 0.35);
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.account-add-btn:hover:not(:disabled) {
  background: rgba(15, 143, 95, 0.2);
}

.account-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-license-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-license-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.account-license-top {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .account-license-top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.account-license-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-license-id {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.account-license-id code {
  font-size: 0.95rem;
  word-break: break-all;
}

.account-copy {
  padding: 0.25rem 0.55rem !important;
}

.account-license-meta {
  display: grid;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.account-license-meta > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem;
}

.account-license-meta dt {
  margin: 0;
  color: var(--muted);
}

.account-license-meta dd {
  margin: 0;
}

.account-license-devices {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.account-empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.account-license-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-license-card.is-pending-delete {
  opacity: 0.85;
  border-style: dashed;
}

.account-pending-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.account-contact-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .account-contact-grid {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

.account-qq-card,
.account-message-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.account-qq-card h2,
.account-message-card h2,
.account-messages-board h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.account-qr {
  margin-top: 0.75rem;
  max-width: 240px;
}

.account-qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.account-messages-board {
  margin-top: 0.5rem;
}

.account-guide-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(15, 143, 95, 0.28);
  border-radius: 14px;
  background: rgba(15, 143, 95, 0.07);
}

.account-guide-banner p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.guide-mode-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.3rem;
  max-width: 22rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.guide-mode-btn {
  border: 0;
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.guide-mode-btn:hover {
  color: var(--ink);
}

.guide-mode-btn.is-active {
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep);
}

.guide-cloud-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--patch-deep);
}

.account-guide-steps .btn {
  margin-top: 0.15rem;
  display: inline-flex;
  text-decoration: none;
}

.account-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.account-guide-steps > li {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  counter-increment: guide;
}

.account-guide-steps > li::before {
  content: counter(guide);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.account-guide-steps h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.account-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 2rem));
}

/* Must follow .account-dialog — same element also has that class. */
.account-dialog.upgrade-dialog {
  max-width: min(864px, calc(100vw - 1.5rem));
  width: min(864px, calc(100vw - 1.5rem));
}

.account-dialog::backdrop {
  background: rgba(18, 36, 28, 0.45);
}

.account-dialog-sheet {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-dialog-sheet.upgrade-dialog-sheet {
  max-height: min(88vh, 860px);
  overflow: auto;
}

.account-dialog-sheet h2 {
  margin: 0 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.account-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.account-dialog-actions .btn:disabled,
.account-dialog-actions .btn.is-disabled,
.account-dialog-actions .btn-primary:disabled,
.account-dialog-actions .btn-primary.is-disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  background: #d3d9d5;
  color: #6a736e;
  box-shadow: none;
}

.account-dialog-actions .btn:disabled:hover,
.account-dialog-actions .btn.is-disabled:hover {
  transform: none;
  background: #d3d9d5;
  color: #6a736e;
}

/* Reserve space so hint / status swaps do not resize the dialog. */
.upgrade-dialog-sheet #upgradeActionHint {
  min-height: 2.8em;
  margin-bottom: 0;
}

.upgrade-dialog-sheet #upgradeTarget {
  min-height: 1.45em;
}

.upgrade-dialog-sheet #upgradeMsg {
  min-height: 1.45em;
}

.upgrade-dialog-sheet #upgradeMsg[hidden] {
  display: block !important;
  visibility: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  min-height: 1.45em;
}

.promo-dialog {
  max-width: min(460px, calc(100vw - 1.5rem));
}

.promo-dialog::backdrop {
  background: rgba(12, 24, 18, 0.52);
  backdrop-filter: blur(5px);
}

.promo-dialog-sheet {
  gap: 1rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(165deg, rgba(15, 143, 95, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, #fbfdfc 0%, #f3f8f5 100%);
  box-shadow: 0 28px 70px rgba(18, 36, 28, 0.28);
  animation: pop 0.22s ease;
}

.promo-dialog-head {
  padding: 1.55rem 1.45rem 0.15rem;
}

.promo-dialog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.promo-dialog-sheet h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.promo-dialog-lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 34rem;
}

.promo-type-fieldset {
  margin: 0;
  padding: 0 1.45rem;
  border: 0;
  min-width: 0;
}

.promo-field-label {
  display: block;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.promo-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.promo-type-card {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.promo-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.promo-type-card-body {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.4rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.promo-type-card:hover .promo-type-card-body {
  border-color: rgba(15, 143, 95, 0.4);
  background: rgba(15, 143, 95, 0.06);
}

.promo-type-card input:focus-visible + .promo-type-card-body {
  outline: 2px solid rgba(15, 143, 95, 0.4);
  outline-offset: 2px;
}

.promo-type-card input:checked + .promo-type-card-body {
  border-color: rgba(15, 143, 95, 0.55);
  background: rgba(15, 143, 95, 0.1);
  box-shadow: inset 0 0 0 1px rgba(15, 143, 95, 0.18);
}

.promo-type-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(15, 143, 95, 0.14);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.promo-type-icon.is-video {
  background: rgba(217, 119, 6, 0.14);
  color: var(--patch-deep);
}

.promo-type-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.promo-type-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.promo-type-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.promo-field {
  padding: 0 1.45rem;
}

.promo-field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  min-height: 4.5rem;
}

.promo-field textarea:focus {
  outline: 2px solid rgba(15, 143, 95, 0.35);
  border-color: var(--accent);
}

.promo-dialog-sheet > .auth-msg {
  margin: 0 1.45rem;
}

.promo-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 0.35rem 1.45rem 1.4rem;
}

.promo-dialog-actions .btn-primary {
  min-width: 7.5rem;
}

@media (max-width: 420px) {
  .promo-type-grid {
    grid-template-columns: 1fr;
  }
}

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

  .account-side {
    position: static;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-nav-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
  }
}

.auth-card {
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.auth-lead,
.account-hint {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.account-password-form {
  max-width: 22rem;
  margin-top: 0.5rem;
}

.auth-inline-link {
  margin: -0.35rem 0 0;
  text-align: right;
  font-size: 0.88rem;
}

.auth-inline-link a,
.auth-footer a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 500;
}

.auth-inline-link a:hover,
.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.auth-label input {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.auth-label input:focus {
  outline: 2px solid rgba(15, 143, 95, 0.35);
  border-color: var(--accent);
}

.auth-otp-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.auth-otp-row input { flex: 1; }

.auth-submit { width: 100%; margin-top: 0.25rem; }

.auth-msg {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(15, 143, 95, 0.1);
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.auth-msg.is-error {
  background: rgba(185, 28, 28, 0.08);
  color: #9f1239;
}

.auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-captcha { min-height: 0; }

.account-devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-devices li code {
  display: inline-block;
  padding: 0.35rem 0.55rem;
}

.account-empty { color: var(--muted); margin: 0; }

.account-subhead {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.account-explain {
  margin: 0 0 1.85rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.account-explain:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.account-explain h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.account-explain-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.account-explain-notes {
  margin: 0.85rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.account-explain-notes li + li {
  margin-top: 0.35rem;
}

.account-vs-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.account-vs {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}

.account-vs th,
.account-vs td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.account-vs thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.account-vs thead th.is-selfhost,
.account-vs tbody td.is-selfhost {
  background: rgba(15, 143, 95, 0.08);
}

.account-vs thead th.is-cloud,
.account-vs tbody td.is-cloud {
  background: rgba(217, 119, 6, 0.08);
}

.account-vs thead th.is-selfhost {
  color: var(--accent-deep);
}

.account-vs thead th.is-cloud {
  color: var(--patch-deep);
}

.account-vs tbody th[scope="row"] {
  width: 7.5rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(243, 247, 244, 0.9);
  white-space: nowrap;
}

.account-vs tbody tr:last-child th,
.account-vs tbody tr:last-child td {
  border-bottom: 0;
}

.account-vs tbody td strong {
  color: var(--ink);
}

.account-tier-grid,
.account-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.account-tier-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-tier-cycles {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-tier-card,
.account-period-card {
  position: relative;
  padding: 1.05rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}

.account-tier-card.is-mid,
.account-period-card.is-mid {
  border-color: rgba(15, 143, 95, 0.35);
  background:
    linear-gradient(180deg, rgba(15, 143, 95, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 143, 95, 0.08);
}

.account-tier-card.is-high,
.account-period-card.is-high {
  border-color: rgba(217, 119, 6, 0.4);
  background:
    linear-gradient(180deg, rgba(217, 119, 6, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.08);
}

.account-tier-card.is-free {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.55);
}

.account-tier-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.account-tier-card h3,
.account-period-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.account-tier-price {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.account-tier-price span {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-right: 0.15rem;
}

.account-tier-metrics {
  margin: 0.15rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.account-tier-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}

.account-tier-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-tier-metrics dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.account-tier-metrics dd strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.account-tier-note,
.account-period-note {
  margin: auto 0 0;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.account-period-days {
  margin: 0.1rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.account-period-days strong {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.account-period-days span {
  color: var(--muted);
  font-size: 0.95rem;
}

.account-period-tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(18, 36, 28, 0.06);
  color: var(--ink-soft);
}

.account-period-tag.is-save {
  background: rgba(15, 143, 95, 0.14);
  color: var(--accent-deep);
}

@media (max-width: 960px) {
  .account-tier-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .account-tier-grid,
  .account-period-grid,
  .account-tier-grid-4 {
    grid-template-columns: 1fr;
  }
}

.account-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.account-invite-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.account-reward-list,
.account-promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-promo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 2rem 1.25rem;
  border: 1px dashed color-mix(in srgb, var(--border, #d4d4d8) 90%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #fff) 70%, transparent);
}

.account-promo-placeholder-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.account-promo-placeholder-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.account-reward-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border, #d4d4d8) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.account-reward-type { font-weight: 600; grid-column: 1; }
.account-reward-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.85rem;
}
.account-reward-days {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 600;
  color: var(--accent, #0f766e);
}

.account-promo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--border, #d4d4d8) 80%, transparent);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}

.account-promo-row .account-hint { margin: 0.25rem 0 0; }

.account-promo-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.account-promo-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted, #71717a) 16%, transparent);
  color: var(--muted);
}

.account-promo-status.is-pending {
  background: rgba(180, 120, 20, 0.12);
  color: #a16207;
}

.account-promo-status.is-approved {
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep, #0f766e);
}

.account-promo-status.is-rejected {
  background: rgba(185, 28, 28, 0.1);
  color: #9f1239;
}

/* —— Free month promo landing (ad link) —— */
.page-free-month {
  min-height: 100vh;
}

.free-month-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(780px 420px at 18% 12%, rgba(15, 143, 95, 0.22), transparent 58%),
    radial-gradient(640px 360px at 86% 18%, rgba(217, 119, 6, 0.14), transparent 55%);
  animation: free-month-glow-shift 14s ease-in-out infinite alternate;
}

.free-month-header .nav a[href^="#"] {
  color: var(--ink-soft);
}

.free-month-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6.5rem) 1.5rem 3.5rem;
  overflow: hidden;
}

.free-month-brand {
  margin: 0 0 1rem;
  animation: free-month-rise 0.7s ease both;
}

.free-month-hero h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  animation: free-month-rise 0.75s ease 0.06s both;
}

.free-month-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  animation: free-month-rise 0.75s ease 0.12s both;
}

.free-month-cta {
  animation: free-month-rise 0.75s ease 0.18s both;
}

.free-month-hero-orbit {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: min(38vw, 320px);
  height: 220px;
  transform: translateY(-48%);
  pointer-events: none;
}

.free-month-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(18, 36, 28, 0.08);
  white-space: nowrap;
}

.free-month-chip-a {
  left: 8%;
  top: 8%;
  animation: free-month-float 5.5s ease-in-out infinite;
}

.free-month-chip-b {
  right: 0;
  top: 42%;
  color: var(--patch-deep);
  animation: free-month-float 6.2s ease-in-out 0.4s infinite;
}

.free-month-chip-c {
  left: 18%;
  bottom: 6%;
  color: var(--accent-deep);
  animation: free-month-float 5.8s ease-in-out 0.8s infinite;
}

.free-month-section {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.free-month-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.free-month-way {
  animation: free-month-rise 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.free-month-way h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.free-month-way p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.free-month-way-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.free-month-way-link:hover {
  text-decoration: underline;
}

.free-month-steps {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2.25rem;
  counter-reset: free-month-step;
}

.free-month-steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: free-month-step;
}

.free-month-steps li::before {
  content: counter(free-month-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.free-month-steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.free-month-steps p {
  margin: 0;
  max-width: 38rem;
  line-height: 1.7;
  color: var(--muted);
}

#invite .section-head {
  margin-bottom: 2.75rem;
}

.free-month-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-bottom: 1.25rem;
}

.free-month-promo-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.free-month-promo-grid p:last-child {
  margin: 0;
  color: var(--muted);
}

.free-month-note {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.free-month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.free-month-actions-center {
  justify-content: center;
}

.free-month-band .free-month-actions {
  margin-top: 0.25rem;
}

@keyframes free-month-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes free-month-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes free-month-glow-shift {
  from {
    opacity: 0.85;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 920px) {
  .free-month-hero-orbit {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 2rem;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .free-month-chip {
    position: static;
  }

  .free-month-ways,
  .free-month-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* —— 接入教程 guide.html —— */
.page-guide .guide-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.guide-hero {
  max-width: 40rem;
}

.guide-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--patch-deep);
}

.guide-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.guide-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.guide-path {
  position: sticky;
  top: 4.25rem;
  z-index: 20;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
}

.guide-path-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.guide-path-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-path-summary {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-deep);
}

.guide-progress-meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.guide-progress-bar {
  margin: 0.75rem 0 0.85rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(18, 36, 28, 0.08);
  overflow: hidden;
}

.guide-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 0.25s ease;
}

.guide-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.guide-toc-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.guide-toc-btn:hover:not(:disabled) {
  border-color: rgba(15, 143, 95, 0.4);
  color: var(--accent-deep);
}

.guide-toc-btn.is-current {
  border-color: rgba(15, 143, 95, 0.55);
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-deep);
  font-weight: 600;
}

.guide-toc-btn.is-done {
  border-color: rgba(15, 143, 95, 0.28);
  color: var(--accent-deep);
}

.guide-toc-btn.is-done::before {
  content: "✓ ";
}

.guide-toc-btn.is-locked,
.guide-toc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guide-reset-btn {
  margin-top: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.guide-reset-btn:hover {
  color: var(--ink);
}

.guide-confirm-bar,
.guide-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.guide-confirm-hint {
  margin: 0;
  flex: 1 1 14rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-steps > li.is-active-step {
  border-color: rgba(15, 143, 95, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 143, 95, 0.12);
}

.guide-done-card {
  margin-top: 0.5rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid rgba(15, 143, 95, 0.35);
  border-radius: 16px;
  background: rgba(15, 143, 95, 0.08);
}

.guide-done-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.guide-done-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.guide-choose {
  padding: 1.25rem 0 0.25rem;
}

.guide-setup-step {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.guide-choose h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.guide-choose-lead {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

.guide-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.guide-choice {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.guide-choice:hover {
  border-color: rgba(15, 143, 95, 0.35);
}

.guide-choice.is-active {
  border-color: rgba(15, 143, 95, 0.55);
  background: rgba(15, 143, 95, 0.08);
  box-shadow: 0 0 0 1px rgba(15, 143, 95, 0.18);
}

.guide-choice-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-choice.is-active .guide-choice-kicker {
  color: var(--accent-deep);
}

.guide-choice h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.guide-choice p {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.guide-choice ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-choice li + li {
  margin-top: 0.2rem;
}

.guide-steps {
  margin-top: 0.5rem;
}

.guide-substeps {
  margin: 0.55rem 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.guide-substeps li + li {
  margin-top: 0.4rem;
}

.guide-note {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-check {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(15, 143, 95, 0.35);
  background: rgba(15, 143, 95, 0.05);
}

.guide-check h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.guide-check ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.guide-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guide-faq-mini {
  margin-top: 0.5rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.guide-faq-mini h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.guide-faq-mini dt {
  font-weight: 600;
  margin-top: 0.65rem;
}

.guide-faq-mini dt:first-of-type {
  margin-top: 0;
}

.guide-faq-mini dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

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

  .guide-path {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

