/**
 * Textileyw 全局样式
 *
 * 包含：容器 / Header 三层结构 / Footer 四列布局 / 响应式
 * 不包含：页面模板专属样式（写在各 page-clone-*.php 底部 <style>）
 */

/* ============================================================================
 * 1. 容器与基础
 * ============================================================================ */
.textileyw-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	background: #fff;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #1a73e8;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.textileyw-icon {
	color: currentColor;
	fill: currentColor;
	flex-shrink: 0;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: #1a1a1a;
	color: #fff;
	padding: 8px 16px;
}

.skip-link:focus {
	left: 0;
}

/* ============================================================================
 * 2. Header 双层结构（透明 / 非透明双模式 + sticky 吸附）
 *
 * 注意：Astra 父主题有 `.ast-hfb-header .site-header { ... }` 等高特异性规则
 * 这里用 `body.textileyw-transparent-header` + class 嵌套提升特异性，确保覆盖
 *
 * sticky 行为：
 * - 始终 position: fixed 吸附在浏览器顶部
 * - 透明 header 模式（首页）：初始透明叠在 Banner 上，滚动后加白色背景
 * - 非透明 header 模式（内页）：始终白色背景，#primary 加 padding-top 避免遮挡
 * ============================================================================ */
body.textileyw-transparent-header .textileyw-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background: transparent;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后：透明 header 切换为半透明白色背景 + 阴影 */
body.textileyw-transparent-header .textileyw-header.is-scrolled {
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 滚动后隐藏公司名行（让 header 更紧凑） */
body.textileyw-transparent-header .textileyw-header.is-scrolled .textileyw-header__company {
	height: 0;
	padding: 0;
	overflow: hidden;
}

/* admin bar 可见时（用户登录），header 顶部下移避开 admin bar */
body.logged-in.textileyw-transparent-header .textileyw-header,
body.logged-in:not(.textileyw-transparent-header) .textileyw-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.logged-in.textileyw-transparent-header .textileyw-header,
	body.logged-in:not(.textileyw-transparent-header) .textileyw-header {
		top: 46px;
	}
}

body.textileyw-transparent-header .textileyw-main {
	padding-top: 0;
	margin-top: 0;
}

/* 透明 header 模式：移除 #primary 默认 margin-top（来自 Astra site-main） */
body.textileyw-transparent-header #primary {
	margin-top: 0 !important;
}

/* 非透明 header 模式（内页）：fixed 吸附 + 白色背景 */
body:not(.textileyw-transparent-header) .textileyw-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* 非透明 header 模式：#primary 加 padding-top 避免被 fixed header 遮挡 */
/* header 高度由 JS 动态设置为 --textileyw-header-height 变量 */
body:not(.textileyw-transparent-header) #primary {
	padding-top: var(--textileyw-header-height, 97px);
}

/* 非透明 header 模式：内页面包屑也要避开 fixed header */
body:not(.textileyw-transparent-header) .textileyw-breadcrumb {
	position: relative;
	z-index: 99;
}

/* 公司名行（透明 header 顶部，黑色半透明背景） */
.textileyw-header__company {
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.5px;
	transition: height 0.3s ease, padding 0.3s ease;
}

.textileyw-header__company-text {
	display: block;
	text-align: center;
	padding: 10px 0;
	font-weight: 500;
}

/* 主菜单 + 操作行（白色半透明背景） */
.textileyw-header__bar {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.textileyw-header__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	gap: 24px;
}

/* 移动端汉堡按钮 */
.textileyw-header__hamburger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 101;
}

.textileyw-header__hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #1a1a1a;
	transition: transform 0.3s ease;
}

.textileyw-transparent-header .textileyw-header__hamburger span {
	background: #1a1a1a;
}

/* 桌面端主导航 */
.textileyw-header__nav {
	flex: 1;
}

.textileyw-header__menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 12px;
}

.textileyw-header__item {
	position: relative;
}

.textileyw-header__link {
	display: block;
	padding: 16px 22px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	transition: color 0.2s ease;
	position: relative;
}

.textileyw-header__link:hover,
.textileyw-header__item:hover > .textileyw-header__link {
	color: #1a73e8;
}

