:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --ink: #16202a;
  --muted: #5f6c78;
  --line: #dce5ec;
  --blue: #1677c8;
  --blue-dark: #0d4d84;
  --green: #2f9b72;
  --teal: #21a2a8;
  --yellow: #d99a22;
  --red: #bd3f3f;
  --shadow: 0 18px 55px rgba(37, 55, 70, 0.12);
  --radius: 8px;
}

html {
  background: #f6f8fb;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  max-width: 2560px;
  margin-inline: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft Yahei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 199px;
  height: 50px;
  border-radius: 8px;
  background-image: url("../images/logo.png");
  background-size: 100% 100%;
  color: #fff;
  font-size: 15px;
}

.brand-text {
  font-size: 18px;
}

.top-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.top-tabs a {
  min-width: 88px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.top-tabs a.active,
.top-tabs a:hover {
  background: var(--ink);
  color: #fff;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switch a {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.language-switch a.active,
.language-switch a:hover {
  background: var(--blue-dark);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  gap: 4px;
  place-items: center;
  place-content: center;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.home-hero,
.product-hero,
.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.home-hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(700px, 1.28fr);
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 72px);
}

.product-hero.banner-stylekit,
.product-hero.banner-widgetkit,
.product-hero.banner-chartkit,
.ai-hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(700px, 1.28fr);
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 72px);
}

.banner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f7fbfd;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.82) 39%, rgba(246, 248, 251, 0.34) 100%);
}

.banner-home {
  background-image: url("../images/banner-home.png");
}

.banner-stylekit {
  background-image: url("../images/banner-stylekit.png");
}

.banner-widgetkit {
  background-image: url("../images/banner-widgetkit.png");
}

.banner-chartkit {
  background-image: url("../images/banner-chartkit.png");
}

.banner-ai {
  background-image: url("../images/banner-ai.png");
}

.banner-about {
  background-image: url("../images/banner-about.png");
}

.hero-copy {
  max-width: 760px;
}

.product-logo {
  display: block;
  width: min(100%, 560px);
  max-height: 150px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.product-logo-hero {
  margin: 0;
}

.product-logo-heading {
  margin-bottom: 22px;
  line-height: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero-copy p,
.page-hero p {
  max-width: 680px;
  font-size: 18px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.button.ghost-light {
  border-color: rgba(22, 119, 200, 0.28);
  background: #fff;
  color: var(--blue-dark);
}

.button.subtle {
  background: var(--surface-2);
  color: var(--blue-dark);
}

.button.subtle-light {
  border-color: var(--line);
  background: #eef4f7;
  color: var(--muted);
}

.button.full {
  width: 100%;
}

.hero-stage,
.product-visual,
.preview-canvas,
.ai-console {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  width: min(100%, 800px);
  min-height: 0;
  overflow: hidden;
  justify-self: end;
}

.home-hero .hero-carousel {
  width: min(100%, 1220px);
}

.home-hero .hero-carousel-track {
  overflow: visible;
}

.hero-carousel-track {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8%) scale(0.985);
  transition: opacity 360ms ease, transform 360ms ease, visibility 360ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.hero-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78%;
  min-height: 0;
  margin: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: transparent;
}

.home-hero .hero-slide img {
  width: auto;
  max-width: min(100%, 1305px);
  height: auto;
  max-height: min(100%, 828px);
}

.hero-slide figcaption {
  display: grid;
  gap: 6px;
  padding: 0 6px;
  text-align: center;
}

.hero-slide figcaption strong {
  font-size: 20px;
}

.hero-slide figcaption span {
  color: var(--muted);
  font-size: 15px;
}

.hero-carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 77, 132, 0.22);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--blue);
}

.app-shell {
  display: grid;
  grid-template-columns: 98px 1fr;
  height: 420px;
}

