:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.012 150);
  --surface-strong: oklch(0.93 0.035 150);
  --primary: oklch(0.4 0.106 150);
  --primary-hover: oklch(0.34 0.1 150);
  --ink: oklch(0.23 0.025 150);
  --muted: oklch(0.48 0.025 150);
  --accent: oklch(0.86 0.065 225);
  --accent-deep: oklch(0.58 0.08 225);
  --notice-bg: oklch(0.955 0.025 225);
  --notice-border: oklch(0.85 0.045 225);
  --notice-strong: oklch(0.48 0.09 225);
  --notice-text: oklch(0.4 0.04 225);
  --totoro: oklch(0.39 0.025 150);
  --line: oklch(0.9 0.012 150);
  --white: oklch(1 0 0);
  --shadow: 0 24px 70px oklch(0.32 0.05 150 / 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, oklch(0.94 0.035 225 / 0.65), transparent 23rem),
    var(--bg);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
.hero,
.site-footer {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 11px;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: block;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.totoro-ear,
.totoro-body {
  fill: var(--totoro);
}

.totoro-belly,
.totoro-eye {
  fill: var(--white);
}

.totoro-pupil,
.totoro-nose {
  fill: var(--ink);
}

.totoro-markings,
.totoro-whiskers {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: calc(100vh - 174px);
  padding-block: clamp(42px, 7vh, 72px) 88px;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-bottom: clamp(34px, 5vw, 48px);
  padding: 11px 15px;
  border: 1px solid var(--notice-border);
  border-radius: 14px;
  background: var(--notice-bg);
}

.announcement-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--notice-strong);
  font-size: 12px;
  font-weight: 600;
}

.announcement p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--notice-text);
  font-size: 14px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1 {
  max-width: 8em;
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 44px) 18px;
}

.product-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
}

.skeleton-avatar {
  width: clamp(92px, 13vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.skeleton-name {
  width: 4.5em;
  height: 15px;
  border-radius: 999px;
  background: var(--surface);
  animation: skeleton-pulse 1.2s 120ms ease-in-out infinite alternate;
}

.load-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 22px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.product-avatar {
  position: relative;
  display: block;
  width: clamp(92px, 13vw, 112px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid oklch(0.86 0.025 150);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 10px 28px oklch(0.3 0.04 150 / 0.08);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 240ms var(--ease-out);
}

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

.product-name {
  display: block;
  max-width: 9em;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-link:hover {
  color: var(--primary);
}

.product-link:hover .product-avatar {
  border-color: var(--primary);
  box-shadow: 0 14px 34px oklch(0.3 0.04 150 / 0.14);
  transform: translateY(-3px);
}

.product-link:active .product-avatar {
  transform: scale(0.97);
}

.product-link:focus-visible,
.brand:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.content-page {
  min-height: 100vh;
  background: var(--surface);
}

.content-shell {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 72px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.content-shell h1 {
  max-width: none;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.content-lead {
  max-width: 52ch;
  margin: 24px 0 46px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.content-block {
  padding-block: 25px;
  border-top: 1px solid var(--line);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 42px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 66px;
  }

  .hero {
    min-height: auto;
    padding-block: 20px 28px;
  }

  .announcement {
    margin-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 10px;
  }

  .product-avatar {
    width: min(90px, 25vw);
  }

  .skeleton-avatar {
    width: min(90px, 25vw);
  }

  .site-footer {
    display: none;
  }
}

@keyframes skeleton-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

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