/*
Theme Name: SLOWCOM SpaceAI 慢云空间智能
Theme URI: https://spaceai.slowcom.cn/
Author: SLOWCOM 慢云
Author URI: https://spaceai.slowcom.cn/
Description: 慢云空间智能官网 V6 官方 WordPress 主题。1:1 还原官网静态站设计，深色科技风、全站响应式（PC / 平板 / 手机），内置洞察中心（新闻资讯 + 8 大栏目分类）、案例实践、行业方案、合作咨询表单留资等功能模块，激活主题后自动导入全部演示内容并完成首页、菜单与固定链接配置。
Version: 6.0.53
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slowcom-spaceai
Tags: dark, one-column, custom-menu, news, portfolio, responsive
*/

/* ---- WordPress 环境适配（不影响原设计） ---- */

/* 管理员登录时顶部 admin bar 与固定页头的偏移 */
body.admin-bar .site-header {
	top: 32px;
}
body.admin-bar .assistant-panel {
	--sc-adminbar: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* WP 默认输出的对齐类，保证编辑器新增内容正常显示 */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85em; opacity: 0.75; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* 表单提交成功提示（与站点视觉一致） */
.sc-form-success {
	border: 1px solid rgba(120, 200, 255, 0.35);
	background: rgba(20, 60, 110, 0.25);
	border-radius: 14px;
	padding: 28px 26px;
	text-align: center;
}
.sc-form-success strong {
	display: block;
	font-size: 1.15em;
	margin-bottom: 8px;
}
.sc-form-success p { opacity: 0.8; margin: 0; }

/* 非导入内容（后台新建文章/页面）的默认排版兜底 */
.sc-plain-entry {
	max-width: 860px;
	margin: 0 auto;
	padding: 140px clamp(20px, 5vw, 60px) 90px;
}
.sc-plain-entry h1 { margin-bottom: 0.4em; }
.sc-plain-entry .sc-plain-meta { opacity: 0.65; margin-bottom: 2.2em; font-size: 0.9em; }
.sc-plain-entry .sc-plain-content p { margin: 0 0 1.1em; line-height: 1.85; }
.sc-plain-entry .sc-plain-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---- 洞察中心内容列表：一行 4 列 + 加载翻页 ---- */
.article-grid.insight-explorer-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1100px) {
	.article-grid.insight-explorer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.article-grid.insight-explorer-grid { grid-template-columns: 1fr; }
}