.app-sidebar {
  background: linear-gradient(180deg, #1c2d3d, #26445b);
}

.app-content {
  padding: 26px;
}

.app-bar,
.data-panel,
.metric-row span,
.preview-card,
.visual-grid div,
.mini-visual span {
  border-radius: 8px;
}

.app-bar {
  height: 44px;
  background: #dbe8ef;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.metric-row span {
  height: 82px;
  background: #eef5f2;
}

.data-panel {
  height: 210px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(22, 32, 42, 0.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(22, 32, 42, 0.08) 50%, transparent 51%),
    #f8fbfd;
  background-size: 44px 44px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section.narrow,
.article {
  max-width: 860px;
  margin: 0 auto;
}

.page-hero {
  padding: 86px clamp(20px, 5vw, 72px) 42px;
}

.page-hero.compact {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero.banner-hero {
  min-height: 420px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card,
.value-card,
.contact-card,
.form-card,
.order-summary,
.success-panel,
.news-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(37, 55, 70, 0.08);
}

.product-card {
  padding: 28px;
}

.product-logo-card {
  display: block;
  width: min(100%, 350px);
  height: 92px;
  margin: 4px auto 18px;
  object-fit: contain;
}

.product-card h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.mini-visual {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 10px;
  height: 150px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
}

.mini-visual span {
  background: rgba(255, 255, 255, 0.7);
}

.visual-stylekit {
  background: linear-gradient(135deg, #e7f3f7, #f8f2e6 52%, #e9f5ee);
}

.visual-widgetkit {
  background: linear-gradient(135deg, #e8eff8, #e8f5f2 48%, #f7eee2);
}

.visual-chartkit {
  background:
    radial-gradient(circle at top right, rgba(47, 132, 255, 0.22), transparent 36%),
    radial-gradient(circle at 18% 82%, rgba(33, 194, 132, 0.18), transparent 28%),
    linear-gradient(135deg, #edf5ff 0%, #eef9f6 44%, #f8f1e5 100%);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-heading {
  grid-column: 1 / -1;
  position: relative;
  max-width: 720px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading-action {
  position: absolute;
  right: 0;
  bottom: 12px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 38px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.section-heading-action:hover {
  border-color: rgba(22, 119, 200, 0.32);
  background: #f7fbfd;
  color: var(--blue);
}

.section-heading-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  width: 100%;
  max-width: none;
}

.section-heading-with-action .section-heading-action {
  position: static;
  justify-self: end;
  align-self: end;
}

.news-section .section-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  gap: 24px;
}

.news-section .section-heading-action {
  position: static;
  margin-left: auto;
  flex: 0 0 auto;
}

.value-card {
  padding: 24px;
}

.value-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-page {
  max-width: 1180px;
  margin: 0 auto;
}

.news-list-hero {
  display: flex;
  align-items: center;
  min-height: calc((100vh - 72px) / 2);
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 72px);
}

.news-list-hero > div {
  max-width: 760px;
}

.news-list-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 64px);
}

.news-page .section-heading {
  max-width: 760px;
}

.news-page .section-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.news-list-full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-item {
  padding: 22px;
}

.news-item time,
.article time {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.news-item h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.two-column,
.split-panel,
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7f5ef;
  color: var(--green);
  font-weight: 800;
}

.product-visual {
  padding: 22px;
}

.product-hero-image {
  align-self: stretch;
  justify-self: end;
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(100%, 1220px);
  min-height: 0;
  overflow: visible;
}

.product-hero-image img {
  display: block;
  width: min(100%, 1260px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.visual-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.visual-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(22, 32, 42, 0.25);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visual-grid div {
  min-height: 92px;
  display: flex;
  align-items: end;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.preview-band {
  background: #edf3f5;
}

.preview-canvas {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 18px;
  min-height: 360px;
  padding: 22px;
}

.preview-card {
  min-height: 140px;
  background: rgba(255, 255, 255, 0.72);
}

.preview-card.large {
  grid-row: span 2;
}

.preview-card.wide {
  grid-column: span 2;
}

.stylekit-preview-band {
  background:
    radial-gradient(circle at top right, rgba(29, 132, 208, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f8fa, #edf3f6);
}

.style-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.style-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.style-preview-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.96));
  box-shadow: 0 14px 42px rgba(37, 55, 70, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.style-preview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 200, 0.22);
  box-shadow: 0 18px 46px rgba(37, 55, 70, 0.12);
}

.style-preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.style-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top center;
  background: linear-gradient(180deg, #e7edf2, #f6fafc);
  border-bottom: 1px solid rgba(220, 229, 236, 0.78);
}

.style-preview-card figcaption {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.style-preview-card strong {
  font-size: 17px;
  color: var(--ink);
}

.style-preview-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.preview-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  border: 1px solid rgba(22, 119, 200, 0.22);
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.preview-doc-link:hover {
  border-color: rgba(33, 162, 168, 0.45);
  background: #edfafa;
  color: var(--teal);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.preview-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--blue-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.style-preview-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.style-preview-page-button {
  min-height: 44px;
  min-width: 108px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.style-preview-page-button:hover:not(:disabled) {
  border-color: rgba(22, 119, 200, 0.32);
  background: #fff;
  color: var(--blue-dark);
}

.style-preview-page-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.style-preview-page-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 128px;
  min-height: 46px;
  border: 1px solid rgba(220, 229, 236, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.style-preview-page-indicator strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.style-preview-lightbox[hidden] {
  display: none;
}

.style-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.style-preview-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.72);
  backdrop-filter: blur(6px);
}

.style-preview-lightbox-dialog {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(220, 229, 236, 0.28);
  border-radius: 14px;
  background: rgba(248, 251, 253, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.style-preview-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(220, 229, 236, 0.85);
  background: rgba(255, 255, 255, 0.94);
}

.style-preview-lightbox-toolbar strong {
  font-size: 15px;
  color: var(--ink);
}

.style-preview-lightbox-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #edf3f6;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.style-preview-lightbox-body {
  overflow: auto;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(22, 32, 42, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(22, 32, 42, 0.04) 1px, transparent 1px),
    #f6f9fb;
  background-size: 24px 24px;
}

.style-preview-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  box-shadow: 0 18px 42px rgba(23, 33, 43, 0.18);
}

.icon-preview-band {
  background: #edf3f5;
}

.icon-preview-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.icon-tabs {
  display: grid;
  gap: 10px;
}

.icon-tabs button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.icon-tabs button.is-active,
.icon-tabs button:hover {
  border-color: rgba(22, 119, 200, 0.38);
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(37, 55, 70, 0.1);
}

.icon-panels {
  min-height: 224px;
}

.icon-panel {
  display: none;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: 10px;
  max-height: calc(92px * 6 + 10px * 5);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.icon-panel.is-active {
  display: grid;
}

.icon-sample {
  min-height: 0;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid rgba(220, 229, 236, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.icon-sample strong {
  font-size: 11px;
  line-height: 1.2;
  color: #253341;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.style-icon-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.style-line-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 247, 0.75));
}

.style-line-icon::before,
.style-line-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-window::before {
  left: 0;
  right: 0;
  top: 12px;
  border-top: 2px solid currentColor;
}

.icon-window::after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 18px 0 0 currentColor;
}

.icon-layout::before {
  left: 17px;
  top: 0;
  bottom: 0;
  border-left: 2px solid currentColor;
}

.icon-layout::after {
  left: 26px;
  right: 8px;
  top: 15px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.icon-search {
  border-color: transparent;
  background: transparent;
}

.icon-search::before {
  left: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  left: 33px;
  top: 34px;
  width: 16px;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-settings {
  border-radius: 50%;
  color: var(--teal);
}

.icon-settings::before {
  inset: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-settings::after {
  left: 23px;
  top: 2px;
  width: 6px;
  height: 48px;
  border-top: 8px solid currentColor;
  border-bottom: 8px solid currentColor;
  box-shadow: -15px 15px 0 -1px currentColor, 15px 15px 0 -1px currentColor;
}

.icon-edit {
  border-color: transparent;
  background: transparent;
  color: var(--yellow);
}

.icon-edit::before {
  left: 15px;
  top: 8px;
  width: 11px;
  height: 34px;
  border: 3px solid currentColor;
  border-bottom: 0;
  transform: rotate(42deg);
}

.icon-edit::after {
  left: 8px;
  bottom: 7px;
  width: 36px;
  border-top: 3px solid currentColor;
}

.icon-copy {
  color: var(--teal);
}

.icon-copy::before {
  left: 9px;
  top: 13px;
  width: 27px;
  height: 27px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.6);
}

.icon-copy::after {
  left: 17px;
  top: 8px;
  width: 27px;
  height: 27px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.84);
}

.icon-upload {
  color: var(--green);
}

.icon-upload::before {
  left: 16px;
  top: 10px;
  width: 20px;
  height: 24px;
  border-left: 3px solid currentColor;
  transform: translateX(8px);
}

.icon-upload::after {
  left: 14px;
  bottom: 10px;
  width: 24px;
  height: 14px;
  border: 3px solid currentColor;
  border-top: 0;
  box-shadow: 10px -22px 0 -7px currentColor, 10px -26px 0 -8px currentColor;
}

.icon-trash {
  color: var(--red);
}

.icon-trash::before {
  left: 14px;
  top: 18px;
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-top: 0;
}

.icon-trash::after {
  left: 12px;
  top: 11px;
  width: 28px;
  border-top: 3px solid currentColor;
  box-shadow: 8px -5px 0 -1px currentColor;
}

.icon-table::before {
  inset: 9px;
  border: 2px solid currentColor;
}

.icon-table::after {
  left: 9px;
  right: 9px;
  top: 21px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 11px 0 currentColor, 11px -12px 0 currentColor, 22px -12px 0 currentColor;
}

.icon-chart {
  color: var(--green);
}

.icon-chart::before {
  left: 12px;
  bottom: 10px;
  width: 6px;
  height: 16px;
  background: currentColor;
  box-shadow: 12px -8px 0 currentColor, 24px -18px 0 currentColor;
}

.icon-chart::after {
  left: 9px;
  bottom: 8px;
  width: 34px;
  border-top: 2px solid currentColor;
}

.icon-database {
  border-radius: 50% / 18%;
  color: var(--teal);
}

.icon-database::before {
  left: -2px;
  right: -2px;
  top: 14px;
  border-top: 2px solid currentColor;
  box-shadow: 0 13px 0 currentColor;
}

.icon-database::after {
  left: 8px;
  right: 8px;
  top: -2px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.icon-tree::before {
  left: 25px;
  top: 10px;
  height: 30px;
  border-left: 2px solid currentColor;
}

.icon-tree::after {
  left: 12px;
  top: 15px;
  width: 28px;
  height: 24px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: -3px -5px 0 3px #fff, 16px 7px 0 3px #fff, -3px 19px 0 3px #fff;
}

.icon-success {
  border-radius: 50%;
  color: var(--green);
}

.icon-success::before {
  left: 14px;
  top: 25px;
  width: 11px;
  border-top: 4px solid currentColor;
  transform: rotate(45deg);
}

.icon-success::after {
  left: 22px;
  top: 21px;
  width: 20px;
  border-top: 4px solid currentColor;
  transform: rotate(-45deg);
}

.icon-warning {
  border: 0;
  background: transparent;
  color: var(--yellow);
}

.icon-warning::before {
  left: 5px;
  top: 4px;
  width: 42px;
  height: 42px;
  border: 3px solid currentColor;
  transform: rotate(45deg);
}

.icon-warning::after {
  left: 25px;
  top: 16px;
  height: 20px;
  border-left: 4px solid currentColor;
  box-shadow: 0 25px 0 -1px currentColor;
}

.icon-error {
  border-radius: 50%;
  color: var(--red);
}

.icon-error::before,
.icon-error::after {
  left: 13px;
  top: 24px;
  width: 26px;
  border-top: 4px solid currentColor;
}

.icon-error::before {
  transform: rotate(45deg);
}

.icon-error::after {
  transform: rotate(-45deg);
}

.icon-loading {
  border-radius: 50%;
  border-color: rgba(22, 119, 200, 0.22);
  border-top-color: var(--blue);
}

.icon-loading::before {
  inset: 13px;
  border: 3px solid rgba(33, 162, 168, 0.22);
  border-right-color: var(--teal);
  border-radius: 50%;
}

.widgetkit-preview-band {
  background: #f5f8fa;
}

.widget-catalog-shell {
  display: grid;
  gap: 24px;
}

.widget-catalog-doc-link {
  display: flex;
  justify-content: flex-end;
}

.widget-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.widget-catalog-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d7e4ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.widget-catalog-tabs button:hover,
.widget-catalog-tabs button.is-active {
  border-color: rgba(33, 162, 168, 0.55);
  background: #edfafa;
  color: var(--teal);
  box-shadow: 0 10px 24px rgba(33, 162, 168, 0.12);
}

.widget-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.widget-catalog-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 228px;
  padding: 22px;
  border: 1px solid rgba(220, 229, 236, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 55, 70, 0.07);
}

.widget-catalog-head {
  display: grid;
  gap: 8px;
}

.widget-catalog-head span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edfafa;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.widget-catalog-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.widget-catalog-card p {
  margin-bottom: 0;
}

.widget-catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-catalog-tags em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f8fb;
  color: #526375;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.widget-catalog-pagination {
  margin-top: 2px;
}

.widget-doc-link {
  align-self: end;
}

.chartkit-preview-band {
  background: #f6f9fb;
}

.chart-preview-stack {
  display: grid;
  gap: 22px;
}

.chart-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chart-preview-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d7e4ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chart-preview-tabs button:hover,
.chart-preview-tabs button.is-active {
  border-color: rgba(33, 162, 168, 0.55);
  background: #edfafa;
  color: var(--teal);
  box-shadow: 0 10px 24px rgba(33, 162, 168, 0.12);
}

.chart-preview-group {
  display: none;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(37, 55, 70, 0.08);
}

.chart-preview-group.is-active {
  display: grid;
}

.chart-group-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.chart-group-heading span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-group-heading h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.chart-group-heading p {
  margin-bottom: 0;
}

.chart-doc-link {
  margin-top: 4px;
}

.chart-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 580px));
  gap: 18px;
  justify-content: space-between;
}

.chart-preview-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 236, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
}

.chart-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #eef4f8;
}

.chart-preview-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.chart-preview-copy h4 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.chart-preview-copy p {
  margin-bottom: 0;
}

.widget-param-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 6px 0 0;
}

.widget-param-list div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e5edf2;
  border-radius: var(--radius);
  background: #f6f9fb;
}

.widget-param-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.widget-param-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ai-console {
  padding: 22px;
  background: #16202a;
  color: #edf8fb;
}

.console-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.console-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6f8497;
}

