:root {
  --ink: #121212;
  --muted: #727985;
  --line: #dedede;
  --lime: #dfff5a;
  --black: #151515;
  --page: #f5f5f5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.launch-bar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  color: #111111;
  background: var(--lime);
  font-size: 14px;
  font-weight: 700;
}

.launch-bar span {
  justify-self: center;
}

.launch-bar button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-nav {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 129px 1fr auto;
  align-items: center;
  height: 58px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e4e4e4;
  z-index: 10;
}

.brand,
.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 16px;
}

.brand-badge {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #151515;
  background: #ffe266;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.main-nav {
  gap: 20px;
  color: #666666;
  font-size: 14px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 6px;
}

.main-nav a.is-active {
  color: #222222;
  background: #f4f4f4;
  font-weight: 800;
}

.nav-actions {
  gap: 18px;
  font-size: 13px;
}

.nav-actions button {
  border: 0;
  background: transparent;
  color: #666666;
  cursor: pointer;
}

.login-button {
  display: grid;
  min-width: 60px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: #151515;
  border-radius: 6px;
  font-weight: 800;
}

.pricing-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--page);
}

.pricing-hero {
  display: grid;
  justify-items: center;
  padding: 68px 20px 52px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.pricing-hero h1 {
  margin: 0 0 9px;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 0;
}

.pricing-hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.wechat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 800;
}

.plans-section {
  padding: 40px 20px 36px;
  border-bottom: 1px solid #e7e7e7;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 278px));
  justify-content: center;
  gap: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 556px;
  flex-direction: column;
  padding: 29px 18px 17px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
}

.plan-card.is-popular {
  border: 2px solid #191919;
  padding-top: 28px;
}

.popular-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  height: 22px;
  padding: 0 16px;
  color: #ffffff;
  background: #202020;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  white-space: nowrap;
}

.plan-tag {
  align-self: flex-start;
  height: 22px;
  padding: 0 10px;
  color: #8a8a8a;
  background: #eeeeee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
}

.plan-tag.purple {
  color: #6a4cff;
  background: #eee8ff;
}

.plan-tag.gold {
  color: #a46a00;
  background: #fff3d7;
}

.plan-tag.black {
  color: #ffd54d;
  background: #111111;
}

.credits {
  margin: 19px 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.plan-card h2 {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e4e4e4;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.plan-card s {
  color: #7e7e7e;
  font-size: 12px;
  font-weight: 400;
}

.plan-card em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  color: #e55400;
  border: 1px solid #ffb073;
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
  vertical-align: middle;
}

.plan-card ul {
  display: grid;
  gap: 14px;
  margin: 15px 0 0;
  padding: 0;
  color: #6f7680;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #111111;
}

.plan-card mark {
  padding: 2px 8px;
  color: #006ae8;
  background: #e7f2ff;
  border-radius: 999px;
  font-weight: 800;
}

.plan-card small {
  margin-top: auto;
  padding-top: 22px;
  color: #878787;
  font-size: 12px;
}

.plan-card > a {
  display: grid;
  height: 41px;
  place-items: center;
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 6px;
  font-weight: 900;
}

.plan-card.is-popular > a {
  color: #ffffff;
  background: #202020;
  border-color: #202020;
}

.forever-pack {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(1154px, 100%);
  min-height: 64px;
  margin: 14px auto 0;
  padding: 11px 20px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
}

.forever-pack div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forever-pack strong {
  white-space: nowrap;
}

.forever-pack span {
  color: #8a8a8a;
  font-size: 13px;
}

.forever-pack p {
  margin: 0;
  color: #6a6a6a;
}

.forever-pack b {
  color: #111111;
  font-size: 18px;
}

.forever-pack a {
  display: grid;
  width: 59px;
  height: 35px;
  place-items: center;
  color: #ffffff;
  background: #202020;
  border-radius: 6px;
  font-weight: 900;
}

.usage-section {
  display: grid;
  justify-items: center;
  padding: 58px 20px 49px;
  text-align: center;
  border-bottom: 1px solid #e7e7e7;
}

.usage-section h2,
.faq-section h2,
.ready-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.usage-section p {
  margin: 14px 0 28px;
  color: #767676;
  font-size: 14px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 10px;
}

.usage-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 39px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.usage-grid strong {
  color: #6d7280;
  font-weight: 400;
}

.usage-section small {
  margin-top: 17px;
  color: #999999;
  font-size: 12px;
}

.faq-section {
  display: grid;
  justify-items: center;
  padding: 56px 20px 48px;
  background: #f5f5f5;
  border-bottom: 1px solid #e7e7e7;
}

.faq-list {
  width: min(572px, 100%);
  margin-top: 28px;
}

.faq-list details {
  border-top: 1px solid #e2e2e2;
}

.faq-list details:last-child {
  border-bottom: 1px solid #e2e2e2;
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 15px 26px 15px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  content: "⌄";
  position: absolute;
  top: 15px;
  right: 0;
  color: #777777;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list p {
  margin: -2px 0 16px;
  color: #777777;
  font-size: 14px;
  line-height: 1.7;
}

.ready-section {
  display: grid;
  justify-items: center;
  padding: 60px 20px 66px;
  color: #ffffff;
  background: #232323;
  text-align: center;
}

.ready-section p {
  margin: 14px 0 27px;
  color: #7f7f7f;
}

.ready-section a {
  display: grid;
  width: 104px;
  height: 40px;
  place-items: center;
  color: #111111;
  background: #ffffff;
  border-radius: 6px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 278px));
  }

  .usage-grid {
    grid-template-columns: repeat(2, 200px);
  }
}

@media (max-width: 980px) {
  .app-nav {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 58px;
  }

  .main-nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 12px;
  }

  .pricing-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 660px) {
  .launch-bar {
    height: auto;
    min-height: 42px;
    font-size: 12px;
  }

  .pricing-hero {
    padding-top: 42px;
  }

  .pricing-hero h1 {
    font-size: 34px;
  }

  .plans-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .forever-pack {
    grid-template-columns: 1fr;
  }

  .forever-pack div {
    display: grid;
  }
}
