:root {
  --detail-bg: #f2f6f8;
  --detail-surface: #fff;
  --detail-surface-soft: #f8fafb;
  --detail-ink: #172126;
  --detail-ink-soft: #536168;
  --detail-ink-faint: #7b898f;
  --detail-line: #dfe7ea;
  --detail-line-strong: #cbd7dc;
  --detail-coral: #e94f5f;
  --detail-coral-dark: #c93447;
  --detail-coral-soft: #fff0f2;
  --detail-teal: #168e7d;
  --detail-teal-soft: #eaf8f5;
}

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

.site-detail-body .main-content {
  background: var(--detail-bg);
}

.site-detail-body .big-header-banner .page-header,
.site-detail-body .big-header-banner:not(.header-bg) .page-header {
  color: #38474e;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--detail-line);
  box-shadow: 0 2px 12px rgba(34, 51, 58, 0.06);
  backdrop-filter: blur(14px);
}

.site-detail-body .big-header-banner:not(.header-bg) .page-header .navbar-nav > li > a,
.site-detail-body .big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item) {
  color: #46545b;
}

.site-detail-body .big-header-banner:not(.header-bg) .page-header .navbar-nav > li > a:hover,
.site-detail-body .big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item):hover {
  color: var(--detail-coral-dark);
}

.site-detail-body .big-header-banner:not(.header-bg) .header-mini-btn path {
  stroke: #536168;
}

.site-detail-page,
.site-detail-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.site-detail-page {
  min-width: 0;
  padding: 24px 28px 72px;
  color: var(--detail-ink);
  background: var(--detail-bg);
  font-size: 14px;
  line-height: 1.75;
}

.site-detail-page a {
  color: inherit;
  text-decoration: none;
}

.site-detail-page button,
.site-detail-page a {
  -webkit-tap-highlight-color: transparent;
}

.site-detail-page button {
  font: inherit;
}

.site-detail-page :focus-visible {
  outline: 3px solid rgba(22, 142, 125, 0.28);
  outline-offset: 2px;
}

.site-detail-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-breadcrumb {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--detail-ink-faint);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.detail-breadcrumb i {
  font-size: 9px;
  color: #a7b1b6;
}

.detail-breadcrumb a:hover {
  color: var(--detail-coral-dark);
}

.detail-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  color: #45535a;
  text-overflow: ellipsis;
}

.tool-hero {
  --tool-hero-padding: 34px;
  --tool-hero-padding-negative: -34px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.35fr);
  column-gap: 34px;
  row-gap: 28px;
  align-items: start;
  padding: var(--tool-hero-padding);
  overflow: hidden;
  background: var(--detail-surface);
  border: 1px solid var(--detail-line);
  border-top: 4px solid var(--detail-coral);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(32, 55, 64, 0.08);
}

.tool-preview,
.tool-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tool-preview {
  margin: 0;
}

.tool-preview-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #121416;
  border: 1px solid #cfd9dd;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(35, 49, 55, 0.16);
}

.tool-preview-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 160ms ease;
}

.tool-preview-link:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

.tool-preview-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(19, 25, 28, 0.84);
  border-radius: 6px;
}

.tool-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--detail-ink-faint);
  font-size: 12px;
}

.tool-preview figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tool-eyebrow a,
.tool-eyebrow span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tool-eyebrow a {
  color: #3e5259;
  background: #edf2f4;
}

.tool-eyebrow a:hover {
  color: var(--detail-teal);
  background: var(--detail-teal-soft);
}

.tool-eyebrow span {
  color: #27665e;
  background: var(--detail-teal-soft);
}

.tool-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tool-logo {
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 8px;
}

.tool-title-row h1 {
  min-width: 0;
  margin: 0;
  color: var(--detail-ink);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.tool-summary {
  max-width: 690px;
  margin: 0 0 18px;
  color: #3f4c52;
  font-size: 16px;
  line-height: 1.8;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tool-tags span,
.related-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #58666d;
  background: #f0f3f4;
  border: 1px solid #e6ecee;
  border-radius: 4px;
  font-size: 12px;
}

.site-detail-page .tool-actions {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.detail-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.detail-button {
  padding: 10px 16px;
  font-weight: 600;
  line-height: 1.2;
}

.detail-button-primary {
  color: #fff !important;
  background: var(--detail-coral);
  border: 1px solid var(--detail-coral);
  box-shadow: 0 8px 18px rgba(233, 79, 95, 0.2);
}

.detail-button-primary:hover {
  color: #fff;
  background: var(--detail-coral-dark);
  border-color: var(--detail-coral-dark);
  transform: translateY(-1px);
}

.detail-button-secondary {
  color: #405057;
  background: #fff;
  border: 1px solid var(--detail-line-strong);
}

.detail-button-secondary:hover,
.detail-button-secondary.is-active {
  color: var(--detail-coral-dark);
  border-color: #d7a0a7;
  background: var(--detail-coral-soft);
}

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 120px)) minmax(260px, 1fr);
  gap: 16px 28px;
  margin: 0 var(--tool-hero-padding-negative) var(--tool-hero-padding-negative);
  padding: 18px var(--tool-hero-padding) 20px;
  background: var(--detail-surface-soft);
  border-top: 1px solid var(--detail-line);
}

