@charset "utf-8";
/*
 * 站点补充样式（site.css）
 *
 * 原则：不覆盖模板原有配色与版式，只做三件事
 *   1) 补上模板没有、但我们动态站点必须有的组件（分页容器、筛选条、提示条、商品详情区）
 *   2) 修正模板里少数会截断内容的固定高度，让真实数据能完整显示
 *   3) 修正模板写死 1200px 的底部栏，让它在窄屏不溢出
 * 换模板时，只需删掉这个文件，不必动 com.css / index.css 等原始文件。
 */

/* ============ 1. 通用提示条 ============ */
.notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 22px;
	border: 1px solid #f0c68a;
	background: #faeeda;
	color: #854f0b;
}
.notice.err {
	border-color: #f3b9b9;
	background: #fcebeb;
	color: #a32d2d;
}
.notice code {
	padding: 1px 5px;
	background: rgba(0, 0, 0, .06);
	font-size: 12px;
}

/* 空状态 / 提示页 */
.site-blank {
	margin: 14px 0 0;
	padding: 46px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid #eee;
}
.site-blank h2 {
	margin-bottom: 12px;
	font-size: 18px;
	color: #333;
}
.site-blank p {
	font-size: 13px;
	line-height: 24px;
	color: #888;
}
.site-blank .go {
	display: inline-block;
	margin-top: 20px;
	padding: 9px 26px;
	font-size: 14px;
	color: #fff;
	background: #ff4939;
}
.site-blank .go:hover {
	color: #fff;
	background: #e63c2d;
}

/* ============ 2. 筛选 / 排序条 ============ */
.filters {
	padding: 0 0 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid #eee;
	font-size: 13px;
	color: #666;
	line-height: 26px;
}
.filters .lb {
	margin-right: 6px;
	color: #999;
}
.filters a {
	display: inline-block;
	padding: 2px 10px;
	margin: 0 4px 4px 0;
	color: #666;
	background: #fff;
	border: 1px solid #eee;
}
.filters a:hover {
	color: #ff4939;
	border-color: #ffd0cb;
}
.filters a.on {
	color: #fff;
	background: #ff4939;
	border-color: #ff4939;
}

/* 搜索热词 */
.hots {
	padding: 10px 0 4px;
	font-size: 13px;
	line-height: 26px;
}
.hots .lb {
	margin-right: 8px;
	color: #999;
}
.hots a {
	display: inline-block;
	padding: 2px 10px;
	margin: 0 6px 6px 0;
	color: #666;
	background: #f7f7f7;
	border: 1px solid #eee;
}
.hots a:hover {
	color: #fff;
	background: #ff4939;
	border-color: #ff4939;
}

.libstat {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px dashed #eee;
	font-size: 12px;
	color: #aaa;
}

/* ============ 3. 商品卡（模板 .tl_box）补充 ============ */
/* 模板把图片写死成 100% 宽 × 160px 高，真实商品图是正方形，会被压扁，
   这里用 object-fit 裁切而不是拉伸 */
.bagua .tlb_img img {
	object-fit: cover;
}
.slide-item img {
	object-fit: cover;
}
/* 无图占位（模型未落图 / alicdn 防盗链兜底） */
.ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #f2f4f7;
	color: #a8b0ba;
	font-size: 12px;
}
.tlb_img .ph {
	height: 160px;
}
.slide-item .ph {
	height: 331px;
}
.pd-img .ph {
	height: 360px;
}
/* CMS 文章页的正文配图容器（.pd-pic 是模板里没有、我们新加的类） */
.pd-pic .ph {
	height: 300px;
}
/* 面包屑放在模板的标签位（.texiao_tab p.on）里。
   模板把这一行定为 12px，且没给分隔图标留左右空，导致「>」与前后文字粘在一起 */
