/* 三张 Banner 统一浅色背景与产品图，桌面左文右图、手机上文下图。 */
.hero-diecasting { background: #edf4fa; }
.hero-diecasting::before { background: linear-gradient(90deg, #f6fbff 0%, rgba(246,251,255,.95) 33%, rgba(246,251,255,.2) 58%, transparent 72%); }
.hero-diecasting::after { display: none; }
.hero-diecasting .hero-slide { background-image: linear-gradient(125deg, #f6fbff 0%, #eff5fa 50%, #e0ebf4 100%); filter: none; }
.hero-diecasting .hero-copy { max-width: min(48%, 640px); }
.hero-diecasting .hero-lead { width: auto; max-width: 520px; }
.hero-diecasting h1 { font-size: clamp(48px, 5.8vw, 84px); line-height: 1.12; letter-spacing: -.04em; }
.hero-product-stage { position: absolute; inset: 84px 1% 60px 48%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.hero-product-stage::before { position: absolute; content: ""; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(169,196,216,.26), transparent 68%); }
.hero-product-stage::after { position: absolute; content: ""; left: 12%; right: 12%; bottom: 9%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(38,67,89,.13), transparent 70%); filter: blur(12px); }
.hero-product-stage img { position: relative; z-index: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 850px; max-height: 850px; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(29,58,80,.16)); }

/* 优势与应用合为一个区块，不再重复产品中心的合金图片。 */
.magnesium-section { padding: 80px 0 0; background: #f5f9fc; }
.magnesium-section .section-head { margin-bottom: 38px; }
.magnesium-section h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.3; }
.magnesium-section .section-head > p { max-width: 390px; }
.magnesium-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.magnesium-benefits article { min-width: 0; padding: 0 0 22px; border-bottom: 2px solid #dce8f1; }
.magnesium-benefits h3 { margin: 0 0 10px; color: #183348; font-size: 21px; line-height: 1.4; }
.magnesium-benefits p, .magnesium-applications p { margin: 0; color: #6b8293; font-size: 14px; line-height: 1.9; }
/* 应用领域参考整幅场景配线条图标的结构，分类切换背景，避免重复大图卡片。 */
.magnesium-applications { position: relative; isolation: isolate; overflow: hidden; margin-top: 48px; color: #fff; background: #152d40; }
.application-scenes { position: absolute; inset: 0; }
.application-scene { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.application-scene.is-active { opacity: 1; pointer-events: auto; }
.application-scene > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.application-scene::after { position: absolute; content: ""; inset: 0; background: linear-gradient(180deg, rgba(4,22,38,.66), rgba(4,22,38,.48) 40%, rgba(4,22,38,.7)); pointer-events: none; }
.application-layout { position: relative; z-index: 2; min-height: 500px; display: flex; flex-direction: column; padding-top: 36px; pointer-events: none; }
.application-heading { text-align: center; }
.application-heading .section-kicker { justify-content: center; color: #c4e4fa; }
.application-heading h3 { margin: 0; color: #fff; font-size: 36px; line-height: 1.3; }
.application-tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 24px; pointer-events: auto; }
.application-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; padding: 24px 18px 32px; color: #fff; border: 0; border-left: 1px solid rgba(255,255,255,.2); background: transparent; text-align: center; cursor: pointer; transition: background .3s; }
.application-tabs button:last-child { border-right: 1px solid rgba(255,255,255,.2); }
.application-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; }
.application-icon svg { display: block; width: 56px; height: 56px; }
.application-tabs button strong { font-size: 23px; font-weight: 600; line-height: 1.5; }
.application-tab-description { color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.8; }
.application-tabs button:focus-visible { outline: 2px solid #b5dfff; outline-offset: -6px; }

/* 首页恢复四类固定卡片，产品图片只在各自卡片内部横移。 */
.business-section { padding: 80px 0; background: #f5f9fc; }
.business-section .section-head { flex-direction: column; align-items: center; gap: 20px; margin-bottom: 38px; text-align: center; }
.business-section .section-head h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.3; }
.business-section .section-head > p { max-width: 330px; font-size: 15px; line-height: 1.85; }
.business-section .section-kicker { justify-content: center; color: #167dc6; }
.business-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.business-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e0e9f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(25,66,97,.035); transition: border-color .3s, box-shadow .3s; }
.business-card:hover { border-color: #b6d7ed; box-shadow: 0 16px 40px rgba(25,66,97,.08); }
.business-card .business-gallery { flex: 0 0 auto; aspect-ratio: 1; }
.business-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 22px 24px; }
.business-card h3 { margin: 0; color: #142e42; font-size: clamp(20px, 1.8vw, 24px); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.business-card-copy > p { margin: 0; color: #738796; font-size: 13px; line-height: 1.9; }
.business-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.business-tags span { padding: 4px 8px; border-radius: 5px; color: #668093; background: #f3f7fa; font-size: 10px; line-height: 1.6; }
.business-link { display: flex; justify-content: space-between; align-items: center; align-self: stretch; margin-top: auto; padding-top: 24px; color: #177cbf; font-size: 12px; font-weight: 600; }
.business-card-copy:focus-visible { outline: 2px solid #1688e5; outline-offset: -5px; border-radius: 12px; }
.business-gallery { position: relative; min-width: 0; overflow: hidden; background: #e8edf4; touch-action: pan-y; isolation: isolate; }
/* 方形底图完整居中；只柔化最外侧 2% 的背景，使不同屏幕比例下也没有拼接色带。 */
.business-gallery > img, .business-slide {
  position: absolute; inset: auto; top: 50%; left: 50%; width: auto; height: auto; max-width: 100%; max-height: 100%;
  transform: translate(-50%, -50%); object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent), linear-gradient(to bottom, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent), linear-gradient(to bottom, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.business-slide { opacity: 0; transition: opacity .65s ease; }
.business-slide.is-current { opacity: 1; }
.product-gallery-track { position: absolute; inset: 0; display: flex; transition: transform .65s var(--ease); }
.product-gallery .business-slide { position: static; flex: 0 0 100%; width: 100%; height: 100%; max-width: none; max-height: none; transform: none; opacity: 1; transition: none; mask-image: none; -webkit-mask-image: none; }
.business-gallery:focus-visible { outline: 2px solid #1688e5; outline-offset: -5px; }
.business-dots { display: flex; justify-content: center; position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; gap: 2px; }
.business-dot { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.business-dot::before { content: ''; width: 6px; height: 6px; border-radius: 20px; background: #91a8ba; transition: width .3s, background .3s; }
.business-dot[aria-pressed="true"]::before { width: 20px; background: #137fc9; }
.business-dot:focus-visible { outline: 2px solid #137fc9; outline-offset: -3px; }
.business-pagination { position: absolute; z-index: 1; left: 50%; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 2px 4px; color: #44627a; border-radius: 24px; background: rgba(255,255,255,.92); transform: translateX(-50%); }
.business-pagination button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; color: #167dc6; font: 24px/1 Arial, sans-serif; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.business-pagination button:hover { background: #eaf3f9; }
.business-pagination button:focus-visible { outline: 2px solid #137fc9; }
.business-pagination > span { min-width: 48px; text-align: center; font: 11px/1.4 Arial, sans-serif; }

/* 公司简介与联系信息上下独立展示；联系区域恢复车间背景与两行信息。 */
.company-section { padding: 80px 0 72px; background: #fff; }
.company-about { max-width: 920px; text-align: center; }
.company-section .section-kicker { justify-content: center; margin-bottom: 18px; }
.company-section h2, .company-contact h2 { margin: 0; color: #183348; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.3; }
.company-section .about-copy > p:not(.section-kicker) { max-width: 800px; margin: 24px auto 0; font-size: 16px; line-height: 2.1; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid #dce7ef; }
.about-facts dt { color: #167dc6; font-size: 18px; font-weight: 650; line-height: 1.5; }
.about-facts dd { margin: 8px 0 0; color: #718799; font-size: 12px; line-height: 1.8; }
.company-contact { padding: 80px 0; }
.company-contact .contact-layout { grid-template-columns: .76fr 1.24fr; gap: 64px; align-items: center; }
.company-contact .section-kicker { justify-content: flex-start; margin-bottom: 18px; }
.company-contact-heading { text-align: left; }
.company-contact .contact-side > p { margin: 0 0 24px; font-size: 15px; line-height: 1.9; }
.company-contact .contact-details { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.company-contact .contact-details a, .company-contact .contact-details address { min-width: 0; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; }
.company-contact .contact-details span { font-size: 12px; letter-spacing: .04em; }
.company-contact .contact-details strong { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.company-contact .contact-details a:focus-visible { outline: 2px solid #1688e5; outline-offset: 4px; }
.footer-main { grid-template-columns: 1.3fr .8fr 1fr; padding: 52px 0; gap: 48px; }
.footer-col:last-child { grid-column: auto; }

/* 详情页沿用网站品牌，四类内容使用同一个静态模板。 */
.business-detail-page { background: #f7fafc; }
.business-detail-page .site-header { background: rgba(255,255,255,.96); }
.detail-main { padding-top: 88px; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding: 28px 0; color: #8c9da9; font-size: 12px; line-height: 1.6; }
.detail-breadcrumb a:hover { color: #1688e5; }
.detail-breadcrumb [aria-current] { color: #426278; }
.detail-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 70px; padding-bottom: 72px; }
.detail-kicker { margin: 0 0 22px; color: #1885c9; font: 600 11px/1.5 Arial,sans-serif; letter-spacing: .15em; }
.detail-copy h1 { margin: 0 0 20px; font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -.04em; line-height: 1.15; color: #142e42; }
.detail-tagline { margin: 0 0 24px; color: #476c85; font-size: 22px; line-height: 1.6; }
.detail-intro { margin: 0; color: #6b8293; font-size: 15px; line-height: 2; }
.detail-copy .business-tags { margin-top: 28px; gap: 10px; }
.detail-copy .business-tags span { padding: 7px 12px; font-size: 12px; background: #eaf2f8; }
.detail-visual { min-width: 0; margin: 0; }
.detail-visual .business-gallery { aspect-ratio: 1; border-radius: 24px; border: 1px solid #e0e9f0; }
.detail-section { padding: 62px 0; border-top: 1px solid #e2ebf2; }
.detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.detail-heading h2 { margin: 0; color: #183348; font-size: 30px; font-weight: 600; }
.detail-heading > p { margin: 0; color: #7c91a1; font-size: 13px; line-height: 1.7; }
.detail-scope { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.detail-scope article { padding: 28px; border: 1px solid #e0e9f0; border-radius: 16px; background: #fff; }
.detail-scope small { color: #1688e5; font: 600 10px Arial,sans-serif; letter-spacing: .1em; }
.detail-scope h3 { margin: 18px 0 12px; font-size: 20px; color: #183348; }
.detail-scope p { margin: 0; color: #718799; font-size: 14px; line-height: 1.9; }
.detail-project { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 70px; }
.detail-project h2 { margin: 0; color: #183348; font-size: 30px; line-height: 1.4; }
.detail-project p { margin: 0; color: #6c8395; font-size: 15px; line-height: 1.9; }
.detail-project .business-tags { margin-top: 22px; }
.detail-project .business-tags span { font-size: 12px; padding: 6px 10px; background: #eaf2f8; }
.detail-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.detail-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 16px 20px; border: 1px solid #dce7ef; border-radius: 12px; background: #fff; color: #42657e; font-size: 14px; }
.detail-shortcuts a:hover, .detail-shortcuts a[aria-current="page"] { color: #0878c8; border-color: #a7cfea; background: #edf7fe; }
.detail-shortcuts a span { color: #7ba9ca; }
.detail-return { display: inline-block; margin-top: 28px; color: #688397; font-size: 13px; }

@media (max-width: 1050px) {
  .magnesium-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .magnesium-benefits h3 { font-size: 19px; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-card h3 { font-size: 22px; }
  .about-facts { gap: 10px; }
  .about-facts dt { font-size: 16px; }
  .company-contact .contact-layout { grid-template-columns: .65fr 1.35fr; gap: 36px; }
  .footer-main { gap: 30px; }
  .detail-hero { gap: 36px; }
  .detail-project { gap: 36px; }
}
@media (max-width: 780px) {
  .hero-diecasting { background: #f6fbff; }
  .hero-diecasting::before { background: none; }
  .hero-diecasting .hero-slides { background: #edf4fa; }
  .hero-diecasting .hero-slide { background-image: linear-gradient(180deg, #f6fbff, #eaf2f8); }
  .hero-diecasting .hero-copy { max-width: 100%; }
  .hero-product-stage { inset: 20px 0 28px; }
  .hero-product-stage img { max-width: none; max-height: none; transform: scale(1.1); filter: drop-shadow(0 14px 12px rgba(29,58,80,.14)); }
  .hero-diecasting h1 { font-size: clamp(38px, 10.6vw, 58px); line-height: 1.12; }
  .hero-diecasting .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .magnesium-section { padding: 52px 0 0; }
  .magnesium-section .section-head { margin-bottom: 28px; }
  .magnesium-section h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .magnesium-benefits { gap: 12px; }
  .magnesium-benefits article { padding: 10px 0 18px; }
  .magnesium-benefits h3 { margin: 0 0 8px; font-size: 18px; }
  .magnesium-benefits p { font-size: 12px; line-height: 1.8; }
  .magnesium-applications { margin-top: 34px; }
  .application-layout { min-height: 520px; padding-top: 28px; }
  .application-heading { text-align: center; }
  .application-heading h3 { font-size: 28px; }
  .application-scene > img { object-position: 35% center; }
  .application-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  .application-tabs button { gap: 12px; padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.2); }
  .application-tabs button:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.2); }
  .application-icon { width: 52px; height: 52px; margin-bottom: 2px; }
  .application-icon svg { width: 44px; height: 44px; }
  .application-tabs button strong { font-size: 18px; }
  .application-tab-description { font-size: 11px; }
  .business-section { padding: 64px 0; }
  .business-section .section-head { align-items: center; margin-bottom: 28px; }
  .business-section .section-head h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .business-section .section-head > p { font-size: 14px; }
  .business-grid { gap: 16px 12px; }
  .business-card { border-radius: 14px; }
  .business-card-copy { align-items: center; padding: 20px 12px; text-align: center; }
  .business-card h3 { margin: 0; font-size: clamp(16px, 4.5vw, 20px); }
  .business-card-copy > p { font-size: 12px; }
  .business-link { justify-content: center; padding-top: 18px; }
  .business-pagination { gap: 0; bottom: 5px; padding: 0 2px; }
  .business-pagination button { width: 32px; height: 32px; }
  .business-pagination > span { min-width: 40px; font-size: 10px; }
  .company-section, .company-contact { padding: 56px 0; }
  .company-section .about-copy > p:not(.section-kicker) { font-size: 15px; line-height: 2; }
  .company-section .about-facts { gap: 12px; margin-top: 28px; padding-top: 24px; }
  .about-facts dd { font-size: 11px; }
  .company-contact .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .company-contact-heading { text-align: center; }
  .company-contact .section-kicker { justify-content: center; }
  .company-contact .contact-side > p { max-width: 360px; margin: 0 auto 18px; font-size: 14px; }
  .company-contact .contact-details a, .company-contact .contact-details address { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; text-align: center; }
  .company-contact .contact-details strong { font-size: 17px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 40px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { padding: 0; border: 0; }
  .detail-main { padding-top: 72px; }
  .detail-breadcrumb { padding: 24px 0; gap: 9px; font-size: 11px; }
  .detail-hero { grid-template-columns: minmax(0,1fr); gap: 30px; padding-bottom: 40px; }
  .detail-copy { text-align: center; }
  .detail-kicker { font-size: 10px; margin-bottom: 16px; }
  .detail-copy h1 { font-size: 38px; margin-bottom: 16px; }
  .detail-tagline { font-size: 18px; margin-bottom: 18px; }
  .detail-intro { font-size: 14px; line-height: 1.9; }
  .detail-copy .business-tags { justify-content: center; margin-top: 22px; }
  .detail-copy .business-tags span { font-size: 11px; }
  .detail-visual .business-gallery { aspect-ratio: 1; border-radius: 20px; }
  .detail-section { padding: 40px 0; }
  .detail-heading { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .detail-heading h2, .detail-project h2 { font-size: 26px; }
  .detail-scope { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .detail-scope article { padding: 24px; text-align: center; }
  .detail-scope h3 { margin: 12px 0; }
  .detail-project { grid-template-columns: minmax(0,1fr); gap: 18px; text-align: center; }
  .detail-project p { font-size: 14px; }
  .detail-project .business-tags { justify-content: center; }
  .detail-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .detail-shortcuts a { padding: 14px; font-size: 12px; min-height: 60px; }
  .detail-return { display: block; text-align: center; }
}
@media (max-width: 380px) {
  .magnesium-benefits h3 { font-size: 16px; }
  .detail-copy h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery-track, .application-scene { transition: none; }
  .business-slide, .business-card, .business-dot::before { transition: none; }
}
