:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #f2f5f4;
  --ink: #16201d;
  --muted: #64716b;
  --line: #dce4e0;
  --line-strong: #bfcac4;
  --green: #0b746b;
  --green-dark: #084f4a;
  --blue: #2563eb;
  --amber: #a45b12;
  --red: #b42318;
  --shadow: 0 16px 34px rgba(23, 33, 29, 0.1);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 0 0 6px 0;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 150ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .topbar {
    backdrop-filter: none;
  }

  .toast {
    transition: none;
  }
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px clamp(14px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.045);
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(245, 247, 246, 0.98);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 142px;
  border-radius: 6px;
  transition: color 150ms ease;
}

.brand:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.3);
  outline-offset: 2px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: #f1fbf8;
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.08);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-cta:focus-visible,
.help-menu summary:focus-visible,
.help-menu-panel a:focus-visible,
.site-footer-links a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.3);
  outline-offset: 2px;
}

.topbar-cta svg,
.topbar-cta-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.topbar-cta:hover {
  background: var(--green-dark);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
  gap: 18px;
  width: min(1500px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 24px);
}

.catalog-panel {
  min-width: 0;
  scroll-margin-top: 76px;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 7px;
  margin: 0;
}

.catalog-stats div {
  min-width: 86px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.catalog-stats dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.toolbar {
  position: sticky;
  top: 70px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(112px, 136px) minmax(150px, 178px) minmax(124px, 154px) 42px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 22px rgba(23, 33, 29, 0.06);
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  bottom: 11px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  padding-left: 40px;
}

.icon-button,
.text-button,
.segment,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button.mini {
  width: 34px;
  min-height: 34px;
}

.icon-button svg,
.text-button svg,
.segment svg,
.primary-action svg,
.secondary-action svg,
.notice svg,
.details-link svg,
.advanced-links svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.icon-button:hover,
.text-button:hover,
.secondary-action:hover,
.details-link:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.result-line span:last-child {
  white-space: nowrap;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 26px;
}

.app-card {
  position: relative;
  display: block;
  width: 100%;
  height: 218px;
  min-height: 218px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.045);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  overflow: hidden;
}

.app-card.skeleton {
  appearance: none;
  padding: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  opacity: 0.68;
  cursor: progress;
}

.app-card:hover,
.app-card.active {
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
}

.app-card:hover {
  transform: translateY(-1px);
}

.app-card.active {
  background: #f6fffc;
}

.app-card-main {
  appearance: none;
  display: grid;
  grid-template-rows: auto minmax(46px, 1fr) auto auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-card-main:focus-visible,
.details-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.3);
  outline-offset: 2px;
}

.details-link {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(23, 33, 29, 0.06);
}

.details-link svg {
  width: 16px;
  height: 16px;
}

.app-card-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-right: 42px;
}

.app-icon,
.selected-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 21px;
}

.app-icon img,
.selected-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.selected-icon img {
  width: 36px;
  height: 36px;
}

.logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.selected-icon .logo-fallback {
  font-size: 24px;
}

.app-card h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.app-card-main > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.badges,
.tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 23px;
  overflow: hidden;
}

