/* ===========================
   About Page Styles — Kaweei
   所有样式统一管理，无 :root 变量，无 !important
   =========================== */

/* --- Section Spacing --- */
.about-hero,
.about-section,
.about-section-alt {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-section {
  background: #000;
}

.about-section-alt {
  background: #0a0a0a;
}

/* --- Typography --- */
h1,
h2.section-title {
  color: #fff;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.about-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

.about-hero p {
  color: #fff;
}

.accent-text {
  color: #2563eb;
}

/* --- Glass Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.10);
}

.glass-card .card-title {
  color: #2563eb;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
}

.glass-card p {
  color: #cdcdcd;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.glass-card ul {
  color: #cdcdcd;
}

.glass-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* --- Card Links --- */
.card-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* --- Industry Card --- */
.industry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.industry-title {
  color: #fff;
}

.industry-text {
  color: #cdcdcd;
}

.industry-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.industry-link:hover {
  color: #60a5fa;
}

.industry-icon {
  color: #2563eb;
}

/* --- CTA Button --- */
.btn-cta {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Global Link --- */
.global-link {
  color: #5b5b5b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.global-link:hover {
  color: #2563eb;
}

/* --- Hero Image --- */
.hero-img {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- DFM Step Numbers --- */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Facility Image Grid --- */
.facility-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.facility-img:hover {
  transform: scale(1.03);
}

/* --- Facility Carousel --- */
.facility-carousel-wrap {
  position: relative;
  width: 100%;
  padding: 0 72px;
}

.facility-viewport {
  overflow: hidden;
  width: 100%;
}

.facility-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease-out;
  will-change: transform;
}

.facility-slide--certificate {
  flex: 0 0 calc(100% / 3 - 16px);
}

.certificate-card-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* A4竖版证书容器 297/210 = 141.4% */
.cert-image-box {
  width: 100%;
  padding-top: 141.4%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #0a0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.cert-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
}

.cert-name {
  color: #fff;
  text-align: center;
  display: block;
}

/* --- Carousel Arrows --- */
.facility-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-arrow-left {
  left: 0;
}

.facility-arrow-right {
  right: 0;
}

/* --- Certificate Modal --- */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal.show {
  display: flex;
}

.cert-modal-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 6px;
}

.cert-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* --- CTA Box --- */
.cta-box {
  max-width: 760px;
  margin: 3rem auto 0 auto;
  padding: 48px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
  transform: translateY(-4px);
  border-color: #306dde;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.cta-box h2 {
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.72);
}

/* --- FAQ Accordion Dark Theme --- */
.accordion-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.08);
  color: #2563eb;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(190deg);
}

.accordion-body {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 1.25rem 1rem;
}

.accordion-body p {
  color: rgba(255, 255, 255, 0.6);
}

.accordion-body ul {
  color: rgba(255, 255, 255, 0.6);
}

.accordion-body ul li {
  margin-bottom: 0.25rem;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }

  h2.section-title {
    font-size: 1.5rem;
  }

  .about-hero,
  .about-section,
  .about-section-alt {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .glass-card {
    padding: 1rem;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .facility-carousel-wrap {
    padding: 0 56px;
  }

  .facility-slide--certificate {
    flex: 0 0 100%;
  }

  .cta-box {
    padding: 32px 20px;
    margin-top: 2rem;
  }
}