.console-line {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.console-line.prompt {
  background: rgba(33, 162, 168, 0.2);
  color: #d9fbff;
}

.console-line.code {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8fb;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.console-grid span {
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 119, 200, 0.65), rgba(47, 155, 114, 0.62));
}

.ai-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-step,
.ai-use-list > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(37, 55, 70, 0.08);
}

.flow-step {
  padding: 22px;
}

.flow-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.flow-step h3,
.ai-use-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
}

.ai-use-list {
  display: grid;
  gap: 14px;
}

.ai-use-list > div {
  padding: 18px;
}

.ai-component-section {
  display: grid;
  gap: 18px;
}

.ai-component-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(37, 55, 70, 0.08);
}

.ai-component-card img {
  width: 160px;
  max-width: 100%;
  object-fit: contain;
}

.ai-component-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.ai-component-card h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.ai-component-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.alt-band {
  background: #edf3f5;
}

.buy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #fff;
}

.buy-strip p,
.buy-strip .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.buy-strip .button.ghost {
  border-color: rgba(255, 255, 255, 0.92);
  background: #fff;
  color: var(--ink);
}

.buy-actions,
.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.license-section {
  background: #edf3f5;
  color: var(--ink);
}

.license-section-order {
  background: #f6f8fb;
}

.license-section .section-heading,
.license-section .section-heading h2 {
  color: var(--ink);
}

