/* =========================================================
   PROJECTS PAGE – ISOLATED STYLES
   No global selectors
   No section / img / h* pollution
========================================================= */

/* ---------- Base Container ---------- */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- HERO ---------- */
.projects-hero {
  padding: 64px 0 48px;
  background: #0b0b0b;
  color: #fff;
  text-align: center;
}

.projects-title {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

.projects-lead {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: 18px;
  line-height: 1.6;
  color: #d0d0d0;
}

.projects-desc {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: #b8b8b8;
}

/* ---------- SECTION TITLES ---------- */
.projects-section-title {
  text-align: center;
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 600;
}

.projects-section-lead {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

/* ---------- APPLICATION ---------- */
.projects-application {
  padding: 48px 0;
  background: #f7f7f7;
}

.projects-application-list {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.projects-application-list li {
  text-align: center;
  padding: 8px 0;
  font-size: 15px;
  color: #333;
}

/* ---------- CASE STUDIES ---------- */
.projects-cases {
  padding: 56px 0;
  background: #fff;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Card reset */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* ---------- IMAGE (重点：不被 products.css 污染) ---------- */
.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

/* 强制恢复 img 行为 */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  max-height: none;
  background: none;
}

/* ---------- PROJECT VIDEO ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- INFO ---------- */
.project-info {
  padding: 16px 18px 20px;
}

.project-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.project-info span {
  font-size: 13px;
  color: #aaa;
}

/* ---------- FEATURED PRODUCTS ---------- */
.projects-featured {
  padding: 56px 0;
  background: #f7f7f7;
}

.projects-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.featured-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: box-shadow 0.25s ease;
}

.featured-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.featured-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
  max-width: none;
  max-height: none;
}

.featured-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.projects-cta {
  padding: 64px 0;
  background: #0b0b0b;
  color: #fff;
  text-align: center;
}

.projects-cta h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.projects-cta p {
  margin: 0 0 24px;
  font-size: 15px;
  color: #ccc;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .projects-title {
    font-size: 32px;
  }

  .projects-section-title {
    font-size: 24px;
  }

  .projects-hero {
    padding: 48px 0 36px;
  }
}
