.detail-body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f7f8;
}

.detail-page {
  background: #f7f7f8;
  overflow: visible;
}

.phone-page.detail-page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.detail-page .fp-header {
  grid-template-columns: 46px minmax(0, 1fr) auto 50px;
  gap: 6px;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 50px;
  min-width: 46px;
  min-height: 50px;
  padding: 0;
  color: #111827;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.detail-back-button svg {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  max-width: none;
  fill: currentColor;
  pointer-events: none;
}

.detail-page .brand {
  color: #111827;
}

.detail-page .icon-button {
  color: #111827;
}

.detail-group-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 28px;
  margin-left: 0;
  padding: 0 12px;
  border: 1px solid #0b86e5;
  border-radius: 14px;
  color: #0b86e5;
  background: #edf5ff;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.detail-page .brand-i::after {
  background: #4cadf9;
}

.detail-page .search-button svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.detail-main {
  padding: 74px 16px 160px;
  background: #f7f7f8;
}

.detail-product-summary {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.detail-breadcrumb {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 34px;
  overflow: hidden;
  color: #64748b;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
}

.detail-breadcrumb > a,
.detail-breadcrumb > div:first-of-type {
  flex: 0 0 auto;
}

.detail-breadcrumb > div:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-breadcrumb a,
.detail-breadcrumb span {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  color: #475569;
}

.detail-product-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-app-icon,
.detail-app-icon .tool-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.detail-app-icon {
  overflow: hidden;
}

.detail-app-icon .tool-logo {
  border: 1px solid #e5e7ee;
  background: #fff;
}

.detail-app-icon .tool-logo-fallback {
  font-size: 28px;
}

.detail-app-icon .tool-logo-fallback svg {
  width: 48px;
  height: 48px;
}

.detail-product-copy h1 {
  margin: 0;
  color: #273653;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}

.detail-slogan {
  margin: 8px 0 0;
  color: #65748f;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 11px;
}

.detail-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #ff8a2b;
  font-size: 31px;
  line-height: 1;
}

.detail-stars i {
  color: #777;
  font-style: normal;
}

.detail-stars b {
  font-weight: 800;
}

.detail-rating a {
  overflow: hidden;
  color: #43a9ff;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.detail-verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #43a9ff;
  font-size: 21px;
  line-height: 1;
  font-weight: 600;
}

.detail-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: #43a9ff;
  font-size: 15px;
  font-weight: 800;
}

.detail-info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.detail-topic-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}

.detail-topic-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 20px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: #0f4f8f;
  background: #f0fbff;
  font-size: 11px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-0.5px);
}

.detail-topic-tags a.capitalize {
  text-transform: capitalize;
}

.detail-meta-lines {
  color: #101622;
  font-size: 21px;
  line-height: 1.45;
}

.detail-meta-lines p {
  margin: 0 0 8px;
}

.detail-meta-lines strong {
  color: #202b43;
  font-weight: 800;
}

.detail-meta-lines a {
  color: #0074d9;
  text-decoration: none;
}

.detail-follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 14px;
}

.detail-follow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #43a9ff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.detail-follow .follow-youtube {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  color: #fff;
  background: #43a9ff;
  font-size: 11px;
}

.detail-reference-actions {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 32px;
  align-items: stretch;
}

.detail-like-button,
.detail-visit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}

.detail-like-button {
  flex: 0 0 auto;
  border: 1.5px solid #43a9ff;
  color: #43a9ff;
  background: #fff;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.detail-like-button b {
  display: none;
}

.detail-like-button.is-liked {
  color: #fff;
  background: #43a9ff;
  border-color: #43a9ff;
  transform: translateY(-1px);
}

.detail-like-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin: 0;
}

.detail-visit-button {
  gap: 11px;
  border: 0;
  color: #fff;
  background: #43a9ff;
  white-space: nowrap;
}

.detail-visit-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.detail-visit-icon path {
  fill: #fff;
}

.detail-visit-button span {
  font-size: 31px;
  line-height: 1;
}

.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  border-bottom: 2px solid #d3deea;
}

.detail-tabs button {
  position: relative;
  min-height: 61px;
  border: 0;
  color: #65748f;
  background: transparent;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
}

.detail-tabs button:nth-child(3) {
  text-align: center;
}

.detail-tabs button.is-active {
  color: #43a9ff;
}

.detail-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 3px;
  background: #43a9ff;
  content: "";
}

.detail-article {
  padding: 42px 0 0;
}

.detail-updated {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 42px;
  color: #65748f;
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
}

.detail-updated span {
  position: relative;
  width: 25px;
  height: 25px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.detail-updated span::before,
.detail-updated span::after {
  position: absolute;
  top: -7px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.detail-updated span::before {
  left: 5px;
}

.detail-updated span::after {
  right: 5px;
}

.detail-article h2 {
  margin: 0 0 18px;
  color: #171b26;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 780;
  letter-spacing: -0.4px;
}

.detail-article p {
  margin: 0;
  color: #171b26;
  font-size: 29px;
  line-height: 1.32;
  font-weight: 450;
  letter-spacing: -0.25px;
}

.detail-not-found {
  padding-top: 120px;
  color: #65748f;
  font-size: 20px;
  text-align: center;
}

.detail-group-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.62);
  opacity: 0;
  transition: opacity 180ms ease;
}

.detail-group-modal.is-visible {
  opacity: 1;
}

.detail-group-modal[hidden] {
  display: none;
}

.detail-group-modal-overlay {
  position: absolute;
  inset: 0;
}

.detail-group-dialog {
  position: relative;
  z-index: 1;
  width: min(300px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease, opacity 180ms ease;
}

.detail-group-modal.is-visible .detail-group-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-group-title {
  color: #222;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.detail-group-desc {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.detail-group-desc strong {
  color: #0b86e5;
  font-weight: 700;
}

.detail-group-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 18px auto 0;
  object-fit: contain;
  background: #f0f0f0;
}

.detail-group-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 36px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 18px;
  color: #666;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}
