:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8d8d93;
  --btn: #8a87ff;
  --btn-press: #7874f0;
  --line: rgba(255, 255, 255, 0.08);
  --card-border: rgba(138, 130, 255, 0.42);
  --card-glow: rgba(120, 108, 255, 0.16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
  background-position: center top;
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
  color: inherit;
}

.page {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(32px + var(--safe-bottom));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(58px + var(--safe-top));
  padding: var(--safe-top) 18px 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.hero {
  padding: 42px 16px 8px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 26px;
}

.avatars-img {
  height: 44px;
  width: auto;
}

.user-meta {
  text-align: left;
}

.user-meta strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.user-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-family: Outfit, "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.store-btn:hover,
.store-btn:focus-visible {
  background: var(--btn-press);
}

.store-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.store-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  height: 320px;
  margin: 28px 0 10px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-carousel img.is-active {
  opacity: 1;
}

.services {
  padding: 28px 20px 0;
}

.services h2 {
  margin-bottom: 22px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 22px 20px;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 36px var(--card-glow);
}

.service-icon {
  width: 78px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 78px;
  height: 72px;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #d8d8de;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(0, 0, 0, 0.55);
}

.menu.open {
  display: block;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 86vw);
  height: 100%;
  padding: calc(22px + var(--safe-top)) 22px 24px;
  background: #0b0b0f;
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
}

.menu-panel a,
.menu-panel button {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.menu-close {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }
}

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