/*
	易菇网 · 商务频道详情页增强样式 (gd.css)
	================================================================
	仅被 template/emushroomF/chan_goods_show.htm 引用（供应/求购/人才/展会/品牌/行情）
	新增三块内容：
	  ① 首屏「左图库 + 右核心信息」—— 商品主图 + 缩略图 + 左右翻页（沿用 album.js）
	  ② 侧栏顶部「联系方式」卡 —— 复用 chip/contact.htm，重绘为绿色光感卡
	  ③ 主区底部「本企业其它产品」—— 该发布者的其它在架条目
	色系严格取自 theme.css 设计令牌，与整站一致。
	================================================================ */

/* ================================================================
   1. 首屏：左图库 + 右核心信息
   ================================================================ */
.gd-hero {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	margin: 4px 0 28px;
}
.gd-gal {
	flex: 0 0 420px;
	width: 420px;
	min-width: 0;
}
.gd-info {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- 1.1 主图 ---------- */
.gd-gal-box { position: relative; }
#mid_div {
	position: relative;
	width: 420px;
	max-width: 100%;
	height: 315px;
	overflow: hidden;
	border: 1px solid #E6F0EB;
	border-radius: 14px;
	background: #F7FBF9;
	cursor: crosshair;
	display: flex;
	align-items: center;
	justify-content: center;
}
#mid_div #mid_pic {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.gd-gal-box #zoomer {
	position: absolute;
	width: 160px;
	height: 120px;
	border-radius: 8px;
	background: #FFFFFF url('ab-zoom-bg.gif');
	opacity: .5;
	pointer-events: none;
}
.gd-gal-box .ab_zoom {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 30px;
	height: 30px;
	margin: 0;
	border-radius: 8px;
	background: #FFFFFF url('ab-zoom.png') no-repeat center center;
	box-shadow: 0 2px 8px rgba(18, 51, 42, .12);
}
.gd-gal-box .ab_play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	background: #FFFFFF url('ab-play.png') no-repeat center center;
	box-shadow: 0 6px 20px rgba(18, 51, 42, .18);
	cursor: pointer;
	z-index: 7;
}
.gd-gal-box .ab_play:hover { background: #FFFFFF url('ab-play-on.png') no-repeat center center; }

/* ---------- 1.2 缩略图条 + 左右翻页（step = 70px，与 album.js 一致） ---------- */
.gd-gal .tbs {
	display: flex;
	align-items: center;
	width: 402px;
	max-width: 100%;
	height: 70px;
	margin: 14px 0 0;
}
.gd-gal .tbsl,
.gd-gal .tbsr {
	flex: 0 0 auto;
	width: 26px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.gd-gal .tbsm {
	flex: 1 1 auto;
	width: 350px;
	height: 70px;
	overflow: hidden;
}
.gd-gal .gd-ar {
	display: block;
	position: relative;
	width: 26px;
	height: 46px;
	border: 1px solid #E6F0EB;
	border-radius: 9px;
	background: #F4F9F6;
	transition: background .18s ease, border-color .18s ease;
}
.gd-gal .gd-ar::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid #6B8F81;
	border-right: 2px solid #6B8F81;
}
.gd-gal .gd-ar-l::before { transform: translate(-30%, -50%) rotate(-135deg); }
.gd-gal .gd-ar-r::before { transform: translate(-70%, -50%) rotate(45deg); }
.gd-gal .tbsl:hover .gd-ar,
.gd-gal .tbsr:hover .gd-ar { background: var(--f-p1); border-color: var(--f-p1); }
.gd-gal .tbsl:hover .gd-ar::before,
.gd-gal .tbsr:hover .gd-ar::before { border-color: #FFFFFF; }

#thumbs {
	height: 70px;
	white-space: nowrap;
	font-size: 0;
	line-height: 0;
}
#thumbs img {
	display: inline-block;
	float: none;
	width: 60px;
	height: 60px;
	margin: 5px 10px 5px 0;
	padding: 0;
	box-sizing: border-box;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #FFFFFF;
	object-fit: cover;
	cursor: pointer;
	vertical-align: top;
	transition: border-color .16s ease, box-shadow .16s ease;
}
#thumbs img.ab_im { border-color: #E6F0EB; opacity: .92; }
#thumbs img.ab_on {
	border-color: var(--f-p1);
	opacity: 1;
	box-shadow: 0 0 0 3px rgba(61, 214, 140, .16);
}

