#section07 {
  --accent: #6f207f;
  --text: #161616;
  --muted: #666;
  --surface: #fff;
  --bg: #f5f5f5;
  --line: #e7e7e7;
  --container: 1140px;
  box-sizing: border-box;
  padding: 86px 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

#section07 *,
#section07 *::before,
#section07 *::after { box-sizing: inherit; }

#section07 img { display: block; max-width: 100%; }
#section07 button,
#section07 a { font: inherit; }

#section07 .inner {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

#section07 .head { margin-bottom: 36px; }
#section07 .eyebrow {
  position: relative;
  margin: 0 0 10px;
  padding-left: 44px;
  color: #5f5962;
  font-size: 14px;
  line-height: 1.6;
}
#section07 .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 34px;
  height: 1px;
  background: var(--accent);
}
#section07 .title {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
}
#section07 .desc {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

#section07 .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

#section07 .project { min-width: 0; }
#section07 .item {
  display: block;
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
#section07 .media {
  margin: 0;
  aspect-ratio: 356 / 244;
  overflow: hidden;
  background: #ddd;
}
#section07 .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
#section07 .name {
  display: grid;
  min-height: 88px;
  margin: 0;
  padding: 18px 20px;
  place-items: center;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  #section07 .item:hover .media img { transform: scale(1.035); }
  #section07 .item:hover .name { color: var(--accent); }
}
#section07 .item:focus-visible {
  outline: 3px solid rgba(111, 32, 127, .3);
  outline-offset: 4px;
}

/* Modal */
#section07 .modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  visibility: hidden;
  opacity: 0;
  place-items: center;
  padding: 28px;
  transition: opacity .25s ease, visibility .25s ease;
}
#section07 .modal.is-open { visibility: visible; opacity: 1; }
#section07 .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}
#section07 .dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1140px);
  max-width: 100%;
  max-height: calc(100vh - 56px);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0,0,0,.34);
}
#section07 .close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #606060;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
}
#section07 .close:hover { color: var(--accent); }
#section07 .close:focus-visible { outline: 3px solid rgba(111, 32, 127, .28); }
#section07 .modal-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#section07 .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 510px;
  overflow: hidden;
}

#section07 .gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 510px;
  min-height: 0;
  overflow: hidden;
  background: #e8e8e8;
}
#section07 .gallery .swiper-wrapper {
  width: 100%;
  height: 100%;
  min-width: 0;
}
#section07 .gallery .swiper-slide {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
#section07 .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#section07 .gallery-prev,
#section07 .gallery-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 0;
  background: rgba(255,255,255,.9);
  color: var(--accent);
  cursor: pointer;
}
#section07 .gallery-prev { left: 18px; }
#section07 .gallery-next { right: 18px; }
#section07 .gallery-prev::before,
#section07 .gallery-next::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
#section07 .gallery-prev::before { left: 20px; transform: translateY(-50%) rotate(-135deg); }
#section07 .gallery-next::before { left: 15px; transform: translateY(-50%) rotate(45deg); }
#section07 .gallery-prev.swiper-button-disabled,
#section07 .gallery-next.swiper-button-disabled { opacity: .35; cursor: default; }

@media (hover: hover) and (pointer: fine) {
  #section07 .gallery-prev:not(.swiper-button-disabled):hover,
  #section07 .gallery-next:not(.swiper-button-disabled):hover {
    background: var(--accent);
    color: #fff;
  }
}

#section07 .gallery-pagination {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 10;
  text-align: center;
}
#section07 .gallery-pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  margin: 0 4px;
  background: #fff;
  opacity: 1;
  border: 1px solid rgba(0,0,0,.2);
}
#section07 .gallery-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  border-color: var(--accent);
}

#section07 .content {
  min-width: 0;
  padding: 34px 36px 30px;
  overflow-wrap: anywhere;
}
#section07 .content h3 {
  margin: 0 40px 20px 0;
  font-size: 22px;
  line-height: 1.35;
}
#section07 .meta,
#section07 .project-info { margin: 0; }
#section07 .meta > div,
#section07 .project-info > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
#section07 dt { font-weight: 700; }
#section07 dd { margin: 0; color: #555; line-height: 1.75; }
#section07 .product-image {
  width: min(100%, 230px);
  margin: 20px 0 24px;
}
#section07 .project-info a { color: var(--accent); text-underline-offset: 4px; }

@media (max-width: 991px) {
  #section07 { padding: 72px 0; }
  #section07 .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #section07 .detail-layout { grid-template-columns: 1fr; }
  #section07 .gallery { height: 430px; min-height: 0; }
  #section07 .dialog { width: min(100%, 760px); }
}

@media (max-width: 767px) {
  #section07 { padding: 58px 0; }
  #section07 .inner { width: min(calc(100% - 32px), var(--container)); }
  #section07 .head { margin-bottom: 28px; }
  #section07 .desc { font-size: 14px; }
  #section07 .grid { grid-template-columns: 1fr; gap: 22px; }
  #section07 .media { aspect-ratio: 16 / 10; }
  #section07 .name { min-height: 70px; padding: 14px 16px; font-size: 16px; }
  #section07 .modal { padding: 16px; }
  #section07 .dialog { max-height: calc(100vh - 32px); }
  #section07 .gallery { height: 280px; min-height: 0; }
  #section07 .gallery-prev,
  #section07 .gallery-next { width: 44px; height: 44px; margin-top: -22px; }
  #section07 .gallery-prev { left: 10px; }
  #section07 .gallery-next { right: 10px; }
  #section07 .gallery-prev::before { left: 17px; }
  #section07 .gallery-next::before { left: 13px; }
  #section07 .content { padding: 26px 22px 28px; }
  #section07 .content h3 { margin-right: 34px; font-size: 20px; }
  #section07 .meta > div,
  #section07 .project-info > div { grid-template-columns: 1fr; gap: 2px; }
  #section07 .product-image { width: 190px; margin-block: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  #section07 .modal,
  #section07 .media img { transition: none; }
}
