* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(170, 201, 255, 0.38) 0 9%, transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(221, 202, 255, 0.34) 0 8%, transparent 31%),
    radial-gradient(circle at 50% 86%, rgba(190, 232, 255, 0.32) 0 10%, transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 48%, #fbfcff 100%);
  color: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  user-select: none;
  touch-action: manipulation;
}

.coin-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  isolation: isolate;
}

.coin-page::before,
.coin-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.coin-page::before {
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(92, 130, 190, 0.36) 0 1px, transparent 1.45px),
    radial-gradient(circle, rgba(141, 169, 215, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(213, 169, 82, 0.24) 0 1px, transparent 1.45px);
  background-size: 86px 86px, 132px 132px, 178px 178px;
  background-position: 12px 20px, 46px 64px, 102px 28px;
  opacity: 0.62;
}

.coin-page::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at 22% 72%, rgba(132, 170, 238, 0.16) 0 12%, transparent 42%),
    radial-gradient(ellipse at 82% 66%, rgba(208, 185, 255, 0.14) 0 11%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 48%);
  opacity: 0.86;
}

.top-category {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: clamp(9px, 2.3vw, 19px);
  row-gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) max(18px, 18vw) 15px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-shape,
.top-category::before,
.top-category::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.category-shape {
  z-index: 0;
  top: 0;
  width: 100%;
  height: calc(98px + env(safe-area-inset-top));
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(255, 229, 151, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 14px 34px rgba(91, 118, 158, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 92' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H1000V0C942 0 918 19 887 43C844 76 794 82 720 82H280C206 82 156 76 113 43C82 19 58 0 0 0Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 92' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H1000V0C942 0 918 19 887 43C844 76 794 82 720 82H280C206 82 156 76 113 43C82 19 58 0 0 0Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.top-category::before {
  top: calc(100% - 3px);
  width: min(440px, 82vw);
  height: 112px;
  background:
    linear-gradient(180deg, rgba(255, 211, 86, 0.22), rgba(255, 211, 86, 0.05) 54%, transparent 100%) 18% 0 / 42px 100% no-repeat,
    linear-gradient(180deg, rgba(255, 190, 49, 0.24), rgba(255, 190, 49, 0.055) 58%, transparent 100%) 50% 0 / 56px 100% no-repeat,
    linear-gradient(180deg, rgba(255, 222, 122, 0.18), rgba(255, 222, 122, 0.045) 52%, transparent 100%) 82% 0 / 38px 100% no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(244, 190, 62, 0.14) 0 16%, transparent 58%);
  filter: blur(4px);
  opacity: 0.68;
}

.top-category::after {
  top: calc(100% + 8px);
  width: min(360px, 72vw);
  height: 58px;
  background-image:
    radial-gradient(circle, rgba(190, 121, 18, 0.72) 0 1.4px, transparent 2.1px),
    radial-gradient(circle, rgba(255, 210, 85, 0.66) 0 1.7px, transparent 2.5px),
    radial-gradient(circle, rgba(222, 155, 33, 0.48) 0 1.2px, transparent 2px);
  background-size: 72px 46px, 96px 52px, 118px 54px;
  background-position: 10px 4px, 44px 20px, 78px 12px;
  opacity: 0.48;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.58) 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.58) 42%, transparent 100%);
}

.site-title {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  color: #1f2530;
  -webkit-text-fill-color: #1f2530;
  font-size: clamp(18px, 3.8vw, 23px);
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 10px rgba(31, 37, 48, 0.16);
}

.title-divider {
  position: relative;
  z-index: 1;
  flex: 0 0 min(310px, 58vw);
  height: 1px;
  margin: -1px calc((100% - min(310px, 58vw)) / 2) 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 117, 24, 0.32), rgba(255, 220, 120, 0.58), rgba(176, 117, 24, 0.32), transparent);
}

.category-item {
  position: relative;
  z-index: 1;
  appearance: none;
  color: #6f4a18;
  font: inherit;
  font-size: clamp(16px, 3.6vw, 19px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(148, 89, 11, 0.24);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-item.is-active {
  color: #5d3810;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 232, 151, 0.86), rgba(255, 206, 91, 0.46));
  box-shadow:
    0 6px 14px rgba(200, 137, 30, 0.16),
    0 0 0 1px rgba(224, 164, 46, 0.18) inset;
}

.category-item.is-active::after {
  opacity: 1;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b77b18;
  font-size: clamp(12px, 2.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

h1 {
  margin: 0;
  color: #16233a;
  font-size: clamp(34px, 8vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(78, 112, 160, 0.12), 0 1px 0 rgba(255, 255, 255, 0.82);
}

.intro {
  max-width: 520px;
  margin: 20px auto 0;
  color: rgba(63, 82, 108, 0.78);
  font-size: clamp(15px, 3vw, 18px);
  line-height: 1.75;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 24px);
  align-items: flex-start;
  justify-content: center;
}

.app-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: clamp(78px, 18vw, 88px);
  min-width: 0;
  padding: 12px 8px 11px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.76), transparent 48%);
  color: #26384d;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 36px rgba(88, 116, 158, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 -1px 0 rgba(107, 137, 180, 0.08) inset;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-card[hidden] {
  display: none !important;
}

.app-card:not([hidden]) {
  animation: cardReveal 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-card:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 48%);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 42px rgba(88, 116, 158, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.94) inset,
    0 0 22px rgba(132, 178, 255, 0.14);
}

