body.app-detail-page {
  --app-detail-ink: var(--site-text-strong, #313a50);
  --app-detail-muted: var(--site-text-secondary, #7d8797);
  --app-detail-line: var(--site-outline, #e2e6ed);
  overflow-x: hidden;
  background: #f7f8fb;
}

body.app-detail-page .site-header .brand {
  display: flex;
  align-items: center;
  width: 173px;
  height: 64px;
}

body.app-detail-page .site-header .brand img {
  width: auto !important;
  height: auto !important;
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}

body.app-detail-page .site-footer {
  margin-top: 0;
}

.app-detail-hero {
  position: relative;
  min-height: 548px;
  display: flex;
  align-items: center;
  padding: 118px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid #f1e9e7;
  background: #fffaf9;
}

.app-detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 510px);
  align-items: center;
  gap: clamp(52px, 8vw, 140px);
}

.app-detail-hero-copy {
  max-width: 670px;
}

.app-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--app-detail-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms ease;
}

.app-detail-back-link span {
  color: var(--site-brand, #ff6868);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.app-detail-back-link:hover {
  color: var(--site-brand, #ff6868);
}

.app-detail-back-link:hover span {
  transform: translateX(-3px);
}

.app-detail-eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--site-brand, #ff6868);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.app-detail-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--app-detail-ink);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.app-detail-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.app-detail-price-label {
  color: var(--app-detail-muted);
  font-size: 13px;
}

.app-detail-price-row strong {
  color: var(--site-brand, #ff6868);
  font-size: 17px;
  font-weight: 650;
}

.app-detail-price-row strong em {
  font-size: 34px;
  font-style: normal;
  letter-spacing: -.035em;
  line-height: 1;
}

.app-detail-price-unit {
  color: var(--app-detail-muted);
  font-size: 12px;
}

.app-detail-offer {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px 12px 12px 0;
  color: #fff;
  background: var(--site-brand, #ff6868);
  font-size: 11px;
  font-weight: 650;
}

.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.app-detail-button {
  min-width: 116px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 13px/1 var(--site-font-family, "PingFang SC", "Microsoft YaHei", sans-serif);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-detail-button-primary {
  color: #fff;
  background: var(--site-brand, #ff6868);
  box-shadow: 0 10px 22px rgba(255, 104, 104, .2);
}

.app-detail-button-primary:hover,
.app-detail-button-primary:focus-visible {
  color: #fff;
  background: var(--site-brand-hover, #f45f62);
  box-shadow: 0 14px 28px rgba(244, 95, 98, .24);
  transform: translateY(-2px);
}

.app-detail-button-secondary {
  color: var(--app-detail-ink);
  border-color: var(--app-detail-line);
  background: #fff;
}

.app-detail-button-secondary:hover,
.app-detail-button-secondary:focus-visible {
  color: var(--site-brand, #ff6868);
  border-color: rgba(255, 104, 104, .45);
  background: #fff;
}

.app-detail-button-plain {
  color: var(--app-detail-muted);
  border-color: transparent;
  background: transparent;
}

.app-detail-button-plain:hover,
.app-detail-button-plain:focus-visible {
  color: var(--site-brand, #ff6868);
  background: rgba(255, 104, 104, .07);
}

.app-detail-button:focus-visible {
  outline: 2px solid rgba(255, 104, 104, .35);
  outline-offset: 3px;
}

.app-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 28px;
  color: #9aa1ae;
  font-size: 12px;
}

.app-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-detail-meta i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border: 1px solid var(--site-brand, #ff6868);
  border-radius: 50%;
}

.app-detail-preview {
  position: relative;
  min-width: 0;
  padding: 23px;
  border: 1px solid rgba(255, 104, 104, .18);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(49, 59, 78, .1);
}

.app-detail-preview::before {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-top: 1px solid rgba(255, 104, 104, .3);
  border-right: 1px solid rgba(255, 104, 104, .3);
  content: "";
  pointer-events: none;
}

.app-detail-preview-top,
.app-detail-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-detail-preview-top {
  min-height: 28px;
  color: var(--app-detail-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
}

.app-detail-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d9b76;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.app-detail-version b {
  color: #55b782;
  font-size: 20px;
  font-weight: 400;
  line-height: 0;
}

.app-detail-version strong {
  font-weight: 650;
}

.app-detail-image-frame {
  position: relative;
  height: 286px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--app-detail-line);
  background: #f7f8fb;
}

.app-detail-image-frame img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
}

.app-detail-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #9aa1ae;
  background:
    linear-gradient(#e8ebf0 1px, transparent 1px),
    linear-gradient(90deg, #e8ebf0 1px, transparent 1px),
    #f7f8fb;
  background-size: 28px 28px;
}

.app-detail-image-placeholder span {
  color: var(--site-brand, #ff6868);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.app-detail-image-placeholder strong {
  max-width: 80%;
  overflow: hidden;
  color: var(--app-detail-ink);
  font-size: 22px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-detail-image-placeholder small {
  color: #a6adb8;
  font-size: 10px;
  letter-spacing: .1em;
}

.app-detail-preview-footer {
  margin-top: 15px;
  color: #9aa1ae;
  font-size: 11px;
}

.app-detail-preview-footer strong {
  color: var(--app-detail-ink);
  font-size: 12px;
  font-weight: 650;
}

.app-detail-content-section {
  padding: 94px 0 112px;
  background: #f7f8fb;
}

.app-detail-section-title {
  margin-bottom: 50px;
}

.app-detail-content-shell {
  border: 1px solid var(--app-detail-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(49, 59, 78, .06);
}

.app-detail-content {
  min-height: 260px;
  padding: clamp(28px, 4vw, 56px);
  overflow-x: auto;
  color: var(--app-detail-ink);
  font-size: 15px;
  line-height: 1.85;
}

.app-detail-content :where(h1, h2, h3, h4, h5, h6) {
  margin: 1.6em 0 .65em;
  color: var(--app-detail-ink);
  font-weight: 700;
  line-height: 1.35;
}

.app-detail-content :where(h1, h2, h3):first-child {
  margin-top: 0;
}

.app-detail-content h1 {
  font-size: 32px;
}

.app-detail-content h2 {
  font-size: 26px;
}

.app-detail-content h3 {
  font-size: 21px;
}

.app-detail-content :where(p, ul, ol, blockquote, pre, table) {
  margin: 0 0 18px;
}

.app-detail-content :where(ul, ol) {
  padding-left: 1.5em;
}

.app-detail-content :where(a) {
  color: var(--site-brand, #ff6868);
}

.app-detail-content :where(img) {
  max-width: 100%;
  height: auto;
}

.app-detail-content :where(table) {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 1px solid var(--app-detail-line);
}

.app-detail-content :where(th, td) {
  padding: 12px 14px;
  border: 1px solid var(--app-detail-line);
  color: var(--app-detail-ink);
  text-align: left;
  vertical-align: top;
}

.app-detail-content :where(th) {
  background: #fff8f6;
  font-weight: 650;
}

.app-detail-content :where(blockquote) {
  padding: 14px 18px;
  border-left: 3px solid var(--site-brand, #ff6868);
  color: var(--app-detail-muted);
  background: #fff8f6;
}

.app-detail-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--app-detail-muted);
}

.layui-layer.app-detail-history-layer {
  border-radius: 4px;
  overflow: hidden;
}

.app-detail-history {
  min-height: 100%;
  overflow: auto;
  background: #fff;
}

.app-detail-history-head {
  padding: 30px 34px 24px;
  border-bottom: 1px solid #f1e9e7;
  background: #fffaf9;
}

.app-detail-history-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--site-brand, #ff6868);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-detail-history-head strong {
  display: block;
  color: var(--app-detail-ink);
  font-size: 26px;
  font-weight: 700;
}

.app-detail-history-head p {
  margin: 8px 0 0;
  color: var(--app-detail-muted);
  font-size: 13px;
}

.app-detail-history-latest {
  margin: 22px 34px 0;
  padding: 13px 15px;
  border: 1px solid #f1e9e7;
  color: var(--app-detail-muted);
  background: #fffaf9;
  font-size: 13px;
}

.app-detail-history-latest strong {
  color: var(--site-brand, #ff6868);
  font-weight: 650;
}

.app-detail-history-list {
  margin: 0;
  padding: 22px 34px 34px;
  list-style: none;
}

.app-detail-history-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 15px;
  padding-bottom: 22px;
}

.app-detail-history-list > li:not(:last-child)::after {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 6px;
  width: 1px;
  content: "";
  background: var(--app-detail-line);
}

.app-detail-history-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--site-brand, #ff6868);
  box-shadow: 0 0 0 1px rgba(255, 104, 104, .42);
}

.app-detail-history-item {
  min-width: 0;
}

.app-detail-history-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.app-detail-history-item-top strong {
  color: var(--app-detail-ink);
  font-size: 15px;
  font-weight: 650;
}

.app-detail-history-item-top time {
  flex: 0 0 auto;
  color: #a1a8b3;
  font-size: 11px;
}

.app-detail-history-text {
  margin-top: 8px;
  color: var(--app-detail-muted);
  font-size: 13px;
  line-height: 1.75;
}

.app-detail-history-text :where(p, ul, ol) {
  margin: 0 0 8px;
}

@media (max-width: 1050px) {
  .app-detail-hero-inner {
    gap: 56px;
  }
}

@media (max-width: 760px) {
  body.app-detail-page .site-header .brand {
    width: 160px;
    height: 60px;
  }

  body.app-detail-page .site-header .brand img {
    max-width: 140px;
    max-height: 38px;
  }

  .app-detail-hero {
    min-height: auto;
    padding: 130px 0 70px;
  }

  .app-detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .app-detail-hero h1 {
    font-size: 42px;
  }

  .app-detail-price-row strong em {
    font-size: 30px;
  }

  .app-detail-actions {
    gap: 8px;
  }

  .app-detail-button {
    min-width: 0;
    flex: 1 1 145px;
  }

  .app-detail-preview {
    max-width: 540px;
  }

  .app-detail-content-section {
    padding: 76px 0 80px;
  }

  .app-detail-section-title {
    margin-bottom: 38px;
  }

  .app-detail-content {
    padding: 28px 22px;
    font-size: 14px;
  }

  .app-detail-history-head {
    padding: 25px 22px 20px;
  }

  .app-detail-history-latest {
    margin-inline: 22px;
  }

  .app-detail-history-list {
    padding-inline: 22px;
  }
}

@media (max-width: 420px) {
  .app-detail-hero h1 {
    font-size: 36px;
  }

  .app-detail-price-row {
    gap: 7px;
  }

  .app-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-detail-button {
    width: 100%;
  }

  .app-detail-button-plain {
    grid-column: 1 / -1;
  }

  .app-detail-preview {
    padding: 18px;
  }

  .app-detail-image-frame {
    height: 230px;
  }

  .app-detail-history-item-top {
    display: block;
  }

  .app-detail-history-item-top time {
    display: block;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-detail-back-link,
  .app-detail-back-link span,
  .app-detail-button {
    transition: none;
  }
}
