:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #22211f;
  --muted: #66635d;
  --line: #e5ded3;
  --brand: #9f2f32;
  --brand-dark: #6f2024;
  --accent: #2f6f64;
  --gold: #b7813c;
  --shadow: 0 18px 48px rgba(55, 42, 31, 0.12);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 38%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(229, 222, 211, 0.8);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(18px);
  animation: header-drop 720ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(159, 47, 50, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover .brand-mark {
  box-shadow: 0 12px 26px rgba(159, 47, 50, 0.28);
  transform: rotate(-4deg) scale(1.04);
}

.brand-name {
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover,
.legal-links a:hover,
.site-footer a:hover {
  color: var(--brand);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100vh - 66px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 56px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: clamp(18px, 4vw, 48px);
  z-index: -1;
  border: 1px solid rgba(183, 129, 60, 0.16);
  border-radius: 8px;
  content: "";
  opacity: 0.9;
  transform: translateY(12px);
  animation: fade-rise 900ms ease 180ms both;
}

.hero-content {
  align-self: center;
  max-width: 760px;
}

.hero-avatar {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border: 1px solid rgba(229, 222, 211, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(55, 42, 31, 0.14);
  object-fit: cover;
}

.hero-content > * {
  animation: fade-rise 760ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.hero-content > :nth-child(1) {
  animation-delay: 90ms;
}

.hero-content > :nth-child(2) {
  animation-delay: 190ms;
}

.hero-content > :nth-child(3) {
  animation-delay: 290ms;
}

.hero-content > :nth-child(4) {
  animation-delay: 400ms;
}

.hero-content > :nth-child(5) {
  animation-delay: 510ms;
}

.hero-content > :nth-child(6) {
  animation-delay: 620ms;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 680px;
  color: #44413c;
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-125%) skewX(-18deg);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(125%) skewX(-18deg);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(159, 47, 50, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
  border-color: rgba(159, 47, 50, 0.38);
  box-shadow: 0 10px 22px rgba(55, 42, 31, 0.08);
  color: var(--brand-dark);
}

.subject-card {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.subject-card strong {
  color: var(--ink);
}

.mini-card {
  position: relative;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(229, 222, 211, 0.9);
  border-radius: 8px;
  background: linear-gradient(155deg, #fff 0%, #f2ede3 100%);
  box-shadow: var(--shadow);
  animation: fade-rise 840ms cubic-bezier(0.2, 0.72, 0.18, 1) 420ms both;
  overflow: hidden;
}

.mini-card::before {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 72%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  transform: rotate(18deg) translateX(-120%);
  animation: card-sheen 5.6s ease-in-out 1.1s infinite;
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(230px, 70vw);
  padding: 12px;
  border-radius: 28px;
  background: #1f1f1f;
  box-shadow: 0 26px 52px rgba(36, 26, 18, 0.2);
  animation: phone-float 5.8s ease-in-out infinite;
}

.phone-top {
  width: 58px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #4d4d4d;
}

.phone-screen {
  min-height: 338px;
  border-radius: 20px;
  padding: 20px 16px;
  background: #fdfaf3;
}

.screen-title {
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}

.feature-chip {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(65, 43, 28, 0.08);
  color: #443f38;
  font-weight: 700;
  transform-origin: left center;
  animation: chip-pop 3.8s ease-in-out infinite;
}

.feature-chip:nth-of-type(3) {
  animation-delay: 180ms;
}

.feature-chip:nth-of-type(4) {
  animation-delay: 360ms;
}

.screen-list {
  margin-top: 24px;
}

.screen-list span {
  display: block;
  height: 44px;
  margin-top: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #efe4d4, #f8f3ec);
  background-size: 180% 100%;
  animation: list-glow 3.6s ease-in-out infinite;
}

.screen-list span:nth-child(2) {
  animation-delay: 170ms;
}

.screen-list span:nth-child(3) {
  animation-delay: 340ms;
}

.qr-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  padding: 18px;
  border: 1px dashed #d8cbb9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.qr-box:hover {
  border-color: rgba(47, 111, 100, 0.46);
  box-shadow: 0 16px 30px rgba(55, 42, 31, 0.09);
  transform: translateY(-3px);
}

.qr-box img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 8px;
  animation: launch-pulse 3.4s ease-in-out infinite;
}

.qr-box p {
  margin-bottom: 2px;
  font-weight: 800;
}

.qr-box small {
  color: var(--muted);
}

.section,
.band,
.contact {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.contact p,
.service-card p,
.rule-grid p,
.check-list li,
.process li {
  color: var(--muted);
}

.service-grid,
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.rule-grid article,
.check-list,
.process {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(50, 36, 26, 0.06);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.service-card:hover,
.rule-grid article:hover,
.check-list:hover,
.process:hover {
  border-color: rgba(159, 47, 50, 0.28);
  box-shadow: 0 18px 42px rgba(50, 36, 26, 0.1);
  transform: translateY(-4px);
}

.service-card {
  padding: 24px;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #f4e4d6;
  color: var(--brand-dark);
  font-weight: 800;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.service-card:hover .card-icon {
  background: var(--brand);
  color: #fff;
  transform: rotate(-5deg) scale(1.05);
}

.band {
  background: var(--surface-soft);
}

.merchant-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.check-list,
.process {
  padding: 26px;
}

.check-list ul,
.process ol {
  margin: 0;
  padding-left: 20px;
}

.check-list li,
.process li {
  margin: 10px 0;
}

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

.rule-grid article {
  padding: 24px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.legal-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #3f3b35;
  font-weight: 700;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.legal-links a:hover {
  border-color: rgba(159, 47, 50, 0.28);
  box-shadow: 0 10px 22px rgba(50, 36, 26, 0.08);
  transform: translateY(-2px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  background: #26231f;
  color: #fff;
}

.contact .eyebrow {
  color: #f1c179;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.contact-list div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.contact-list div:hover {
  border-color: rgba(241, 193, 121, 0.34);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.contact-list dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact-list dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: #191714;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legal-page {
  background: #faf8f3;
}

.legal-header {
  padding: 28px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 18px 72px;
}

.legal-main article {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-main h1 {
  font-size: clamp(32px, 6vw, 52px);
}

.legal-main h2 {
  margin-top: 28px;
  font-size: 22px;
}

.legal-main p,
.legal-main li {
  color: #504c45;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: #fff8ec;
  color: #5b4220;
}

@supports (animation-timeline: view()) {
  .section-heading,
  .service-card,
  .merchant-layout > *,
  .rule-grid article,
  .legal-links,
  .contact > * {
    animation: fade-rise 1s ease both;
    animation-range: entry 8% cover 28%;
    animation-timeline: view();
  }
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes card-sheen {
  0%,
  62% {
    transform: rotate(18deg) translateX(-125%);
  }
  100% {
    transform: rotate(18deg) translateX(220%);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes chip-pop {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.025);
  }
}

@keyframes list-glow {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 100% 0;
  }
}

@keyframes launch-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 111, 100, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(47, 111, 100, 0.08);
    transform: scale(1.025);
  }
}

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

@media (max-width: 980px) {
  .hero,
  .merchant-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .rule-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
  }
}
