/*
 * 透叶科技子主题精修样式
 * 作用域：.touye-site（仅本站生效）
 * 页面主体内容为内联样式，这里只做全局骨架的精修与增强。
 */

/* ============ 基础 ============ */
html.touye-html { scroll-behavior: smooth; }
.touye-site { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.touye-site ::selection { background: #4F46E5; color: #fff; }

/* ============ 站点标题（Logo）============ */
.touye-site .wp-block-site-title a,
.touye-site .wp-block-site-title a:hover {
	position: relative;
	padding-left: 1.15em;
	text-decoration: none;
	letter-spacing: -0.04em;
}
/* 品牌标记：[■] 方括号 + 实心块 */
.touye-site .wp-block-site-title a::before {
	content: '[';
	position: absolute; left: 0.42em; top: 50%;
	transform: translateY(-52%);
	color: #4F46E5; font-weight: 800;
}
.touye-site .wp-block-site-title a::after {
	content: '';
	position: absolute; left: 0.1em; top: 50%;
	width: 0.42em; height: 0.42em;
	transform: translateY(-52%);
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	border-radius: 2px;
}

/* ============ 导航 ============ */
.touye-site header .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 4px;
	transition: color .2s ease;
}
.touye-site header .wp-block-navigation-item__content::after {
	content: '';
	position: absolute; left: 0; bottom: 0;
	width: 100%; height: 2px;
	background: #4F46E5;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.touye-site header .wp-block-navigation-item__content:hover::after,
.touye-site header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}
.touye-site .wp-block-navigation__responsive-container-open svg { transition: transform .2s ease; }
.touye-site .wp-block-navigation__responsive-container-open:hover svg { transform: scale(1.1); }

/* ============ 按钮 ============ */
.touye-site .wp-block-button__link {
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}
.touye-site .wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* ============ 页脚：隐藏主题自带的示例导航（事件/商店/样板/主题）============ */
/* 该导航是第二个无 aria-label 的 nav，且链接全部指向 # */
.touye-site footer .wp-block-navigation:not([aria-label]) { display: none !important; }

/* 页脚站点标题不要 Logo 标记，保持简洁 */
.touye-site footer .wp-block-site-title a { padding-left: 0; }
.touye-site footer .wp-block-site-title a::before,
.touye-site footer .wp-block-site-title a::after { display: none; }

/* ============ 滚动淡入 ============ */
.touye-site .touye-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}
.touye-site .touye-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.touye-site .touye-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ 返回顶部按钮 ============ */
.touye-backtotop {
	position: fixed; right: 24px; bottom: 24px; z-index: 999;
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	background: #4F46E5; color: #fff;
	border: 0; border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
}
.touye-backtotop.show { opacity: 1; visibility: visible; transform: none; }
.touye-backtotop:hover { background: #4338CA; transform: translateY(-2px); }
.touye-backtotop svg { width: 20px; height: 20px; }

/* ============ 表单（CF7）美化 ============ */
.touye-site .wpcf7 { max-width: 100%; }
.touye-site .wpcf7 label {
	display: block; font-size: 13px; font-weight: 700;
	color: #334155; margin-bottom: 6px;
}
.touye-site .wpcf7 input[type="text"],
.touye-site .wpcf7 input[type="email"],
.touye-site .wpcf7 input[type="tel"],
.touye-site .wpcf7 textarea {
	width: 100%; box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid #CBD5E1; border-radius: 9px;
	font-size: 15px; font-family: inherit;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.touye-site .wpcf7 input:focus,
.touye-site .wpcf7 textarea:focus {
	outline: none; border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.touye-site .wpcf7 textarea { min-height: 130px; resize: vertical; }
.touye-site .wpcf7 .wpcf7-submit {
	background: #4F46E5 !important; color: #fff !important;
	border: 0; padding: 14px 30px; border-radius: 9px;
	font-size: 16px; font-weight: 700; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.touye-site .wpcf7 .wpcf7-submit:hover { background: #4338CA !important; transform: translateY(-1px); }
.touye-site .wpcf7-response-output {
	border-radius: 8px; margin: 16px 0 0 0 !important;
}
.touye-site .wpcf7-not-valid-tip { color: #DC2626; font-size: 13px; margin-top: 4px; }

/* ============ 移动端细节 ============ */
@media (max-width: 782px) {
	.touye-backtotop { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ============================================================
 * 顶栏 / 底栏 科技感增强
 * 目标：让页面头尾与深色科技主体呼应，强化品牌识别。
 * 全部作用域限定在 .touye-site，不污染其他主题。
 * ============================================================ */
@keyframes touye-flow {
	0%   { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

/* ---------- 顶部：吸顶 + 流动光带 + 滚动毛玻璃 ---------- */
.touye-site header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* 顶部 3px 品牌渐变光带（靛蓝→青→靛蓝，缓慢流动） */
.touye-site header.wp-block-template-part::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 50%, #4F46E5 100%);
	background-size: 200% 100%;
	animation: touye-flow 6s linear infinite;
	z-index: 2;
}
/* 滚动后：半透明毛玻璃 + 轻投影 */
.touye-site header.wp-block-template-part.touye-scrolled {
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: 0 6px 30px rgba(15, 23, 42, .09);
}
/* Logo 标记增强：加发光 */
.touye-site header .wp-block-site-title a::after {
	box-shadow: 0 0 12px rgba(79, 70, 229, .5);
}
/* 导航下划线改品牌渐变 */
.touye-site header .wp-block-navigation-item__content::after {
	background: linear-gradient(90deg, #4F46E5, #06B6D4);
}

/* ---------- 底部：深墨科技底 + 光带 + 网格光晕 ---------- */
.touye-site footer.wp-block-template-part {
	position: relative;
	background: #0A0F1C;
	color: #E2E8F0;
	overflow: hidden;
}
/* 底部顶部同款流动光带 */
.touye-site footer.wp-block-template-part::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 50%, #4F46E5 100%);
	background-size: 200% 100%;
	animation: touye-flow 6s linear infinite;
	z-index: 2;
}
/* 网格 + 双色光晕背景（科技质感，不抢内容） */
.touye-site footer.wp-block-template-part::after {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 12% 25%, rgba(79, 70, 229, .20), transparent 42%),
		radial-gradient(circle at 88% 75%, rgba(6, 182, 212, .14), transparent 42%),
		linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
	background-size: auto, auto, 44px 44px, 44px 44px;
	pointer-events: none;
}
/* 内容层压在背景之上 */
.touye-site footer.wp-block-template-part > .wp-block-group { position: relative; z-index: 1; }

/* 页脚站点标题：恢复品牌标记 + 浅色 + 青色方括号 */
.touye-site footer .wp-block-site-title a {
	color: #F8FAFC !important;
	padding-left: 1.15em !important;
	position: relative;
	letter-spacing: -0.04em;
}
.touye-site footer .wp-block-site-title a::before {
	display: block !important;
	content: '[';
	position: absolute; left: 0.42em; top: 50%;
	transform: translateY(-52%);
	color: #06B6D4; font-weight: 800;
}
.touye-site footer .wp-block-site-title a::after {
	display: block !important;
	content: '';
	position: absolute; left: 0.1em; top: 50%;
	width: 0.42em; height: 0.42em;
	transform: translateY(-52%);
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	border-radius: 2px;
	box-shadow: 0 0 14px rgba(6, 182, 212, .5);
}
/* 页脚标语 / 导航浅色化 */
.touye-site footer .wp-block-site-tagline { color: #94A3B8 !important; }
.touye-site footer .wp-block-navigation-item__content {
	color: #CBD5E1 !important;
	transition: color .2s ease;
}
.touye-site footer .wp-block-navigation-item__content:hover { color: #fff !important; }
/* 页脚导航项标记点改青色 */
.touye-site footer .wp-block-navigation-item__content::before { color: #06B6D4; }

/* 备案行：浅灰文字 + 顶部分隔线 + hover 青色 */
.touye-site footer p.has-text-align-center {
	color: #94A3B8 !important;
	border-top: 1px solid rgba(148, 163, 184, .15);
	padding-top: 24px !important;
}
.touye-site footer p.has-text-align-center a,
.touye-site footer p.has-text-align-center a:hover { color: #94A3B8 !important; }
.touye-site footer p.has-text-align-center a:hover { color: #06B6D4 !important; }

/* ---------- 主体与头尾的衔接：hero 顶到底的渐变呼吸线 ---------- */
.touye-site .wp-block-group.alignfull.is-layout-constrained > .wp-block-group:first-child > h1.wp-block-post-title {
	position: relative;
}

/* ---------- 顶部品牌宣传横幅 ---------- */
.touye-banner {
	position: relative;
	z-index: 1;
	background: linear-gradient(120deg, #0A0F1C 0%, #16133A 52%, #0A0F1C 100%);
	color: #F8FAFC;
	overflow: hidden;
}
/* 网格 + 青色光晕 */
.touye-banner::after {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 82% 50%, rgba(6, 182, 212, .22), transparent 40%),
		linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
	background-size: auto, 36px 36px, 36px 36px;
	pointer-events: none;
}
.touye-banner-inner {
	position: relative; z-index: 1;
	max-width: 1200px; margin: 0 auto;
	padding: 22px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.touye-banner-copy { display: flex; flex-direction: column; gap: 4px; }
.touye-banner-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; letter-spacing: .08em;
	color: #06B6D4;
}
/* 呼吸小圆点 */
.touye-banner-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: #06B6D4;
	box-shadow: 0 0 0 0 rgba(6, 182, 212, .6);
	animation: touye-pulse 2s infinite;
}
@keyframes touye-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(6, 182, 212, .6); }
	70%  { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
	100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}
.touye-banner-title {
	font-size: clamp(18px, 2.4vw, 25px); font-weight: 800;
	line-height: 1.25; letter-spacing: -.02em; color: #fff;
}
.touye-banner-sub { font-size: 14px; color: #94A3B8; }
.touye-banner-cta {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 8px;
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	color: #fff !important; text-decoration: none !important;
	font-size: 15px; font-weight: 700;
	padding: 13px 24px; border-radius: 10px;
	box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.touye-banner-cta span { transition: transform .2s ease; }
.touye-banner-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(79, 70, 229, .5);
}
.touye-banner-cta:hover span { transform: translateX(4px); }
@media (max-width: 782px) {
	.touye-banner-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; }
	.touye-banner-cta { width: 100%; justify-content: center; }
}

/* ============================================================
 * 主体层次感增强
 * 依靠渲染器输出的语义 class（ty-*）精准命中，不改任何内容。
 * ============================================================ */

/* ---------- 眉标：加品牌装饰短线 ---------- */
.touye-site p.ty-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	position: relative;
}
.touye-site p.ty-eyebrow::before,
.touye-site p.ty-eyebrow::after {
	content: ''; width: 22px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, transparent, #06B6D4);
}
.touye-site p.ty-eyebrow::after { transform: scaleX(-1); }

/* ---------- 服务卡片：悬浮抬升 + 渐变描边 + 图标渐变底 ---------- */
.touye-site .wp-block-group.ty-card {
	position: relative;
	border: 1px solid rgba(15, 23, 42, .05) !important;
	transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease !important;
	overflow: hidden;
}
.touye-site .wp-block-group.ty-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #4F46E5, #06B6D4);
	transform: scaleX(0); transform-origin: left;
	transition: transform .35s ease;
}
.touye-site .wp-block-group.ty-card:hover {
	transform: translateY(-8px) !important;
	box-shadow: 0 20px 44px rgba(15, 23, 42, .13) !important;
	border-color: rgba(79, 70, 229, .22) !important;
}
.touye-site .wp-block-group.ty-card:hover::before { transform: scaleX(1); }
/* 图标：渐变圆形底 */
.touye-site p.ty-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; border-radius: 13px;
	background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(6,182,212,.10)) !important;
	margin-bottom: 8px !important;
}
.touye-site p.ty-card-icon span {
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: #4F46E5;
}
.touye-site p.ty-card-link a { transition: margin-left .2s ease; display: inline-block; }
.touye-site .wp-block-group.ty-card:hover p.ty-card-link a { margin-left: 5px; }

/* ---------- 特性视觉块：深墨渐变 + 光晕 + 网格 ---------- */
.touye-site .wp-block-group.ty-visual {
	position: relative; overflow: hidden;
	display: flex !important; align-items: center; justify-content: center;
	min-height: 220px;
	border: 1px solid rgba(255, 255, 255, .06) !important;
}
.touye-site .wp-block-group.ty-visual::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 50% 40%, rgba(79, 70, 229, .38), transparent 62%),
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: auto, 34px 34px, 34px 34px;
}
.touye-site .wp-block-group.ty-visual p { position: relative; z-index: 1; font-weight: 700 !important; letter-spacing: .01em; }

/* ---------- 步骤卡片：编号做背景水印 + 顶部分隔 ---------- */
.touye-site .wp-block-group.ty-step {
	position: relative; overflow: hidden;
	border-top: 3px solid transparent;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}
.touye-site .wp-block-group.ty-step::after {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #4F46E5, #06B6D4);
	opacity: .35; transition: opacity .3s ease;
}
.touye-site .wp-block-group.ty-step:hover { transform: translateY(-6px) !important; box-shadow: 0 18px 40px rgba(15,23,42,.12) !important; }
.touye-site .wp-block-group.ty-step:hover::after { opacity: 1; }
.touye-site p.ty-step-num {
	font-size: 40px; line-height: 1;
	background: linear-gradient(135deg, #4F46E5, #06B6D4);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: #4F46E5;
	margin-bottom: 10px !important;
}

/* ---------- 引言卡片：左侧品牌色条 + 引号 ---------- */
.touye-site .wp-block-group.ty-quote {
	position: relative; overflow: hidden;
	border-left: 3px solid #4F46E5 !important;
	transition: transform .3s ease, border-color .3s ease !important;
}
.touye-site .wp-block-group.ty-quote:hover { transform: translateY(-4px) !important; border-left-color: #06B6D4 !important; }
.touye-site p.ty-quote-text {
	position: relative;
	padding-left: 4px;
	line-height: 1.7 !important;
}

/* ---------- 首屏 hero：标题渐变高亮 + 副标留白 ---------- */
.touye-site .wp-block-group.alignfull h1.wp-block-post-title {
	letter-spacing: -.035em !important;
}

/* ---------- 横幅与主体标题拉开间距 ----------
 * banner 是 JS 插在 header 后，main 自带 margin-top:spacing-60（约30-70px），
 * 深色 banner 紧接主体标题显得拥挤。这里把 main 顶距加大，撑出呼吸空间。
 */
.touye-site main { margin-top: clamp(44px, 7vw, 84px) !important; }
/* 首页首个 post-title 再留一点上边距 */
.touye-site main > .wp-block-group.alignfull:first-child { padding-top: clamp(48px, 7vw, 84px) !important; }

/* ---------- 联系页：信息卡 + 表单卡 + FAQ 层次 ---------- */
/* 联系信息（邮箱）做成浅色强调卡 */
.touye-site p.ty-contact-email {
	display: inline-block;
	background: linear-gradient(135deg, rgba(79,70,229,.07), rgba(6,182,212,.07));
	border: 1px solid rgba(79, 70, 229, .14);
	border-radius: 12px;
	padding: 16px 22px !important;
	line-height: 1.9 !important;
}
.touye-site p.ty-contact-email strong { color: #4F46E5; }
/* 表单卡片：抬升阴影 + 顶部渐变描边 */
.touye-site .wp-block-column > div[style*="border-radius:14px"] {
	position: relative;
	transition: box-shadow .3s ease, transform .3s ease;
}
.touye-site .wpcf7 {
	position: relative;
}
/* 表单提交按钮强化为品牌渐变 */
.touye-site .wpcf7 .wpcf7-submit {
	background: linear-gradient(135deg, #4F46E5, #06B6D4) !important;
}
/* FAQ：问题加左侧色条 + 展开感，hover 高亮 */
.touye-site .wp-block-group.ty-faq-item {
	position: relative;
	padding-left: 20px !important;
	transition: background .25s ease, padding-left .25s ease;
	border-radius: 8px;
}
.touye-site .wp-block-group.ty-faq-item::before {
	content: ''; position: absolute; left: 0; top: 24px; bottom: 24px;
	width: 3px; border-radius: 2px;
	background: linear-gradient(180deg, #4F46E5, #06B6D4);
	opacity: .5; transition: opacity .25s ease;
}
.touye-site .wp-block-group.ty-faq-item:hover { background: rgba(79, 70, 229, .035); padding-left: 26px !important; }
.touye-site .wp-block-group.ty-faq-item:hover::before { opacity: 1; }
.touye-site h3.ty-faq-q { position: relative; }
.touye-site h3.ty-faq-q::after {
	content: '+'; position: absolute; right: 4px; top: 50%;
	transform: translateY(-50%);
	color: #4F46E5; font-weight: 400; font-size: 22px;
}

/* ---------- 区块间柔和分隔：浅色 section 顶部渐隐线 ---------- */
.touye-site main .wp-block-group.alignfull + .wp-block-group.alignfull { position: relative; }

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
	.touye-site header.wp-block-template-part::before,
	.touye-site footer.wp-block-template-part::before { animation: none; }
	.touye-banner-dot { animation: none; }
	.touye-site .wp-block-group.ty-card,
	.touye-site .wp-block-group.ty-step,
	.touye-site .wp-block-group.ty-quote { transition: none !important; }
	.touye-site .wp-block-group.ty-card:hover,
	.touye-site .wp-block-group.ty-step:hover,
	.touye-site .wp-block-group.ty-quote:hover { transform: none !important; }
}
