/*
Theme Name: XUYONG Clone
Theme URI: https://www.xuyong.com/
Author: 深圳市旭永实业有限公司
Description: 深圳市旭永实业有限公司官网主题。手写经典主题，1:1 还原设计稿，中英双语（英文主域 / cn 子域）。区块 markup 与 CSS 全在主题里，内容模型由 XUYONG Core 插件提供。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: xuyong
*/

/*
 * 真正的样式在 assets/css/css.css（设计稿原样搬过来，不改）。
 * 这个文件只承担主题头信息，以及少量 WordPress 特有元素的补丁。
 */

/* WordPress 编辑器/核心类：设计稿里没有对应样式，这里给最小实现。 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: #888; text-align: center; margin-top: 8px; }

/* 表单提交结果提示。设计稿没有这个状态，按主色做一条与表单同宽的提示条。 */
.xy-form-message {
	margin: 0 0 24px;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 16px;
	line-height: 1.6;
}
.xy-form-message.is-ok    { background: #eaf5ff; color: #0b62a4; border: 1px solid #b8dcf7; }
.xy-form-message.is-error { background: #fdeceb; color: #a4291f; border: 1px solid #f5c4c0; }

/* 蜜罐字段：给机器人看，不给人看。用 !important 顶掉可能的行内覆盖。 */
.xy-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* 「获取验证码」在请求中的禁用态。 */
.getEcode.is-busy { opacity: .55; pointer-events: none; }

/* 列表为空时的占位，避免整块区域塌成空白让人以为页面坏了。 */
.xy-empty {
	padding: 60px 0;
	text-align: center;
	color: #888;
	font-size: 18px;
}

/*
 * 设计稿之外的补充
 * ---------------
 * .foot-copy 在 css.css 里没有：设计稿的页脚没有版权/备案行，而中文站上线
 * 必须挂备案号，所以补一条低调的行，配色跟着页脚的深色背景走。
 */
.foot-copy {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: 14px;
	line-height: 1.8;
	color: rgba(255, 255, 255, .6);
}
.foot-copy a { color: rgba(255, 255, 255, .6); margin-left: 10px; }
.foot-copy a:hover { color: #fff; }

/*
 * 客户 logo 滚动条：设计稿里每张 logo 包在 <a href="javascript:;"> 里，
 * 那是个点了没反应的死链。这里没有链接时改用 <span>，补一条同样的
 * display:block，视觉完全一致。
 */
.idxPartner.swiper .swiper-slide > span { display: block; }

/*
 * 中文字体栈补全
 * -------------
 * css.css 里写的是 font-family:'PingFangSC-Regular',Arial,Helvetica,sans-serif，
 * 而苹方现在只从系统本地取（见 assets/css/fonts.css 的说明）。Arial 没有汉字，
 * 非苹果系统会掉到浏览器的默认中文字体，字重和行宽都不受控。这里把常见系统的
 * 中文字体显式补进去，Windows / Android 上的观感尽量贴近设计稿。
 */
body {
	font-family: 'PingFangSC-Regular', 'PingFang SC', 'Hiragino Sans GB',
		'Microsoft YaHei UI', 'Microsoft YaHei', 'Source Han Sans SC',
		'Noto Sans CJK SC', Arial, Helvetica, sans-serif;
}
body.lang-en {
	font-family: 'Roboto-Regular', 'Roboto', Arial, Helvetica, sans-serif;
}