.license-section .section-heading p,
.license-section .eyebrow {
  color: var(--muted);
}

.license-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(37, 55, 70, 0.08);
}

.license-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.license-table th,
.license-table td {
  width: 25%;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.license-table th {
  color: var(--ink);
}

.license-table th:first-child,
.license-table td:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 800;
}

.license-table thead th {
  background: #f8fbfd;
}

.license-table th strong,
.license-table th span {
  display: block;
}

.license-table th strong {
  color: var(--ink);
  font-size: 18px;
}

.license-table th span {
  margin-top: 6px;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 800;
}

.license-table td {
  color: var(--muted);
  font-size: 14px;
}

.license-table .selected {
  background: #f0f7ff;
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-section-title {
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
}

.form-help {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

.captcha-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.captcha-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f7;
  color: var(--blue-dark);
  font-size: 18px;
}

.notice {
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid #b7dfca;
  border-radius: 8px;
  background: #effaf4;
  color: #1d6a47;
}

.notice.error {
  border-color: #e5b7b7;
  background: #fff1f1;
  color: var(--red);
}

.contact-card,
.order-summary,
.success-panel {
  padding: 26px;
}

.contact-card a,
.text-link,
.back-link {
  color: var(--blue);
  font-weight: 700;
}

.price {
  margin: 22px 0;
  color: var(--blue-dark);
  font-size: 42px;
  font-weight: 800;
}

.order-tier-name {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--blue-dark);
  font-weight: 800;
}

