:root {
  color-scheme: light dark;
  --page: #e7ebe5;
  --page-text: #16332c;
  --brand-surface: #12352d;
  --focus: #f2a42b;
  --card-radius: 28px;
  --card-shadow: 0 24px 64px rgba(19, 46, 39, 0.19);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--page-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.72), transparent 40%),
    var(--page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(1240px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
}

.site-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 102px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 7px 24px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  color: #f6f5ea;
  background:
    linear-gradient(105deg, rgba(14, 45, 38, 0.98), rgba(23, 73, 61, 0.9)),
    #12352d;
  box-shadow: 0 16px 42px rgba(15, 49, 41, 0.15);
}

.site-brand::after {
  position: absolute;
  top: -70px;
  right: -20px;
  z-index: -1;
  width: 260px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 190, 52, 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.brand-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(7, 31, 26, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-icon img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand-message {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 17px;
}

.brand-message::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: #f0be34;
  content: "";
}

.brand-message small,
.brand-message strong {
  display: block;
}

.brand-message small {
  color: rgba(246, 245, 234, 0.56);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.18em;
}

.brand-message strong {
  transform: rotate(-0.8deg);
  transform-origin: left center;
  font-family: "Hannotate SC", "HanziPen SC", "Yuanti SC", "STYuanti-SC-Regular", "PingFang SC", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.12;
}

.brand-message em {
  color: #f3cf55;
  font-style: normal;
}

.entry-grid {
  display: grid;
  min-height: min(680px, calc(100dvh - 164px));
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(24px, 2.5vw, 34px);
  margin-top: 18px;
}

.entry-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--card-radius);
  color: #f8faf5;
  background: #193f36;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.card-background,
.card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-background {
  z-index: -2;
  object-fit: cover;
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reservation-card .card-background {
  object-position: 52% center;
}

.card-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 31, 29, 0.03) 22%, rgba(5, 28, 25, 0.82) 100%);
}

.partner-logo {
  position: absolute;
  top: clamp(20px, 2.6vw, 30px);
  right: clamp(20px, 2.6vw, 30px);
  display: grid;
  width: 118px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(4, 26, 23, 0.16);
}

.partner-logo img {
  width: 88px;
  height: auto;
}

.card-copy {
  position: absolute;
  right: clamp(24px, 3.4vw, 42px);
  bottom: clamp(28px, 4vw, 44px);
  left: clamp(24px, 3.4vw, 42px);
  display: block;
  padding-right: 72px;
}

.card-copy strong,
.card-copy small {
  display: block;
}

.card-copy strong {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.card-copy small {
  margin-top: 12px;
  color: rgba(248, 250, 245, 0.78);
  font-size: 0.9rem;
  font-weight: 580;
}

.card-arrow {
  position: absolute;
  right: clamp(24px, 3.4vw, 38px);
  bottom: clamp(28px, 4vw, 40px);
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #15352e;
  background: rgba(246, 248, 241, 0.94);
  font-size: 1.55rem;
  font-weight: 540;
  box-shadow: 0 8px 24px rgba(3, 23, 20, 0.18);
}

.challenge-card {
  color: #143f38;
  background: #e9dfc3;
}

.certificate-art {
  object-position: center 9%;
}

.challenge-card .card-shade {
  background:
    linear-gradient(180deg, rgba(250, 242, 216, 0.04) 26%, rgba(235, 220, 181, 0.22) 58%, rgba(243, 230, 197, 0.94) 100%);
}

.challenge-mark {
  position: absolute;
  top: clamp(20px, 2.6vw, 30px);
  left: clamp(20px, 2.6vw, 30px);
  display: grid;
  width: 106px;
  height: 60px;
  place-items: center;
  border-radius: 16px;
  background: rgba(16, 57, 49, 0.92);
  box-shadow: 0 8px 24px rgba(73, 57, 24, 0.16);
}

.challenge-mark img {
  width: 86px;
  height: auto;
}

.challenge-card .card-copy {
  right: 28px;
  left: 28px;
  padding-right: 58px;
}

.challenge-card .card-copy strong {
  font-size: clamp(2.05rem, 3.4vw, 3.35rem);
  letter-spacing: -0.065em;
}

.challenge-card .card-copy small {
  color: rgba(20, 63, 56, 0.68);
}

.challenge-card .card-arrow {
  right: 26px;
  bottom: 34px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(20, 63, 56, 0.2);
  background: rgba(250, 244, 224, 0.85);
  box-shadow: none;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 78px rgba(19, 46, 39, 0.25);
}

.entry-card:hover .card-background {
  transform: scale(1.025);
}

.entry-card:active {
  transform: translateY(1px) scale(0.992);
}

.entry-card:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .page-shell {
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  }

  .site-brand {
    min-height: 68px;
    gap: 11px;
    padding: 4px 8px 4px 4px;
    border-color: transparent;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
  }

  .site-brand::after {
    top: -58px;
    right: 8%;
    width: 220px;
    height: 140px;
    opacity: 0.65;
  }

  .brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(7, 31, 26, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 10px 28px rgba(3, 23, 20, 0.16);
  }

  .brand-icon img {
    width: 54px;
    height: 54px;
  }

  .brand-message {
    gap: 2px;
    padding-left: 12px;
  }

  .brand-message::before {
    width: 3px;
  }

  .brand-message small {
    font-size: 0.56rem;
  }

  .brand-message strong {
    font-size: clamp(1.05rem, 4.8vw, 1.26rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .entry-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(344px, 43dvh, 368px) clamp(288px, 35dvh, 304px);
    gap: 16px;
    margin-top: 12px;
  }

  .entry-card {
    min-height: 0;
    border-radius: 21px;
    box-shadow: 0 18px 46px rgba(2, 18, 15, 0.28);
  }

  .reservation-card .card-background {
    object-position: 49% center;
  }

  .partner-logo {
    top: 16px;
    right: 16px;
    width: 100px;
    height: 44px;
    border-radius: 14px;
  }

  .partner-logo img {
    width: 78px;
  }

  .card-copy {
    right: 20px;
    bottom: 22px;
    left: 20px;
    padding-right: 58px;
  }

  .card-copy strong {
    font-size: clamp(2.35rem, 12vw, 3.18rem);
    letter-spacing: -0.065em;
  }

  .card-copy small {
    margin-top: 9px;
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .card-arrow {
    right: 18px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.4rem;
  }

  .certificate-art {
    object-position: center 15%;
  }

  .challenge-mark {
    top: 16px;
    right: 16px;
    left: auto;
    width: 100px;
    height: 50px;
    border-radius: 14px;
  }

  .challenge-mark img {
    width: 73px;
  }

  .challenge-card .card-copy {
    right: 20px;
    bottom: 22px;
    left: 20px;
    padding-right: 58px;
  }

  .challenge-card .card-copy strong {
    font-size: clamp(2.05rem, 10.2vw, 2.62rem);
    line-height: 0.94;
  }

  .challenge-card .card-arrow {
    right: 18px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.4rem;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .entry-grid {
    grid-template-rows: 326px 270px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f221e;
    --page-text: #edf1e9;
    --card-shadow: 0 24px 72px rgba(2, 14, 12, 0.42);
  }

  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(48, 83, 73, 0.32), transparent 38%),
      var(--page);
  }
}

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