.badge,
.tag {
  flex: 0 0 auto;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.aws {
  color: #925200;
  border-color: #f3c46b;
  background: #fff8e7;
}

.badge.aliyun {
  color: #0b5cab;
  border-color: #a8cdf8;
  background: #eef6ff;
}

.badge.stars {
  color: #45410f;
  border-color: #ded37a;
  background: #fffbe6;
}

.launch-panel {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow: auto;
  scroll-margin-top: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.empty-state,
.selected {
  padding: 16px;
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.empty-state p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.selected-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.selected-icon {
  width: 50px;
  height: 50px;
  font-size: 26px;
}

.selected-head p:last-child {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.segment {
  color: var(--muted);
  font-weight: 800;
}

.segment.active {
  border-color: var(--green);
  background: #e7f4f0;
  color: var(--green-dark);
}

.segment:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.config-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.config-section summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 10px 48px 10px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.config-section summary::-webkit-details-marker {
  display: none;
}

.config-section summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.config-section[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.config-section[open] summary::after {
  content: "-";
}

.config-section summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.config-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.param-fields {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.field-row label {
  min-width: 0;
}

.field-row .icon-button {
  margin-bottom: 0;
}

.field-help {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notice {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #bfe4de;
  border-radius: var(--radius);
  background: #eefaf7;
  color: #164e45;
  font-size: 12px;
  line-height: 1.4;
}

.run-card,
.command-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.run-card {
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.run-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding: 10px;
}

.cli-guide {
  margin: 0 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.cli-guide summary {
  min-height: 38px;
  padding: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.cli-guide[open] {
  padding-bottom: 10px;
}

.guide-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  margin: 0 9px 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.guide-step > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7f4f0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.guide-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.guide-step p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.guide-step.compact p {
  margin-bottom: 0;
}

.inline-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
}

.inline-command code {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101814;
  color: #e5f1e9;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

pre {
  margin: 0;
  max-height: 190px;
  overflow: auto;
  padding: 12px;
  background: #101814;
  color: #e5f1e9;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.primary-action,
.secondary-action {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.primary-action {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.primary-action:hover {
  background: var(--green-dark);
}

.metadata {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.metadata summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metadata dl {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 10px 0 0;
  font-size: 12px;
}

.metadata dt {
  color: var(--muted);
  font-weight: 800;
}

.metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.seo-copy {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.site-footer {
  width: 100%;
  margin: clamp(10px, 2vw, 18px) auto 0;
  padding: 20px clamp(14px, 2.4vw, 24px) 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(242, 245, 244, 0.8));
  color: var(--muted);
  font-size: 13px;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(120px, 0.55fr));
  gap: clamp(24px, 5vw, 72px);
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: 32px minmax(0, 420px);
  gap: 11px;
  align-content: start;
  min-width: 0;
}

.site-footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(241, 251, 248, 0.74);
  box-shadow: none;
}

.site-footer-brand .brand-mark svg {
  width: 17px;
  height: 17px;
}

.site-footer p {
  max-width: 420px;
  margin: 5px 0 0;
  line-height: 1.45;
}

.footer-kicker {
  color: var(--ink);
  font-weight: 900;
}

.site-footer-links {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.footer-link-grid {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 6px 18px;
}

.footer-link-grid strong {
  grid-column: 1 / -1;
}

.site-footer-links strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer-links a,
.site-footer-links span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 21px;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.35;
  transition: color 150ms ease;
}

.site-footer-links a:hover {
  color: var(--green);
}

.site-footer-bottom {
  display: flex;
  width: min(1500px, 100%);
  margin: 0 auto;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111814;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 46px);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--green-dark);
  font-weight: 900;
}

.breadcrumb span {
  color: var(--muted);
}

.breadcrumb span:last-child {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(23, 33, 29, 0.07);
}

.detail-hero-main {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
}

.detail-launch {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.detail-launch > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-intro-panel,
.page-launch-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
}

.page-title-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-app-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.05);
  overflow: hidden;
}

.page-app-mark img {
  position: absolute;
  inset: 14px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.page-hero-meta,
.page-tags,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-hero-meta span,
.page-hero-meta a,
.page-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-hero-meta a {
  border-color: #d8d283;
  background: #fffde8;
  color: #45410f;
}

.page-hero-meta a:hover {
  border-color: #b9ae36;
  color: #2f2b07;
}

.page-tags span {
  background: var(--surface-2);
  color: var(--green-dark);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-facts div {
  min-width: 0;
  padding-right: 14px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.page-launch-panel {
  align-content: space-between;
}

.page-launch-panel > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.page-flow {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.page-panel,
.directory a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(25, 37, 31, 0.06);
}

.page-panel {
  padding: 18px;
}

.page-panel-wide {
  grid-column: 1 / -1;
}

.page-panel .section-title {
  margin: -18px -18px 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.page-panel .section-title h2 {
  font-size: 14px;
}

.page-list {
  display: grid;
  gap: 10px;
  padding-left: 0 !important;
  list-style: none;
}

.page-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-list span {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.deploy-widget {
  padding: 0;
  scroll-margin-top: 96px;
  overflow: hidden;
  container-name: deployment-widget;
  container-type: inline-size;
}

.deploy-widget .section-title {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.deploy-widget > h2,
.deploy-widget > p {
  margin: 18px;
}

.deploy-widget-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.deploy-widget-body > .notice {
  margin-top: 0;
}

.deploy-widget .notice > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.deploy-widget [data-widget-marketplace-link] {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-weight: 800;
}

.home-deploy-widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.version-warning,
.launch-error,
.turnstile-panel {
  border-radius: var(--radius);
  padding: 12px 14px;
}

.version-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e8b85d;
  background: #fff8e8;
  color: #69470d;
  font-size: 13px;
  line-height: 1.5;
}

.version-warning svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.version-warning > div {
  display: grid;
  gap: 0.65rem;
}

.risk-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
}

.risk-confirmation input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.version-field {
  gap: 0.45rem;
}

.version-field input[type="search"] {
  width: 100%;
}

.version-field small {
  color: var(--muted);
}

.provider-managed-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.provider-managed-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.provider-managed-field strong {
  min-height: 44px;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-2);
  font-size: 0.86rem;
  line-height: 1.35;
}

.version-availability dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.version-availability dl > div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-2);
}

.version-availability dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.version-availability dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.turnstile-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.turnstile-panel strong {
  font-size: 13px;
}

.launch-error {
  margin: 0;
  border: 1px solid #d98282;
  background: #fff1f1;
  color: #8a2424;
  font-size: 13px;
}

.cloud-launch-actions {
  margin-top: 0;
}

.cloud-launch-actions > * {
  justify-content: center;
}

.segmented.compact {
  margin-top: 0;
}

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

.deploy-widget-grid > label {
  align-content: start;
}

.deploy-widget-grid input,
.deploy-widget-grid select {
  min-width: 0;
  min-height: 40px;
  height: 40px;
}

@container deployment-widget (max-width: 460px) {
  .deploy-widget-body {
    gap: 14px;
    padding: 16px;
  }

  .deploy-widget-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container deployment-widget (max-width: 340px) {
  .segmented {
    grid-template-columns: 1fr;
  }
}

.config-section.compact {
  margin-top: 0;
}

.config-section.compact .deploy-widget-grid {
  padding: 16px;
}

.command-box.compact {
  margin-top: 0;
}

.command-box.compact pre {
  max-height: 170px;
}

.run-card.compact {
  margin-top: 0;
}

.run-card.compact .cli-guide {
  margin-bottom: 10px;
}

.advanced-links {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  overflow: hidden;
}

.advanced-links summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 10px 48px 10px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.advanced-links summary::-webkit-details-marker {
  display: none;
}

.advanced-links summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.advanced-links[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.advanced-links[open] summary::after {
  content: "-";
}

.advanced-links summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.advanced-links > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.advanced-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.advanced-links a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.advanced-links a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.deployment-notes {
  padding: 0;
  overflow: hidden;
}

.deployment-notes summary {
  position: relative;
  display: block;
  min-height: 52px;
  padding: 12px 52px 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.deployment-notes summary::-webkit-details-marker {
  display: none;
}

.deployment-notes summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.deployment-notes[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.deployment-notes[open] summary::after {
  content: "-";
}

.deployment-notes summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.deployment-notes .check-list {
  margin: 0;
  padding: 14px 18px 16px !important;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 0 !important;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #e7f4f0;
}

.manual-command {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.manual-command summary {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 10px 12px;
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 900;
}

.manual-command summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.related-grid a {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.related-grid span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-grid em {
  align-self: end;
  color: #45410f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.directory a {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.directory span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.directory em {
  color: #45410f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .toolbar {
    top: 66px;
  }

  .app-grid {
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
  }

  .launch-panel {
    position: static;
    max-height: none;
    scroll-margin-top: 104px;
  }
}

@media (max-width: 980px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    min-height: auto;
    padding: 10px 14px 12px;
  }

  .brand {
    min-width: 0;
  }

  .shell {
    padding: 14px;
    min-height: auto;
  }

  .catalog-head,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .toolbar .search-field {
    grid-column: 1 / -1;
  }

  .toolbar > .icon-button {
    width: 100%;
  }

  .catalog-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 27px;
  }

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

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

  .run-actions {
    grid-template-columns: 1fr;
  }

  .config-form {
    grid-template-columns: 1fr;
  }

  .metadata dl {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 18px 14px 18px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .site-footer-links {
    gap: 5px;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .detail-launch {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding-bottom: 18px;
  }

  .page-intro-panel,
  .page-launch-panel,
  .page-panel {
    padding: 16px;
  }

  .deploy-widget {
    padding: 0;
  }

  .page-intro-panel,
  .page-launch-panel {
    gap: 12px;
  }

  .page-title-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .page-app-mark {
    width: 56px;
    height: 56px;
  }

  .page-app-mark img {
    inset: 11px;
    width: 34px;
    height: 34px;
  }

  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .deploy-widget-grid {
    grid-template-columns: 1fr;
  }

  .advanced-links > div {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 420px) {
  .segmented {
    grid-template-columns: 1fr;
  }

  .selected-head {
    grid-template-columns: 1fr;
  }
}

/* SEO / GEO content */
.hero-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}

.hub-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.help-menu {
  position: relative;
  z-index: 30;
}

.help-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.help-menu summary::-webkit-details-marker {
  display: none;
}

.help-menu summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.help-menu[open] summary,
.help-menu summary:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.help-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 33, 29, 0.12);
}

.help-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.help-menu-panel a:hover {
  background: var(--surface-2);
  color: var(--green-dark);
}

.entity-statement {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.geo-summary {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .topbar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch,
  .help-menu,
  .topbar-cta {
    flex: 1 1 0;
  }

  .lang-switch,
  .help-menu summary,
  .topbar-cta {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .help-menu-panel {
    right: auto;
    left: 0;
    min-width: 178px;
    max-width: calc(100vw - 28px);
  }
}

.geo-summary h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.geo-summary h2:not(:first-child) {
  margin-top: 18px;
}

.geo-summary ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.cost-table,
.diff-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cost-table th,
.cost-table td,
.diff-table th,
.diff-table td,
.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.cost-table thead th,
.diff-table thead th,
.compare-table thead th {
  background: var(--surface);
}

.cost-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hub-hero {
  margin-bottom: 18px;
}

.guide-body pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: #1b1f1e;
  color: #e8f0e6;
}

.guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary h2 {
  margin: 0;
  font-size: 16px;
  display: inline;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item li {
  padding-left: 2px;
}

.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.faq-links span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.faq-links a:hover {
  border-color: var(--green);
  background: #eefaf7;
}

.category-link {
  margin-top: 14px;
}

.zh-catalog-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
