.detail-page { padding-top: 0; padding-bottom: 72px; }

.detail-page .breadcrumbs { min-width: 0; min-height: 56px; align-items: center; overflow: hidden; padding: 0; white-space: nowrap; }
.detail-page .breadcrumbs span:last-child { overflow: hidden; color: #7d8985; text-overflow: ellipsis; }

.app-detail-hero { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 0 34px; overflow: hidden; background: #fff; border: 1px solid var(--store-line); border-top: 4px solid var(--store-green); border-radius: 8px; box-shadow: 0 12px 34px rgba(27,58,50,.06); }
.app-detail-identity { min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 22px; padding: 28px 30px 20px; }
.app-detail-identity > img { width: 112px; height: 112px; object-fit: cover; border: 1px solid #d7e0dd; border-radius: 8px; box-shadow: 0 10px 25px rgba(27,58,50,.1); }
.app-detail-copy { min-width: 0; }
.app-detail-copy .app-platform-label { margin: 0 0 7px; font-size: 11px; font-weight: 900; }
.app-detail-copy h1 { margin: 0; overflow-wrap: anywhere; font-size: 34px; line-height: 1.25; }
.app-detail-summary { display: -webkit-box; margin: 11px 0 0; overflow: hidden; color: var(--store-muted); font-size: 13px; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.app-detail-metrics { grid-column: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 30px 27px; border: 1px solid var(--store-line); }
.app-detail-metrics > div { min-width: 0; padding: 11px 14px; border-right: 1px solid var(--store-line); }
.app-detail-metrics > div:last-child { border-right: 0; }
.app-detail-metrics dt,.app-detail-metrics dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-detail-metrics dt { margin-bottom: 6px; color: #8a9692; font-size: 9px; }
.app-detail-metrics dd { margin: 0; color: #26332f; font-size: 12px; font-weight: 800; }

.app-detail-cta { grid-column: 2; grid-row: 1/3; display: flex; flex-direction: column; justify-content: center; padding: 30px; background: #17211f; color: #fff; }
.app-detail-cta > div > span { display: flex; align-items: center; gap: 8px; color: #dce6e3; font-size: 13px; font-weight: 800; }
.app-detail-cta > div > span svg { width: 20px; height: 20px; color: #4ad0a9; }
.app-detail-cta small { display: block; margin-top: 9px; color: #94a39e; font-size: 10px; line-height: 1.6; }
.app-detail-cta > a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; border-radius: 6px; background: var(--store-coral); color: #fff; font-size: 13px; font-weight: 900; }
.app-detail-cta > a:hover { background: #d95640; }
.app-detail-cta > a svg { width: 19px; height: 19px; }

.detail-quick-nav { min-height: 54px; display: flex; align-items: center; gap: 30px; margin-top: 14px; padding: 0 20px; background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.detail-quick-nav a { position: relative; display: flex; align-items: center; align-self: stretch; color: #52615c; font-size: 11px; font-weight: 800; }
.detail-quick-nav a:first-child { color: var(--store-green-dark); }
.detail-quick-nav a:first-child:after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--store-green); }

.detail-page .detail-layout { grid-template-columns: minmax(0,1fr) 292px; gap: 22px; align-items: start; padding: 22px 0; }
.detail-page .detail-content { min-width: 0; overflow: hidden; padding: 0; background: #fff; border: 1px solid var(--store-line); border-radius: 8px; box-shadow: none; }
.detail-section-title { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 22px; border-bottom: 1px solid var(--store-line); }
.detail-section-title span { display: block; margin-bottom: 4px; color: var(--store-green); font-size: 9px; font-weight: 900; }
.detail-section-title h2 { margin: 0; font-size: 21px; }
.detail-section-title > p { margin: 0; color: #8a9692; font-size: 10px; }
.detail-section-title > a { display: flex; align-items: center; gap: 4px; color: var(--store-green-dark); font-size: 10px; font-weight: 800; }
.detail-section-title > a svg { width: 15px; height: 15px; }

.detail-media { margin: 22px 22px 0; background: #edf2f0; border: 1px solid var(--store-line); border-radius: 7px; }
.detail-page .detail-cover { width: 100%; height: min(520px,48vw); min-height: 330px; display: block; object-fit: contain; border-radius: 7px 7px 0 0; }
.detail-media figcaption { padding: 10px 13px; border-top: 1px solid var(--store-line); color: #7e8a86; font-size: 9px; text-align: center; }
.detail-page .prose { max-width: 820px; margin: 0 auto; padding: 28px 30px 38px; color: #34413e; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-page .prose > :first-child { margin-top: 0; }
.detail-page .prose h2 { margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--store-green); font-size: 23px; }
.detail-page .prose h3 { margin: 27px 0 10px; font-size: 18px; }
.detail-page .prose p { margin: 0 0 17px; }
.detail-page .prose img { max-width: 100%; height: auto!important; display: block; margin: 20px auto; object-fit: contain; border-radius: 7px; }
.detail-page .prose a { color: var(--store-green-dark); text-decoration: underline; text-underline-offset: 3px; }

.detail-page .detail-sidebar-stack { position: sticky; top: 92px; display: grid; gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.detail-info-panel,.detail-safe-panel { background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.detail-info-panel { padding: 19px; }
.detail-info-panel header { margin-bottom: 13px; }
.detail-info-panel header span { color: var(--store-green); font-size: 8px; font-weight: 900; }
.detail-info-panel h2 { margin: 4px 0 0; font-size: 18px; }
.detail-info-panel dl { display: grid; grid-template-columns: 84px minmax(0,1fr); margin: 0; }
.detail-info-panel dt,.detail-info-panel dd { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--store-line); font-size: 11px; }
.detail-info-panel dt { color: #85918d; }
.detail-info-panel dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 700; }
.detail-info-panel > a { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; color: var(--store-green-dark); font-size: 10px; font-weight: 800; }
.detail-info-panel > a svg { width: 15px; height: 15px; }
.detail-safe-panel { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 15px; background: #f2f7f5; }
.detail-safe-panel > svg { width: 38px; height: 38px; padding: 9px; border-radius: 7px; background: #dff2ec; color: var(--store-green-dark); }
.detail-safe-panel strong { font-size: 11px; }
.detail-safe-panel p { margin: 5px 0 0; color: #77847f; font-size: 9px; line-height: 1.6; }

.detail-page .download-panel { margin: 0 0 22px; overflow: hidden; border-color: var(--store-line); box-shadow: 0 9px 28px rgba(27,58,50,.05); }
.detail-page .download-panel > header { min-height: 78px; padding: 14px 22px; background: #17211f; border-bottom: 0; color: #fff; }
.detail-page .download-panel > header span { color: #48cfa8; }
.detail-page .download-panel > header h2 { font-size: 22px; }
.detail-page .download-panel > header > a { color: #9ee4d0; }
.detail-page .download-tabs { gap: 8px; padding: 14px 20px; background: #f7faf9; }
.detail-page .download-tabs button { min-height: 38px; }
.detail-page .download-source { min-height: 82px; }
.detail-page .download-routes > a { min-height: 35px; }
.detail-page .download-note { border-top: 1px solid var(--store-line); }

.detail-page .detail-related { margin-top: 0; padding: 0; overflow: hidden; background: transparent; border: 0; border-radius: 8px; }
.detail-related .detail-section-title { margin-bottom: 12px; background: #fff; border: 1px solid var(--store-line); border-radius: 7px; }
.detail-related .app-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.detail-related .app-card { position: relative; min-width: 0; min-height: 148px; background: #fff; }
.detail-related .app-card-main { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 11px; padding: 15px 42px 15px 15px; }
.detail-related .app-card img { width: 58px; height: 58px; }
.detail-related .app-card h3 { margin: 0 0 6px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.detail-related .app-card p { margin-bottom: 8px; font-size: 9px; -webkit-line-clamp: 2; }
.detail-related .app-card span { font-size: 9px; }
.detail-related-download { position: absolute; top: 50%; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #add8cd; border-radius: 50%; color: var(--store-green); transform: translateY(-50%); }
.detail-related-download:hover { background: var(--store-green); color: #fff; }
.detail-related-download svg { width: 14px; height: 14px; }

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

@media (max-width: 1000px) {
  .app-detail-hero { grid-template-columns: minmax(0,1fr) 270px; }
  .app-detail-identity { grid-template-columns: 96px minmax(0,1fr); padding: 24px 24px 18px; }
  .app-detail-identity > img { width: 96px; height: 96px; }
  .app-detail-metrics { margin-right: 24px; margin-left: 24px; }
  .app-detail-cta { padding: 24px; }
  .detail-page .detail-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .detail-related .app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .detail-page { width: calc(100% - 28px); padding-bottom: 138px; }
  .detail-page .breadcrumbs { min-height: 46px; font-size: 10px; }
  .app-detail-hero { display: block; border-top-width: 3px; }
  .app-detail-identity { grid-template-columns: 76px minmax(0,1fr); gap: 14px; padding: 18px 15px 14px; }
  .app-detail-identity > img { width: 76px; height: 76px; }
  .app-detail-copy .app-platform-label { margin-bottom: 5px; font-size: 9px; }
  .app-detail-copy h1 { font-size: 23px; line-height: 1.25; }
  .app-detail-summary { margin-top: 7px; font-size: 10px; line-height: 1.6; -webkit-line-clamp: 2; }
  .app-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 15px 15px; }
  .app-detail-metrics > div { padding: 9px 10px; }
  .app-detail-metrics > div:nth-child(2) { border-right: 0; }
  .app-detail-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--store-line); }
  .app-detail-metrics dt { font-size: 8px; }
  .app-detail-metrics dd { font-size: 10px; }
  .app-detail-cta { display: grid; grid-template-columns: minmax(0,1fr) 118px; align-items: center; gap: 12px; padding: 14px 15px; }
  .app-detail-cta > div > span { font-size: 10px; }
  .app-detail-cta > div > span svg { width: 17px; height: 17px; }
  .app-detail-cta small { margin-top: 5px; font-size: 8px; }
  .app-detail-cta > a { min-height: 42px; margin: 0; padding: 0 10px; font-size: 10px; text-align: center; }
  .detail-quick-nav { min-height: 48px; justify-content: space-around; gap: 0; margin-top: 10px; padding: 0 7px; }
  .detail-quick-nav a { justify-content: center; padding: 0 10px; font-size: 10px; }
  .detail-page .detail-layout { display: block; padding: 12px 0; }
  .detail-page .detail-content { border-radius: 7px; }
  .detail-section-title { min-height: 66px; padding: 12px 14px; }
  .detail-section-title h2 { font-size: 18px; }
  .detail-section-title > p { display: none; }
  .detail-media { margin: 14px 14px 0; }
  .detail-page .detail-cover { height: 270px; min-height: 0; }
  .detail-media figcaption { font-size: 8px; }
  .detail-page .prose { padding: 21px 16px 28px; font-size: 14px; line-height: 1.85; }
  .detail-page .prose h2 { margin-top: 29px; font-size: 20px; }
  .detail-page .prose h3 { font-size: 17px; }
  .detail-aside { display: none; }
  .detail-page .download-panel { margin-bottom: 14px; }
  .detail-page .download-panel > header { min-height: 68px; padding: 12px 14px; }
  .detail-page .download-panel > header h2 { font-size: 19px; }
  .detail-page .download-tabs { padding: 11px 14px; }
  .detail-page .download-source { min-height: 0; padding: 13px 14px; }
  .detail-page .download-routes { margin-top: 2px; }
  .detail-page .download-routes > a { min-height: 38px; }
  .detail-related .detail-section-title { margin-bottom: 8px; }
  .detail-related .app-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-related .app-card { min-height: 112px; }
  .detail-related .app-card-main { display: flex; padding: 13px 46px 13px 13px; }
  .detail-related .app-card p { font-size: 10px; -webkit-line-clamp: 1; }
  .mobile-detail-download { position: fixed; z-index: 45; right: 0; bottom: 58px; left: 0; height: 60px; display: grid; grid-template-columns: 38px minmax(0,1fr) 92px; align-items: center; gap: 9px; padding: 8px 14px; background: rgba(255,255,255,.98); border-top: 1px solid var(--store-line); box-shadow: 0 -7px 22px rgba(23,45,39,.11); }
  .mobile-detail-download > img { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; }
  .mobile-detail-download > div { min-width: 0; }
  .mobile-detail-download strong,.mobile-detail-download span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-detail-download strong { font-size: 11px; }
  .mobile-detail-download span { margin-top: 4px; color: var(--store-muted); font-size: 8px; }
  .mobile-detail-download > a { height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; background: var(--store-coral); color: #fff; font-size: 10px; font-weight: 900; }
  .mobile-detail-download > a svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-page * { scroll-behavior: auto!important; }
}