.order-tier-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.order-tier-switch a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.order-tier-switch a.active {
  border-color: rgba(22, 119, 200, 0.4);
  background: #eaf5ff;
  color: var(--blue-dark);
}

.success-panel h2 {
  margin-bottom: 14px;
}

.order-success-actions {
  margin-top: 18px;
}

.order-query-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.order-query-form p {
  margin-bottom: 0;
  font-size: 14px;
}

.order-query-result {
  min-height: 260px;
}

.payment-wait-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 119, 200, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(236, 247, 255, 0.96), rgba(248, 252, 255, 0.96));
}

.payment-wait-panel strong {
  color: var(--blue-dark);
  font-size: 16px;
}

.payment-wait-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.order-detail-panel h2 {
  margin-bottom: 18px;
}

.order-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.order-detail-list.compact {
  margin-top: 16px;
}

.order-detail-list div {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.order-detail-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.inline-edit-form {
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.paid-download-panel {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 18px;
  border: 1px solid rgba(22, 119, 200, 0.22);
  border-radius: var(--radius);
  background: #eef7ff;
}

.paid-download-panel strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.paid-download-panel p {
  margin: 0;
  color: var(--muted);
}

.commercial-download-section {
  background: #f6f8fb;
}

.download-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(37, 55, 70, 0.08);
}

.download-card h3,
.download-card p {
  margin: 0;
}

.order-query-empty {
  display: grid;
  align-content: center;
  min-height: 260px;
  padding: 26px;
  border: 1px dashed #c7d5df;
  border-radius: var(--radius);
  background: #f8fbfd;
}

.order-query-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.order-card-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.order-result-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.order-result-card p {
  margin: 8px 0 0;
}

.order-result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-result-card-head strong {
  font-size: 18px;
  color: var(--ink);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(37, 55, 70, 0.08);
}

.docs-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.docs-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.docs-nav a.active,
.docs-nav a:hover {
  background: #eaf5ff;
  color: var(--blue-dark);
}

.docs-content {
  min-width: 0;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(37, 55, 70, 0.08);
  scroll-behavior: smooth;
}

.docs-content > :first-child {
  margin-top: 0;
}

.doc-section {
  display: none;
}

.doc-section.is-active {
  display: block;
}

.doc-section-title {
  margin-top: 0;
}

.article h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
}

