/**
 * 筑巢·AI标书 — 独立会员订阅页（Cursor Pricing 结构）
 */

html:has(body.pricing-app) {
  scroll-behavior: smooth;
}

body.pricing-app {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #f6f8f7;
  color: #111827;
  font-family: var(--font-family);
}

#pricing-root {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.pricing-app::before {
  display: none;
}

.pricing-app > .pricing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(15, 175, 124, 0.14), transparent 58%),
    linear-gradient(180deg, #f3faf7 0%, #f7f8fa 38%, #f6f8f7 100%);
}

.pricing-nav,
.pricing-main,
.landing-footer {
  position: relative;
  z-index: 2;
}

.pricing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(246, 248, 247, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pricing-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
}

.pricing-audience {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e8eeeb;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-audience button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.pricing-audience button[aria-selected="true"] {
  background: #fff;
  color: #0b0f17;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pricing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
}

.pricing-brand img {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  object-fit: cover;
}

.pricing-brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-brand__dot {
  color: #0faf7c;
}

.pricing-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pricing-link {
  padding: 8px 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pricing-link:hover {
  color: #0c8f66;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.pricing-btn--primary {
  background: #0b3d32;
  color: #fff;
}

.pricing-btn--primary:hover {
  background: #0f4f41;
  transform: translateY(-1px);
}

.pricing-btn--ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #111827;
}

.pricing-btn--ghost:hover {
  border-color: #0faf7c;
  color: #0c8f66;
}

.pricing-btn--block {
  width: 100%;
  margin-top: auto;
}

.pricing-main {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1 1 auto;
  padding: 56px 0 48px;
}

.pricing-main:has(.pricing-hero) {
  justify-content: center;
}

.pricing-hero {
  text-align: center;
  margin: 0 0 28px;
}

.pricing-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0b0f17;
}

.pricing-hero p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: #374151;
}

.pricing-hero__sub {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #4b5563;
}

.pricing-audience-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

.pricing-cycles {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.pricing-cycles__list {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eef2f0;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pricing-cycles button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.pricing-cycles button[aria-selected="true"] {
  background: #fff;
  color: #0b0f17;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pricing-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.pricing-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.pricing-panel[hidden] {
  display: none;
}

.pricing-col {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 100%;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-col--featured {
  border-color: rgba(15, 175, 124, 0.42);
  box-shadow: 0 18px 40px rgba(11, 61, 50, 0.08);
}

.pricing-col__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: #0c8f66;
}

.pricing-col__head {
  margin: 0 0 48px;
}

.pricing-col h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0b0f17;
}

.pricing-col__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.pricing-col__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
}

.pricing-col__amt {
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0b0f17;
}

.pricing-col__unit {
  font-size: 15px;
  font-weight: 650;
  color: #4b5563;
}

.pricing-col__was {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}

.pricing-col__period {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.pricing-col__badge {
  display: none;
  margin: 0 0 12px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0b3d32;
  font-size: 12px;
  font-weight: 700;
}

.pricing-col__badge.is-on {
  display: inline-flex;
}

.pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.pricing-tiers button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8faf9;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.pricing-tiers button[aria-selected="true"] {
  background: #0b3d32;
  border-color: #0b3d32;
  color: #fff;
}

.pricing-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing-features {
  margin: 48px auto 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  width: fit-content;
  text-align: left;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
  white-space: nowrap;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #0faf7c;
  border-bottom: 2px solid #0faf7c;
  transform: rotate(-45deg);
}

.pricing-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: #4b5563;
}

.pricing-note a {
  color: #0c8f66;
  font-weight: 650;
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

.pricing-faq {
  width: min(720px, 100%);
  margin: 72px auto 0;
}

.pricing-faq h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #0b0f17;
}

.pricing-faq details {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 0;
}

.pricing-faq details:last-child {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

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

.pricing-faq p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.landing-footer {
  margin-top: auto;
  padding: 36px 24px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.landing-footer__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.7;
}

.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary, #0b0f17);
}

.landing-footer__brand img {
  display: block;
}

.landing-footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  white-space: nowrap;
}

.landing-footer__sep {
  color: var(--text-tertiary, #9ca3af);
}

.landing-footer__legal a {
  color: var(--text-secondary, #6b7280);
  text-decoration: none;
}

.landing-footer__legal a:hover {
  color: var(--brand, #0faf7c);
}

.landing-footer__beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.landing-footer__beian-icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .landing-footer__legal {
    white-space: normal;
  }
}

.pricing-error {
  display: none;
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  color: #9a3412;
}

.pricing-error.is-on {
  display: block;
}

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

@media (max-width: 960px) {
  .pricing-nav__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .pricing-audience {
    grid-column: 1 / -1;
    order: 3;
    justify-self: center;
  }

  .pricing-grid--3,
  .pricing-grid--4 {
    grid-template-columns: 1fr;
  }

  .pricing-main {
    width: min(640px, calc(100% - 32px));
    padding-top: 36px;
  }
}
