:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(13, 28, 47, 0.82);
  --panel-strong: #0f2137;
  --line: rgba(151, 184, 214, 0.18);
  --text: #f2f7fb;
  --muted: #91a7bb;
  --blue: #2bb9ff;
  --cyan: #5af0da;
  --success: #5ee5ad;
  --danger: #ff7f91;
  --warning: #ffc96b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.98)),
    radial-gradient(circle at 50% 0%, #12385d 0, transparent 58%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(94, 168, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 168, 216, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -180px;
  right: -120px;
  background: var(--blue);
}

.ambient-two {
  bottom: 0;
  left: -240px;
  background: var(--cyan);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  border-bottom: 1px solid var(--line);
}

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

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 27, 44, 0.62);
}

.language-switch a {
  min-width: 36px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #718da5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a.active {
  color: #dffaff;
  background: rgba(43, 185, 255, 0.13);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-accent {
  color: var(--blue);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(90, 240, 218, 0.4);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(43, 185, 255, 0.22), rgba(90, 240, 218, 0.08));
  box-shadow: inset 0 0 18px rgba(43, 185, 255, 0.14);
}

.brand-mark span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 3px;
  background: var(--cyan);
}

.brand-mark span:first-child {
  transform: rotate(60deg);
}

.brand-mark span:nth-child(2) {
  transform: rotate(-60deg);
}