.app-icon {
  width: clamp(48px, 11vw, 66px);
  height: clamp(48px, 11vw, 66px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #516b8a;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.9), transparent 48%);
  box-shadow:
    0 10px 22px rgba(88, 116, 158, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

.app-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-icon svg circle,
.app-icon svg rect {
  fill: rgba(121, 161, 170, 0.08);
}

.app-icon-gold,
.app-icon-blue,
.app-icon-green,
.app-icon-dark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.9), transparent 48%);
}

.app-icon-gold {
  color: #b98616;
}

.app-icon-blue {
  color: #4674a8;
}

.app-icon-green {
  color: #4a8d7a;
}

.app-icon-dark {
  color: #516172;
}

.app-name {
  max-width: 100%;
  color: #26384d;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.18;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card {
  width: clamp(168px, 38vw, 208px);
  align-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 18px 18px 16px;
}

.contact-card .app-name {
  font-size: clamp(15px, 3.2vw, 18px);
  font-weight: 750;
}

.contact-line {
  max-width: 100%;
  color: rgba(38, 56, 77, 0.72);
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coin-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.coin {
  position: absolute;
  top: -64px;
  left: var(--coin-x);
  width: var(--coin-size);
  height: var(--coin-size);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 236, 0.88) 0 7%, transparent 8%),
    radial-gradient(circle at 66% 76%, rgba(125, 78, 12, 0.2) 0 18%, transparent 19%),
    repeating-conic-gradient(from 0deg, rgba(255, 235, 128, 0.92) 0 5deg, rgba(175, 105, 15, 0.88) 5deg 10deg),
    radial-gradient(circle at 38% 30%, #fff1a8 0 18%, #f5c848 42%, #d89618 68%, #a96708 100%);
  box-shadow:
    -2px 3px 0 rgba(214, 150, 32, 0.28),
    0 0 0 1px rgba(175, 111, 14, 0.28) inset,
    0 0 0 4px rgba(255, 221, 92, 0.5) inset,
    0 0 0 7px rgba(201, 133, 20, 0.18) inset,
    0 8px 16px rgba(226, 169, 58, 0.12);
  opacity: 0;
  transform: translate3d(0, -80px, 0) rotate(0deg);
  animation: coin-fall var(--coin-duration) linear forwards;
}

.coin::before {
  content: "¥";
  position: absolute;
  inset: 23%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(132, 81, 10, 0.32);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 246, 188, 0.56) 0 16%, transparent 17%),
    radial-gradient(circle, rgba(255, 217, 82, 0.42) 0 45%, rgba(179, 108, 13, 0.22) 46% 51%, transparent 52%);
  color: rgba(129, 78, 9, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--coin-size) * 0.33);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 238, 150, 0.62), 0 -1px 0 rgba(107, 65, 8, 0.28);
  box-shadow: 0 1px 0 rgba(255, 243, 171, 0.7) inset, 0 -2px 0 rgba(128, 76, 9, 0.24) inset;
}

.coin::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px dashed rgba(118, 74, 12, 0.34);
  background: linear-gradient(128deg, transparent 0 30%, rgba(255, 250, 205, 0.42) 40%, rgba(255, 231, 112, 0.2) 48%, transparent 58% 100%);
  opacity: 0.9;
}

@keyframes coin-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -90px, 0) rotate(0deg) scale(0.94);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0.96;
    transform: translate3d(var(--coin-drift), calc(100vh + 130px), 0) rotate(var(--coin-rotate)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-title,
  .app-card:not([hidden]) {
    animation: none;
  }

  .coin {
    animation-duration: 8s;
  }
}

@media (max-width: 680px) {
  body {
    overflow: hidden;
  }

  .coin-page {
    padding: 20px;
    align-items: center;
  }

  .top-category {
    width: 100%;
    min-height: 78px;
    gap: 6px;
    padding: calc(9px + env(safe-area-inset-top)) 14vw 12px;
  }

  .site-title {
    flex-basis: 100%;
    font-size: 18px;
  }

  .title-divider {
    flex-basis: min(250px, 56vw);
    margin: -1px calc((100% - min(250px, 56vw)) / 2) 1px;
  }

  .category-item {
    flex: 0 1 auto;
    text-align: center;
    font-size: 14px;
    padding: 8px 10px;
  }

  .top-category::before {
    height: 90px;
  }

  .top-category::after {
    height: 44px;
    opacity: 0.42;
  }

  .hero-panel {
    padding: 26px 20px;
  }

  .intro {
    margin-top: 16px;
  }

  .app-grid {
    gap: 8px;
    margin-top: 22px;
  }

  .app-card {
    padding: 8px 2px;
    border-radius: 16px;
  }

  .contact-card {
    width: min(100%, 220px);
    min-height: 86px;
    padding: 14px 14px 13px;
  }
}