.textileyw-header__link::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 12px;
	height: 2px;
	background: #1a73e8;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.textileyw-header__item:hover > .textileyw-header__link::after,
.textileyw-header__item.current-menu-item > .textileyw-header__link::after {
	transform: scaleX(1);
}

/* 子菜单 */
.textileyw-header__sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 99;
}

.textileyw-header__item:hover > .textileyw-header__sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.textileyw-header__sub-menu .textileyw-header__link {
	padding: 10px 18px;
	font-size: 13px;
}

.textileyw-header__sub-menu .textileyw-header__link::after {
	display: none;
}

/* 右侧操作区：邮箱 / 电话 / 搜索 / 语言 */
.textileyw-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.textileyw-header__action-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #1a1a1a;
	transition: color 0.2s ease;
}

.textileyw-header__action-item:hover {
	color: #1a73e8;
}

.textileyw-header__action-item .textileyw-icon {
	color: #1a1a1a;
	fill: #1a1a1a;
}

.textileyw-header__search-toggle,
.textileyw-header__search-toggle--mobile {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
	color: #1a1a1a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.textileyw-header__search-toggle--mobile {
	display: none;
}

.textileyw-header__search-toggle .textileyw-icon,
.textileyw-header__search-toggle--mobile .textileyw-icon {
	color: #1a1a1a;
	fill: #1a1a1a;
}

.textileyw-header__lang {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px 8px;
	font-size: 12px;
	color: #1a1a1a;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.textileyw-header__lang .textileyw-icon {
	color: #1a1a1a;
	fill: #1a1a1a;
}

