/* 三级页面（详情页）统一头部与内容细节 */

/* ---- 顶部层级条：轻量、与二级页品牌带区分 ---- */
.sub-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(60px + env(safe-area-inset-top, 0px));
  padding: calc(env(safe-area-inset-top, 0px) + 9px) max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  color: #214a3b;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(243, 250, 246, .98) 100%);
  border-bottom: 0;
  box-shadow: 0 4px 16px rgba(0, 75, 55, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.sub-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(168, 207, 56, .12) 0%, rgba(168, 207, 56, 0) 70%);
  pointer-events: none;
}

.sub-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, var(--abc-green) 0%, #26bd91 55%, var(--grain-yellow) 100%);
}

.sub-header > * {
  position: relative;
  z-index: 1;
}

.sub-header .back-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  color: var(--abc-green);
  background: #e9f6ef;
  border: 1px solid #d9ecdf;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 90, 60, .06);
  cursor: pointer;
}

.sub-header .back-btn svg {
  width: 18px;
  height: 18px;
}

.sub-header .back-btn:active {
  background: #dcefe5;
}

.sub-header .back-btn:focus-visible {
  outline: 2px solid var(--abc-green);
  outline-offset: 2px;
}

.sub-head-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.sub-crumb {
  color: #7e9b8d;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
}

.sub-crumb::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--abc-green);
  vertical-align: 1.5px;
}

.sub-header .sub-title {
  flex: none;
  color: #1e493b;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--abc-green);
  background: transparent;
  border-radius: 0;
  opacity: .85;
}

.sub-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- 内容细节 ---- */
.page-body {
  background: radial-gradient(90% 240px at 100% 0%, rgba(168, 207, 56, .09) 0%, rgba(168, 207, 56, 0) 72%);
}

.page-body .intro-title {
  position: relative;
  padding-bottom: 10px;
}

.page-body .intro-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--abc-green) 0%, var(--grain-yellow) 100%);
}

.page-body .sample-card {
  position: relative;
  overflow: hidden;
}

.page-body .sample-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--abc-green);
}

.page-body button.sample-image-wrap {
  width: 100%;
  padding: 0;
  border: 0;
}

.page-body .sample-image-wrap:focus-visible {
  outline: 2px solid var(--abc-green);
  outline-offset: -2px;
}

.page-body .map-preview-wrap {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.page-body .map-preview-wrap:focus-visible {
  outline: 2px solid var(--abc-green);
  outline-offset: -2px;
}

.page-body .sample-image-wrap {
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-body .sample-image-wrap:active {
  transform: scale(.997);
}

@media (hover: hover) and (pointer: fine) {
  .page-body .sample-image-wrap:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 60, 40, .08);
  }
}

@media (max-width: 355px) {
  .sub-header {
    gap: 8px;
  }

  .sub-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-body .sample-image-wrap {
    transition: none;
  }
}
