:root {
	--case-red: #0ea5e9;
	--case-ink: #171a1d;
	--case-muted: #68717a;
	--case-line: #dde1e4;
	--case-soft: #f4f5f6;
}

.case-page-shell { overflow: hidden; background: #fff; color: var(--case-ink); }
.case-page-shell *, .case-page-shell *::before, .case-page-shell *::after { box-sizing: border-box; }
.case-container { width: calc(100% - 64px); max-width: 1320px; margin: 0 auto; }

.case-hero { position: relative; height: clamp(360px, 33.33vw, 640px); margin-top: 100rem; overflow: hidden; }
.case-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: case-banner-wave 2s alternate; }
@keyframes case-banner-wave {
	0% { transform: scale(1.1); }
	100% { transform: scale(1); }
}
.case-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 249, 252, .22), rgba(244, 249, 252, .06) 56%, transparent); }
/* 2026-11-16 客户要求：应用行业 banner 的三行字「中心点靠左居中」。
   即整块贴左，起始位置与产品中心 banner 对齐（left:7.5%），1280 等窄屏也不会出界），
   但块内三行共享一条竖直中心线：text-align:center 管标题与副标，胶囊另加 justify-content:center。
   垂直仍以 top:50% + translateY(-50%) 居中。 */
.case-hero-copy { position: absolute; z-index: 1; top: 50%; left: 7.5%; width: min(760px, 80%); transform: translateY(-50%); text-align: left; color: #173752; }
.case-hero-copy h1 { margin: 0 0 20px; font-size: clamp(42px, 4vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: 0; }
.case-hero-copy h1 em { color: #0879c9; font-style: normal; }
.case-hero-copy .case-hero-subtitle { margin: 0 0 28px; color: #102f49; font-size: clamp(18px, 1.6vw, 30px); font-weight: 500; line-height: 1.45; }
.case-hero-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px; }
.case-hero-tags a { display: inline-flex; min-width: 208px; height: 62px; padding: 0 24px; align-items: center; justify-content: center; border: 2px solid #1d608b; border-radius: 14px; color: #102f49; background: rgba(255, 255, 255, .2); font-size: 24px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .22s, border-color .22s, color .22s; }
/* 2026-11-23 客户要求：三个胶囊按钮可点击（对应产品分类），hover 底色取「一台好温控」的深藏蓝 #173752 */
.case-hero-tags a:hover,
.case-hero-tags a:focus-visible { background: #173752; border-color: #173752; color: #fff; }
.case-heading p, .case-detail header > p { margin: 0 0 14px; color: var(--case-red); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.case-breadcrumb { border-bottom: 1px solid var(--case-line); background: #fff; }
.case-breadcrumb .case-container { min-height: 58px; display: flex; align-items: center; font-size: 14px; color: #7b838a; }
.case-breadcrumb a { color: #555d64; }

.case-solution-nav { border-bottom: 1px solid var(--case-line); background: var(--case-soft); }
.case-solution-nav ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.case-solution-nav li { min-width: 0; border-right: 1px solid #fff; }
.case-solution-nav a { display: flex; min-height: 68px; padding: 12px 14px; align-items: center; justify-content: center; text-align: center; color: #3d444a; font-size: 15px; line-height: 1.4; transition: color .2s, background-color .2s; }
.case-solution-nav li.active a, .case-solution-nav a:hover, .case-solution-nav a:focus-visible { background: var(--case-red); color: #fff; }

/* 2026-11-12 客户要求：原 pale blue(#d9e8f8) 客户觉得与白/灰页面割裂。
   改为柔和冷中性灰 #f4f6f8（与页面 --case-soft #f4f5f6 / 筛选条 #f7f8f9 同族），
   去除蓝色、保留区块层次（卡片白底+阴影仍清晰浮起）。 */
.case-main { padding: 82px 0 96px; background: #f4f6f8; }
.case-heading { display: flex; align-items: end; justify-content: center; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--case-line); text-align: center; }
.case-heading h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 600; }
.case-heading > span { color: var(--case-muted); font-size: 14px; }
.case-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: -6px 0 36px; border-top: 1px solid var(--case-line); border-bottom: 1px solid var(--case-line); background: #f7f8f9; }
.case-filter { flex: 1 1 0; min-width: 0; height: 58px; padding: 0 14px; border: 0; border-right: 1px solid #fff; border-radius: 0; color: #333b42; background: transparent; font: inherit; font-size: clamp(13px, 1.05vw, 16px); line-height: 58px; text-align: center; white-space: nowrap; cursor: pointer; font-weight: 700; transition: color .2s, background-color .2s; }
.case-filter:first-child { border-left: 1px solid #fff; }
/* hover 单独拆出来并加深（客户要求：原来 hover 的淡蓝太浅，要深一点） */
.case-filter:hover, .case-filter:focus-visible { color: #fff; background: #144ca1; }
/* 选中项：2026-11-05 客户要求改成全站主蓝 #144ca1（与「立即询价」按钮、参数表头一致） */
.case-filter.is-active { color: #fff; background: #144ca1; font-weight: 700; }
.case-card[hidden] { display: none; }
.case-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.case-card { min-width: 0; scroll-margin-top: 110px; background: #fff; border: 0; box-shadow: 0 8px 28px rgba(18, 26, 36, .08); transition: box-shadow .2s, transform .2s; }
.case-card + .case-card { margin-top: 36px; }
.case-card > a { display: grid; grid-template-columns: 392px minmax(0, 1fr); gap: 68px; min-height: 320px; padding: 32px; align-items: center; color: inherit; }
.case-card:nth-child(even) > a { grid-template-columns: minmax(0, 1fr) 392px; }
.case-card:nth-child(even) .case-card-media { order: 2; }
.case-card:nth-child(even) .case-card-copy { order: 1; }
/* 2026-11-17 客户要求：案例列表缩略图外框与案例详情主图统一（2px #a7b4c1 / 8px 圆角 / 柔和投影） */
.case-card-media { position: relative; height: 220px; min-height: 220px; overflow: hidden; background: #e8ebed; border: 2px solid #a7b4c1; border-radius: 8px; box-shadow: 0 14px 34px rgba(22,43,62,.16); }
.case-card-media::after { display: none; }
.case-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.case-card-media span, .case-card-copy time { display: none; }
.case-card-copy { display: flex; min-width: 0; padding: 0; flex-direction: column; align-items: flex-start; }
/* 2026-11-13 客户要求：标题字重与新闻列表标题统一（500 → 600） */
.case-card-copy h3 { position: relative; margin: 0 0 42px; color: #1f2a37; font-size: 28px; line-height: 30px; font-weight: 600; transition: color .2s; }
.case-card-copy h3::after { content: ''; position: absolute; left: 0; bottom: -20px; width: 60px; height: 2px; background: var(--case-red); }
.case-card-copy p { display: -webkit-box; min-height: 72px; margin: 0 0 28px; overflow: hidden; color: #68717a; font-size: 14px; line-height: 22px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.case-more { display: inline-grid; grid-template-columns: 40px 108px; height: 40px; margin-top: auto; align-items: center; justify-items: center; color: #fff; font-size: 14px; line-height: 40px; transition: filter .2s, transform .2s; }
/* 2026-11-05 客户指定：「+」小方块用主蓝 #144ca1，右侧「查看详情」文字块用 #0879c9 */
.case-more i { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #144ca1; font-style: normal; color: #fff; font-size: 22px; font-weight: 500; }
.case-more { background: #0879c9; }
.case-more::after { content: ''; width: 0; }
.case-card:hover, .case-card:focus-within { box-shadow: 0 14px 34px rgba(17, 24, 31, .13); transform: translateY(-2px); }
.case-card a:hover .case-card-media img, .case-card a:focus-visible .case-card-media img { transform: scale(1.04); }
.case-card a:hover h3, .case-card a:focus-visible h3 { color: #144ca1; }
.case-card a:hover .case-more, .case-card a:focus-visible .case-more { filter: brightness(1.04); transform: translateX(3px); }

/* 分页：与产品中心列表页保持一致（36px 圆角矩形、白底细边、当前页深蓝 #144ca1、上/下一页文字按钮，2026-11-05） */
.case-pagination { display: flex; min-height: 36px; margin-top: 58px; align-items: center; justify-content: center; gap: 8px; }
.case-pagination a { display: inline-flex; width: 36px; height: 36px; padding: 0; align-items: center; justify-content: center; border: 1px solid #e1e4e8; border-radius: 6px; color: #4b5058; background: #fff; font-size: 14px; line-height: 1; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.case-pagination a:hover { border-color: rgba(20, 76, 161, .45); color: #144ca1; }
.case-pagination .page-num-current,
.case-pagination .page-num-current:hover,
.case-pagination .active { border-color: #144ca1; background: #144ca1; color: #fff; }
.case-pagination .case-page-prev,
.case-pagination .case-page-next,
.case-pagination .case-page-first,
.case-pagination .case-page-last { width: auto; min-width: 60px; padding: 0 14px; }
/* PbootCMS 页码过多时会插入 <span class="page-num">···</span> 作为省略号，与页码同尺寸但不加边框 */
.case-pagination span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: #4b5058; font-size: 14px; line-height: 1; }
/* 第一页的「上一页」、末页的「下一页」由 PbootCMS 输出 href="javascript:;"，置灰不可点 */
.case-pagination .case-page-prev[href="javascript:;"],
.case-pagination .case-page-next[href="javascript:;"] { border-color: #eceef1; background: #fafbfc; color: #b9c0c7; cursor: default; pointer-events: none; }
/* 「首页」在第一页、「尾页」在最后一页时由脚本加 is-disabled 置灰（它们的 href 是真实地址，不能靠 href 判断） */
.case-pagination .case-page-first.is-disabled,
.case-pagination .case-page-last.is-disabled { border-color: #eceef1; background: #fafbfc; color: #b9c0c7; cursor: default; pointer-events: none; }

/* 案例详情：去掉顶部大图后，正文自己让开固定头部（100rem，≈1rem 随屏宽缩放），再加 44px 呼吸位 */
/* 2026-11-14 客户要求：两侧空白加底色，让中间正文栏一眼可辨 */
.case-detail-main { background: #eaeff5; padding: calc(100rem + 44px) 0 96px; }
.case-detail { max-width: 1080px; padding: 60px 64px 64px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(20,27,32,.06); }
.case-detail > header { margin-bottom: 34px; text-align: center; }
.case-detail > header h1 { margin: 0 0 16px; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.22; }
.case-detail > header time { color: #858c92; font-size: 13px; }
/* 2026-11-14 客户要求：封面图去掉灰底留白，改为贴图尺寸 + 细边框 */
.case-detail-cover { max-width: 620px; margin: 0 auto 36px; text-align: center; }
/* 2026-11-16 客户要求：封面图统一尺寸(3:2)，外框改参考新闻列表卡（#dce3ea 细描边/6px 圆角/柔和投影） */
.case-detail-cover img { display: block; width: 100%; max-width: 620px; aspect-ratio: 3 / 2; height: auto; margin: 0 auto; object-fit: cover; object-position: center; background: #ffffff; border: 2px solid #a7b4c1; border-radius: 8px; box-shadow: 0 14px 34px rgba(22,43,62,.16); }
.case-detail-summary { margin-bottom: 30px; padding: 24px 28px; border-left: 3px solid var(--case-red); background: var(--case-soft); color: #555e65; font-size: 17px; line-height: 1.9; }
.case-richtext { color: #343a3f; font-size: 16px; line-height: 1.9; }
.case-richtext img { max-width: 100%; height: auto; }
.case-detail-back { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--case-line); }
/* 2026-11-17 客户要求：默认底色取参考深蓝 #144ca1，hover 取参考淡蓝 #0879c9 */
.case-back-link { display: inline-flex; height: 42px; padding: 0 22px; align-items: center; gap: 6px; border: 1px solid #144ca1; border-radius: 999px; background: #144ca1; color: #fff !important; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; }
/* 保险：无论旧版 .case-detail-back a 之类的高特异性规则是否残留，白字都不可被压 */
.case-detail-back a.case-back-link,
.case-back-link:link,
.case-back-link:visited { color: #fff !important; }
.case-back-link:hover { border-color: #0879c9; background: #0879c9; transform: translateY(-2px); }

/* 案例详情页 hero 收成背景条：不再重复"应用行业中心"大标题，
   让案例标题、封面与正文尽量出现在同一屏（客户反馈进去只看到大图、看不到内容）
   注：news-page.css 的内页全屏 hero 规则带 !important，这里必须同级才生效，仅作用于案例详情页 */
.case-page-shell .case-detail-hero { height: clamp(150px, 14vw, 230px) !important; min-height: 0 !important; }
.case-detail-hero .case-hero-copy { display: none; }

@media (max-width: 1024px) {
	.case-hero { margin-top: 60px; }
	/* 无顶部大图的案例详情：让开 60px 固定头部 */
	.case-detail-main { padding-top: calc(60px + 40px); }
	.case-detail { padding: 48px 44px 56px; }
	.case-hero-copy { left: 6%; width: 86%; }
	.case-hero-tags { gap: 14px; }
	.case-hero-tags a { min-width: 150px; height: 50px; padding: 0 18px; border-radius: 10px; font-size: 18px; }
	.case-list { grid-template-columns: 1fr; }
	.case-card > a, .case-card:nth-child(even) > a { grid-template-columns: 320px minmax(0, 1fr); gap: 34px; }
	.case-card:nth-child(even) .case-card-media, .case-card:nth-child(even) .case-card-copy { order: initial; }
	.case-solution-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.case-solution-nav li { border-bottom: 1px solid #fff; }
}

@media (max-width: 767px) {
	.case-container { width: calc(100% - 32px); }
	.case-hero { height: 320px; }
	.case-detail-hero { height: 130px !important; }
	.case-hero > img { object-position: 57% center; }
	.case-hero-copy { top: 50%; right: 24px; left: 24px; width: auto; max-width: none; margin: 0; transform: translateY(-50%); }
	.case-hero-copy h1 { margin-bottom: 14px; font-size: 36px; }
	.case-hero-copy .case-hero-subtitle { margin-bottom: 22px; font-size: 16px; line-height: 1.5; }
	.case-hero-tags { flex-wrap: nowrap; gap: 8px; }
	.case-hero-tags a { min-width: 0; height: 40px; padding: 0 12px; border-width: 1px; border-radius: 7px; font-size: 14px; white-space: nowrap; }
	.case-breadcrumb .case-container { min-height: 48px; }
	.case-solution-nav { overflow-x: auto; }
	.case-solution-nav .case-container { width: max-content; min-width: 100%; }
	.case-solution-nav ul { display: flex; }
	.case-solution-nav li { flex: 0 0 145px; }
	.case-solution-nav a { min-height: 54px; font-size: 14px; }
	.case-main { padding: 54px 0 68px; }
	.case-detail-main { padding: calc(60px + 36px) 0 68px; }
	.case-detail { padding: 30px 20px 46px; border-radius: 6px; }
	.case-heading { display: block; margin-bottom: 26px; }
	.case-heading h2 { font-size: 28px; }
	.case-heading > span { display: block; margin-top: 12px; }
	.case-filters { width: auto; margin: -6px 0 24px; border: 0; background: transparent; gap: 8px; }
	.case-filter { flex: 0 0 auto; min-width: 68px; height: 38px; padding: 0 14px; border: 1px solid var(--case-line); font-size: 14px; line-height: 36px; background: #fff; }
	.case-filter:first-child { border-left: 1px solid var(--case-line); }
	.case-list { gap: 18px; }
	.case-card + .case-card { margin-top: 20px; }
	.case-card > a, .case-card:nth-child(even) > a { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 18px; }
	.case-card-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
	.case-card-copy h3 { min-height: 0; margin-bottom: 30px; font-size: 17px; }
	.case-card-copy h3::after { bottom: -15px; width: 46px; }
	.case-card-copy p { min-height: 44px; margin-bottom: 18px; font-size: 14px; line-height: 22px; -webkit-line-clamp: 2; }
	.case-more { grid-template-columns: 34px 92px; height: 34px; font-size: 13px; line-height: 34px; }
	.case-more i { width: 34px; height: 34px; font-size: 18px; }
	.case-pagination { margin-top: 42px; }
	.case-detail-summary { padding: 20px; }
}

@media (max-width: 420px) {
	.case-card > a { display: block; min-height: 0; }
	.case-card-copy { padding-top: 18px; }
	.case-card-copy p { display: -webkit-box; }
}

@media (prefers-reduced-motion: reduce) {
	.case-hero > img { animation: none; }
	.case-card-media img, .case-card-media::after, .case-card-media span { transition: none; }
}

/* ===== 应用行业顶部大图文字浮现（2026-11-10 客户要求，与新闻中心 / 联系页一致） =====
   主标题 2s、副标与设备标签 3s 依次 fadeInUp2 从下方淡入上浮；
   .case-detail-hero 里 hero-copy 本就 display:none，不受影响。 */
.case-hero-copy h1 { -webkit-animation: fadeInUp2 2s alternate; animation: fadeInUp2 2s alternate; }
.case-hero-copy .case-hero-subtitle,
.case-hero-tags { -webkit-animation: fadeInUp2 3s alternate; animation: fadeInUp2 3s alternate; }
@media (prefers-reduced-motion: reduce) {
	.case-hero-copy h1, .case-hero-copy .case-hero-subtitle, .case-hero-tags { animation: none; }
}

/* ===== 2026-11-27 手机端适配：顶部大图完整显示（不再被裁） =====
   宽幅图在窄屏用 cover+固定320px会被裁，改为图片按原比例完整显示(contain)，
   文案缩小居中叠加，保证厂房全貌可见 */
@media (max-width: 767px) {
  .case-hero {
    height: auto !important;
    min-height: 0 !important;
  }
  .case-hero > img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    animation: none !important;
    transform: none !important;
  }
  .case-hero::after { background: rgba(6, 26, 48, .42) !important; }
  .case-hero-copy {
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    padding: 0 16px !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    color: #fff !important;
  }
  .case-hero-copy h1 { margin-bottom: 6px !important; font-size: 26px !important; }
  .case-hero-copy h1 em { color: #7ec8ff !important; }
  .case-hero-copy .case-hero-subtitle { margin-bottom: 10px !important; font-size: 13px !important; line-height: 1.4 !important; color: #fff !important; }
  .case-hero-tags { justify-content: center !important; gap: 8px !important; }
  .case-hero-tags a { min-width: 0 !important; height: 30px !important; padding: 0 10px !important; font-size: 12px !important; border-color: rgba(255,255,255,.6) !important; color: #fff !important; background: rgba(255,255,255,.12) !important; }
}