.hero-fact {
  min-width: 0;
}

.hero-fact-price {
  grid-column: -2 / -1;
}

.hero-facts dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--detail-ink-faint);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-facts dt i {
  width: 14px;
  color: var(--detail-teal);
  text-align: center;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #26343a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-fact-price dd {
  font-weight: 500;
  line-height: 1.65;
}

.detail-tabs {
  position: sticky;
  top: 74px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--detail-line);
  border-radius: 7px;
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs a {
  min-width: 96px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--detail-ink-soft);
  border-radius: 5px;
  white-space: nowrap;
}

.detail-tabs a:hover,
.detail-tabs a.is-active {
  color: var(--detail-coral-dark);
  background: var(--detail-coral-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 34px;
  align-items: start;
  margin-top: 26px;
}

.detail-article {
  min-width: 0;
  padding: 30px 34px;
  background: var(--detail-surface);
  border: 1px solid var(--detail-line);
  border-radius: 8px;
}

.detail-section {
  scroll-margin-top: 132px;
}

.detail-section + .detail-section {
  margin-top: 42px;
  padding-top: 40px;
  border-top: 1px solid var(--detail-line);
}

.detail-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-section-heading > span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--detail-coral-dark);
  background: var(--detail-coral-soft);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.detail-section-heading p,
.related-tools header p {
  margin: 0 0 1px;
  color: var(--detail-teal);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-section-heading h2,
.related-tools header h2 {
  margin: 0;
  color: var(--detail-ink);
  font-size: 24px;
  line-height: 1.35;
}

.overview-content {
  color: #46545a;
  font-size: 15px;
  line-height: 2;
}

.overview-content > :first-child {
  margin-top: 0;
}

.overview-content > :last-child {
  margin-bottom: 0;
}

.overview-content h2,
.overview-content h3,
.overview-content h4 {
  margin: 28px 0 12px;
  color: #26353b;
  font-size: 17px;
}

.overview-content p,
.overview-content ul,
.overview-content ol {
  margin: 0 0 18px;
}

.overview-content a {
  color: var(--detail-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--detail-line);
  border-left: 1px solid var(--detail-line);
}

.feature-item {
  position: relative;
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

.feature-number,
.scenario-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--detail-teal);
  border: 4px solid var(--detail-teal-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(22, 142, 125, 0.25);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.feature-number {
  margin-bottom: 14px;
}

.feature-item h3,
.scenario-list h3 {
  margin: 0 0 6px;
  color: #26353b;
  font-size: 15px;
  line-height: 1.5;
}

.feature-item p,
.scenario-list p {
  margin: 0;
  color: var(--detail-ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.scenario-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--detail-line);
}

.scenario-list li:first-child {
  padding-top: 0;
}

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

.detail-aside {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 16px;
}

.detail-aside-panel {
  padding: 20px;
  background: var(--detail-surface);
  border: 1px solid var(--detail-line);
  border-radius: 8px;
}

.detail-aside-panel h2 {
  margin: 0 0 14px;
  color: #26353b;
  font-size: 15px;
  line-height: 1.5;
}

.detail-aside-action .aside-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--detail-coral-dark);
  background: var(--detail-coral-soft);
  border-radius: 6px;
}

.detail-aside-action h2 {
  margin-bottom: 6px;
}

.detail-aside-action p {
  margin: 0 0 16px;
  color: var(--detail-ink-faint);
  font-size: 12px;
  line-height: 1.7;
}

.detail-aside-action a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--detail-coral);
  border-radius: 6px;
  font-weight: 600;
}

.detail-aside-action a:hover {
  color: #fff;
  background: var(--detail-coral-dark);
}

.related-tools {
  scroll-margin-top: 132px;
  margin-top: 42px;
}

.related-tools > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.related-tools > header > a {
  color: var(--detail-teal);
  font-size: 13px;
}

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

