:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #111318;
  --muted: #6b7280;
  --line: rgba(17, 19, 24, 0.1);
  --accent: #f5c451;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

html.dark {
  --bg: #0b1017;
  --panel: #141b26;
  --text: #eef1f7;
  --muted: #9aa6b5;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 203, 103, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.catalog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.catalog-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.catalog-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-nav a:hover {
  color: var(--text);
}

.catalog-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.catalog-hero {
  max-width: 720px;
  margin-bottom: 38px;
}

.catalog-kicker,
.detail-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalog-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.catalog-hero p,
.detail-lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 19, 24, 0.2);
  box-shadow: var(--shadow);
}

html.dark .catalog-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.catalog-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.catalog-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
  background: #fff;
}

.catalog-card-arrow {
  color: var(--muted);
  font-size: 20px;
}

.catalog-card h2 {
  margin: 22px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.catalog-card .cat-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog-card .cat-short {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.detail-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 90px;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.detail-back:hover {
  color: var(--text);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.detail-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 201, 87, 0.22), transparent 34%),
    color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
}

.detail-media img {
  width: min(100%, 460px);
  max-height: 470px;
  object-fit: contain;
  border-radius: 18px;
}

.detail-media img.is-icon {
  width: 170px;
  height: 170px;
  border-radius: 38px;
}

.detail-title {
  font-size: clamp(46px, 7vw, 78px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.detail-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.detail-content {
  display: grid;
  gap: 14px;
  margin-top: 54px;
}

.detail-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.detail-features,
.detail-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.detail-features li,
.detail-steps li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-features li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
}

.detail-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.detail-footer-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-footer-cta a {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.catalog-footer {
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-footer .catalog-shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .catalog-header {
    padding: 12px 16px;
  }

  .catalog-nav {
    gap: 12px;
    font-size: 12px;
  }

  .catalog-shell,
  .detail-shell {
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .catalog-hero h1,
  .detail-title {
    font-size: 46px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    min-height: 178px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 220px;
    padding: 18px;
  }

  .detail-content {
    margin-top: 30px;
  }

  .detail-footer-cta,
  .catalog-footer .catalog-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Borderless catalog list */
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 16px;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease;
}

.catalog-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
  color: var(--text);
}

.catalog-card-top {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
}

.catalog-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-card:hover .catalog-card-icon {
  transform: scale(1.045);
}

.catalog-card-arrow {
  display: none;
}

.catalog-card h2 {
  grid-column: 2;
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.catalog-card .cat-label {
  grid-column: 2;
  margin: 5px 0 0;
}

.catalog-card .cat-short {
  grid-column: 2;
  margin: 5px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .catalog-card {
    padding: 18px 0;
  }

  .catalog-card h2 {
    font-size: 20px;
  }
}


/* Minimal product detail layout: no boxed text sections */
.detail-content {
  max-width: 820px;
  gap: 0;
  margin-top: 48px;
}

.detail-section {
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.detail-media {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-footer-cta {
  max-width: 820px;
  margin-top: 0;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .detail-content {
    margin-top: 30px;
  }

  .detail-section {
    padding: 22px 0;
  }
}


.detail-version {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 0;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}


.catalog-demos {
  margin-top: 72px;
  scroll-margin-top: 92px;
}

.catalog-demos-head {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.catalog-demos-head h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.catalog-demos-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-demo-card {
  display: block;
  min-width: 0;
}

.catalog-demo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease;
}

.catalog-demo-card:hover img {
  transform: translateY(-3px);
  border-color: rgba(17, 19, 24, 0.22);
}

html.dark .catalog-demo-card:hover img {
  border-color: rgba(255, 255, 255, 0.22);
}

.catalog-demo-card span {
  display: block;
  padding: 11px 2px 0;
}

.catalog-demo-card strong {
  display: block;
  font-size: 15px;
}

.catalog-demo-card small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .catalog-demos {
    margin-top: 48px;
  }

  .catalog-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-demos-head h2 {
    font-size: 44px;
  }
}


.catalog-card h2 {
  overflow: hidden;
  font-size: clamp(17px, 1.5vw, 20px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-title {
  white-space: nowrap;
  font-size: clamp(30px, 5.2vw, 60px);
}

.detail-version {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