/* 放大浮层（沿用原逻辑，仅修正圆角与描边） */
.gd-gal-box #big_div {
	position: absolute;
	width: 560px;
	height: 420px;
	border: 1px solid #E6F0EB;
	border-radius: 14px;
	background: #FFFFFF;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(43, 182, 115, .18);
	z-index: 20;
}

/* ---------- 1.3 操作按钮 ---------- */
.gd-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.gd-buy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 34px;
	border-radius: 12px;
	border: 0;
	background: linear-gradient(135deg, var(--f-p1), var(--f-p2));
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(43, 182, 115, .24);
	transition: transform .16s ease, box-shadow .16s ease;
}
.gd-buy:hover {
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(43, 182, 115, .3);
}
.gd-buy .gd-buy-ic { font-size: 14px; }
.gd-buy.gd-buy-ghost {
	background: #FFFFFF;
	border: 1px solid var(--f-p1);
	color: #1E8F5A;
	box-shadow: none;
}
.gd-buy.gd-buy-ghost:hover { background: rgba(61, 214, 140, .1); color: #1E8F5A; }
.gd-ops-tip {
	margin-left: auto;
	align-self: center;
	font-size: 12.5px;
	color: var(--f-ink3);
}
.gd-ops-tip b { font-size: 15px; font-weight: 800; color: #F2545B; }

/* ================================================================
   2. 侧栏「联系方式」卡（复用 chip/contact.htm，重绘配色）
   ================================================================ */
.dt-sec-ct { padding-bottom: 16px; }
.gd-ct { padding: 0; }

/* 关注行：只留关注按钮，「联系方式」文字由 .dt-sec-t 承担 */
.gd-ct .contact-fw { margin: 0 0 12px; padding: 0; height: auto; line-height: 1; display: flex; }
.gd-ct .contact-fw > span { display: none; }
.gd-ct .follow0,
.gd-ct .follow1 {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 13px;
	border-radius: 15px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	overflow: hidden;
	transition: background .16s ease;
}
.gd-ct .follow0 { background: rgba(61, 214, 140, .12); color: #1E8F5A; border: 1px solid rgba(61, 214, 140, .34); }
.gd-ct .follow0:hover { background: rgba(61, 214, 140, .2); }
.gd-ct .follow1 { background: #FFF1F1; color: #F2545B; border: 1px solid #FFDBDB; }
.gd-ct .follow1:hover { background: #FFE7E7; }
.gd-ct .follow0 b,
.gd-ct .follow1 b { font-weight: 700; }
.gd-ct .follow0 i,
.gd-ct .follow1 i { font-style: normal; font-weight: 700; opacity: .72; }

/* 企业名 */
.gd-ct h3 {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14.5px;
	line-height: 1.55;
	height: auto;
	overflow: visible;
	font-weight: 800;
}
.gd-ct h3 a { color: var(--f-ink); text-decoration: none; }
.gd-ct h3 a:hover { color: var(--f-p2); }
.gd-ct h3 img { vertical-align: middle; }

/* 会员等级条（VIP / 普通） */
.gd-ct .contact-vip,
.gd-ct .contact-com {
	display: flex;
	align-items: center;
	padding: 7px 12px;
	margin: 0 0 8px;
	border-radius: 9px;
	background: linear-gradient(135deg, rgba(61, 214, 140, .14), rgba(94, 234, 212, .14));
	color: #1E8F5A;
	background-image: none;
}
.gd-ct .contact-vip b,
.gd-ct .contact-com b { font-size: 12.5px; font-weight: 800; color: #1E8F5A; }
.gd-ct .contact-vip span,
.gd-ct .contact-com span {
	float: none;
	margin-left: auto;
	font-size: 12px;
	color: #6FA98B;
	font-weight: 600;
}
.gd-ct .contact-vip img { margin-right: 6px; }

/* 认证 / 保证金 双格 */
.gd-ct .contact-vd {
	display: flex;
	gap: 8px;
	width: auto;
	height: auto;
	padding: 12px 0 4px;
	margin: 0;
	overflow: visible;
	text-align: center;
}
.gd-ct .contact-v1,
.gd-ct .contact-v0,
.gd-ct .contact-d1,
.gd-ct .contact-d0 {
	flex: 1 1 0;
	width: auto;
	height: auto;
	float: none;
	padding: 9px 8px;
	border-radius: 10px;
	font-size: 11.5px;
	line-height: 1.5;
	overflow: hidden;
}
.gd-ct .contact-v1 { background: linear-gradient(135deg, var(--f-p1), var(--f-p2)); border: 0; color: #FFFFFF; }
.gd-ct .contact-v0 { background: #F2F5F4; border: 0; color: #8AA79C; }
.gd-ct .contact-d1 { background: rgba(61, 214, 140, .1); border: 1px solid var(--f-p1); color: #1E8F5A; }
.gd-ct .contact-d0 { background: #F7F9F8; border: 1px solid #E6F0EB; color: #8AA79C; }
.gd-ct .contact-v1 b,
.gd-ct .contact-v0 b,
.gd-ct .contact-d1 b,
.gd-ct .contact-d0 b {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.5;
	height: auto;
	overflow: visible;
}

/* 明细列表 */
.gd-ct ul { margin: 12px 0 0; padding: 0; list-style: none; }
.gd-ct ul li {
	height: auto;
	line-height: 1.65;
	padding: 5px 0;
	overflow: hidden;
	font-size: 12.5px;
	color: var(--f-ink2);
}
.gd-ct ul li b {
	font-weight: 500;
	font-size: 12.5px;
	color: var(--f-ink2);
	padding: 0 0 0 20px;
	background-position: 0 center;
	background-repeat: no-repeat;
}
.gd-ct ul li a { text-decoration: none; color: inherit; }
.gd-ct ul li a:hover b { color: var(--f-p2); }
.gd-ct .contact-ol { color: #2BB673; font-size: 15px; }
.gd-ct .contact-fl { color: #B8CFC6; font-size: 15px; }

/* IM 图标行 */
.gd-ct .contact-im {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px dashed #E6F0EB;
}
.gd-ct .contact-im img {
	padding: 4px;
	border-radius: 7px;
	background: #F7FBF9;
	transition: background .16s ease;
}
.gd-ct .contact-im img:hover { background: rgba(61, 214, 140, .16); border-radius: 7px; }

/* 底部按钮 */
.gd-ct .contact-btn {
	display: flex;
	gap: 8px;
	width: auto;
	height: auto;
	padding: 12px 0 0;
	margin: 0;
	overflow: visible;
}
.gd-ct .contact-btn a { flex: 1 1 0; text-decoration: none; }
.gd-ct .contact-btn span {
	display: block;
	width: auto;
	height: 36px;
	line-height: 34px;
	float: none;
	margin: 0;
	border: 1px solid rgba(61, 214, 140, .32);
	border-radius: 10px;
	background: rgba(61, 214, 140, .1);
	color: #1E8F5A;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.gd-ct .contact-btn span:hover {
	background: linear-gradient(135deg, var(--f-p1), var(--f-p2));
	border-color: transparent;
	color: #FFFFFF;
}

/* ================================================================
   3. 主区底部「本企业其它产品」
   ================================================================ */
.gd-own { margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid #EEF2F0; }
.gd-own-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.gd-own-hd b {
	position: relative;
	padding-left: 15px;
	font-size: 16px;
	font-weight: 800;
	color: var(--f-ink);
	letter-spacing: .3px;
}
.gd-own-hd b::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 18px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--f-p1), var(--f-p2));
}
.gd-own-hd i { flex: 1; height: 1px; background: linear-gradient(90deg, #D5E6DE, transparent); }
.gd-own-hd a {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--f-p2);
	text-decoration: none;
}
.gd-own-hd a:hover { color: var(--f-p1); }
.gd-own-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 16px;
}
.gd-own-item {
	display: block;
	padding: 10px;
	border: 1px solid #E6F0EB;
	border-radius: 13px;
	background: #FFFFFF;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gd-own-item:hover {
	border-color: var(--f-p1);
	box-shadow: 0 10px 26px rgba(43, 182, 115, .14);
	transform: translateY(-2px);
}
.gd-own-th {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 112px;
	border-radius: 9px;
	background: #F7FBF9;
	overflow: hidden;
}
.gd-own-th img { max-width: 100%; max-height: 100%; object-fit: cover; }
.gd-own-item p {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--f-ink2);
	height: 39px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.gd-own-item:hover p { color: var(--f-p2); }
.gd-own-none {
	padding: 26px 0;
	text-align: center;
	font-size: 13px;
	color: var(--f-ink3);
	background: #F9FCFA;
	border: 1px dashed #E6F0EB;
	border-radius: 13px;
}

/* ================================================================
   4. 响应式
   ================================================================ */
@media (max-width: 1400px) {
	.gd-hero { gap: 24px; }
	.gd-gal { flex: 0 0 380px; width: 380px; }
	#mid_div { width: 380px; height: 285px; }
	.gd-gal .tbs { width: 380px; }
}
@media (max-width: 1240px) {
	.gd-hero { display: block; }
	.gd-gal {
		flex: none;
		width: auto;
		max-width: 420px;
		margin: 0 auto 22px;
	}
	.gd-gal .tbs { margin-left: auto; margin-right: auto; }
	.gd-gal-box #mid_div { margin: 0 auto; }
}
@media (max-width: 860px) {
	.gd-gal { max-width: 100%; }
	#mid_div,
	.gd-gal-box #mid_div {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.gd-gal .tbs { width: 100%; }
	.gd-gal .tbsm { width: auto; }
	.gd-own-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gd-own-th { height: 96px; }
	.gd-ops .gd-buy { flex: 1 1 auto; justify-content: center; padding: 0 18px; }
}
@media (max-width: 520px) {
	.gd-own-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#thumbs img { width: 54px; height: 54px; margin: 8px 10px 8px 0; }
}

/* ================================================================
   5. 品牌 LOGO 主位（仅 chan_goods_show.htm 的 $CH_TYPE == 'brand' 分支）
   ----------------------------------------------------------------
   品牌模块没有图库（无 $albums），旧版直接落到「只有文字信息」的版面，
   用户反馈「详情页没有 LOGO 图」。这里补一个 3:1 横版大 LOGO 位，
   与系统上传规格 thumb 180×60 同比例，object-fit:contain 完整显示。
   ================================================================ */
.gd-blogo {
	position: relative;
	flex: 0 0 420px;
	width: 420px;
	min-width: 0;
}
.gd-blogo img {
	display: block;
	width: 100%;
	height: 140px;
	box-sizing: border-box;
	object-fit: contain;
	background: linear-gradient(180deg, #FFFFFF 0%, #F5FAF7 100%);
	border: 1px solid #E6F0EB;
	border-radius: 18px;
	box-shadow: 0 10px 26px rgba(18, 51, 42, .06);
}

@media (max-width: 1400px) {
	.gd-blogo { flex: 0 0 380px; width: 380px; }
	.gd-blogo img { height: 127px; }
}
@media (max-width: 1240px) {
	.gd-blogo {
		flex: none;
		width: auto;
		max-width: 420px;
		margin: 0 auto 34px;
	}
}
@media (max-width: 860px) {
	.gd-blogo { max-width: 100%; }
	.gd-blogo img { height: auto; aspect-ratio: 3 / 1; }
}
@media (max-width: 520px) {
	.gd-blogo img { border-radius: 14px; }
}

/* 会展详情页「同类会展」（3 条）：固定 3 列，标题放宽到 3 行 */
.gd-own-list3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-own-list3 .gd-own-th img { width: 100%; height: 100%; object-fit: cover; }
.gd-own-list3 .gd-own-item p { height: auto; min-height: 39px; -webkit-line-clamp: 3; }
@media (max-width: 900px) { .gd-own-list3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gd-own-list3 { grid-template-columns: minmax(0, 1fr); } }
