:root {
  --bg: #f5f5f7;
  --bg-soft: #fafafa;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(255, 255, 255, 0.92);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --primary: #0071e3;
  --primary-dark: #005fbe;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9f9fb 0%, var(--bg) 40%, #f3f3f5 100%);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background: radial-gradient(circle at 12% 0%, rgba(0, 113, 227, 0.08) 0, rgba(0, 113, 227, 0) 34%),
    radial-gradient(circle at 88% 0%, rgba(142, 142, 147, 0.12) 0, rgba(142, 142, 147, 0) 40%);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(180deg, #f0f1f4 0%, #eceef2 100%);
  color: var(--text);
  padding: 92px 0 76px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -270px;
  right: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 167, 175, 0.2) 0, rgba(167, 167, 175, 0) 72%);
  pointer-events: none;
}

.hero.compact {
  padding-top: 36px;
  padding-bottom: 58px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  filter: contrast(1.2) saturate(1.02);
}

.lang-switch {
  min-width: 92px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 10px;
  color: #7a7a82;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 0 0 24px;
  color: #4e4e52;
  max-width: 760px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  position: relative;
  z-index: 1;
}

html[lang="zh-CN"] .hero h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[lang="en"] .hero h1 {
  font-weight: 640;
  letter-spacing: -0.022em;
}

html[lang="zh-CN"] .hero p {
  font-weight: 450;
}

html[lang="en"] .hero p {
  font-weight: 400;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 52px auto 72px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, box-shadow;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), border-color 1s ease, box-shadow 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.32), rgba(0, 113, 227, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.045);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 34px 58px rgba(17, 24, 39, 0.2), 0 12px 24px rgba(17, 24, 39, 0.11);
}

.product-card:hover::before {
  opacity: 0;
}

.product-card:focus-visible {
  outline: none;
  transform: translateY(-12px) scale(1.045);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 34px 58px rgba(17, 24, 39, 0.2), 0 12px 24px rgba(17, 24, 39, 0.11);
}

.product-card:focus-visible::before {
  opacity: 0;
}

.product-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  letter-spacing: -0.01em;
  filter: blur(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
  will-change: transform, filter;
}

.product-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  filter: blur(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
  will-change: transform, filter;
}

.product-card:hover h2 {
  animation: textLiftClarityH2 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card:hover p {
  animation: textLiftClarityP 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card:focus-visible h2 {
  animation: textLiftClarityH2 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card:focus-visible p {
  animation: textLiftClarityP 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes textLiftClarityH2 {
  0% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  45% {
    transform: translateY(-2px) scale(1.018);
    filter: blur(0.85px);
  }
  100% {
    transform: translateY(-2px) scale(1.018);
    filter: blur(0);
  }
}

@keyframes textLiftClarityP {
  0% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  48% {
    transform: translateY(-1px) scale(1.012);
    filter: blur(0.65px);
  }
  100% {
    transform: translateY(-1px) scale(1.012);
    filter: blur(0);
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cover {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  filter: blur(0.6px) saturate(0.98);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
}

.product-card:hover .cover img,
.product-card:focus-visible .cover img {
  transform: scale(1.04);
  filter: blur(0) saturate(1.05) contrast(1.03);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-card .actions .btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.product-card:hover .actions .btn {
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid rgba(0, 113, 227, 0.35);
  color: var(--primary);
  background: #fff;
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.55);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.28);
}

.btn.primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn.ghost {
  border-color: rgba(0, 0, 0, 0.12);
  color: #3a3a3c;
  background: rgba(255, 255, 255, 0.8);
}

.detail-main {
  margin: 52px auto 72px;
}

.detail-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.detail-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.82;
}

.hires-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.hires-gallery a {
  display: block;
}

.hires-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer {
  padding: 10px 0 36px;
}

.footer p {
  margin: 0;
  color: #6e6e73;
  text-align: center;
  font-size: 0.93rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero {
    padding: 68px 0 52px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .brand-logo {
    height: 40px;
  }

  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: auto;
  }

  .cover img {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .btn,
  .reveal {
    transition: none;
    transform: none;
  }

  .product-card::before {
    transition: none;
  }

  .cover img,
  .product-card .actions .btn,
  .product-card h2,
  .product-card p {
    transition: none;
    transform: none;
    filter: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
  }
}