.related-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--detail-line);
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(32, 55, 64, 0.1);
}

.related-shot {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eef2f4;
}

.related-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-copy {
  padding: 14px;
}

.related-title {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
}

.related-title > img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--detail-line);
  border-radius: 5px;
}

.related-title > a:not(.related-external) {
  min-width: 0;
  color: #26353b;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-external {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #819097;
  border-radius: 4px;
}

.related-external:hover {
  color: var(--detail-coral-dark);
  background: var(--detail-coral-soft);
}

.related-copy > p {
  min-height: 44px;
  margin: 11px 0 12px;
  color: var(--detail-ink-soft);
  font-size: 12px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-tags {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.related-tags span {
  min-height: 24px;
  padding: 2px 7px;
  white-space: nowrap;
}

.mobile-detail-action {
  display: none;
}

.io-black-mode.site-detail-body {
  --detail-bg: #181b1d;
  --detail-surface: #24282b;
  --detail-surface-soft: #2b3033;
  --detail-ink: #edf1f2;
  --detail-ink-soft: #b1bcc0;
  --detail-ink-faint: #88969c;
  --detail-line: #394145;
  --detail-line-strong: #4a555b;
}

.io-black-mode.site-detail-body .site-detail-page,
.io-black-mode.site-detail-body .main-content {
  background: var(--detail-bg);
}

.io-black-mode.site-detail-body .tool-hero,
.io-black-mode.site-detail-body .detail-tabs,
.io-black-mode.site-detail-body .detail-article,
.io-black-mode.site-detail-body .detail-aside-panel,
.io-black-mode.site-detail-body .related-card {
  background: var(--detail-surface);
}

@media (max-width: 1199.5px) {
  .tool-hero {
    --tool-hero-padding: 28px;
    --tool-hero-padding-negative: -28px;
    grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.2fr);
    column-gap: 26px;
    row-gap: 24px;
    padding: var(--tool-hero-padding);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
}

@media (max-width: 991.5px) {
  .tool-hero {
    grid-template-columns: 1fr;
  }

  .tool-preview {
    max-width: 680px;
  }

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

  .hero-fact-price {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767.5px) {
  html {
    scroll-padding-top: 118px;
  }

  .site-detail-page {
    padding: 16px 14px 96px;
  }

  .detail-breadcrumb {
    margin-bottom: 10px;
  }

  .tool-hero {
    --tool-hero-padding: 18px;
    --tool-hero-padding-negative: -18px;
    row-gap: 22px;
    padding: var(--tool-hero-padding);
  }

  .tool-hero-copy {
    order: 1;
  }

  .tool-preview {
    order: 2;
  }

  .hero-facts {
    order: 3;
  }

  .tool-title-row {
    align-items: flex-start;
  }

  .tool-logo {
    width: 46px;
    height: 46px;
  }

  .tool-title-row h1 {
    font-size: 28px;
  }

  .tool-summary {
    font-size: 15px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .detail-tabs {
    top: 73px;
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .detail-article {
    padding: 22px 18px;
  }

  .detail-section + .detail-section {
    margin-top: 34px;
    padding-top: 32px;
  }

  .detail-section-heading h2,
  .related-tools header h2 {
    font-size: 21px;
  }

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

  .scenario-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .feature-number,
  .scenario-index {
    width: 30px;
    height: 30px;
    border-width: 3px;
    font-size: 11px;
  }

  .feature-number {
    margin-bottom: 12px;
  }

  .detail-aside {
    grid-template-columns: 1fr;
  }

  .related-tools > header {
    align-items: flex-start;
  }

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

  .mobile-detail-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    min-height: 66px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--detail-line);
    box-shadow: 0 -8px 24px rgba(31, 48, 56, 0.08);
    backdrop-filter: blur(14px);
  }

  .mobile-detail-action button,
  .mobile-detail-action a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--detail-line-strong);
    border-radius: 6px;
  }

  .mobile-detail-action button {
    color: #495960;
    background: #fff;
  }

  .mobile-detail-action button.is-active {
    color: var(--detail-coral-dark);
    background: var(--detail-coral-soft);
  }

  .mobile-detail-action a {
    gap: 7px;
    color: #fff;
    background: var(--detail-coral);
    border-color: var(--detail-coral);
    font-weight: 600;
  }
}

@media (max-width: 399.5px) {
  .tool-actions .detail-button {
    flex: 1 1 auto;
  }

  .tool-preview figcaption span:last-child {
    display: none;
  }
}
