/* ============================================================
   材质百科 · 栏目共享样式（索引页 /materials.html + 词条页 /materials/*.html）
   仅本栏目专用；nav / footer / floating-cta / 色变量 一律在 shared.css。
   遵循平衡铁律：四边等宽 1px、无单边色条、无渐变装饰条。
   ============================================================ */

/* ---------- 面包屑 ---------- */
.mat-crumb-wrap { background: #f3f8f8; border-bottom: 1px solid var(--border); }
.mat-crumb { max-width: 1240px; margin: 0 auto; padding: 12px 40px; font-size: 13px; color: #8a9694; letter-spacing: 0.3px; }
.mat-crumb a { color: #8a9694; transition: color 0.2s; }
.mat-crumb a:hover { color: var(--teal); }
.mat-crumb .sep { margin: 0 9px; color: #c7d6d4; }
.mat-crumb .cur { color: #4a5654; }

/* ---------- 词条页 页头 ---------- */
.mat-eyebrow { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 4px; color: var(--teal); margin-bottom: 14px; }
.mat-head { background: #f7fbfb; border-bottom: 1px solid var(--border); }
.mat-head-inner { max-width: 1240px; margin: 0 auto; padding: 52px 40px 44px; }
.mat-title {
  font-family: 'Noto Serif SC', serif; font-size: 42px; font-weight: 700; color: var(--dark);
  letter-spacing: 1px; line-height: 1.3; margin-bottom: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
}
.mat-layer-tag {
  font-family: 'Noto Sans SC', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 2px;
  padding: 4px 13px; border-radius: 20px; border: 1px solid var(--teal); color: var(--teal); white-space: nowrap;
}
.mat-layer-tag.fine { border-color: var(--gold); color: var(--gold); }
.mat-alias { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: #9aa8a6; margin-bottom: 20px; }
.mat-lead { font-family: 'Noto Serif SC', serif; font-size: 19px; line-height: 1.9; color: #3d4a48; max-width: 860px; }
.mat-meta { margin-top: 22px; font-size: 13px; color: #93a09e; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mat-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c7d6d4; display: inline-block; }

/* ---------- 三栏布局 ---------- */
.mat-layout {
  max-width: 1240px; margin: 0 auto; padding: 46px 40px 20px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 310px; gap: 40px; align-items: start;
}

/* ---------- 左：目录 ---------- */
.mat-toc-rail { position: sticky; top: 96px; }
.mat-toc-h { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 3px; color: #9aa8a6; margin-bottom: 14px; }
.mat-toc ol { list-style: none; counter-reset: toc; }
.mat-toc li { counter-increment: toc; margin-bottom: 2px; }
.mat-toc a {
  display: block; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; line-height: 1.6;
  color: #6d7b79; transition: color 0.2s, background 0.2s;
}
.mat-toc a::before { content: counter(toc) "."; font-family: 'Bebas Neue', sans-serif; color: #b9c8c6; margin-right: 7px; }
.mat-toc a:hover { color: var(--teal); background: #f2faf9; }
.mat-toc a.cur { color: var(--teal); background: #eef8f6; }
.mat-toc a.cur::before { color: var(--teal); }

/* ---------- 中：正文 ---------- */
.mat-main { min-width: 0; font-size: 16.5px; line-height: 2.05; color: #4a5250; }
.mat-main p { margin: 0 0 1.45em; }
.mat-main strong { font-weight: 700; color: #22302e; }
.mat-main a { color: var(--teal); border-bottom: 1px solid rgba(9,184,160,0.35); transition: border-color 0.2s; }
.mat-main a:hover { border-bottom-color: var(--teal); }
.mat-main code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: #f2f7f7; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: #3f5654; }

.mat-h2 { margin: 52px 0 22px; }
.mat-h2:first-child { margin-top: 0; }
.mat-h2-eyebrow { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 4px; color: var(--teal); margin-bottom: 8px; }
.mat-h2-text { display: block; font-family: 'Noto Serif SC', serif; font-size: 26px; font-weight: 700; color: var(--dark); line-height: 1.5; letter-spacing: 0.5px; }

.mat-ul { list-style: none; margin: 0 0 1.6em; }
.mat-ul li { position: relative; padding-left: 18px; margin-bottom: 0.7em; }
.mat-ul li::before { content: ''; position: absolute; left: 0; top: 15px; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }

.mat-note {
  background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%);
  border: 1px solid #d8ecea; border-radius: 12px;
  padding: 18px 24px; margin: 0 0 1.6em; font-size: 15.5px; line-height: 1.95; color: #47615e;
}
.mat-note strong { color: var(--dark); }

.mat-table-wrap { overflow-x: auto; margin: 0 0 1.7em; }
.mat-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.mat-table th, .mat-table td { border: 1px solid var(--border); padding: 11px 15px; text-align: left; line-height: 1.75; vertical-align: top; }
.mat-table th { background: #f5faf9; color: var(--dark); font-weight: 500; white-space: nowrap; }
.mat-table td { color: #55605e; }

.mat-tldr {
  background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%);
  border: 1px solid #d8ecea; border-radius: 14px; padding: 24px 28px; margin-bottom: 40px;
}
.mat-tldr-h { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 3px; color: var(--teal); margin-bottom: 12px; }
.mat-tldr ul { list-style: none; }
.mat-tldr li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.9; color: #47615e; margin-bottom: 5px; }
.mat-tldr li::before { content: ''; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* FAQ */
.mat-faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.mat-faq-item:first-of-type { border-top: 1px solid var(--border); }
.mat-faq-q { font-family: 'Noto Serif SC', serif; font-size: 17.5px; font-weight: 700; color: var(--dark); margin: 0 0 10px !important; }
.mat-faq-q::before { content: 'Q'; font-family: 'Bebas Neue', sans-serif; color: var(--teal); font-size: 19px; margin-right: 9px; }
.mat-faq-item p { font-size: 15.5px; margin-bottom: 0.9em; }
.mat-faq-item p:last-child { margin-bottom: 0; }

/* 上一条 / 下一条 */
.mat-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 54px 0 10px; }
.mat-pn {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: 12px;
  border: 1px solid var(--border); background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%);
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s, background 0.35s;
}
.mat-pn:hover { box-shadow: 0 14px 36px rgba(9,184,160,0.10); transform: translateY(-4px); border-color: rgba(9,184,160,0.38); background: linear-gradient(165deg, #f3fcfa 0%, #e9f6f4 100%); }
.mat-pn.next { text-align: right; }
.mat-pn.ghost { background: transparent; border-color: transparent; }
.mat-pn-l { font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 2px; color: #9aa8a6; }
.mat-pn-t { font-family: 'Noto Serif SC', serif; font-size: 16px; font-weight: 600; color: var(--dark); }

/* ---------- 右：速查框 ---------- */
.mat-side { position: sticky; top: 96px; }
.mat-fact {
  background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%);
  border: 1px solid #d8ecea; border-radius: 14px; padding: 24px 24px 20px;
}
.mat-fact-h { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 3px; color: var(--gold); margin-bottom: 16px; }
.mat-fact dl { margin: 0; }
.mat-fact-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e6f1f0; }
.mat-fact-row:last-child { border-bottom: 0; }
.mat-fact dt { font-size: 12.5px; color: #93a09e; line-height: 1.7; }
.mat-fact dd { margin: 0; font-size: 13.5px; color: #3d4a48; line-height: 1.7; }
.mat-side-cta {
  display: block; margin-top: 18px; padding: 20px 22px; border-radius: 14px;
  background: var(--dark); color: #fff;
  transition: box-shadow 0.35s, transform 0.35s;
}
.mat-side-cta:hover { box-shadow: 0 14px 36px rgba(13,27,42,0.22); transform: translateY(-4px); }
.mat-side-cta-eye { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.mat-side-cta-t { display: block; font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,0.88); }

/* ---------- 延伸阅读 ---------- */
.mat-rel { background: #f7fbfb; border-top: 1px solid var(--border); margin-top: 46px; }
.mat-rel-inner { max-width: 1240px; margin: 0 auto; padding: 54px 40px 60px; text-align: center; }
.mat-rel-eyebrow { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 5px; color: var(--teal); margin-bottom: 10px; }
.mat-rel-h { font-family: 'Noto Serif SC', serif; font-size: 24px; font-weight: 700; color: var(--dark); letter-spacing: 1px; margin-bottom: 28px; }
.mat-rel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; max-width: 940px; margin: 0 auto; }
.mat-rel-card {
  display: flex; flex-direction: column; gap: 9px; padding: 22px 24px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s, background 0.35s;
}
.mat-rel-card:hover { box-shadow: 0 14px 36px rgba(9,184,160,0.10); transform: translateY(-5px); border-color: rgba(9,184,160,0.38); background: linear-gradient(165deg, #f3fcfa 0%, #e9f6f4 100%); }
.mat-rel-meta { font-size: 12px; color: #93a09e; letter-spacing: 1px; }
.mat-rel-title { font-family: 'Noto Serif SC', serif; font-size: 16px; font-weight: 600; color: var(--dark); line-height: 1.6; flex: 1; }
.mat-rel-cta { font-size: 13px; color: var(--teal); font-weight: 500; }
.mat-rel-back { margin-top: 30px; font-size: 14px; }
.mat-rel-back a { color: #8a9694; transition: color 0.2s; }
.mat-rel-back a:hover { color: var(--teal); }

/* ============================================================
   索引页 /materials.html
   ============================================================ */
.mat-idx-hero { background: var(--dark); }
.mat-idx-hero-inner { max-width: 1240px; margin: 0 auto; padding: 74px 40px 66px; text-align: center; }
.mat-idx-hero .mat-eyebrow { color: var(--gold-light); letter-spacing: 6px; }
.mat-idx-h1 { font-family: 'Noto Serif SC', serif; font-size: 46px; font-weight: 700; color: #fff; letter-spacing: 4px; margin-bottom: 20px; }
.mat-idx-sub { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 2.05; color: rgba(255,255,255,0.72); }
.mat-idx-stats { display: flex; justify-content: center; gap: 56px; margin-top: 36px; flex-wrap: wrap; }
.mat-idx-stat b { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 38px; color: var(--gold-light); line-height: 1; letter-spacing: 2px; }
.mat-idx-stat span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 2px; }

.mat-idx-body { max-width: 1240px; margin: 0 auto; padding: 58px 40px 20px; display: grid; gap: 56px; }
.mat-idx-colhead { text-align: center; margin-bottom: 30px; }
.mat-idx-colname { font-family: 'Noto Serif SC', serif; font-size: 30px; font-weight: 700; color: var(--dark); letter-spacing: 2px; margin-bottom: 8px; }
.mat-idx-colen { font-family: 'Bebas Neue', sans-serif; font-size: 13.5px; letter-spacing: 2px; color: var(--teal); }
.mat-idx-col.fine .mat-idx-colen { color: var(--gold); }
.mat-idx-count { margin-top: 10px; font-size: 13px; color: #93a09e; }
.mat-idx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mat-idx-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%);
  border: 1px solid #d8ecea; border-radius: 14px; padding: 22px 22px 20px;
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s, background 0.35s;
}
.mat-idx-col.fine .mat-idx-card { background: linear-gradient(165deg, #fffdf7 0%, #faf6ea 100%); border-color: #f0e6c8; }
.mat-idx-card:hover { box-shadow: 0 16px 44px rgba(9,184,160,0.13); transform: translateY(-5px); border-color: rgba(9,184,160,0.40); background: linear-gradient(165deg, #f3fcfa 0%, #e9f6f4 100%); }
.mat-idx-col.fine .mat-idx-card:hover { box-shadow: 0 16px 44px rgba(184,134,11,0.14); border-color: rgba(184,134,11,0.38); background: linear-gradient(165deg, #fffcf2 0%, #f8f1de 100%); }
.mat-idx-card.soon { opacity: 0.72; }
.mat-idx-card.soon:hover { transform: none; box-shadow: none; border-color: #d8ecea; background: linear-gradient(165deg, #fbfefe 0%, #f4faf9 100%); }
.mat-idx-col.fine .mat-idx-card.soon:hover { border-color: #f0e6c8; background: linear-gradient(165deg, #fffdf7 0%, #faf6ea 100%); }
.mat-idx-name { font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 600; color: var(--dark); letter-spacing: 0.5px; }
.mat-idx-en { font-family: 'Bebas Neue', sans-serif; font-size: 12.5px; letter-spacing: 2px; color: #a8b4b2; }
.mat-idx-lead { font-size: 13.5px; line-height: 1.85; color: #5f6b69; flex: 1; margin-top: 4px; }
.mat-idx-cta { margin-top: 8px; font-size: 12.5px; color: var(--teal); letter-spacing: 0.5px; }
.mat-idx-col.fine .mat-idx-cta { color: var(--gold); }
.mat-idx-cta.soon { color: #adb9b7; }

.mat-idx-foot { background: #f7fbfb; border-top: 1px solid var(--border); margin-top: 50px; }
.mat-idx-foot-inner { max-width: 780px; margin: 0 auto; padding: 56px 40px 62px; text-align: center; }
.mat-idx-foot h2 { font-family: 'Noto Serif SC', serif; font-size: 25px; font-weight: 700; color: var(--dark); letter-spacing: 1px; margin-bottom: 16px; }
.mat-idx-foot p { font-size: 15.5px; line-height: 2; color: #5f6b69; margin-bottom: 26px; }
.mat-idx-foot-btn {
  display: inline-block; padding: 13px 34px; border-radius: 26px; background: var(--teal); color: #fff;
  font-size: 15px; letter-spacing: 1px; transition: background 0.25s, transform 0.25s;
}
.mat-idx-foot-btn:hover { background: #07a08b; transform: translateY(-2px); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .mat-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding: 40px 32px 20px; }
  .mat-toc-rail { position: static; grid-column: 1 / -1; order: -1; }
  .mat-toc ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
  .mat-idx-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .mat-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 34px 24px 16px; }
  .mat-side { position: static; order: -1; }
  .mat-toc-rail { order: -2; }
  .mat-toc ol { grid-template-columns: repeat(2, 1fr); }
  .mat-head-inner { padding: 40px 24px 34px; }
  .mat-title { font-size: 33px; }
  .mat-lead { font-size: 17px; }
  .mat-crumb, .mat-rel-inner, .mat-idx-hero-inner, .mat-idx-body, .mat-idx-foot-inner { padding-left: 24px; padding-right: 24px; }
  .mat-idx-h1 { font-size: 36px; }
  .mat-idx-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-rel-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mat-title { font-size: 27px; }
  .mat-h2-text { font-size: 21px; }
  .mat-main { font-size: 16px; }
  .mat-toc ol { grid-template-columns: 1fr; }
  .mat-idx-grid { grid-template-columns: 1fr; }
  .mat-prevnext { grid-template-columns: 1fr; }
  .mat-pn.next { text-align: left; }
  .mat-idx-stats { gap: 32px; }
  .mat-idx-stat b { font-size: 30px; }
}