.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(10, 27, 44, 0.62);
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.hero {
  max-width: 940px;
  padding: 104px 0 74px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 830px;
  margin: 18px 0 22px;
  font-size: clamp(45px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.resolver-card {
  width: min(900px, 100%);
  margin-top: 44px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(18, 42, 68, 0.82), rgba(11, 25, 43, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.resolver-card label {
  display: block;
  margin-bottom: 11px;
  color: #c5d6e3;
  font-size: 13px;
  font-weight: 650;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6e8ba2;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 49px;
  border: 1px solid rgba(148, 179, 203, 0.2);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: rgba(4, 14, 25, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 185, 255, 0.12);
}

.primary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-button {
  gap: 8px;
  min-width: 154px;
  height: 58px;
  padding: 0 23px;
  border-radius: 12px;
  color: #031421;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(43, 185, 255, 0.2);
}

.primary-button svg,
.source-link svg,
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button:hover,
.download-button:not(.disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #718ca3;
  font-size: 12px;
}

.form-meta button {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--blue);
  background: none;
}

.notice {
  width: min(900px, 100%);
  margin-top: 18px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(13, 31, 51, 0.74);
}

.notice.loading {
  color: #bae9ff;
  border-color: rgba(43, 185, 255, 0.35);
}

.notice.error {
  color: #ffd4da;
  border-color: rgba(255, 127, 145, 0.35);
  background: rgba(72, 21, 35, 0.42);
}

.notice.success {
  color: #c9ffe6;
  border-color: rgba(94, 229, 173, 0.3);
}

.result-section {
  padding: 28px 0 86px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.source-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}

.product-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 39, 64, 0.86), rgba(10, 23, 39, 0.9));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.chip-visual {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(90, 240, 218, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, #162f49, #091827);
  box-shadow:
    inset 0 0 28px rgba(43, 185, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.25);
}

.chip-core {
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pin {
  position: absolute;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: #6f8da5;
}

.pin-1,
.pin-2 {
  left: -18px;
}

.pin-1 { top: 27px; }
.pin-2 { bottom: 27px; }
.pin-3,
.pin-4 { right: -18px; }
.pin-3 { top: 27px; }
.pin-4 { bottom: 27px; }
.pin-5,
.pin-6,
.pin-7,
.pin-8 {
  width: 4px;
  height: 18px;
}
.pin-5 { top: -18px; left: 27px; }
.pin-6 { top: -18px; right: 27px; }
.pin-7 { bottom: -18px; left: 27px; }
.pin-8 { right: 27px; bottom: -18px; }

.product-title-row {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

.product-brand {
  display: block;
  min-height: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title-row h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.035em;
}

.code-badge {
  padding: 8px 11px;
  border: 1px solid rgba(43, 185, 255, 0.25);
  border-radius: 8px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: rgba(43, 185, 255, 0.08);
}

.product-main dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0 0;
}

.product-main dl div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-main dt {
  margin-bottom: 5px;
  color: #718da5;
  font-size: 11px;
}

.product-main dd {
  overflow: hidden;
  margin: 0;
  color: #dce8f1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.model-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 29, 48, 0.76);
}

.model-card-header {
  display: flex;
  gap: 15px;
  align-items: center;
}

.model-heading {
  min-width: 0;
}

.cube-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(90, 240, 218, 0.2);
  border-radius: 11px;
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: rgba(90, 240, 218, 0.06);
}

.model-card h3 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-uuid {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #66849d;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.download-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.format-info strong,
.format-info span {
  display: block;
}

.format-info strong {
  font-size: 13px;
}

.format-info span {
  margin-top: 3px;
  color: #718da5;
  font-size: 11px;
}

.download-button {
  gap: 7px;
  min-width: 96px;
  padding: 10px 13px;
  border: 1px solid rgba(43, 185, 255, 0.28);
  border-radius: 9px;
  color: #bdeeff;
  font-size: 12px;
  background: rgba(43, 185, 255, 0.09);
}

.download-button.step {
  color: #c9fff2;
  border-color: rgba(90, 240, 218, 0.26);
  background: rgba(90, 240, 218, 0.07);
}

.download-button.disabled {
  cursor: not-allowed;
  color: #687d8e;
  border-color: var(--line);
  background: rgba(111, 136, 154, 0.06);
}

.empty-models {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed rgba(255, 201, 107, 0.35);
  border-radius: 16px;
  color: var(--warning);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 0 92px;
}

.feature-grid article {
  padding: 24px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  margin-bottom: 26px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 112px);
  padding: 76px 24px;
  border-top: 1px solid var(--line);
}

.content-heading h2 {
  max-width: 430px;
  margin: 11px 0 0;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.prose-grid {
  display: grid;
  gap: 22px;
}

.prose-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.section-intro {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.guide-card {
  display: flex;
  min-height: 255px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 39, 64, 0.75), rgba(10, 23, 39, 0.82));
}

.guide-card > span,
.related-guide > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.guide-card h3 {
  margin: 16px 0 11px;
  font-size: 20px;
  line-height: 1.35;
}

.guide-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 25px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.guide-article {
  padding: 52px 0 96px;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #66849d;
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.guide-hero {
  max-width: 900px;
  padding: 72px 0 65px;
  border-bottom: 1px solid var(--line);
}

.guide-hero h1 {
  max-width: 860px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.guide-hero > p {
  max-width: 750px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.guide-meta {
  display: flex;
  gap: 22px;
  margin-top: 27px;
  color: #718da5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(45px, 8vw, 105px);
  align-items: start;
  padding-top: 66px;
}

.guide-content {
  min-width: 0;
}

.guide-section + .guide-section {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  margin: 0 0 24px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.guide-section p,
.guide-section li {
  color: #a2b5c5;
  font-size: 15px;
  line-height: 1.95;
}

.guide-section p {
  margin: 0 0 21px;
}

.guide-section ul {
  display: grid;
  gap: 11px;
  margin: 25px 0 0;
  padding: 20px 22px 20px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 31, 51, 0.58);
}

.guide-section li::marker {
  color: var(--cyan);
}

.guide-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 15px;
}

.guide-cta,
.related-guide {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 31, 51, 0.76);
}

.guide-cta h2 {
  margin: 14px 0 11px;
  font-size: 22px;
  line-height: 1.35;
}

.guide-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-button {
  display: block;
  margin-top: 21px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #031421;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.related-guide {
  display: grid;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.related-guide strong {
  font-size: 14px;
  line-height: 1.55;
}

.faq-list {
  display: grid;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  color: #dce8f1;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 19px;
  right: 5px;
  width: 24px;
  height: 24px;
  content: "+";
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 720px;
  margin: -3px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 34px;
  border-top: 1px solid var(--line);
  color: #617d94;
  font-size: 11px;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    height: 72px;
  }

  .status-pill {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .hero {
    padding: 70px 0 55px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 62px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .resolver-card {
    padding: 16px;
  }

  .input-row {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .form-meta span {
    max-width: 73%;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

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

  .model-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 0;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 62px 12px;
  }

  .guide-card-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 220px;
  }

  .guide-article {
    padding: 35px 0 70px;
  }

  .guide-hero {
    padding: 55px 0 48px;
  }

  .guide-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .guide-hero > p {
    font-size: 16px;
  }

  .guide-layout {
    gap: 55px;
    padding-top: 50px;
  }

  .guide-sidebar {
    position: static;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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