/* 磨匠机械 · 行业应用板块（industry.html / industry-*.html / case-*.html） */

/* 面包屑 */
.ind-crumbs { padding: 20px 0; background: #fff; }

/* 总览区块 */
.ind-section { padding: 40px 0 64px; background: #fff; }
.ind-case-section { background: #f4f5fa; }
.ind-section .section-heading h2 { font-size: 34px; }
.ind-section .section-heading p { font-size: 15px; }
.ind-section .section-heading > span { font-size: 64px; }

/* 行业方案卡 */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.ind-card {
  background: #fff; border: 1px solid #ececf1; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.ind-card:hover { box-shadow: 0 12px 30px rgba(20, 24, 40, .08); transform: translateY(-3px); }
.ind-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ind-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ind-card:hover .ind-card-img img { transform: scale(1.05); }
.ind-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ind-card-icon { width: 34px; height: 34px; object-fit: contain; margin-bottom: 12px; }
.ind-card-body h3 { margin: 0 0 4px; font-size: 20px; }
.ind-card-body h3 a:hover { color: #b02926; }
.ind-card-en { font-size: 11px; letter-spacing: 1px; color: #a0a3ad; margin-bottom: 12px; }
.ind-card-body p {
  margin: 0 0 16px; font-size: 14px; color: #777; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* 案例卡 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.case-card {
  background: #fff; border: 1px solid #ececf1; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.case-card:hover { box-shadow: 0 12px 30px rgba(20, 24, 40, .08); transform: translateY(-3px); }
.case-card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-tag {
  position: absolute; left: 14px; top: 14px; background: #b02926; color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 3px;
}
.case-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.case-card-body h3 { margin: 0 0 10px; font-size: 30px; line-height: 1.5; }
.case-card-body h3 a:hover { color: #b02926; }
.case-card-body p {
  margin: 0 0 14px; font-size: 14px; color: #777; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.case-more { margin-top: auto; font-size: 14px; color: #b02926; display: inline-flex; gap: 6px; align-items: center; }
.case-more:hover { text-decoration: underline; }

/* 行业页案例横卡 */
.case-grid-single { grid-template-columns: 1fr; margin: 18px 0 8px; }
.case-grid-single .case-card { display: grid; grid-template-columns: 42% 1fr; }
.case-grid-single .case-card-img { aspect-ratio: 4 / 3; min-height: 0; }
.case-grid-single .case-card-body { padding: 26px 28px; }
.case-grid-single .case-card-body p { -webkit-line-clamp: 4; }

/* 左侧行业导航（与产品分类导航一致） */
.ind-cat { display: flex; flex-direction: column; align-items: stretch; margin-left: 0; gap: 0; }
.ind-cat a {
  display: block;
  padding: 13px 20px; font-size: 15px; color: #555; text-align: left;
  border-bottom: 1px solid #f1f1f1;
  transition: color .2s, background .2s;
}
.ind-cat a:last-child { border-bottom: 0; }
.ind-cat a:hover { color: #b02926; background: #faf3f3; }
.ind-cat a.is-active { color: #b02926; font-weight: 600; background: #faf3f3; }

/* 行业介绍 */
.ind-title { margin: 0 0 16px; font-size: 28px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ind-title span { font-size: 12px; letter-spacing: 2px; color: #a0a3ad; font-weight: 400; }
.ind-lead { margin: 0 0 10px; font-size: 15px; color: #666; line-height: 2; }
.ind-subtitle {
  margin: 30px 0 16px; font-size: 20px; color: #222;
  padding-left: 12px; border-left: 4px solid #b02926; line-height: 1.4;
}
.ind-points { margin: 0; padding: 0; list-style: none; }
.ind-points li {
  position: relative; padding: 10px 0 10px 26px; font-size: 15px; color: #555;
  line-height: 1.8; border-bottom: 1px dashed #ececf1;
}
.ind-points li:before {
  content: ""; position: absolute; left: 4px; top: 20px;
  width: 7px; height: 7px; background: #b02926; border-radius: 2px;
}
.case-points { counter-reset: pt; }
.case-points li:before {
  content: counter(pt); counter-increment: pt;
  background: none; color: #b02926; font-weight: 700; font-size: 15px;
  width: auto; height: auto; left: 0; top: 10px;
}

/* 案例详情 */
.case-detail-title { margin: 0 0 16px; font-size: 28px; line-height: 1.4; }
.case-gallery { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.case-fig { margin: 0; }
.case-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.case-fig figcaption { margin-top: 8px; font-size: 13px; color: #999; text-align: center; }
.case-note { margin: 18px 0 0; font-size: 12px; color: #a0a3ad; line-height: 1.8; }

/* 上下篇导航 */
.case-prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid #ececf1;
}
.case-pn-item { display: flex; min-width: 0; }
.case-pn-link {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
  padding: 14px 18px; border: 1px solid #ececf1; border-radius: 6px;
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.case-pn-link:hover { border-color: #b02926; background-color: #fafafa; }
.case-pn-label { font-size: 12px; color: #a0a3ad; letter-spacing: 1px; }
.case-pn-title {
  font-size: 15px; color: #222; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-pn-link:hover .case-pn-title { color: #b02926; }
.case-pn-next .case-pn-link { text-align: right; align-items: flex-end; }
.case-pn-none {
  display: flex; align-items: center; width: 100%;
  padding: 14px 18px; border: 1px dashed #ececf1; border-radius: 6px;
  font-size: 14px; color: #c0c3cc;
}
.case-pn-next .case-pn-none { justify-content: flex-end; }

/* 推荐设备 */
.ind-related-grid { margin-top: 18px; }

/* 响应式 */
@media (max-width: 1100px) {
  .ind-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ind-section { padding: 30px 0 44px; }
  .ind-section .section-heading h2 { font-size: 25px; }
  .ind-section .section-heading p { font-size: 13px; }
  .ind-section .section-heading > span { font-size: 44px; }
  .ind-title { font-size: 24px; }
  .case-detail-title { font-size: 23px; }
  .case-grid-single .case-card { grid-template-columns: 1fr; }
  .case-grid-single .case-card-img { min-height: 0; aspect-ratio: 16 / 9; }
  .case-prevnext { grid-template-columns: 1fr; }
  .case-pn-next .case-pn-link { text-align: left; align-items: flex-start; }
  .case-pn-next .case-pn-none { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .ind-grid, .case-grid { grid-template-columns: 1fr; gap: 20px; }
  .ind-related-grid { grid-template-columns: 1fr; }
}
