/* 详情页：Hero */
.hero-section {
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: var(--white);
}

.hero-text h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  margin-top: 1rem;
  letter-spacing: 4px;
}

/* 详情页也用 category-tag，但样式保持一致 */
.category-tag {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* 详情页：项目信息 */
.project-info {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.info-main h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.project-description {
  font-size: 1.1rem;
  color: #555;
}

.info-sidebar {
  border-left: 2px solid var(--accent-gold);
  padding-left: 2rem;
}
.info-sidebar ul { list-style: none; }
.info-sidebar li { margin-bottom: 1rem; color: #666; font-size: 0.95rem; }
.info-sidebar li strong { color: var(--primary-dark); margin-right: 0.5rem; }

/* 详情页：正文平铺 */
.project-detail-content { padding: 6rem 0; }

.info-block { text-align: center; margin-bottom: 5rem; }
.info-block p {
  color: #666;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.detail-tiled-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.tiled-item img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tiled-text {
  margin-top: 4rem;
  width: 100%;
  text-align: center;
}

.tiled-text p {
  color: #666;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  display: block;
  text-align: center;
}

/* 详情页移动端 */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; letter-spacing: 2px; }
  .project-detail-content { padding: 4rem 0; }
  .project-info { padding: 3rem 0; }
  .info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .info-sidebar { border-left: none; padding-left: 0; border-top: 2px solid var(--accent-gold); padding-top: 1.5rem; }
}

/* =========================================================
   Detail Page Mobile Enhancements (append only)
   ========================================================= */

/* iOS 动态视口高度兼容 */
@supports (height: 100dvh) {
  .hero-section {
    height: 90dvh;
  }
}

/* 中等屏更早切单列，避免“卡两列但拥挤” */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .info-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--accent-gold);
    padding-top: 1.5rem;
  }
}

/* 更小屏进一步收紧间距与字体，保持风格不变 */
@media (max-width: 520px) {
  .hero-text h1 {
    font-size: 1.9rem;
    letter-spacing: 2px;
  }

  .project-info { padding: 2.6rem 0; }
  .project-detail-content { padding: 3.2rem 0; }

  .info-main h1 { font-size: 2rem; }
  .project-description { font-size: 1rem; }

  .detail-tiled-list { gap: 2.6rem; }

  .info-block { margin-bottom: 3.2rem; }
  .info-block p, .tiled-text p { font-size: 1rem; }
}

/* 极小屏防溢出 */
@media (max-width: 360px) {
  .hero-text h1 { font-size: 1.7rem; }
}

/* 文字断行：避免长词/长英文撑破 */
.hero-text h1,
.info-main h1,
.project-description,
.info-block p,
.tiled-text p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   Detail Page Mobile Enhancements (append only)
   ========================================================= */

/* iOS 动态视口高度兼容 */
@supports (height: 100dvh) {
  .hero-section {
    height: 90dvh;
  }
}

/* 中等屏更早切单列，避免“卡两列但拥挤” */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .info-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--accent-gold);
    padding-top: 1.5rem;
  }
}

/* 更小屏进一步收紧间距与字体，保持风格不变 */
@media (max-width: 520px) {
  .hero-text h1 {
    font-size: 1.9rem;
    letter-spacing: 2px;
  }

  .project-info { padding: 2.6rem 0; }
  .project-detail-content { padding: 3.2rem 0; }

  .info-main h1 { font-size: 2rem; }
  .project-description { font-size: 1rem; }

  .detail-tiled-list { gap: 2.6rem; }

  .info-block { margin-bottom: 3.2rem; }
  .info-block p, .tiled-text p { font-size: 1rem; }
}

/* 极小屏防溢出 */
@media (max-width: 360px) {
  .hero-text h1 { font-size: 1.7rem; }
}

/* 文字断行：避免长词/长英文撑破 */
.hero-text h1,
.info-main h1,
.project-description,
.info-block p,
.tiled-text p {
  overflow-wrap: anywhere;
  word-break: break-word;
}