/* Materials guide page */

.mg-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c1438;
}

.mg-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/材料指南/材料.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mg-hero .container {
  position: relative;
  z-index: 1;
  padding: 96px 24px 88px;
}

.mg-hero-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}

.mg-hero-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  max-width: 720px;
}

.mg-main {
  padding: 56px 0 88px;
  background: #f3f4f8;
}

.mg-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.mg-toc {
  position: sticky;
  top: 108px;
}

.mg-toc-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 22px 28px;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef1f6;
}

.mg-toc-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 18px;
}

.mg-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mg-toc-link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mg-toc-link:hover {
  color: #313695;
}

.mg-toc-link.is-active {
  color: #ef7300;
}

.mg-toc-link .mg-section-num {
  color: inherit;
  margin-right: 4px;
}

.mg-content {
  min-width: 0;
}

.mg-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #e2e8f0;
}

.mg-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.mg-section-head {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  margin-bottom: 20px;
}

.mg-section-num {
  color: #ef7300;
  margin-right: 6px;
}

.mg-section-body {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
}

.mg-section-body p {
  margin-bottom: 1.15em;
}

.mg-section-body p:last-child {
  margin-bottom: 0;
}

.mg-section-figure {
  margin: 28px 0 0;
  overflow: hidden;
  background: #e8ecf2;
}

.mg-section-figure img {
  width: 100%;
  display: block;
  /* aspect-ratio: 16 / 9; */
  object-fit: cover;
}

.mg-apps-title {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #313695;
}

.mg-apps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
}

.mg-apps-list li {
  margin-bottom: 6px;
}

.mg-apps-list li:last-child {
  margin-bottom: 0;
}

.mg-bullet-list {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
}

.mg-bullet-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.mg-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #313695;
}

.mg-bullet-list li:last-child {
  margin-bottom: 0;
}

.mg-steel-block {
  margin-top: 28px;
}

.mg-steel-block:first-of-type {
  margin-top: 8px;
}

.mg-steel-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #313695;
  margin-bottom: 10px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .mg-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mg-toc {
    position: static;
  }

  .mg-toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .mg-toc-link {
    padding: 6px 0;
  }
}

@media (max-width: 768px) {
  .mg-hero {
    margin-top: 72px;
    min-height: 440px;
  }

  .mg-main {
    padding: 40px 0 64px;
  }
}
