@charset "utf-8";
/* ==================================================================
   上海昶衍化工 站点增强样式
   1) SEO 组件：H1 / 面包屑 / 产品参数 / 询价 / 分页 / 列表
   2) 移动端自适应：原站点为 1050px 固定宽表格布局，
      这里用媒体查询把表格布局改成纵向单列，不依赖改结构
   全站页面在 </head> 前引入本文件
   ================================================================== */

/* ---------------------------- 标题与文本 ---------------------------- */

h1.title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 40px;
	font-weight: bold;
	color: #031c45;
}

.cy-h1 {
	margin: 0 0 8px 0;
	font-size: 22px;
	line-height: 1.5;
	font-weight: bold;
	color: #031c45;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.cy-h1 .cy-cas {
	font-size: 16px;
	font-weight: normal;
	color: #666;
	white-space: nowrap;
}

.cy-sub {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #666;
	line-height: 1.8;
}

/* ---------------------------- 面包屑 ---------------------------- */

.cy-crumb {
	font-size: 12px;
	line-height: 24px;
	color: #888;
	margin: 0 0 10px 0;
}

.cy-crumb a {
	color: #0b57a4;
	text-decoration: none;
}

.cy-crumb a:hover {
	text-decoration: underline;
}

/* ---------------------------- 产品参数表 ---------------------------- */

.cy-spec {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #dcdcdc;
	font-size: 14px;
	line-height: 1.8;
	background: #fff;
}

.cy-spec th,
.cy-spec td {
	border: 1px solid #dcdcdc;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.cy-spec th {
	width: 150px;
	background: #f5f7fa;
	color: #031c45;
	font-weight: bold;
	white-space: nowrap;
}