/* 搜索抽屉 */
.textileyw-header__search-drawer {
	display: none;
	padding: 12px 0;
	background: rgba(255, 255, 255, 0.98);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.textileyw-header__search-drawer.is-open {
	display: block;
}

.textileyw-search-form {
	display: flex;
	background: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
	height: 40px;
}

.textileyw-search-form__input {
	flex: 1;
	border: 0;
	padding: 0 12px;
	font-size: 14px;
	outline: none;
	background: transparent;
	color: #1a1a1a;
}

.textileyw-search-form__btn {
	background: #1a73e8;
	color: #fff;
	border: 0;
	padding: 0 16px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.textileyw-search-form__btn:hover {
	background: #1557b0;
}

/* 内页（非透明模式）Header 占位 */
.textileyw-header-offset {
	height: 0;
}

/* ============================================================================
 * 3. 移动端菜单抽屉
 * ============================================================================ */
.textileyw-mobile-menu {
	position: fixed;
	top: 0;
	left: -100%;
	width: 320px;
	max-width: 85vw;
	height: 100vh;
	background: #fff;
	z-index: 1000;
	transition: left 0.3s ease;
	overflow-y: auto;
	box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.textileyw-mobile-menu.is-open {
	left: 0;
}

.textileyw-mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #e8e8e8;
	background: #1a1a1a;
	color: #fff;
}

.textileyw-mobile-menu__title {
	font-size: 16px;
	font-weight: 600;
}

.textileyw-mobile-menu__close {
	background: none;
	border: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.textileyw-mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.textileyw-mobile-menu__list li {
	border-bottom: 1px solid #f0f0f0;
}

.textileyw-mobile-menu__list a {
	display: block;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
}

.textileyw-mobile-menu__list a:hover {
	background: #f5f5f5;
	color: #1a73e8;
}

.textileyw-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.textileyw-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ============================================================================
 * 4. Footer
 * ============================================================================ */
.textileyw-footer {
	background: #1a1a1a;
	color: #b0b0b0;
	padding: 48px 0 0;
	margin-top: 64px;
}

.textileyw-footer__top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #333;
}

.textileyw-footer__col--about .textileyw-footer__logo-text {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.textileyw-footer__about {
	font-size: 13px;
	line-height: 1.7;
	margin: 16px 0;
	color: #999;
}

.textileyw-footer__social {
	display: flex;
	gap: 12px;
}

.textileyw-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #333;
	color: #fff;
	transition: all 0.2s ease;
}

.textileyw-footer__social-link:hover {
	background: #1a73e8;
	color: #fff;
	transform: translateY(-2px);
}

.textileyw-footer__social-link .textileyw-icon {
	color: #fff;
	fill: #fff;
}

.textileyw-footer__title {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.textileyw-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.textileyw-footer__menu li {
	margin-bottom: 10px;
}

.textileyw-footer__menu a {
	font-size: 13px;
	color: #b0b0b0;
	transition: color 0.2s ease;
}

.textileyw-footer__menu a:hover {
	color: #fff;
}

.textileyw-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.textileyw-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 13px;
	color: #b0b0b0;
	line-height: 1.6;
}

.textileyw-footer__contact-item .textileyw-icon {
	color: #1a73e8;
	fill: #1a73e8;
	margin-top: 2px;
}

.textileyw-footer__contact-item a {
	color: #b0b0b0;
}

.textileyw-footer__contact-item a:hover {
	color: #fff;
}

.textileyw-footer__bottom {
	padding: 20px 0;
	text-align: center;
}

.textileyw-footer__copyright {
	font-size: 12px;
	color: #888;
	margin: 0;
}

/* ============================================================================
 * 5. 响应式（移动端 ≤768px）
 * ============================================================================ */
@media (max-width: 768px) {
	.textileyw-container {
		padding: 0 16px;
	}

	/* Header 移动端 */
	.textileyw-header__company-text {
		padding: 8px 0;
		font-size: 12px;
		letter-spacing: 0.3px;
	}

	.textileyw-header__hamburger {
		display: flex;
	}

	.textileyw-header__bar-inner {
		height: 48px;
		gap: 8px;
		justify-content: flex-end;
		padding-left: 56px;
	}

	.textileyw-header__nav,
	.textileyw-header__actions {
		display: none;
	}

	.textileyw-header__search-toggle--mobile {
		display: inline-flex;
	}

	/* B.2 触摸目标最小尺寸（WCAG 44×44） */
	.textileyw-header__hamburger {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
	}

	.textileyw-header__search-toggle--mobile {
		min-width: 44px;
		min-height: 44px;
	}

	.textileyw-mobile-menu__close {
		min-width: 44px;
		min-height: 44px;
		padding: 8px;
	}

	/* 透明 header 移动端：保留 backdrop 模糊 */
	.textileyw-transparent-header .textileyw-header__bar {
		background: rgba(255, 255, 255, 0.96);
	}

	/* Footer 移动端单列堆叠 */
	.textileyw-footer__top {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 28px;
	}

	.textileyw-footer {
		padding: 32px 0 0;
		margin-top: 32px;
	}

	.textileyw-footer__title {
		font-size: 14px;
		margin-bottom: 12px;
	}

	.textileyw-footer__bottom {
		padding: 16px 0;
	}
}

/* ============================================================================
 * 6. 小屏移动端（≤375px）
 * ============================================================================ */
@media (max-width: 375px) {
	.textileyw-container {
		padding: 0 12px;
	}

	.textileyw-topbar__inner {
		gap: 8px;
	}

	.textileyw-topbar__logo-text {
		font-size: 16px;
	}

	.textileyw-footer__top {
		gap: 20px;
	}
}

/* ============================================================================
 * 7. 面包屑组件
 * ============================================================================ */
.textileyw-breadcrumb {
	background: #fafafa;
	border-bottom: 1px solid #e8e8e8;
	padding: 12px 0;
	font-size: 13px;
}

.textileyw-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 8px;
}

.textileyw-breadcrumb__item {
	margin: 0;
}

.textileyw-breadcrumb__link {
	color: #666;
	transition: color 0.2s ease;
}

.textileyw-breadcrumb__link:hover {
	color: #1a73e8;
}

.textileyw-breadcrumb__current {
	color: #1a1a1a;
	font-weight: 500;
}

.textileyw-breadcrumb__sep {
	color: #999;
}

/* ============================================================================
 * 8. 产品卡组件
 * ============================================================================ */
.textileyw-product-card {
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.textileyw-product-card:hover {
	border-color: #1a73e8;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.textileyw-product-card__image-link {
	display: block;
	overflow: hidden;
}

.textileyw-product-card__image-wrap {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	background: #f9f9f9;
}

.textileyw-product-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.textileyw-product-card:hover .textileyw-product-card__image {
	transform: scale(1.05);
}

.textileyw-product-card__placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #999;
	font-size: 13px;
}

.textileyw-product-card__content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.textileyw-product-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
	color: #1a1a1a;
}