.article .lead {
  font-size: 19px;
}

.article-body {
  margin-top: 34px;
}

.markdown-body {
  color: var(--ink);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 30px 0 14px;
  color: var(--ink);
}

.markdown-body h1 {
  font-size: 34px;
}

.markdown-body h2 {
  font-size: 28px;
}

.markdown-body h3 {
  font-size: 22px;
}

.markdown-body p,
.markdown-body li {
  color: var(--muted);
  font-size: 16px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.markdown-body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #edf4f8;
  color: var(--blue-dark);
}

.markdown-body blockquote p {
  margin: 0;
  color: var(--blue-dark);
}

.markdown-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf4f8;
  color: var(--blue-dark);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.markdown-body pre {
  overflow-x: auto;
  margin: 22px 0;
  padding: 18px;
  border-radius: 8px;
  background: #17212b;
  color: #edf8fb;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  background: var(--surface);
}

.markdown-body th,
.markdown-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-body th {
  background: #edf4f8;
  color: var(--ink);
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
}

.markdown-body a {
  color: var(--blue);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer span,
.site-footer strong {
  display: block;
  font-weight: 800;
}

.site-footer a {
  color: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding-block: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .brand-mark {
    width: 159px;
    height: 40px;
  }

  .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: inline-grid;
    margin-left: auto;
  }

  .language-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin-left: auto;
  }

  .top-tabs {
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(16px, 5vw, 40px);
    right: clamp(16px, 5vw, 40px);
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    overflow: visible;
    border-color: rgba(22, 32, 42, 0.1);
    box-shadow: var(--shadow);
  }

  .top-tabs a {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
  }

  .site-header.menu-open .top-tabs {
    display: grid;
  }

  .section-heading-action {
    position: static;
    margin-top: 6px;
  }

  .news-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-section .section-heading-action {
    margin-left: 0;
  }

  .home-hero,
  .product-hero,
  .ai-hero,
  .ai-component-card,
  .two-column,
  .split-panel,
  .order-layout,
  .order-query-layout,
  .docs-layout,
  .product-cards,
  .value-grid,
  .ai-flow,
  .news-list,
  .news-list-full,
  .style-preview-grid,
  .icon-preview-shell,
  .chart-preview-grid,
  .widget-catalog-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .style-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: space-between;
  }

  .download-card-grid {
    grid-template-columns: 1fr;
  }

  .style-preview-shell {
    grid-template-columns: 1fr;
  }

  .style-preview-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .icon-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .icon-tabs button {
    text-align: center;
  }

  .icon-panel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .banner-hero {
    background-position: 60% center;
  }

  .banner-hero::before {
    background:
      linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.88) 58%, rgba(246, 248, 251, 0.68) 100%);
  }

  .home-hero,
  .product-hero {
    min-height: auto;
  }

  .hero-stage,
  .hero-carousel,
  .product-visual,
  .product-hero-image,
  .ai-console {
    min-height: 320px;
  }

  .hero-carousel {
    width: 100%;
    justify-self: stretch;
  }

  .hero-carousel-track {
    height: clamp(260px, 58vw, 420px);
  }

  .home-hero .hero-carousel-track {
    height: clamp(330px, 76vw, 520px);
    overflow: hidden;
  }

  .home-hero .hero-slide img {
    width: 100%;
    max-width: 100%;
    max-height: calc(100% - 96px);
  }

  .product-hero-image {
    width: 100%;
    justify-self: stretch;
    overflow: hidden;
  }

  .product-hero-image img {
    width: auto;
    max-width: 100%;
    max-height: 88%;
  }

  .buy-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .buy-actions {
    width: 100%;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .docs-content {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 16px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .app-shell,
  .preview-canvas,
  .captcha-row,
  .order-detail-list,
  .widget-param-list,
  .chart-preview-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .icon-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .icon-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .style-preview-grid {
    grid-template-columns: 1fr;
  }

  .style-preview-pagination {
    grid-template-columns: 1fr;
  }

  .docs-content {
    padding: 20px;
  }

  .icon-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .style-preview-card figcaption {
    padding: 14px;
  }

  .app-shell {
    height: auto;
  }

  .app-sidebar {
    height: 58px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    padding: 14px;
  }

  .hero-carousel-track {
    height: 240px;
  }

  .home-hero .hero-carousel-track {
    height: clamp(320px, 92vw, 390px);
  }

  .home-hero .hero-slide img {
    max-height: calc(100% - 86px);
  }

  .hero-slide {
    padding: 14px 14px 12px;
  }

  .preview-card.large,
  .preview-card.wide {
    grid-column: auto;
    grid-row: auto;
  }
}
