/*
 * 工程机械行业解决方案独立样式文件
 * 设计哲学：工业机能主义与目录型 B2B 展示美学。
 * FAQ 采用右侧技术资料侧栏、金黄色 Q 圆标、克制阴影与手册式折叠交互，强化可靠、清晰、高效的工程设备解决方案气质。
 * 图片路径由 HTML 内的 --hero-image、--scene-image、--product-image 控制；替换图片时只需修改 HTML 对应路径。
 */
:root {
  --ink: #151b20;
  --muted: #626970;
  --line: #e8ecef;
  --panel: #ffffff;
  --paper: #f5f6f7;
  --yellow: #f0b91e;
  --yellow-dark: #d69f0d;
  --shadow: 0 8px 24px rgba(18, 25, 34, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
button { font: inherit; }

.hero {
  position: relative;
  min-height: 312px;
  background-image: linear-gradient(90deg, rgba(8,12,17,.96) 0%, rgba(8,12,17,.78) 33%, rgba(8,12,17,.18) 66%, rgba(8,12,17,.05) 100%), var(--hero-image), linear-gradient(115deg, #12171d 0%, #30302b 58%, #b9851a 100%);
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 18%, rgba(255,255,255,.18), transparent 24%), linear-gradient(0deg, rgba(0,0,0,.12), transparent 48%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
  padding: 26px 0 24px 46px;
  color: white;
}
.breadcrumb { font-size: 15px; color: rgba(255,255,255,.86); margin-bottom: 18px; }
.breadcrumb span { padding: 0 8px; color: rgba(255,255,255,.55); }
.hero h1 { margin: 0; font-size: clamp(38px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.08; font-weight: 800; }
.title-line, .section-heading span { display: block; width: 38px; height: 3px; background: var(--yellow); margin-top: 13px; }
.hero p { margin: 13px 0 24px; font-size: 16px; line-height: 1.85; max-width: 620px; color: rgba(255,255,255,.95); font-weight: 500; }
.hero-features { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 18px 28px; max-width: 900px; }
.hero-features article { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-features article > div { flex: 1 1 120px; min-width: 0; }
.hero-features .icon { width: 34px; height: 34px; flex: 0 0 auto; color: var(--yellow); }
.hero-features strong { display: block; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.hero-features span { display: block; margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.72); white-space: nowrap; }
.hero-features .feature-img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.icon { position: relative; display: inline-block; }
.icon::before { content: ""; position: absolute; inset: 6px; border: 2px solid currentColor; border-radius: 8px; }
.icon-shield::before { border-radius: 12px 12px 16px 16px; }
.icon-box::before { transform: rotate(45deg); border-radius: 3px; }
.icon-truck::before { border-radius: 3px; }
.icon-headset::before { border-radius: 50% 50% 20% 20%; }

.content-shell { display: grid; grid-template-columns: minmax(330px, 30%) minmax(0, 1fr) minmax(280px, 22%); gap: 16px; padding: 16px 24px 16px; align-items: start; }
.post-content-full { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.panel-card { background: rgba(255,255,255,.98); border: 1px solid #eceff1; border-radius: 8px; box-shadow: var(--shadow); }
.applications { padding: 21px 22px 28px; }
.section-heading h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; color: #11181e; }
.section-heading span { margin-top: 8px; width: 30px; height: 2px; }
.scene-list { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.scene-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 148px;
  align-items: center;
  min-height: 85px;
  border: 1px solid #eceff1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.scene-card + .scene-card { margin-top: -1px; }
.scene-card:hover { transform: translateX(3px); border-color: #f0c244; box-shadow: 0 12px 24px rgba(29, 31, 35, .08); z-index: 1; }
.scene-icon {
  width: 52px;
  height: 52px;
  margin-left: 15px;
  display: grid;
  place-items: center;
  color: #e6ad1b;
  border-radius: 50%;
  background: linear-gradient(135deg, #fffdf4, #fff);
  box-shadow: 0 8px 18px rgba(199, 148, 26, .12);
  font-size: 26px;
  font-weight: 700;
}
.scene-text { padding: 10px 12px 10px 10px; }
.scene-text h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.1; font-weight: 800; color: #11181e; }
.scene-text p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.scene-image {
  height: 78px;
  margin-right: 10px;
  border-radius: 6px;
  background-image: var(--scene-image), linear-gradient(135deg, #0f1216, #403216 55%, #d29a1d);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.products-stack { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.products { padding: 21px 22px 18px; min-height: 100%; display: flex; flex-direction: column; }
.tabs { margin-top: 14px; display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 10px 8px 13px; color: #5c646c; font-size: 16px; font-weight: 500; position: relative; transition: color .16s ease; cursor: pointer; }
.tabs button.active, .tabs button:hover { color: var(--yellow-dark); }
.tabs button.active::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: var(--yellow); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; flex: 1; align-items: stretch; }
.product-card { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 15px 10px 14px; min-height: 312px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px rgba(22, 27, 32, .09); border-color: #edc44b; }
.product-image { min-height: 200px; border-radius: 6px; display: grid; place-items: center; background-image: var(--product-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.product-card .product-title { margin: 11px 0 8px; font-size: 16px; line-height: 1.3; color: #14191e; font-weight: 800; }
.product-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #676f76; flex: 1; }
.product-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--yellow-dark); text-decoration: none; font-size: 12px; font-weight: 700; }
.product-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.product-more-button { min-width: 226px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(214, 159, 13, .45); border-radius: 6px; color: var(--yellow-dark); background: #fff; font-size: 14px; font-weight: 800; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.product-more-button:hover { border-color: var(--yellow); background: #fffaf0; transform: translateY(-1px); }
.why-strip { width: 100%; padding: 26px 24px; display: grid; grid-template-columns: minmax(300px, 27%) minmax(0, 1fr); gap: 28px; align-items: center; background: linear-gradient(90deg, #fffdf7 0%, #ffffff 38%, #fffdf8 100%); border-color: #f2e7c8; box-shadow: 0 8px 24px rgba(214, 159, 13, .045); }
.why-intro { min-width: 0; }
.why-strip h2 { margin: 0; font-size: 26px; line-height: 1.22; font-weight: 800; letter-spacing: -.04em; color: #11181e; white-space: nowrap; }
.why-strip h2 span { color: var(--yellow-dark); }
.why-intro p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #4f5961; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; width: 100%; }
.why-grid article { display: flex; align-items: center; gap: 16px; min-width: 0; justify-content: flex-start; padding: 0 22px; border-left: 1px solid #f0eadc; }
.why-icon { width: 36px; height: 36px; display: grid; place-items: center; font-style: normal; font-size: 28px; color: #101820; flex: 0 0 auto; }
.why-img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.why-grid strong, .why-grid .why-title { display: block; margin: 0; font-size: 15px; line-height: 1.35; font-weight: 800; color: #20252a; }
.why-grid p { margin: 6px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.cta-band { width: 100%; min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 14px 28px; border-radius: 8px; background: linear-gradient(100deg, #0d131a 0%, #111b28 64%, #0a1018 100%); color: white; box-shadow: 0 14px 32px rgba(8, 13, 19, .16); }
.cta-left { display: flex; align-items: center; gap: 16px; }
.cta-left > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f4af16; color: #111820; flex: 0 0 auto; font-weight: 800; }
.cta-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex: 0 0 auto; }
.cta-left .cta-title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.cta-left p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }
.cta-button { min-width: 188px; height: 44px; padding: 0 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #f5a915; color: #161616; text-decoration: none; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.cta-button:hover { transform: translateX(2px); background: #ffc038; }

.faq-panel {
  padding: 21px 22px 24px;
  position: sticky;
  top: calc(var(--site-header-height, 76px) + 14px);
  align-self: start;
}
.faq-heading { margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-question-title { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.faq-item {
  border: 1px solid #eceff1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.faq-item:hover { border-color: #f0c244; box-shadow: 0 12px 26px rgba(22, 27, 32, .06); transform: translateY(-1px); }
.faq-item.active { border-color: #f2d682; box-shadow: 0 14px 30px rgba(214, 159, 13, .08); }
.faq-question {
  width: 100%;
  min-height: 56px;
  padding: 14px 14px;
  border: 0;
  background: #fff;
  color: #1b2228;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}
.faq-question span:nth-child(2) { font-size: 15px; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.faq-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f4b11a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 15px rgba(244, 177, 26, .22);
}
.faq-arrow {
  width: 17px;
  height: 17px;
  color: #111820;
  justify-self: end;
  transition: transform .2s ease, color .2s ease;
}
.faq-item.active .faq-arrow { color: var(--yellow-dark); }
.faq-answer {
  padding: 0 15px 16px 45px;
  color: #7a8288;
  animation: faqAnswerIn .22s ease both;
}
.faq-answer p { margin: 0; font-size: 13px; line-height: 1.78; }
@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #111820; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .18s ease; z-index: 40; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  .content-shell { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
  .faq-panel { position: static; grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .content-shell { grid-template-columns: 1fr; }
  .products-stack { order: 1; }
  .applications { order: 2; }
  .faq-panel { order: 3; }
  .why-strip { order: 4; grid-template-columns: 1fr; gap: 18px; }
  .why-strip h2 { white-space: normal; }
  .why-grid article:first-child { border-left: 0; }
  .cta-band { order: 5; }
  .scene-card { grid-template-columns: 82px minmax(0, 1fr) 180px; }
}
@media (max-width: 920px) {
  .hero-content { padding: 28px 22px 24px; }
  .hero-features, .product-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid article:nth-child(odd) { border-left: 0; }
}
@media (max-width: 640px) {

  /* Prevent horizontal overflow on mobile */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Hero */
  .hero {
    min-height: 52vw;
    background-position: center center;
  }
  .hero-content {
    width: 100%;
    padding: 20px 16px 18px;
  }
  .breadcrumb { display: none; }
  .hero h1 { font-size: clamp(24px, 6.5vw, 36px); }
  .hero p { font-size: 13px; margin: 8px 0 16px; }

  /* Hero features: 4-col grid, icon top, text below */
  .hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 100%;
    margin-top: 12px;
    background: rgba(20, 20, 20, 0.55);
    border-radius: 8px;
    padding: 10px 4px 12px;
  }
  .hero-features article {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 4px 2px;
  }
  .hero-features article > div {
    flex: none;
    min-width: 0;
  }
  .hero-features .feature-img {
    width: 28px;
    height: 28px;
  }
  .hero-features strong {
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
  }
  .hero-features span {
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
    color: rgba(255,255,255,.65);
  }

  /* Content shell: reset order set by 1180px query */
  .applications { order: unset; }
  .products-stack { order: unset; }
  .faq-panel { order: unset; }
  .cta-band { order: unset; }
  .content-shell { grid-template-columns: 1fr !important; padding: 10px 10px; gap: 10px; }
  .post-content-full { padding: 0 10px 16px; }
  .applications, .products, .faq-panel { padding: 16px 12px; }
  .why-strip { padding: 16px 12px; }

  /* Applications: horizontal scroll, image-on-top cards */
  .scene-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    margin-top: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scene-list::-webkit-scrollbar { display: none; }
  .scene-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 150px;
    min-width: 150px;
    min-height: unset;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #e8ecef;
    background: #fff;
    grid-template-columns: unset;
    position: relative;
  }
  .scene-card + .scene-card { margin-top: 0; }
  .scene-card:hover { transform: none; }
  .scene-image {
    order: -1;
    width: 100%;
    height: 110px;
    flex: 0 0 110px;
    margin: 0;
    border-radius: 0;
    grid-column: unset;
  }
  .scene-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-left: 0;
    z-index: 2;
  }
  .scene-text {
    padding: 8px 8px 10px;
    flex: 1;
  }
  .scene-text h3 { font-size: 13px; margin: 0 0 3px; }
  .scene-text p { font-size: 11px; line-height: 1.5; }

  /* Products: scrollable tabs + horizontal-scroll left-image right-text cards */
  .tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #e8ecef;
    grid-template-columns: unset;
    gap: 0;
    margin-top: 12px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { min-width: 68px; font-size: 14px; padding: 9px 6px 12px; flex-shrink: 0; }
  .product-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: unset;
    align-items: stretch;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-category-heading { display: none; }
  .product-card {
    display: flex;
    flex-direction: row;
    flex: 0 0 calc(100vw - 44px);
    min-width: calc(100vw - 44px);
    min-height: 160px;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: start;
    align-items: stretch;
    border: 1px solid #e8ecef;
    background: #fff;
  }
  .product-image {
    width: 130px;
    flex: 0 0 130px;
    min-height: 160px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
  }
  .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
  }
  .product-card .product-title {
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.3;
    padding: 14px 12px 0;
  }
  .product-body > p {
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 10px;
    padding: 0 12px;
    flex: 1;
  }
  .product-body > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--yellow-dark);
    border: 1px solid rgba(214,159,13,.45);
    border-radius: 6px;
    padding: 7px 12px;
    text-decoration: none;
    margin: 0 12px 14px;
    width: fit-content;
  }
  .product-more-button { width: 100%; min-width: 0; }

  /* FAQ */
  .faq-question { grid-template-columns: 22px minmax(0, 1fr) 16px; padding: 13px 12px; }
  .faq-answer { padding: 0 12px 14px 43px; }

  /* Why Grid: 2-col */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid article { border-left: 0; padding: 12px 6px; border-top: 1px solid #f0eadc; }
  .why-grid article:first-child, .why-grid article:nth-child(2) { border-top: 0; }

  /* CTA Band */
  .cta-band { align-items: stretch; flex-direction: column; padding: 18px; }
  .cta-left .cta-title { font-size: 18px; }
  .cta-button { width: 100%; }
}


/* 与 factory.html 共用的固定顶部导航适配 */
main {
  padding-top: var(--site-header-height);
}

.hero {
  min-height: 314px;
}

@media (max-width: 640px) {
  main {
    padding-top: var(--site-header-height);
  }
}


/* SEO heading 辅助类：为产品分类提供 H3 语义，不改变前端视觉。 */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.product-category-heading { grid-column: 1 / -1; }


/* ===== Mobile scroll-arrow wrappers ===== */
.scroll-wrap {
  position: relative;
}
.scroll-arrow {
  display: none;
}
@media (max-width: 640px) {
  .scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    cursor: pointer;
    color: #333;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .scroll-arrow:active { background: #f0f0f0; }
  .scroll-arrow.arrow-left  { left: 0; }
  .scroll-arrow.arrow-right { right: 0; }
  .scroll-arrow.hidden { opacity: 0; pointer-events: none; }

  /* scene-list wrap */
  .scene-list-wrap { position: relative; }
  .scene-list-wrap .scene-list {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* tabs wrap */
  .tabs-wrap { position: relative; }
  .tabs-wrap .tabs {
    padding-left: 28px;
    padding-right: 28px;
  }

  /* product-grid wrap */
  .product-grid-wrap { position: relative; }
}