.cy-spec td {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.cy-spec img {
	max-width: 100%;
	height: auto;
}

.cy-spec .cy-formula sub {
	font-size: 11px;
}

.cy-desc {
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.9;
	color: #333;
}

.cy-cta {
	margin: 18px 0 4px;
	padding: 12px 16px;
	background: #f5f9ff;
	border: 1px solid #dbe6f5;
	font-size: 14px;
	line-height: 1.9;
}

.cy-btn {
	display: inline-block;
	padding: 7px 18px;
	background: #031c45;
	color: #fff !important;
	text-decoration: none;
	font-weight: bold;
}

.cy-btn:hover {
	background: #0b57a4;
	color: #fff !important;
	text-decoration: none;
}

/* ---------------------------- 列表与分页 ---------------------------- */

.cy-list {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: #fff;
}

.cy-list th,
.cy-list td {
	border: 1px solid #dcdcdc;
	padding: 7px 8px;
	line-height: 1.7;
	text-align: center;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.cy-list th {
	background: #f0f4f9;
	color: #031c45;
	font-weight: bold;
}

.cy-list td.cy-name {
	text-align: left;
}

.cy-pager {
	margin: 16px 0;
	text-align: center;
	font-size: 13px;
	line-height: 28px;
}

.cy-pager a,
.cy-pager span {
	display: inline-block;
	min-width: 26px;
	padding: 3px 8px;
	margin: 2px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	background: #fff;
}

.cy-pager span.cy-cur {
	background: #031c45;
	border-color: #031c45;
	color: #fff;
}

.cy-pager a:hover {
	border-color: #031c45;
	text-decoration: none;
}

.cy-pager .cy-title {
	border: 0;
	background: none;
	color: #666;
}

.cy-empty {
	padding: 20px 0;
	color: #666;
	font-size: 14px;
}

.cy-notice {
	margin: 24px 0;
	padding: 16px;
	border: 1px solid #e6e6e6;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.9;
}

/* ---------------------------- 中等屏幕 ---------------------------- */

@media screen and (max-width: 1080px) {
	table[width="1050"] {
		width: 100% !important;
		max-width: 1050px;
	}

	.goscill22 {
		width: auto !important;
		height: auto !important;
		margin: 10px auto 12px auto !important;
	}

	.goscill22 > tbody > tr > td,
	.goscill22 > tr > td {
		width: auto !important;
	}

	.pass2 {
		width: 55% !important;
		max-width: 100%;
	}
}

/* ---------------------------- 手机与原尺寸 ---------------------------- */

@media screen and (max-width: 820px) {
	body {
		font-size: 14px;
		line-height: 24px;
		word-wrap: break-word;
		overflow-wrap: break-word;
		-webkit-text-size-adjust: 100%;
		/* 手机端左右各留 10px 边距，底色统一为白色（不要浅蓝） */
		padding: 0 10px;
		background: #fff !important;
		background-color: #fff !important;
	}

	/* 布局用的 &nbsp; 占位列（宽 25px）在手机上会堆成空白块，隐藏掉；
	   顶部 110px 的空白就来自这类单元格的 height 属性 */
	td[width="25"],
	td[width="25px"] {
		display: none !important;
	}

	table[width],
	table {
		max-width: 100% !important;
	}

	table[width="1050"],
	table[width="1002"],
	table[width="100%"],
	table[width="95%"],
	table[width="90%"] {
		width: 100% !important;
	}

	table[width="1050"] > tbody > tr > td,
	table[width="1050"] > tr > td {
		display: block;
		width: auto !important;
	}

	img {
		max-width: 100%;
		height: auto;
	}

	/* 首页轮播是写死 1000px 的脚本组件，手机上隐藏，避免横向滚动 */
	#xxx {
		display: none !important;
	}

	/* 右下角悬浮客服面板占用手机屏幕，隐藏 */
	#online_service_bar,
	#online_service .service_bar,
	.service_bar {
		display: none !important;
	}

	/* 顶部导航改为居中换行 */
	.nav {
		width: 100% !important;
	}

	.nav tr {
		display: block;
		text-align: center;
	}

	.nav td {
		display: inline-block;
		width: auto !important;
	}

	.nav a {
		display: inline-block;
		padding: 6px 9px;
	}

	/* 搜索框 */
	.pass2 {
		width: calc(100% - 100px) !important;
		box-sizing: border-box;
		height: 32px;
		line-height: 32px;
	}

	.pass1 {
		width: 84px;
		height: 32px;
	}

	/* 两栏布局（左导航 + 正文）改为单列，正文在前 */
	.cy-cols,
	.cy-cols > tbody,
	.cy-cols > tbody > tr {
		display: flex !important;
		flex-direction: column;
		width: 100% !important;
	}

	.cy-cols > tbody > tr > td,
	.cy-cols > tr > td {
		display: block;
		width: auto !important;
	}

	.cy-main {
		order: 1;
	}

	.cy-side {
		order: 2;
		margin-top: 16px;
	}

	/* 左侧滚动产品列表在手机上不需要 680px 高 */
	#colee {
		height: 260px !important;
		width: 100% !important;
	}

	/* 列表表格：取消固定列宽，允许换行 */
	td[width="120"],
	td[width="200"] {
		width: auto !important;
	}

	.cy-list th,
	.cy-list td {
		padding: 6px;
	}

	/* 参数表改为竖排 */
	.cy-spec th,
	.cy-spec td {
		display: block;
		width: auto !important;
		border-bottom: 0;
	}

	.cy-spec tr:last-child th,
	.cy-spec tr:last-child td {
		border-bottom: 1px solid #dcdcdc;
	}

	.cy-spec th {
		padding-bottom: 0;
		background: #f5f7fa;
	}

	.cy-h1 {
		font-size: 18px;
	}

	.cy-h1 .cy-cas {
		display: block;
		font-size: 14px;
	}

	.cy-pager a,
	.cy-pager span {
		padding: 3px 6px;
		margin: 1px;
	}
}

@media screen and (max-width: 480px) {
	.goscill22 {
		box-shadow: none !important;
		border: 0 !important;
	}

	.cy-h1 {
		font-size: 17px;
	}

	.cy-spec,
	.cy-list {
		font-size: 13px;
	}
}
