:root {
  color-scheme: light;
  --brand-green: #2f872b;
  --brand-green-dark: #247124;
  --brand-green-soft: #d8f6d4;
  --brand-green-pale: #effbef;
  --text-primary: #292d2f;
  --text-secondary: #555b5d;
  --border-color: #dfe7df;
  --footer-background: #343535;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  min-height: 750px;
  padding: 90px 24px 68px;
  background: #eaffea url("./image/topbg.png") center top / cover no-repeat;
  text-align: center;
}

.hero__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 40px;
  height: 40px;
}

.hero__title {
  max-width: 1240px;
  margin: 58px auto 25px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.42;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 6px 20px;
  border-radius: 20px;
  background: #2f3233;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.merchant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 88px;
  width: min(100%, 760px);
  margin: 62px auto 0;
}

.merchant-option {
  min-width: 0;
}

.merchant-option__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  min-height: 52px;
  padding: 11px 20px;
  border-radius: 26px;
  background: var(--brand-green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgb(60 167 45 / 0%);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.merchant-option__link:hover {
  background: var(--brand-green-dark);
  box-shadow: 0 8px 20px rgb(60 167 45 / 22%);
  transform: translateY(-2px);
}

.external-arrow {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.merchant-option__description {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
}

.section-title {
  margin: 0;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.4;
}

.app-preview {
  min-height: 760px;
  padding: 64px 24px 54px;
  background: #fff;
  text-align: center;
}

.app-preview__inner {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.app-preview__logo {
  display: block;
  width: 60px;
  height: 60px;
  margin: 40px auto 20px;
}

.app-preview__description {
  margin: 0 auto 44px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.app-preview__illustration {
  display: block;
  width: min(100%, 1164px);
  height: auto;
  margin: 0 auto;
}

.section-inner {
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
}

.faq-section {
  min-height: 560px;
  padding: 60px 0 72px;
  background: var(--brand-green-soft);
}

.faq-section__title {
  margin-bottom: 52px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
}

.faq-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease;
}

.faq-item.is-open {
  border-color: var(--brand-green);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.faq-question__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #383b3c;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.faq-question__text {
  min-width: 0;
  flex: 1;
}

.faq-question__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.faq-item.is-open .faq-question__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  padding: 0 20px 20px 55px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  min-height: 190px;
  padding: 38px 24px 30px;
  background: var(--footer-background);
  color: #e4e6e6;
  text-align: center;
}

.site-footer__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.site-footer__lead {
  margin: 0 0 16px;
  color: #bfc3c3;
  font-size: 15px;
  line-height: 24px;
}

.contact-list {
  display: flex;
  align-items: center;
}

.contact-list--footer {
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.contact-item {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 15px;
  line-height: 24px;
  text-decoration: none;
}

.contact-item__icon {
  display: inline-flex;
  width: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.site-footer__legal {
  color: #9a9f9f;
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer a,
.support-contact a {
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #fff;
}

.merchant-option__link:focus-visible,
.faq-question:focus-visible,
.site-footer a:focus-visible,
.support-page a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(41 45 47 / 38%);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border-color);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1100px);
  min-height: 72px;
  margin: 0 auto;
}

.brand--header {
  gap: 8px;
  font-size: 22px;
  line-height: 36px;
}

.brand--header .brand__logo {
  width: 36px;
  height: 36px;
}

.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.header-link:hover {
  color: var(--brand-green-dark);
}

.support-page {
  background: #f7faf7;
}

.support-hero {
  padding: 68px 24px 62px;
  background: var(--brand-green-pale) url("./image/topbg.png") center 35% / cover no-repeat;
}

.support-hero__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.support-hero__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.35;
  text-align: center;
}

.support-hero__description {
  max-width: 720px;
  margin: 18px auto 36px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

.contact-list--support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-list--support .contact-item {
  justify-content: center;
  min-height: 86px;
  padding: 18px 20px;
  border: 1px solid #cce4c9;
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgb(53 110 48 / 6%);
}

.contact-list--support .contact-item__icon {
  color: var(--brand-green-dark);
  font-size: 22px;
}

.support-faq {
  padding: 64px 0 78px;
  background: #f7faf7;
}

.support-faq__title {
  margin-bottom: 40px;
  text-align: center;
}

.support-faq .faq-item {
  border-color: #e1e7e1;
}

.support-faq .faq-item.is-open {
  border-color: var(--brand-green);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero__title {
    margin-top: 46px;
    font-size: 40px;
  }

  .merchant-options {
    gap: 24px;
  }

  .merchant-option__link {
    min-width: 0;
    width: 100%;
  }

  .app-preview {
    min-height: auto;
    padding-top: 54px;
  }

  .section-title {
    font-size: 36px;
  }

  .faq-grid {
    gap: 20px;
  }

  .contact-list--footer {
    flex-wrap: wrap;
    gap: 4px 28px;
  }

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

  .contact-list--support .contact-item {
    min-height: 66px;
  }
}

@media (max-width: 680px) {
  .desktop-break {
    display: none;
  }

  .hero {
    padding: 38px 20px 52px;
    background-size: auto 650px;
  }

  .brand {
    gap: 8px;
    font-size: 23px;
    line-height: 34px;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .hero__title {
    margin: 34px auto 20px;
    font-size: 30px;
    line-height: 1.45;
  }

  .hero__tagline {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 14px;
    line-height: 22px;
  }

  .merchant-options {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100%, 280px);
    margin-top: 38px;
  }

  .merchant-option__link {
    min-height: 48px;
  }

  .merchant-option__description {
    margin-top: 7px;
  }

  .app-preview {
    padding: 44px 16px 48px;
  }

  .section-title {
    font-size: 29px;
    line-height: 1.4;
  }

  .app-preview__logo {
    width: 52px;
    height: 52px;
    margin-top: 28px;
  }

  .app-preview__description {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .app-preview__illustration {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1060px);
  }

  .faq-section,
  .support-faq {
    min-height: auto;
    padding: 46px 0 54px;
  }

  .faq-section__title,
  .support-faq__title {
    margin-bottom: 30px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-question {
    min-height: 56px;
    padding: 13px 15px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 15px 18px 50px;
  }

  .site-footer {
    padding: 32px 18px 28px;
  }

  .contact-list--footer {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
  }

  .contact-list--footer .contact-item {
    justify-content: center;
  }

  .site-footer__legal p:first-child {
    margin-bottom: 5px;
  }

  .site-header__inner {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .brand--header {
    font-size: 20px;
  }

  .brand--header .brand__logo {
    width: 32px;
    height: 32px;
  }

  .support-hero {
    padding: 46px 16px 44px;
    background-size: auto 620px;
  }

  .support-hero__title {
    font-size: 31px;
  }

  .support-hero__description {
    margin: 15px auto 28px;
    font-size: 15px;
  }

  .contact-list--support {
    gap: 10px;
  }

  .contact-list--support .contact-item {
    justify-content: flex-start;
    min-height: 58px;
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
