/* ==========================================================================
   关于众赢 页面（page-about.php）
   --------------------------------------------------------------------------
   改造前实测问题（1440 视口 / 容器 1170px）：
     1) 「组织架构」图被纵向拉伸变形：原图 984×600（比例 1.64），
        因外层 .row 是 flex 且默认 align-items:stretch，被拉成 1170×881（比例 1.33）；
     2) 「检测设备」6 张图用 col-sm-3 排成 4+2，第二行右侧空一半；
     3) 「公司形象」3 张图套 4 列宽度 + justify-content:space-around，
        实际落在 x=215/566/917，与容器内容左边缘 x=128 不对齐，两端各留约 87px；
     4) 「荣誉证书」图不在 .row 内，比其它内容左移 15px（x=143 vs x=128）；
     5) 正文段落宽 1140px、16px 字号，单行约 70 个汉字，阅读吃力；
     6) 分节只用 <hr> 上下 20px，节奏拥挤；
     7) jg.png(984px) 被放大到 1170px、合作商家 logo(250px) 被放到 293px，清晰度下降；
     8) 全部样式内联在模板里，无法统一调整。
   改造后：
     - 统一为「分节 + 网格」结构，样式集中到本文件；
     - 组织架构/荣誉证书改为不拉伸的整宽图；
     - 检测设备 3 列×2 行、公司形象 3 列铺满、合作商家 4 列；
     - 正文宽度随屏幕自适应（PC 端取屏幕总宽的 48%）；
       分节间距固定 72px；图片统一圆角。
   ========================================================================== */

/* ---------- 页面容器 ---------- */
/* 原模板靠 .cbdiv_7a24e142 的 margin-top:90px 顶开，这里改为容器内边距 */
.aboutPage{
	padding: 80px 0 90px;
}