.texiao_tab p.on {
	font-size: 13px;
}
.texiao_tab p.on i.fa {
	margin: 0 10px;
	font-size: 16px;
	vertical-align: -1px;
}
/* 面包屑右侧的发布/更新时间 */
.pd-art-date {
	float: right;
	margin-right: 4px;
	font-size: 12px;
	color: #999;
	line-height: 30px;
}
/* 模板原值 height:45px，只够一行半。
   这一行现在只放「价格」一项，按内容自适应（一行 28px + 上下 padding 9px = 46px），
   价格若换行则自动增高，不写死高度以免截断 */
.tlb_art_jg {
	height: auto;
	min-height: 46px;
}
/* 模板给第三行预留了 108px（原文是一段 150 字的配置描述）。
   我们的数据没有描述字段，按实际行数收高，避免卡片底部留一大块空白 */
.tlb_art {
	height: auto;
	min-height: 46px;
}
/* ============================================================
   CMS 文章卡网格（.cg 是本站加的钩子类，给「首页 + 栏目列表页」共用）
   模板用 float + 百分比宽，卡片高度不一时会出现空档/错列，
   改成 grid 等高对齐，卡片内部用 flex 撑满。
   ============================================================ */
.bagua.cg {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 20px 1% 0 1%;
	align-items: stretch;
}
.bagua.cg .tl_box {
	float: none;
	width: auto;
	margin: 0;
	display: flex;
	flex-direction: column;
	/* 网格项默认 min-width:auto，标题若 nowrap 会把列撑宽导致整页横向溢出 */
	min-width: 0;
}
.bagua.cg .tl_box .tlb_img,
.bagua.cg .tl_box .tlb_art_jg,
.bagua.cg .tl_box .tlb_art,
.bagua.cg .tl_box h3 {
	flex: 0 0 auto;
}
/* 标题行（模板原样单行 45px 居中）。长标题用省略号截断，避免被硬切 */
.bagua.cg .tl_box h3 {
	padding: 0 9px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* 「价格 / 用途」区：价格固定 1 行，用途最多 2 行。
   超过 2 行的部分直接隐藏（原来 height:auto 不截断，用途一长就把整张卡撑高）。
   不再设 min-height，按实际内容高度自适应，避免只有一行时留下空档 */
.bagua.cg .tl_box .tlb_art_jg {
	height: auto;
	padding: 9px 9px 0 9px;
}
.bagua.cg .tl_box .tlb_art_jg p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 28px;
	margin: 0;
}
/* 「硬件」区：内容自适应高度，最多 3 行（line-clamp 控制），不再写死高度。
   与上方价格/用途区紧贴：去掉顶部 padding，p 的 margin 全部清零 */
.bagua.cg .tl_box .tlb_art {
	height: auto;
	padding: 0 9px 9px 9px;
	overflow: hidden;
}
.bagua.cg .tl_box .tlb_art p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 28px;
	margin: 0;
}
/* 券标签，压在图上 */
.tlb_img .tlb_tag {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	padding: 2px 8px;
	font-size: 12px;
	color: #fff;
	background: #ff4939;
}
.tlb_img .tlb_tag.tm {
	background: #ff0036;
}
/* 划线原价 */
.tlb_jg_was {
	margin-left: 6px;
	font-size: 12px;
	color: #bbb;
	text-decoration: line-through;
}
.tlb_jg_now {
	font-size: 15px;
	color: #ff4939;
	font-weight: bold;
}
/* 售罄 / 缺货标记 */
.tlb_box_off .tlb_img img {
	opacity: .45;
}
.tlb_box_off .tlb_off {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -14px 0 0 -34px;
	padding: 4px 12px;
	font-size: 13px;
	color: #fff;
	background: rgba(0, 0, 0, .6);
}

