/*
Theme Name: Shengcai Child
Template: twentytwentyfive
Version: 1.7
Description: 声采科技子主题 —— 页面样式 + 动效 + 图片/表格/CTA/卡片网格/站标/全宽排版
*/

/* ============ 基础 ============ */
body {
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
	color: #1a2332;
	line-height: 1.75;
}
h1, h2, h3 { font-weight: 700; letter-spacing: .5px; }

.wp-block-post-content-is-layout-constrained > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* 滚动淡入动画：配合 JS 给区块加 .sc-anim 类 */
@media (prefers-reduced-motion: no-preference) {
	.sc-anim { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
	.sc-anim.sc-in { opacity: 1; transform: none; }
}

/* ============ 首屏 Hero ============ */
.hero {
	position: relative;
	background:
		linear-gradient(rgba(11,18,32,.55), rgba(11,18,32,.75)),
		url('/wp-content/uploads/2026/10/hero-bg.jpg') center/cover no-repeat,
		linear-gradient(135deg, #0B1220 0%, #14263f 60%, #1d3a5f 100%);
	color: #fff;
	padding: 140px 24px 110px;
	text-align: center;
}
/* 没有大图时自动退回纯渐变，不会破版 */
@supports not (background: url(x)) { .hero { background: #0B1220; } }

.hero h1 { color: #fff; font-size: 2.8rem; line-height: 1.3; margin: 0 0 18px; }
.hero .subtitle { color: #d6e2f2; font-size: 1.2rem; margin-bottom: 40px; }

.hero .wp-block-buttons { justify-content: center; gap: 16px; }
.hero .wp-block-button__link {
	border-radius: 10px !important;
	padding: 15px 38px !important;
	font-size: 1.05rem;
	font-weight: 600;
	transition: transform .2s, box-shadow .2s;
}
.hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #2f7df6 !important;
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(47,125,246,.45);
}
.hero .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid rgba(255,255,255,.65) !important;
	color: #fff !important;
	background: rgba(255,255,255,.06) !important;
}
.hero .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(47,125,246,.55); }

/* 首屏三个数据：更醒目 */
.hero .wp-block-columns { max-width: 860px; margin: 56px auto 0; }
.hero .wp-block-column { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); border-radius: 14px; padding: 20px; }
.hero .wp-block-column p { margin: 0; color: #e8eef7; }
.hero .wp-block-column strong { display: block; font-size: 1.5rem; color: #fff; margin-bottom: 6px; }

/* ============ 区块标题 ============ */
.wp-block-post-content h2 {
	font-size: 1.75rem;
	margin-top: 80px;
	margin-bottom: 20px;
	padding-left: 16px;
	border-left: 5px solid #2f7df6;
}
.wp-block-post-content h2 + p { color: #5a6b82; }

/* ============ 卡片 ============ */
.wp-block-columns { gap: 24px; margin-top: 28px; }
.wp-block-column {
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 2px 10px rgba(20,50,100,.05);
	transition: transform .25s, box-shadow .25s;
}
.wp-block-column:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(20,50,100,.14);
	border-color: #bcd6fb;
}
.wp-block-column h3 { color: #0B1220; font-size: 1.15rem; }
.wp-block-column p strong { color: #2f7df6; }

.wp-block-column a {
	display: inline-block;
	margin-top: 12px;
	color: #2f7df6;
	font-weight: 600;
	text-decoration: none;
}
.wp-block-column a:hover { text-decoration: underline; }

/* ============ 页脚 ============ */
footer.wp-block-template-part {
	background: #0B1220;
	color: #9fb0c8;
	padding: 48px 24px;
	margin-top: 90px;
}
footer a { color: #c9d6e8; }

/* ============ 手机适配 ============ */
@media (max-width: 782px) {
	.hero { padding: 90px 20px 70px; }
	.hero h1 { font-size: 1.7rem; }
	.wp-block-columns { flex-wrap: wrap; }
	.wp-block-column { flex: 1 1 100% !important; }
}

/* ============ 图片视觉（v1.3） ============ */
.wp-block-post-content .wp-block-image img {
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(20, 50, 100, .12);
	transition: transform .35s ease, box-shadow .35s ease;
}
.wp-block-post-content .wp-block-image:hover img {
	transform: scale(1.015);
	box-shadow: 0 12px 36px rgba(20, 50, 100, .18);
}
.wp-block-post-content .wp-block-image figcaption {
	text-align: center;
	color: #5a6b82;
	font-size: .85rem;
	margin-top: 8px;
}

/* ============ 表格视觉（v1.3） ============ */
.wp-block-post-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(20, 50, 100, .07);
}
.wp-block-post-content .wp-block-table th {
	background: #14263f;
	color: #fff;
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
	border: none;
}
.wp-block-post-content .wp-block-table td {
	padding: 11px 16px;
	border: none;
	border-bottom: 1px solid #e8eef6;
}
.wp-block-post-content .wp-block-table tbody tr:nth-child(even) td {
	background: #f6f9fd;
}
.wp-block-post-content .wp-block-table tbody tr:hover td {
	background: #eef4fc;
}
.wp-block-post-content .wp-block-table a { color: #2f7df6; font-weight: 600; }

/* ============ 列表与引用（v1.3） ============ */
.wp-block-post-content .wp-block-list li { margin-bottom: 8px; }
.wp-block-post-content .wp-block-list li::marker { color: #2f7df6; }
.wp-block-post-content .wp-block-quote {
	border-left: 4px solid #2f7df6;
	background: #f2f7fe;
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
	margin: 24px 0;
}
.wp-block-post-content .wp-block-quote p { color: #1a2332; font-size: 1.02rem; }
.wp-block-post-content .wp-block-quote cite { color: #5a6b82; font-style: normal; }

/* ============ CTA 报价框（v1.3） ============ */
.sc-cta {
	background: linear-gradient(135deg, #14263f 0%, #1d3a5f 100%);
	border-radius: 18px;
	padding: 40px 36px;
	margin: 56px 0 8px;
	text-align: center;
}
.sc-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 12px; }
.sc-cta p { color: #c9d6e8; margin: 0 0 22px; }
.sc-cta .wp-block-buttons { justify-content: center; }
.sc-cta .wp-block-button__link {
	background: #2f7df6 !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 13px 34px !important;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(47, 125, 246, .45);
	transition: transform .2s, box-shadow .2s;
}
.sc-cta .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(47,125,246,.55); }

/* ============ 品牌页 banner（v1.3） ============ */
.sc-brand-banner img {
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(20, 50, 100, .15);
}

/* ============ 相关链接区（v1.3） ============ */
.sc-related {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 32px 0;
}
.sc-related a {
	flex: 1 1 240px;
	background: #fff;
	border: 1px solid #e8eef6;
	border-radius: 12px;
	padding: 16px 18px;
	color: #1a2332;
	text-decoration: none;
	font-weight: 600;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sc-related a:hover {
	transform: translateY(-4px);
	border-color: #bcd6fb;
	box-shadow: 0 10px 26px rgba(20, 50, 100, .12);
}
.sc-related a span { display: block; color: #5a6b82; font-weight: 400; font-size: .88rem; margin-top: 4px; }

/* ============ 正式页脚 ============ */
.sc-footer {
	background: #0B1220;
	color: #9fb0c8;
	padding: 56px 24px 32px;
	margin-top: 0;
	font-size: .95rem;
}
footer.wp-block-template-part { background: transparent; padding: 0; margin-top: 0; }
.sc-footer-cols { max-width: 1200px; margin: 0 auto; gap: 40px; }
.sc-footer-name { font-size: 1.2rem; color: #fff; margin: 0 0 10px; }
.sc-footer-title { color: #fff; font-weight: 600; margin: 0 0 10px; }
.sc-footer-contact p, .sc-footer-brand p, .sc-footer-nav p { margin: 0 0 6px; color: #9fb0c8; }
.sc-footer a { color: #c9d6e8; text-decoration: none; }
.sc-footer a:hover { color: #fff; text-decoration: underline; }
.sc-footer-icp {
	border-top: 1px solid rgba(255,255,255,.12);
	margin-top: 40px;
	padding-top: 24px;
	text-align: center;
	font-size: .85rem;
	color: #6d7f99;
}
.sc-footer-icp p { margin: 0; }
@media (max-width: 782px) {
	.sc-footer-cols { flex-direction: column; gap: 28px; }
}

/* ============ 站标 LOGO（v1.4） ============ */
.wp-block-site-logo img {
	max-height: 46px;
	width: auto;
	object-fit: contain;
}
.wp-block-site-title a {
	font-weight: 700;
	letter-spacing: .5px;
	color: #0B1220 !important;
	text-decoration: none;
}

/* ============ 首页四列卡片网格（v1.4） ============ */
/* 品牌卡片 / 案例卡片：四列排布，窄屏自动两列→一列 */
.wp-block-post-content .wp-block-columns:has(.wp-block-column h3 + p + p + p > a) {
	flex-wrap: wrap;
}
.wp-block-post-content .wp-block-column {
	min-width: 0;
}
@media (min-width: 783px) {
	.wp-block-post-content .wp-block-columns > .wp-block-column {
		flex-basis: calc(25% - 18px);
	}
}

/* 卡片内的型号列表：弱化处理，避免与描述抢视线 */
.wp-block-column p em {
	display: inline-block;
	color: #5a6b82;
	font-size: .86rem;
	font-style: normal;
	line-height: 1.6;
	background: #f2f7fe;
	border-radius: 6px;
	padding: 3px 8px;
}

/* 卡片内的「查看详情 →」：整张卡片可点更顺手 */
.wp-block-column > p:last-child a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 16px;
	border-radius: 8px;
	background: #eef4fc;
	color: #1d5fd0;
	font-size: .92rem;
	transition: background .2s, color .2s, transform .2s;
}
.wp-block-column > p:last-child a:hover {
	background: #2f7df6;
	color: #fff;
	text-decoration: none;
	transform: translateX(2px);
}

/* 卡片标题下的行业/规模标签 */
.wp-block-column h3 + p {
	color: #5a6b82;
	font-size: .95rem;
}

/* ============ 排版修正（v1.5） ============ */
/* Hero 首屏撑满全屏宽，消除两侧留白 */
body { overflow-x: hidden; }
.wp-block-post-content > .wp-block-group.hero,
.wp-block-group.hero {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* 正文各分区统一宽度，保证左右对齐 */
.wp-block-post-content-is-layout-constrained > *,
.wp-block-post-content > * {
	max-width: 1200px;
}

/* 顶部导航加大加清晰 */
.wp-block-navigation,
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__label {
	font-size: 1.1rem !important;
	font-weight: 600 !important;
}
.wp-block-navigation .wp-block-navigation-item__content {
	padding: 4px 2px;
}
.wp-block-navigation .wp-block-navigation-submenu__toggle,
.wp-block-navigation-item > a {
	line-height: 1.6;
}

/* 页头整体垂直居中、留白舒展 */
.wp-block-template-part .wp-block-group:has(.wp-block-site-logo) {
	align-items: center;
	padding-top: 14px;
	padding-bottom: 14px;
}
/* 修复页头与内容之间的顶部大间距 */
.hero {
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}

main.wp-block-group > .wp-block-group.alignfull { padding-top: 0 !important; }
html, body { overflow-x: hidden; }

/* 页头：LOGO 加大 + 导航靠右 */
.wp-block-site-logo a,
.wp-block-site-logo a img,
.wp-block-site-logo img.custom-logo {
	width: 250px !important;
	max-width: none !important;
	height: auto !important;
}


.wp-block-template-part .wp-block-group.is-nowrap {
	width: 100%;
	justify-content: space-between !important;}
.wp-block-template-part .wp-block-group:has(.wp-block-navigation) {
	justify-content: flex-end !important;
}
main.wp-block-group { margin-top: 0 !important; }
.wp-block-post-content { margin-top: 0 !important; }




/* 品牌小标题样式 */

.entry-content h3.wp-block-heading {

    font-size: 1.35rem;

    font-weight: 700;

    margin-top: 2.2rem;

    padding-left: .6em;

    border-left: 4px solid #2563eb;

}




/* 品牌页横幅图：显示为容器 1/3 宽度 */

.entry-content img[src*="poly-g7500-set"],

.entry-content img[src*="maxhub-meetingboard"] {

    width: 33.33%;

    height: auto;

}




/* 8个品牌页横幅图：显示为容器 50% 宽度 */

.entry-content img[src*="poly-g7500-set"],

.entry-content img[src*="maxhub-meetingboard"],

.entry-content img[src*="20250222_1740214990864336"],

.entry-content img[src*="20250308_1741401308255091"],

.entry-content img[src*="20250222_1740213383300478"],

.entry-content img[src*="20250222_1740214149945547"],

.entry-content img[src*="20250222_1740218364624943"],

.entry-content img[src*="20190730_1564456972115230"] {

    width: 50%;

    height: auto;

}

