/* ==========================================================================
   APP detail page
   Matches guijinshu theme tokens: orange accent, quiet white panels, dense but airy mobile layout.
   ========================================================================== */

.app-detail-page {
  padding: 28px 0 96px;
}

.app-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--t-400);
  font-size: 16px;
}

.app-crumb a {
  color: var(--t-400);
  transition: color .15s ease;
}

.app-crumb a:hover {
  color: var(--orange);
}

.app-crumb strong {
  color: var(--t-800);
  font-weight: 500;
}

.app-hero-panel,
.app-section,
.recommend-app-panel {
  background: var(--bg-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.app-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  padding: 40px;
  align-items: stretch;
}

.app-hero-main {
  min-width: 0;
}

.app-identity {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.app-icon-wrap {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  border: 1px solid var(--line-1);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
  overflow: hidden;
  flex-shrink: 0;
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title-block {
  min-width: 0;
}

.app-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 116, 1, .1);
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.app-title-block h1 {
  color: var(--t-900);
  font-size: 34px;
  line-height: 1.22;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.app-summary {
  max-width: 690px;
  color: var(--t-600);
  font-size: 17px;
  line-height: 1.85;
}

.app-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.app-meta-item {
  min-width: 0;
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 18px 16px;
  background: #fff;
}

.app-meta-item span {
  display: block;
  color: var(--t-400);
  font-size: 13px;
  margin-bottom: 8px;
}

.app-meta-item b {
  display: block;
  color: var(--t-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.app-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.app-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-tag);
  color: var(--t-600);
  font-size: 14px;
}

.app-download-panel {
  border: 1px solid rgba(255, 116, 1, .24);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-qr {
  width: 136px;
  height: 136px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(255, 116, 1, .14);
}

.app-qr img,
.app-qr canvas {
  width: 120px;
  height: 120px;
}

.app-download-panel p {
  color: var(--t-500);
  font-size: 14px;
  margin: 16px 0 18px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: filter .18s ease, transform .18s ease;
}

.app-download-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.app-section {
  margin-top: 24px;
  padding: 36px 40px;
}

.app-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.app-section-head h2 {
  color: var(--t-900);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.app-section-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: -4px;
}

.app-section-head span {
  color: var(--t-400);
  font-size: 14px;
  white-space: nowrap;
}

.app-shot-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.app-shot-list img {
  height: 340px;
  max-width: 260px;
  border-radius: 18px;
  border: 1px solid var(--line-1);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-soft);
}

.app-richtext {
  color: var(--t-700);
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.app-richtext p,
.app-richtext div {
  margin-bottom: 18px;
}

.app-richtext h2 {
  color: var(--t-900);
  font-size: 25px;
  line-height: 1.35;
  margin: 30px 0 14px;
  font-weight: 900;
}

.app-richtext h3 {
  color: var(--t-900);
  font-size: 21px;
  line-height: 1.4;
  margin: 24px 0 12px;
  font-weight: 800;
}

.app-richtext ul,
.app-richtext ol {
  padding-left: 22px;
  margin: 14px 0 20px;
}

.app-richtext li {
  margin-bottom: 8px;
}

.app-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 22px 0;
}

.app-richtext a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-richtext blockquote {
  border-left: 4px solid var(--orange);
  background: #fff7f0;
  color: var(--t-600);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 22px 0;
}

.app-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.app-richtext th,
.app-richtext td {
  border-bottom: 1px solid var(--line-1);
  padding: 12px;
  text-align: left;
}

.app-richtext th {
  color: var(--t-900);
  background: var(--bg-soft);
  font-weight: 700;
}

.app-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.app-prevnext div {
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-1);
}

.app-prevnext span {
  display: block;
  color: var(--t-400);
  font-size: 13px;
  margin-bottom: 8px;
}

.app-prevnext a {
  color: var(--t-800);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  transition: color .15s ease;
}

.app-prevnext a:hover {
  color: var(--orange);
}

.app-prevnext em {
  color: var(--t-400);
  font-style: normal;
}

.recommend-app-panel {
  margin-top: 24px;
  padding: 34px 36px 36px;
}

.recommend-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.recommend-app-head h2 {
  color: var(--t-900);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.recommend-app-head span {
  color: var(--t-400);
  font-size: 14px;
}

.recommend-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.recommend-app-card {
  min-width: 0;
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 18px 14px;
  background: #fff;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.recommend-app-card:hover {
  border-color: rgba(255, 116, 1, .45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.recommend-app-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 12px;
}

.recommend-app-card p {
  color: var(--t-700);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .app-detail-page {
    padding: 18px 0 42px;
  }

  .app-crumb {
    font-size: 13px;
    gap: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .app-crumb::-webkit-scrollbar {
    display: none;
  }

  .app-hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .app-identity {
    gap: 14px;
  }

  .app-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .app-eyebrow {
    height: 24px;
    padding: 0 10px;
    font-size: 12px;
    margin-bottom: 8px;
  }

  .app-title-block h1 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .app-summary {
    font-size: 14px;
    line-height: 1.7;
  }

  .app-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .app-meta-item {
    border-radius: 14px;
    padding: 13px 12px;
  }

  .app-meta-item span {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .app-meta-item b {
    font-size: 14px;
  }

  .app-tag-list {
    gap: 8px;
    margin-top: 18px;
  }

  .app-tag-list span {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .app-download-panel {
    padding: 0;
    border: none;
    background: transparent;
  }

  .app-qr,
  .app-download-panel p {
    display: none;
  }

  .app-download-btn {
    min-height: 46px;
    font-size: 16px;
  }

  .app-section {
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .app-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .app-section-head h2 {
    font-size: 20px;
  }

  .app-section-head h2::before {
    width: 4px;
    height: 18px;
    margin-right: 9px;
    vertical-align: -3px;
  }

  .app-section-head span {
    font-size: 12px;
  }

  .app-shot-list {
    gap: 12px;
    padding-bottom: 6px;
  }

  .app-shot-list img {
    width: 68vw;
    max-width: 240px;
    height: auto;
    max-height: 360px;
    border-radius: 14px;
  }

  .app-richtext {
    font-size: 15px;
    line-height: 1.85;
  }

  .app-richtext p,
  .app-richtext div {
    margin-bottom: 14px;
  }

  .app-richtext h2 {
    font-size: 20px;
    margin: 24px 0 12px;
  }

  .app-richtext h3 {
    font-size: 18px;
    margin: 20px 0 10px;
  }

  .app-richtext table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
  }

  .app-prevnext {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .app-prevnext div {
    border-radius: 14px;
    padding: 14px 16px;
  }

  .app-prevnext a {
    font-size: 14px;
  }

  .recommend-app-panel {
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .recommend-app-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .recommend-app-head h2 {
    font-size: 20px;
  }

  .recommend-app-head span {
    font-size: 12px;
  }

  .recommend-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .recommend-app-card {
    border-radius: 14px;
    padding: 14px 10px;
  }

  .recommend-app-card img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .recommend-app-card p {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .app-meta-grid,
  .recommend-app-grid {
    grid-template-columns: 1fr;
  }
}