/* ============ 4. 商品详情区 ============ */
.pdetail {
	padding: 10px 0 20px;
	overflow: hidden;
}
.pd-img {
	float: left;
	width: 360px;
	margin-right: 26px;
	border: 1px solid #f0f0f0;
	background: #fafafa;
}
.pd-img img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
}
.pd-body {
	overflow: hidden;
	font-size: 15px;
	line-height: 30px;
	color: #333;
	margin-top: 4px;
	padding: 12px 14px;
	background: #fdfcfa;
	border: 1px solid #ece7dc;
	border-radius: 8px;
}
.pd-body .pd-parts-title {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e8e8e8;
	font-size: 14px;
	font-weight: bold;
	color: #333;
	line-height: 24px;
}
.pd-body-inner {
	padding-top: 2px;
}
/* 正文四段小标题：配置定位 / 硬件搭配思路 / 游戏与日常表现 / 优化与升级建议 */
.pd-body-inner strong.pd-sec {
	color: #ff4939;
}
.pd-body p {
	margin: 0 0 14px;
}
.pd-body img {
	max-width: 100%;
	height: auto;
	margin: 6px 0;
	border-radius: 4px;
}
.pd-body h1, .pd-body h2, .pd-body h3, .pd-body h4 {
	margin: 18px 0 10px;
	line-height: 1.4;
	color: #222;
}
.pd-body h2 { font-size: 20px; }
.pd-body h3 { font-size: 18px; }
.pd-body ul, .pd-body ol {
	margin: 0 0 14px;
	padding-left: 22px;
}
.pd-body li {
	margin-bottom: 6px;
}
.pd-body a {
	color: #ff4939;
}
.pd-body blockquote {
	margin: 0 0 14px;
	padding: 10px 16px;
	background: #f7f8fa;
	border-left: 4px solid #eee;
	color: #666;
}
.pd-body table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 14px;
}
.pd-body table th, .pd-body table td {
	border: 1px solid #eee;
	padding: 8px 12px;
	font-size: 14px;
	text-align: left;
}
.pd-body table th {
	background: #f7f8fa;
	color: #333;
}
.pd-title {
	padding-bottom: 12px;
	font-size: 20px;
	line-height: 32px;
	color: #333;
}
.pd-price {
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fff7f6;
	border: 1px solid #ffe0dc;
}
.pd-price .lbl {
	margin-right: 10px;
	font-size: 13px;
	color: #999;
}
.pd-price .now {
	font-size: 30px;
	font-weight: bold;
	color: #ff4939;
	line-height: 34px;
}
.pd-price .now small {
	font-size: 16px;
}
.pd-price .was {
	margin-left: 12px;
	font-size: 13px;
	color: #aaa;
	text-decoration: line-through;
}
.pd-sku { margin-bottom: 12px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.pd-sku-hd { padding: 10px 16px; background: #fafafa; font-weight: bold; font-size: 15px; color: #333; border-bottom: 1px solid #eee; }
.pd-sku-list { list-style: none; margin: 0; padding: 0; }
.pd-sku-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.pd-sku-item:last-child { border-bottom: none; }
.pd-sku-name { flex: 1; color: #444; }
.pd-sku-price { color: #ff4939; font-weight: bold; }
.pd-sku-stock { color: #2a9d3f; font-size: 13px; }
.pd-sku-stock.pd-sku-out { color: #bbb; }

.pd-coupon {
	margin-bottom: 12px;
}
.pd-coupon .cp {
	display: inline-block;
	padding: 3px 12px;
	font-size: 13px;
	color: #fff;
	background: #ff4939;
}
.pd-coupon .cp span {
	margin-left: 10px;
	opacity: .8;
}
.pd-coupon .exp {
	margin-left: 10px;
	font-size: 12px;
	color: #999;
}
.pd-meta {
	margin-bottom: 16px;
	padding: 10px 0;
	border-top: 1px dashed #eee;
	border-bottom: 1px dashed #eee;
	font-size: 13px;
	color: #666;
	line-height: 26px;
}
.pd-meta span {
	margin-right: 18px;
}
.pd-meta b {
	color: #333;
}
.pd-purpose {
	margin-bottom: 16px;
	padding: 10px 14px;
	background: linear-gradient(90deg, #fff3f1, #fffbfa);
	border: 1px solid #ffd9d3;
	border-left: 4px solid #ff4939;
	border-radius: 6px;
	font-size: 14px;
	color: #444;
	line-height: 26px;
}
.pd-purpose-label {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 10px;
	background: #ff4939;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	border-radius: 3px;
	vertical-align: 1px;
}
.pd-purpose-val {
	color: #333;
	font-weight: 500;
}
.pd-parts {
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #f7f8fa;
	border: 1px solid #eee;
	border-radius: 6px;
	font-size: 13px;
	color: #444;
	line-height: 33px;
}
.pd-parts-title {
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e8e8e8;
	font-size: 14px;
	font-weight: bold;
	color: #ff4939;
	line-height: 24px;
}
.pd-part-item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 6px 0;
}
.pd-part-key {
	display: inline-block;
	min-width: 4em;
	color: #ff4939;
	margin-right: 4px;
	font-weight: bold;
	font-size: 16px;
}
.pd-part-val {
	color: #333;
}
/* 硬件值「型号（参数）」：型号加粗；参数另起一行，缩进对齐到值的起点，颜色浅 */
.pd-part-val-name {
	font-weight: bold;
	font-size: 16px;
}
.pd-part-spec {
	padding-left: 71px;
	color: #888;
	line-height: 1.5;
	margin-top: -8px;
}
/* 整机价格的报价日期行：key「整机价格：」为 5 字符，比普通硬件 key 宽，缩进对齐到价格值起点 */
.pd-part-spec-jiage {
	padding-left: 84px;
}
/* 成色：跟在型号后面，橙色文字，无背景 */
.pd-part-chengse {
	display: inline;
	margin-left: 8px;
	font-size: 14px;
	color: #ff9c00;
	font-weight: normal;
}
/* 硬件单价：紧跟成色后面，红色，不加粗 */
.pd-part-price {
	display: inline;
	margin-left: 6px;
	color: #ff4939;
	font-weight: normal;
	line-height: 1.5;
}
.pd-ops {
	margin-bottom: 14px;
	padding: 8px 12px;
	font-size: 13px;
	color: #854f0b;
	background: #faeeda;
	border: 1px solid #f0c68a;
}
.pd-ops b {
	margin: 0 2px;
}
.pd-acts {
	padding-top: 4px;
}
.pd-acts a,
.pd-acts button {
	display: inline-block;
	margin: 0 10px 10px 0;
	padding: 11px 30px;
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
	border: 0;
}
.pd-acts .buy {
	color: #fff;
	background: #ff4939;
}
.pd-acts .buy:hover {
	color: #fff;
	background: #e63c2d;
}
.pd-acts .ghost {
	color: #ff4939;
	background: #fff;
	border: 1px solid #ff4939;
}
.pd-acts .ghost:hover {
	color: #fff;
	background: #ff4939;
}
.pd-acts .ghost:disabled {
	color: #bbb;
	border-color: #ddd;
	background: #fafafa;
	cursor: default;
}
.pd-tpwd {
	margin-top: 6px;
	padding: 12px 14px;
	font-size: 13px;
	color: #666;
	background: #f7f7f7;
	border: 1px dashed #ddd;
}
.pd-tpwd .code {
	margin-top: 8px;
	font-size: 16px;
	color: #333;
	word-break: break-all;
}
.pd-note {
	margin-top: 16px;
	font-size: 12px;
	line-height: 22px;
	color: #aaa;
}
.pd-desc {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eee;
	font-size: 14px;
	line-height: 28px;
	color: #666;
}
.pd-desc h2 {
	margin-bottom: 8px;
	font-size: 16px;
	color: #333;
}

/* 上下篇（对应模板的 prenext） */
.pd-prenext {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #eee;
	font-size: 13px;
	line-height: 28px;
	color: #666;
}
.pd-prenext a {
	color: #ff4939;
}

/* ============ 5. 底部固定购买条（模板 .headdb 写死 1200px、按钮宽度也写死） ============ */
.headdb {
	left: 0;
	right: 0;
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
	z-index: 100;
	background: #ff4939;
}
.headdb .fb_d {
	display: flex !important;
	justify-content: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 56px;
	background: #ff4939;
}
.headdb .fb_d a,
.headdb .fb_d button {
	flex: 1 1 0;
	width: auto;
	max-width: 320px;
	height: 56px;
	padding: 0;
	font-size: 17px;
	font-weight: bold;
	font-family: inherit;
	line-height: 56px;
	text-align: center;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.headdb .fb_d a.buy {
	background: #ff4939;
	border-left: 1px solid rgba(255, 255, 255, .55);
}
.headdb .fb_d a:hover,
.headdb .fb_d button:hover {
	color: #fff;
	background: rgba(0, 0, 0, .16);
}
/* 固定条会盖住最后一屏内容，给 body 留出高度 */
body.has-headdb {
	padding-bottom: 66px;
}

/* ============ 6. 窄屏兜底 ============ */
@media (max-width: 660px) {
	.pd-img {
		float: none;
		width: 100%;
		margin: 0 0 16px;
	}
	.pd-img img {
		height: auto;
	}
	.pd-price .now {
		font-size: 24px;
	}
	.pd-acts a,
	.pd-acts button {
		display: block;
		width: 100%;
		margin-right: 0;
		text-align: center;
	}
	.filters a,
	.hots a {
		padding: 2px 8px;
	}
	.pd-parts {
		padding: 5px 5px;
	}
	.pd-part-key {
		min-width: 2em;
	}
	.pd-part-spec {
		padding-left: 54px;
	}
	.pd-part-spec-jiage {
		padding-left: 84px;
	}
	.pd-part-chengse {
		margin-left: 0;
	}
	.pd-part-price {
		margin-left: 0;
	}
	.cont {
		padding-left: 4px;
		padding-right: 4px;
	}
	.topic_list {
		padding-left: 0;
		padding-right: 0;
	}
}
@media (max-width: 960px) {
	.topic_list.bagua {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
	.tl_box {
		width: 31.33%;
	}
}
@media (max-width: 660px) {
	.topic_list.bagua {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	/* 首页「组装电脑配置推荐」用的 .bagua.cg：手机端一行一个 */
	.bagua.cg {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	/* 正文下的「相关推荐」：恢复一行两个（覆盖上面的单列） */
	.bagua.cg.related-cg {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.tl_box {
		width: 48%;
		margin: 0 1% 14px;
	}
	.tlb_art {
		height: auto;
	}
}

/* ============ 7. 顶部搜索框（替换原 topbar 菜单） ============ */
.topbar {
	margin-right: 0;
}
.topbar-search {
	float: right;
	display: flex;
	margin: -2px 0 0 0;
}
.topbar-search input[type="text"] {
	width: 280px;
	height: 28px;
	padding: 0 8px;
	font-size: 13px;
	color: #666;
	border: 1px solid #ddd;
	border-right: none;
	border-radius: 2px 0 0 2px;
	outline: none;
	background: #fff;
}
.topbar-search button {
	height: 30px;
	padding: 0 12px;
	font-size: 13px;
	color: #fff;
	border: none;
	background: #ff4939;
	border-radius: 0 2px 2px 0;
	cursor: pointer;
}
.topbar-search button:hover {
	background: #e63e2f;
}
@media (max-width: 920px) {
	.topbar-search input[type="text"] {
		width: 160px;
	}
}
@media (max-width: 660px) {
	.topbar-search input[type="text"] {
		width: 120px;
	}
}

/* 底部浮动条里的“我的链接”按钮，强调这是你自己的推广链接 */
.headdb .fb_d a.buy-my { background: #ff4939; }
.headdb .fb_d a.buy-my:hover { background: #e63c00; }
.field-tip { color: #c0392b; display: block; margin-top: 6px; font-size: 13px; }