:root {
  color-scheme: light;
  --canvas: #F6F7F8;
  --paper: #FFFFFF;
  --ink: #23262A;
  --muted: #606870;
  --line: #DCE1E5;
  --font: "Avenir Next", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding: 12px 16px;
  background: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.page {
  width: min(100% - 64px, 1040px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.page-header { padding: 64px 0 40px; }

h1, h2, p { margin: 0; }

h1 {
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.title-zh {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product {
  min-width: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.product-icon {
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 20px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.product-name-zh {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.product-description {
  padding: 28px 0;
  font-size: 16px;
  line-height: 1.8;
}

.description-en {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-links { margin-top: auto; }

.product-links a {
  min-height: 54px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 4px;
}

.product-links a span[lang="en"] {
  color: var(--muted);
  font-size: 14px;
}

.product-links a:hover span:first-child { text-decoration: underline; }

.page-footer {
  margin-top: auto;
  padding: 32px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.page-footer a {
  min-height: 44px;
  padding-block: 10px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.page-footer a:hover { text-decoration: underline; }
.page-footer a span { white-space: nowrap; }

@media (max-width: 700px) {
  .page { width: min(100% - 40px, 480px); }
  .page-header { padding: 44px 0 30px; }
  .title-zh { margin-top: 10px; font-size: 21px; }
  .products { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product { padding: 26px; }
  .product-heading { gap: 20px; }
  .product-icon { width: 72px; height: 72px; border-radius: 17px; }
  h2 { font-size: 26px; }
  .product-name-zh { font-size: 17px; }
  .product-description { padding: 24px 0; }
  .page-footer { flex-direction: column; align-items: center; padding-top: 24px; }
}

@media (max-width: 360px) {
  .product { padding: 22px; }
  .product-heading { gap: 16px; }
  .product-icon { width: 64px; height: 64px; border-radius: 15px; }
  .product-description { font-size: 15px; }
  .description-en { font-size: 14px; }
}