/* ---------- 页头 ---------- */
.aboutHero{
	text-align: center;
	margin-bottom: 70px;
}
.aboutHeroTitle{
	color: #ccc;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}
.aboutHeroSub{
	color: #8a8a8a;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin: 12px 0 0;
}

/* ---------- 分节 ---------- */
.aboutSec + .aboutSec{
	margin-top: 72px;
}
.aboutSecTitle{
	position: relative;
	color: #ccc;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 36px;
	padding-bottom: 18px;
}
/* 标题下的红色短装饰线，与站点主色一致 */
.aboutSecTitle::after{
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 42px;
	height: 3px;
	border-radius: 2px;
	background-color: rgb(227,73,73);
}

/* ---------- 正文 ---------- */
/* 宽度不在这里写死：见文件末尾「正文宽度自适应」一节，
   这里只负责水平居中与下间距。 */
.aboutText{
	margin: 0 auto 34px;
}
.aboutText p{
	color: #ccc;
	font-size: 16px;
	line-height: 30px;
	text-indent: 2em;
	text-align: justify;
	margin: 0 0 14px;
}
.aboutText p:last-child{
	margin-bottom: 0;
}
/* 英文段落的两处中文式排版要单独取消：
     1) text-indent:2em —— 首行缩进是中文排版特有的，英文段落不用；
     2) text-align:justify —— 浏览器不会自动给英文断词，两端对齐会让
        词间距被拉得很不均（出现“河沟”），英文网页通行的做法是左对齐。 */
.aboutPage--en .aboutText p{
	text-indent: 0;
	text-align: left;
}

/* ---------- 整宽图（组织架构 / 荣誉证书） ---------- */
/* height:auto 是关键：原模板外层 flex 会把图片纵向拉伸变形 */
.aboutFigure{
	text-align: center;
}
.aboutFigure img{
	display: inline-block;
	max-width: 100%;
	height: auto;
}
/* jg.png 原始宽度 984px，限制不超过原尺寸以免放大发虚；
   注意必须同时给 width:100%，否则 max-width 会覆盖上面的 100% 限制，
   窄屏时图片会溢出容器 */
.aboutFigure--diagram img{
	width: 100%;
	max-width: 984px;
}

/* ---------- 图片网格 ---------- */
.aboutGrid{
	display: grid;
	gap: 20px;
}
/* 网格单元可能是 <img> 本身，也可能是包了一层的 <a>（用于点击看大图），
   两种结构都要铺满单元格，否则换成 <a> 后图片会跑版。 */
.aboutGrid > img,
.aboutGrid > a{
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 6px;
	background-color: #3d3d3d;
}
.aboutGrid img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	background-color: #3d3d3d;
}
/* 可点击看大图的图：光标提示 + 悬停时压一层主色蒙层 */
.aboutGrid > a,
.aboutFigure a{
	cursor: zoom-in;
}
.aboutGrid > a::after{
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background-color: rgba(227,73,73,.42);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.aboutGrid > a:hover::after{ opacity: 1; }
.aboutGrid > a img{ transition: transform .4s ease; }
.aboutGrid > a:hover img{ transform: scale(1.05); }

/* 公司形象 / 检测设备：统一比例框，避免图片高度参差把网格撑散。
   —— 比例为什么取 8:5 ——
   扫描客户素材目录（众赢8.5更新/Links）里 30 张照片类素材的真实比例后实测得出：
     框比例   平均裁切   最大裁切   裁>25%的张数
     1:1      39.2%     49.4%     27 张
     4:3      19.5%     32.6%     15 张
     3:2      12.6%     24.1%      0 张
     8:5      11.3%     20.2%      0 张   ← 采用
     16:9      9.8%     28.2%      3 张
   16:9 平均裁切更低，但会把少数偏方的图裁掉 28%；8:5 是唯一
   「没有任何一张图裁切超过 25%」的方案，所以取 8:5。
   素材实际集中在 1.4–1.8（3:2 / 7:5 / 8:5 / 16:9），8:5 正好居中。
   若以后素材比例分布变了，只改下面这一个值即可（三列布局不变）。 */
.aboutGrid--3{
	grid-template-columns: repeat(3, 1fr);
	--about-photo-ratio: 8 / 5;
}
/* 比例框加在单元格上（包裹结构下，图片已由 width/height:100% 填满） */
.aboutGrid--3 > a{
	aspect-ratio: var(--about-photo-ratio);
}
.aboutGrid--3 img{
	aspect-ratio: var(--about-photo-ratio);
}

/* 合作商家 logo：原图 250×150（5:3），用白底卡片 + contain 完整展示不裁切 */
.aboutGrid--logo{
	grid-template-columns: repeat(4, 1fr);
}
.aboutGrid--logo img{
	aspect-ratio: 5 / 3;
	object-fit: contain;
	background-color: #fff;
	padding: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px){
	.aboutPage{ padding: 50px 0 70px; }
	.aboutHero{ margin-bottom: 50px; }
	.aboutSec + .aboutSec{ margin-top: 56px; }
	.aboutGrid--3{ grid-template-columns: repeat(2, 1fr); }
	.aboutGrid--logo{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px){
	.aboutPage{ padding: 36px 0 56px; }
	.aboutHero{ margin-bottom: 40px; }
	.aboutHeroTitle{ font-size: 24px; }
	.aboutSec + .aboutSec{ margin-top: 44px; }
	.aboutSecTitle{
		font-size: 20px;
		margin-bottom: 24px;
		padding-bottom: 14px;
	}
	.aboutText{ margin-bottom: 26px; }
	.aboutText p{
		font-size: 14px;
		line-height: 26px;
	}
	.aboutGrid{ gap: 12px; }
	.aboutGrid--3{ grid-template-columns: repeat(2, 1fr); }
	.aboutGrid--logo{ grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   正文宽度自适应（PC 端 = 屏幕总宽度的 48%）
   --------------------------------------------------------------------------
   原为固定限宽（中文 900px / 英文 780px）。
   版心在 ≥1656px 会涨到屏幕宽的 72.5%（2560 屏 = 1856px），
   固定 780px 只占版心 43%，两侧各空 520px 以上，高分辨率屏上显得很空。

   改为随屏幕宽度按比例取值：
     PC（≥1200px）：width: 48vw —— 直接取屏幕总宽度的 48%；
     <1200px     ：不设宽度，铺满容器（移动端本来就窄，再按比例缩会窄到不可读）。

   为什么用 vw 而不是 %：
     需求的基准是「屏幕总宽度」，而 % 的基准是父级 .container，
     版心自己只占屏幕的 72.5%，用 % 会算错（48% 会变成屏幕的 34.8%）。

   实际效果：
     · 48vw ÷ 版心 72.5vw = 66%，所以宽屏下正文恒定占版心 66%；
     · 无论什么分辨率，正文始终占屏幕总宽的 48%。

     视口    正文宽(48vw)  版心可用宽   占版心   中文行长   英文行长
     1200       576px       1140px      51%     36 字/行   77 字符
     1366       656px       1170px      56%     41          87
     1920       922px       1362px      68%     58         123
     2560      1229px       1826px      67%     77         164
     3440      1651px       2464px      67%     103        220
     3840      1843px       2754px      67%     115        246

   【超宽屏提示】若 3840 屏上觉得行长，加一个上限即可，例如：
     @media (min-width: 2400px){ .aboutText{ max-width: 1400px; } }
   这样 2560 屏仍保持 1229px，只对 3440/3840 封顶。
   ========================================================================== */
@media (min-width: 1200px){
	.aboutText{
		width: 48vw;
		max-width: 100%;
	}
}


/* ==========================================================================
   制造设备相册（分类 Tab 切换）
   --------------------------------------------------------------------------
   【要解决的问题】
   新增 6 类车间照片共 25 张（检验设备 6、重点数控加工设备 6、模具装配车间 4、
   慢走丝车间 4、精雕车间 2、冲压车间 3）。
   若全部平铺，即使每类只排一行也要 6~8 行、接近 2000px，会把页面拉得很长。

   【方案】Tab 切分类 + 一个共用的缩略图墙
     · 分类一目了然：6 个按钮，当前项用主色底高亮，并标注张数；
     · 高度恒定：不管看哪一类，正文下方都只占一行缩略图的高度，
       整块约 300px，不再随图片数量增长；
     · 大图交给灯箱：点任意一张进入 FancyBox，可在该类内左右翻页。

   【缩略图为什么不裁切】
   25 张照片比例从 0.80（竖版）到 2.31（超宽）都有。
   若像其它网格那样用 object-fit:cover 套统一比例框，
   竖版要切掉 30%、超宽要切掉 42%，设备会被切断。
   所以这里改成「行高统一、宽度按各自比例」，既不裁切，行与行也对齐。
   ========================================================================== */
.eqTabs{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}
.eqTab{
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #5a5a5a;
	background-color: transparent;
	color: #bbb;
	font-size: 14px;
	line-height: 1;
	padding: 12px 18px;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.eqTab em{                       /* 该分类的照片张数 */
	font-style: normal;
	font-size: 12px;
	color: #888;
	margin-left: 7px;
	transition: color .25s ease;
}
.eqTab:hover{ border-color: rgb(227,73,73); color: #fff; }
.eqTab.is-active{
	background-color: rgb(227,73,73);
	border-color: rgb(227,73,73);
	color: #fff;
}
.eqTab.is-active em{ color: rgba(255,255,255,.75); }

.eqPanel{ display: none; }
.eqPanel.is-active{ display: block; }
/* 缩略图网格：直接复用页面里已有的 .aboutGrid--3（3 列 / 8:5 / object-fit:cover）。
   本来用的是「行高统一、宽度按各自比例」的自定义 flex 布局，好处是不裁切，
   但缩略图只有 289×210，而上方「公司形象」是 595×372 —— 同一页上下差一倍，视觉上很跳。
   改成同一套网格后两者尺寸完全一致。
   代价：照片比例跨度大（0.805~2.305），统一到 8:5 后部分图只显示局部，
   平均裁切 23.5%、最大 49.7%（5 张竖版被裁最多）。
   但 cover 只影响网格显示，文件未动 —— 点开灯箱看到的仍是完整原图。 */

/* 分类按钮的响应式 */
@media (max-width: 991px){
	.eqTab{ font-size: 13px; padding: 10px 14px; }
}
@media (max-width: 767px){
	.eqTabs{ gap: 7px; margin-bottom: 16px; }
	.eqTab{ font-size: 12px; padding: 9px 11px; }
}