.textileyw-product-card__title a {
	color: inherit;
}

.textileyw-product-card__title a:hover {
	color: #1a73e8;
}

.textileyw-product-card__desc {
	font-size: 12px;
	color: #777;
	line-height: 1.5;
	margin: 0 0 12px;
	flex: 1;
}

.textileyw-product-card__actions {
	display: flex;
	gap: 8px;
}

.textileyw-product-card__btn {
	flex: 1;
	text-align: center;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.textileyw-product-card__btn--view {
	background: #1a1a1a;
	color: #fff;
}

.textileyw-product-card__btn--view:hover {
	background: #1a73e8;
	color: #fff;
}

.textileyw-product-card__btn--inquiry {
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
}

.textileyw-product-card__btn--inquiry:hover {
	background: #1a73e8;
	color: #fff;
	border-color: #1a73e8;
}

/* ============================================================================
 * 9. 新闻卡组件
 * ============================================================================ */
.textileyw-news-card {
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.textileyw-news-card:hover {
	border-color: #1a73e8;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.textileyw-news-card__image-link {
	display: block;
	overflow: hidden;
}

.textileyw-news-card__image-wrap {
	position: relative;
	width: 100%;
	padding-top: 60%;
	overflow: hidden;
	background: #f9f9f9;
}

.textileyw-news-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.textileyw-news-card:hover .textileyw-news-card__image {
	transform: scale(1.05);
}

.textileyw-news-card__placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #999;
	font-size: 13px;
}

.textileyw-news-card__content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.textileyw-news-card__date {
	font-size: 12px;
	color: #999;
	margin-bottom: 8px;
}

.textileyw-news-card__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.4;
	color: #1a1a1a;
}

.textileyw-news-card__title a {
	color: inherit;
}

.textileyw-news-card__title a:hover {
	color: #1a73e8;
}

.textileyw-news-card__excerpt {
	font-size: 13px;
	color: #777;
	line-height: 1.5;
	margin: 0 0 14px;
	flex: 1;
}

.textileyw-news-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #1a73e8;
	align-self: flex-start;
}

.textileyw-news-card__btn:hover {
	color: #1557b0;
}

.textileyw-news-card__btn .textileyw-icon {
	color: currentColor;
	fill: currentColor;
}

/* ============================================================================
 * 10. Banner 轮播组件
 * ============================================================================ */
.textileyw-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f0f0f0;
}

/* 透明 header 模式（首页）：banner 从 y=0 开始，header 完全叠在 banner 上，无缝隙 */
/* banner 内容文字垂直居中（justify-content: center），不会被 fixed header 遮挡 */
body.textileyw-transparent-header .textileyw-banner {
	margin-top: 0;
}

.textileyw-banner__track {
	position: relative;
	width: 100%;
}

.textileyw-banner__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.textileyw-banner__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.textileyw-banner__image-wrap {
	position: relative;
	width: 100%;
	padding-top: 37.5%; /* 桌面端 480px / 1280px = 37.5%（原 31.25%，增加 20%）*/
	overflow: hidden;
}

.textileyw-banner__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top; /* 顶部优先显示，避免关键素材被裁剪 */
}

.textileyw-banner__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 100%);
	color: #fff;
}