.insight-explorer-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}
.insight-explorer-pager [data-sc-load-more] {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 34px;
	border: 1px solid var(--blue, #2378ff);
	border-radius: 999px;
	background: var(--blue, #2378ff);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(35, 120, 255, .22);
	transition: background .22s, box-shadow .22s, transform .22s;
}
.insight-explorer-pager [data-sc-load-more]::after { content: ' ↓'; font-weight: 700; }
.insight-explorer-pager [data-sc-load-more]:hover:not([hidden]) {
	background: #1c66e0;
	box-shadow: 0 12px 28px rgba(35, 120, 255, .34);
	transform: translateY(-1px);
}
.insight-explorer-pager [data-sc-load-more][hidden] { display: none; }
.insight-explorer-pageinfo {
	font-size: 12.5px;
	letter-spacing: 0.05em;
	color: #2f6fd6;
	opacity: 0.92;
}

/* ---- 栏目页列表：加载更多分页 ---- */
.insight-list-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}
/* 统一的上一页 / 下一页按钮：浅色背景下清晰可见、左右对称 */
.insight-list-pager .sc-pager-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 26px;
	border: 1px solid var(--blue, #2378ff);
	border-radius: 999px;
	background: #fff;
	color: var(--blue, #2378ff);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	cursor: pointer;
	transition: background .22s, color .22s, box-shadow .22s, transform .22s;
}
.insight-list-pager .sc-pager-btn:hover:not([disabled]) {
	background: var(--blue, #2378ff);
	color: #fff;
	box-shadow: 0 10px 26px rgba(35, 120, 255, .32);
	transform: translateY(-1px);
}
.insight-list-pager .sc-pager-btn[disabled] {
	border-color: #d4dae3;
	background: #f3f5f8;
	color: #aab2bf;
	cursor: not-allowed;
	pointer-events: none;
}
.insight-list-pageinfo {
	font-size: 13px;
	letter-spacing: 0.05em;
	color: var(--ink, #1c2b3a);
	opacity: 0.85;
	min-width: 132px;
	text-align: center;
	display: block;
	width: 100%;
	margin-top: 14px;
}

/* 上一页 / 下一页 对称翻页（6.0.14 样式，无数字页码） */

/* ---- 文章详情页 banner：高度减半 + 标题字号调整 ---- */
.article-header {
	min-height: 310px;
	padding: 62px clamp(24px, 12vw, 195px) 45px;
}
.article-header h1 {
	font-size: clamp(32px, 5.5vw, 56px);
}
.article-header > span { margin-top: 18px; }
.article-header > div { margin-top: 30px; }
@media (max-width: 760px) {
	.article-header {
		min-height: 305px;
		padding: 58px 20px 35px;
	}
	.article-header h1 { font-size: clamp(32px, 5.5vw, 56px); }
}

/* ---- 文章详情页相关内容列表：自适应列，2–4 张都不空洞 ---- */
.related-insights-grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (max-width: 1100px) {
	.related-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.related-insights-grid { grid-template-columns: 1fr; }
}

/* ---- 知识产权页（/intellectual-property/）文字修正 ---- */
/* 浅色区块的区块标题改黑（作用域到具体区块，避免影响深色区块白字） */
#qualifications .ip-section-head h2,
#software-copyright .ip-section-head h2 {
	color: #000;
}
/* 软件著作权成果列表的标题改黑 */
#software-copyright .ip-software-list h3 {
	color: #000;
}

/* ---- 联系页（contact）定向修正 ---- */
/* 1) 目录标题 / 4) 表单标题：文字颜色改为黑色（所在区块底色为浅色，黑色可读） */
.contact-directory-head h2,
.contact-form-intro h2 {
	color: #000;
}
/* 6) “慢云最新动态”栏目：内容列表一行四列（数据由 setup2.php 的 sc_fix_contact_page 实时拉取最新 4 篇） */
.related-insights-section .related-insights-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
	.related-insights-section .related-insights-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.related-insights-section .related-insights-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------- 全站返回顶部按钮（右下固定，位于在线助手上方） ---------------- */
.back-to-top {
	position: fixed;
	bottom: 92px;
	right: 24px;
	z-index: 80;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(117, 179, 255, .35);
	border-radius: 14px;
	background: #0d1f38eb;
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 14px 50px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease, border-color .2s ease;
}
.back-to-top svg { display: block; }
.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.back-to-top:hover {
	background: #1f72ff;
	border-color: rgba(255, 255, 255, .25);
	transform: translateY(-3px);
}
@media (max-width: 600px) {
	.back-to-top {
		bottom: 84px;
		right: 16px;
	}
}
.article-body .sc-grid{list-style:none;margin:30px 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;align-items:stretch}
.article-body .sc-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 26px 26px;box-shadow:0 6px 18px #0b274c0d;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;display:flex;flex-direction:column}
.article-body .sc-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px #0b274c1a;border-color:#bfe0ff}
.article-body .sc-card-no{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#0b3a73,#1f72ff);color:#fff;font-size:15px;font-weight:700;letter-spacing:.02em;margin-bottom:18px;box-shadow:0 6px 14px #1f72ff33}
.article-body .sc-card-txt{margin:0;color:var(--ink);font-size:15.5px;line-height:1.82;letter-spacing:.01em}
@media (max-width:600px){.article-body .sc-card{padding:22px 20px}.article-body .sc-card-txt{font-size:15px}}

/* ---- 文章详情页：正文 / 结语 h2 字号重置（仅文章详情页 .single-post，覆盖 main.css 的 clamp(32px,4vw,48px)） ---- */
.single-post .article-body h2,
.single-post .article-conclusion h2 { font-size: clamp(18px, 4vw, 28px); }

/* 广告法合规免责声明（news / cases / industry 详情页正文末尾） */
.article-body .sc-legal-disclaimer{margin:44px 0 4px;padding:18px 22px;background:#f6f8fb;border:1px solid var(--line);border-left:3px solid #1f72ff;border-radius:10px}
.article-body .sc-legal-disclaimer__label{display:inline-block;margin-bottom:8px;color:#0b3a73;font-size:12.5px;font-weight:700;letter-spacing:.06em}
.article-body .sc-legal-disclaimer__text{margin:0;color:#5c6b7e;font-size:13px;line-height:1.86;letter-spacing:.01em}
@media (max-width:600px){.article-body .sc-legal-disclaimer{margin-top:34px;padding:15px 16px}.article-body .sc-legal-disclaimer__text{font-size:12.5px}}