.textileyw-banner__title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.textileyw-banner__subtitle {
	font-size: 16px;
	margin: 0 0 20px;
	line-height: 1.5;
	max-width: 600px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.textileyw-banner__btn {
	display: inline-block;
	padding: 12px 28px;
	background: #1a73e8;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.textileyw-banner__btn:hover {
	background: #1557b0;
	color: #fff;
	transform: translateY(-1px);
}

.textileyw-banner__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.textileyw-banner__arrow:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.textileyw-banner__arrow .textileyw-icon {
	color: #1a1a1a;
	fill: #1a1a1a;
}

.textileyw-banner__arrow--prev {
	left: 20px;
}

.textileyw-banner__arrow--next {
	right: 20px;
}

.textileyw-banner__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.textileyw-banner__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.textileyw-banner__dot.is-active {
	background: #fff;
	width: 28px;
	border-radius: 5px;
}

/* ============================================================================
 * 11. 组件响应式（移动端 ≤768px）
 * ============================================================================ */
@media (max-width: 768px) {
	.textileyw-breadcrumb {
		font-size: 12px;
		padding: 8px 0;
	}

	.textileyw-product-card__image-wrap {
		padding-top: 100%;
	}

	.textileyw-product-card__content {
		padding: 12px;
	}

	.textileyw-product-card__title {
		font-size: 13px;
	}

	.textileyw-product-card__desc {
		font-size: 11px;
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.textileyw-product-card__btn {
		font-size: 11px;
		padding: 7px 8px;
	}

	.textileyw-news-card__content {
		padding: 12px;
	}

	.textileyw-news-card__title {
		font-size: 14px;
	}

	.textileyw-banner__image-wrap {
		padding-top: 50%;
	}

	.textileyw-banner__title {
		font-size: 22px;
	}

	.textileyw-banner__subtitle {
		font-size: 13px;
		margin-bottom: 14px;
	}

	.textileyw-banner__btn {
		padding: 10px 22px;
		font-size: 12px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.textileyw-banner__arrow {
		width: 44px;
		height: 44px;
	}

	.textileyw-banner__arrow--prev {
		left: 8px;
	}

	.textileyw-banner__arrow--next {
		right: 8px;
	}
}

/* ============================================================================
 * 11. 滚动入场动画（自研轻量方案，对标站 WOW.js + Animate.css 复刻）
 *
 * 用法：HTML 元素加 data-animate="动画名" 属性
 * 可选：data-delay="200" 延迟 200ms 触发
 *
 * 支持动画：
 * - fadeIn / fadeInUp / fadeInDown / fadeInLeft / fadeInRight
 * - zoomIn / zoomInUp
 * - flipInX / flipInY
 *
 * 原理：
 * 1. 初始状态：opacity:0 + transform 偏移
 * 2. 元素进入视口时加 .is-visible class
 * 3. .is-visible 状态：opacity:1 + transform:none + transition 过渡
 * ============================================================================ */

/* 初始状态（未进入视口） */
[data-animate] {
	opacity: 0;
	will-change: opacity, transform;
}

[data-animate="fadeIn"] {
	opacity: 0;
}

[data-animate="fadeInUp"] {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
}

[data-animate="fadeInDown"] {
	opacity: 0;
	transform: translate3d(0, -40px, 0);
}

[data-animate="fadeInLeft"] {
	opacity: 0;
	transform: translate3d(-40px, 0, 0);
}

[data-animate="fadeInRight"] {
	opacity: 0;
	transform: translate3d(40px, 0, 0);
}

[data-animate="zoomIn"] {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 0.8);
}

[data-animate="zoomInUp"] {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 0.8) translate3d(0, 40px, 0);
}

[data-animate="flipInX"] {
	opacity: 0;
	transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
}

[data-animate="flipInY"] {
	opacity: 0;
	transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
}

/* 进入视口后的状态（触发动画） */
[data-animate].is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
	transition-delay: var(--animate-delay, 0ms);
}

/* 尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
	[data-animate] {
		opacity: 1 !important;
		transform: none !important;
	}
	[data-animate].is-visible {
		transition: none;
	}
}

/* ============================================================================
 * 移动端动画降级（≤768px）
 *
 * 原因：data-animate 的初始 transform 偏移（如 fadeInRight 的 translateX(40px)）
 * 在移动端无滚动触发场景下会持续存在，导致横向溢出。
 * 方案：移动端禁用所有 transform 偏移，仅保留 opacity 淡入过渡，
 *       既消除溢出又保留视觉过渡。is-visible 状态不受影响（本就是 transform:none）。
 * ============================================================================ */
@media (max-width: 768px) {
	[data-animate="fadeInUp"],
	[data-animate="fadeInDown"],
	[data-animate="fadeInLeft"],
	[data-animate="fadeInRight"],
	[data-animate="zoomIn"],
	[data-animate="zoomInUp"],
	[data-animate="flipInX"],
	[data-animate="flipInY"] {
		transform: none !important;
	}
}
