/*
 * DEMAC Core 前台样式
 * 设计基调：工业蓝 + 高对比 CTA 橙，B2B 询盘导向，移动端优先。
 */

:root {
	--demac-blue: #082068;
	--demac-blue-dark: #051748;
	--demac-blue-light: #ecf0fa;
	--demac-orange: #ff7a1f;
	--demac-orange-dark: #f2680a;
	--demac-ink: #16202c;
	--demac-muted: #5c6b7a;
	--demac-line: #dfe5ec;
	--demac-bg-soft: #f4f7fd;
	--demac-radius: 8px;
	--demac-shadow: 0 2px 12px rgba(8, 32, 104, .10);
	--demac-shadow-lg: 0 12px 32px rgba(8, 32, 104, .16);
	--demac-container: 1240px;
}

.demac-container {
	width: 100%;
	max-width: var(--demac-container);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.demac-section { padding: 64px 0; }
.demac-section--cards { background: linear-gradient(180deg, #f7faff 0%, #edf3fc 100%); }
.demac-section__title {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.25;
	margin: 0 0 12px;
	color: var(--demac-ink);
	text-align: center;
}
.demac-section__lead {
	max-width: 760px;
	margin: 0 auto 32px;
	text-align: center;
	color: var(--demac-muted);
	font-size: 16px;
	line-height: 1.7;
}

/* ---------- 按钮 ---------- */
.demac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--demac-radius);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.demac-btn--primary { background: var(--demac-orange); color: #fff; }
.demac-btn--primary:hover { background: var(--demac-orange-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--demac-shadow-lg); }
.demac-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.demac-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.demac-btn--wa { background: #25d366; color: #fff; }
.demac-btn--wa:hover { background: #1da851; color: #fff; }
.demac-btn--link { background: transparent; color: var(--demac-blue); padding-inline: 0; }
.demac-btn--lg { padding: 15px 34px; font-size: 16px; }
.demac-btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- 首屏 ---------- */
.demac-hero {
	position: relative;
	min-height: 640px;            /* 加高：560 → 640（用户指定） */
	display: flex;
	align-items: center;
	color: #fff;
	background:
		linear-gradient(100deg, rgba(5, 23, 72, .10) 0%, rgba(8, 32, 104, 0) 48%),
		var(--demac-hero-bg, linear-gradient(135deg, #082068, #2c5099)) center/cover no-repeat;
}
/* 首屏氛围光斑：蓝 / 橙两团柔光缓慢漂移（z-index 介于轮播图与文案之间） */
.demac-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		radial-gradient(440px 440px at 16% 28%, rgba(100, 181, 255, .08), transparent 70%),
		radial-gradient(380px 380px at 80% 72%, rgba(255, 150, 60, .10), transparent 70%);
	animation: demac-orbs 14s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes demac-orbs {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(0, -3%, 0) scale(1.07); }
}
.demac-hero__title { font-size: clamp(28px, 4.4vw, 50px); line-height: 1.18; margin: 0 0 18px; font-weight: 700; }
.demac-hero__sub { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.7; opacity: .92; margin: 0 0 24px; }
.demac-hero__usp { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.demac-hero__usp li { position: relative; padding-inline-start: 22px; font-size: 15px; opacity: .95; }
.demac-hero__usp li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 7px;
	width: 8px; height: 8px; border-radius: 50%; background: var(--demac-orange);
}
/* 询盘按钮固定在 Banner 右下角（横向排列，询价键在最右），不遮挡图片主体 */
.demac-hero__actions {
	display: flex; flex-wrap: wrap; gap: 12px; margin: 0;
	position: absolute; right: 30px; bottom: 30px; z-index: 5;
	flex-direction: row-reverse; align-items: center;
}
/* 首屏按钮稍小一号，避免抢占图片视觉 */
.demac-hero__actions .demac-btn--lg { padding: 11px 22px; font-size: 14px; }

/* 首屏多图轮播 */
.demac-hero--carousel { overflow: hidden; }
.demac-hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.demac-hero__slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1s ease-in-out;
}
/* 当前张缓慢推近（Ken Burns），配合淡入淡出形成呼吸感 */
.demac-hero__slide.is-active { opacity: 1; animation: demac-kenburns 7s ease-out forwards; will-change: transform; }
@keyframes demac-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.09); }
}
.demac-hero__scrim {
	display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	/* 仅在底部轻微加深（保证右下角按钮可读），其余区域透明露出原图 */
	background:
		linear-gradient(to top, rgba(5, 20, 60, .36) 0%, rgba(5, 20, 60, .10) 22%, rgba(5, 20, 60, 0) 36%);
}
/* 蒙层上缓慢扫过的斜向光带 */
.demac-hero__scrim::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .12) 50%, transparent 66%);
	background-size: 260% 100%;
	animation: demac-sheen 9s ease-in-out infinite;
}
@keyframes demac-sheen {
	0%, 12% { background-position: 130% 0; }
	58%, 100% { background-position: -30% 0; }
}
.demac-hero__dots {
	position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.demac-hero__dot {
	width: 12px; height: 12px; padding: 0; border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 50%; background: transparent; cursor: pointer; transition: background .25s, border-color .25s;
}
.demac-hero__dot.is-active { background: #fff; border-color: #fff; }

/* ---------- Banner 下方区域化标题带（标题 / 副标题 / 卖点横向排布） ---------- */
.demac-hero-caption {
	background: #fff;
	border-bottom: 1px solid var(--demac-line);
	padding: 30px 0 34px;
}
.demac-hero-caption .demac-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.demac-hero-caption__title {
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.22;
	margin: 0;
	font-weight: 700;
	color: var(--demac-blue);
}
.demac-hero-caption__sub {
	font-size: clamp(14px, 1.5vw, 18px);
	line-height: 1.6;
	margin: 0;
	color: var(--demac-muted);
}
.demac-hero-caption__usp {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin: 8px 0 0;
	padding: 0;
}
.demac-hero-caption__usp li {
	position: relative;
	padding-inline-start: 22px;
	font-size: 15px;
	color: var(--demac-ink);
}
.demac-hero-caption__usp li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 7px;
	width: 8px; height: 8px; border-radius: 50%; background: var(--demac-orange);
}

/* ---------- 网格与卡片 ---------- */
.demac-grid { display: grid; gap: 24px; }
.demac-grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.demac-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.demac-card {
	background: #fff;
	border: 1px solid var(--demac-line);
	border-radius: var(--demac-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.demac-card:hover { box-shadow: var(--demac-shadow-lg); transform: translateY(-3px); }
.demac-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--demac-bg-soft); overflow: hidden; }
.demac-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demac-card__placeholder {
	display: block; width: 100%; height: 100%;
	background: repeating-linear-gradient(45deg, #eef2f7 0 12px, #e6ecf3 12px 24px);
}
.demac-card__badge {
	position: absolute; top: 12px; inset-inline-start: 12px;
	background: var(--demac-orange); color: #fff;
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
	text-transform: uppercase; letter-spacing: .4px;
}
.demac-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demac-card__title { margin: 0; font-size: 18px; line-height: 1.4; }
.demac-card__title a { color: var(--demac-ink); text-decoration: none; }
.demac-card__title a:hover { color: var(--demac-blue); }
.demac-card__desc { margin: 0; color: var(--demac-muted); font-size: 14px; line-height: 1.65; }
.demac-card__sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demac-card__sub a {
	display: inline-block; font-size: 12px; padding: 4px 10px;
	background: var(--demac-blue-light); color: var(--demac-blue);
	border-radius: 999px; text-decoration: none;
}
.demac-card__specs { list-style: none; margin: 0; padding: 12px 0; border-top: 1px dashed var(--demac-line); }
.demac-card__specs li { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.demac-card__specs span { color: var(--demac-muted); }
.demac-card__specs strong { color: var(--demac-ink); }
.demac-card__actions { display: flex; gap: 10px; align-items: center; margin: auto 0 0; padding-top: 6px; }
.demac-card__cta { color: var(--demac-orange); font-weight: 600; font-size: 14px; text-decoration: none; margin-top: auto; }

/* ---------- 优势 ---------- */
.demac-adv { padding: 26px; background: #fff; border: 1px solid var(--demac-line); border-radius: var(--demac-radius); position: relative; }
.demac-adv__num { position: absolute; top: 18px; inset-inline-end: 20px; font-size: 34px; font-weight: 800; color: var(--demac-blue-light); line-height: 1; }
.demac-adv__title { margin: 0 0 8px; font-size: 17px; color: var(--demac-blue); }
.demac-adv__text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--demac-muted); }

/* ---------- 行业 ---------- */
.demac-industry { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--demac-radius); overflow: hidden; text-decoration: none; }
.demac-industry img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.demac-industry:hover img { transform: scale(1.06); }
.demac-industry__name {
	position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; color: #fff; font-weight: 600; font-size: 15px;
	background: linear-gradient(transparent, rgba(10, 63, 158, .88));
}

/* ---------- 工厂实力（视频 + 文件介绍） ---------- */
.demac-factory {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 34px;
	align-items: center;
	margin-top: 10px;
}
.demac-factory__media { min-width: 0; }
.demac-factory__media .demac-video { margin-top: 0; aspect-ratio: 16 / 9; }
.demac-factory__media .demac-video--empty {
	background: linear-gradient(135deg, #0d1520, #14233f);
}
.demac-factory__media .demac-video--empty::after {
	content: "Factory Video";
	color: rgba(255, 255, 255, .5);
	font-size: 14px;
	letter-spacing: .5px;
}
.demac-factory__intro { min-width: 0; }
.demac-factory__text { font-size: 15px; line-height: 1.85; color: var(--demac-muted); margin: 0 0 22px; }
.demac-factory__text p { margin: 0 0 14px; }
.demac-factory__text p:last-child { margin-bottom: 0; }

/* 小屏（< 782px）堆叠为上下；常见笔记本/平板宽度都保持左右双栏。 */
@media (max-width: 782px) {
	.demac-factory { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 工厂与展会实景图库（[demac_exhibition]） ---------- */
.demac-exhibition {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.demac-exhibition__item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--demac-radius);
	overflow: hidden;
	text-decoration: none;
	background: var(--demac-bg-soft);
	box-shadow: var(--demac-shadow);
	transition: box-shadow .22s ease, transform .22s ease;
}
.demac-exhibition__item:hover,
.demac-exhibition__item:focus-visible { box-shadow: var(--demac-shadow-lg); transform: translateY(-3px); }
.demac-exhibition__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.demac-exhibition__item:hover img,
.demac-exhibition__item:focus-visible img { transform: scale(1.06); }
.demac-exhibition__cap {
	position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 11px;
	color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .2px;
	background: linear-gradient(transparent, rgba(13, 21, 32, .82));
}
/* 平板与手机改为 2 列（8 张 = 整数行，无残行）。 */
@media (max-width: 1024px) {
	.demac-exhibition { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- 展会图库灯箱（demac-core.js 按需注入） ---------- */
.demac-lightbox {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: rgba(10, 18, 28, .93);
	padding: 48px 20px 32px;
}
.demac-lightbox[hidden] { display: none; }
.demac-lightbox__img {
	max-width: min(1000px, 100%); max-height: 76vh;
	border-radius: 6px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
	object-fit: contain;
}
.demac-lightbox__cap { margin: 16px 0 0; color: rgba(255, 255, 255, .88); font-size: 14px; text-align: center; }
.demac-lightbox__close {
	position: absolute; top: 18px; inset-inline-end: 18px;
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .16); color: #fff;
	font-size: 24px; line-height: 1; cursor: pointer;
	transition: background .18s ease;
}
.demac-lightbox__close:hover, .demac-lightbox__close:focus-visible { background: rgba(255, 255, 255, .32); }

/* ---------- 案例 / 博客 ---------- */
.demac-case, .demac-post { background: #fff; border: 1px solid var(--demac-line); border-radius: var(--demac-radius); overflow: hidden; padding-bottom: 18px; }
.demac-case img, .demac-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.demac-case h3, .demac-post h3 { margin: 16px 18px 8px; font-size: 17px; line-height: 1.45; }
.demac-case a, .demac-post a { text-decoration: none; color: var(--demac-ink); }
.demac-case p, .demac-post p { margin: 0 18px; font-size: 14px; color: var(--demac-muted); line-height: 1.65; }
.demac-post time { display: block; margin: 0 18px 8px; font-size: 12px; color: var(--demac-muted); }
.demac-post__thumb-placeholder { width: 100%; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--demac-bg-alt, #eef4fd); color: var(--demac-muted); }
.demac-section__more { text-align: center; margin-top: 28px; }

/* ---------- 客户案例轮播（一排横滑） ---------- */
.demac-carousel { position: relative; margin-top: 8px; }
.demac-carousel__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 2px 22px;
}
.demac-carousel__track::-webkit-scrollbar { display: none; }
.demac-carousel__track .demac-case {
	flex: 0 0 calc((100% - 48px) / 3);
	scroll-snap-align: start;
	box-sizing: border-box;
}
.demac-carousel__nav {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--demac-line);
	background: #fff;
	color: var(--demac-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--demac-shadow);
	display: flex; align-items: center; justify-content: center;
	transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
	z-index: 2;
}
.demac-carousel__nav:hover:not([disabled]) {
	background: var(--demac-blue, #082068);
	color: #fff;
	transform: translateY(-50%) scale(1.06);
	box-shadow: var(--demac-shadow-lg);
}
.demac-carousel__nav[disabled] { opacity: .35; cursor: not-allowed; }
.demac-carousel__nav--prev { inset-inline-start: -10px; }
.demac-carousel__nav--next { inset-inline-end: -10px; }
.demac-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}
.demac-carousel__dots button {
	width: 8px; height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--demac-line);
	cursor: pointer;
	transition: background .18s ease, width .18s ease;
}
.demac-carousel__dots button.is-active { background: var(--demac-orange, #ff7a18); width: 22px; border-radius: 4px; }

@media (max-width: 900px) {
	.demac-carousel__track .demac-case { flex: 0 0 calc((100% - 24px) / 2); }
	.demac-carousel__nav--prev { inset-inline-start: -4px; }
	.demac-carousel__nav--next { inset-inline-end: -4px; }
}
@media (max-width: 560px) {
	.demac-carousel__track .demac-case { flex: 0 0 88%; }
	.demac-carousel__track { gap: 16px; }
	.demac-carousel__nav { width: 36px; height: 36px; font-size: 18px; }
}

/* ---------- 全局 CTA ---------- */
/* 亮蓝三色流动渐变（background-position 循环平移） */
.demac-cta {
	color: #fff; padding: 56px 0;
	background: linear-gradient(100deg, #051748 0%, #082068 42%, #1f4080 68%, #051748 100%);
	background-size: 220% 100%;
	animation: demac-pan 12s ease-in-out infinite;
}
@keyframes demac-pan {
	0%, 100% { background-position: 0% 0; }
	50% { background-position: 100% 0; }
}
.demac-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.demac-cta__copy h2 { margin: 0 0 8px; font-size: clamp(21px, 2.6vw, 30px); color: #fff; }
.demac-cta__copy p { margin: 0; color: #fff; font-weight: 500; font-size: 15px; line-height: 1.7; max-width: 640px; }
.demac-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 询盘表单 ---------- */
.demac-form { background: var(--demac-blue-light); border: 1px solid var(--demac-line); border-radius: var(--demac-radius); padding: 28px; box-shadow: var(--demac-shadow); }
.demac-form__title { margin: 0 0 6px; font-size: 22px; color: var(--demac-ink); }
.demac-form__intro { margin: 0 0 20px; color: var(--demac-muted); font-size: 14px; line-height: 1.65; }
.demac-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.demac-form__field { margin: 0 0 14px; }
.demac-form__field label { display: block; font-size: 13px; font-weight: 600; color: var(--demac-ink); margin-bottom: 6px; }
.demac-form__field .req { color: #d63638; }
.demac-form__field input,
.demac-form__field textarea {
	width: 100%; box-sizing: border-box;
	padding: 11px 13px; font-size: 15px;
	border: 1px solid var(--demac-line); border-radius: 6px;
	background: #fff; color: var(--demac-ink);
	transition: border-color .16s ease, box-shadow .16s ease;
}
.demac-form__field input:focus,
.demac-form__field textarea:focus {
	outline: none; border-color: var(--demac-blue);
	box-shadow: 0 0 0 3px rgba(8, 32, 104, .12);
}
.demac-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demac-form__consent { font-size: 13px; color: var(--demac-muted); margin: 6px 0 18px; }
.demac-form__actions { margin: 0; }
.demac-form__msg { margin-top: 14px; font-size: 14px; }
.demac-form__msg.is-ok { color: #1a7f37; }
.demac-form__msg.is-err { color: #d63638; }

/* 自定义校验：标红字段，避开浏览器原生气泡。novalidate 已禁用原生弹窗。 */
.demac-form__field.is-invalid input,
.demac-form__field.is-invalid textarea {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, .15);
	background: #fff5f5;
}
.demac-form__field.is-invalid label,
.demac-form__consent.is-invalid label { color: #d63638; }
.demac-form.is-loading button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- 产品详情 ---------- */
.demac-product { padding: 40px 0 0; }
.demac-product__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.demac-product__title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; line-height: 1.25; }
.demac-product__model { display: inline-block; background: var(--demac-blue); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; letter-spacing: .5px; }
.demac-product__tagline { font-size: 17px; color: var(--demac-muted); line-height: 1.65; margin: 0 0 22px; }
.demac-product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.demac-product__note { font-size: 13px; color: var(--demac-muted); border-inline-start: 3px solid var(--demac-orange); padding-inline-start: 12px; }

.demac-slider { border: 1px solid var(--demac-line); border-radius: var(--demac-radius); overflow: hidden; background: #fff; }
.demac-slider__stage { aspect-ratio: 4 / 3; background: var(--demac-bg-soft); }
.demac-slider__stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.demac-slider__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.demac-slider__thumbs button { flex: 0 0 74px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; overflow: hidden; }
.demac-slider__thumbs button.is-active { border-color: var(--demac-blue); }
.demac-slider__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.demac-video { margin-top: 16px; aspect-ratio: 16 / 9; background: #0d1520; border-radius: var(--demac-radius); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); font-size: 14px; overflow: hidden; }
.demac-video iframe, .demac-video video { width: 100%; height: 100%; border: 0; }

.demac-quickspecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.demac-quickspecs li { background: var(--demac-blue-light); border-radius: 6px; padding: 14px; }
.demac-quickspecs span { display: block; font-size: 12px; color: var(--demac-muted); margin-bottom: 4px; }
.demac-quickspecs strong { font-size: 14px; font-weight: 500; color: var(--demac-blue-dark); }

.demac-block { padding: 44px 0; border-top: 1px solid var(--demac-line); }
.demac-block__title { font-size: 22px; margin: 0 0 20px; color: var(--demac-ink); }
.demac-block__sub { font-size: 17px; font-weight: 600; margin: 20px 0 10px; color: var(--demac-ink); }

.demac-adv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.demac-adv-list li { padding: 18px 20px; background: var(--demac-bg-soft); border-radius: var(--demac-radius); border-inline-start: 3px solid var(--demac-orange); }
.demac-adv-list strong { display: block; margin-bottom: 6px; color: var(--demac-ink); font-size: 16px; }
.demac-adv-list p { margin: 0; font-size: 14px; color: var(--demac-muted); line-height: 1.7; }

.demac-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.demac-spec-table th, .demac-spec-table td { padding: 12px 16px; border: 1px solid var(--demac-line); text-align: start; }
.demac-spec-table th { background: var(--demac-bg-soft); width: 34%; color: var(--demac-ink); font-weight: 600; }
.demac-spec-table tr:nth-child(even) td { background: #fbfcfd; }

.demac-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demac-tags a { display: inline-block; padding: 6px 14px; background: var(--demac-blue-light); color: var(--demac-blue); border-radius: 999px; font-size: 13px; text-decoration: none; }

.demac-downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.demac-downloads__item a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 14px 18px; border: 1px solid var(--demac-line); border-radius: var(--demac-radius);
	text-decoration: none; color: var(--demac-ink); background: #fff; transition: border-color .18s ease;
}
.demac-downloads__item a:hover { border-color: var(--demac-blue); }
.demac-downloads__meta { font-size: 12px; color: var(--demac-muted); white-space: nowrap; }

.demac-faq__item { border: 1px solid var(--demac-line); border-radius: var(--demac-radius); margin-bottom: 10px; background: #fff; }
.demac-faq__q { padding: 15px 18px; font-weight: 600; cursor: pointer; font-size: 15px; color: var(--demac-ink); }
.demac-faq__a { padding: 0 18px 16px; font-size: 14px; color: var(--demac-muted); line-height: 1.75; }

/* ---------- 悬浮咨询栏 ---------- */
.demac-fab {
	position: fixed; inset-inline-end: 16px; top: 50%; transform: translateY(-50%);
	z-index: 9990; display: flex; flex-direction: column; gap: 2px;
	background: #fff; border: 1px solid var(--demac-line); border-radius: 10px;
	box-shadow: var(--demac-shadow-lg); overflow: hidden;
}
.demac-fab__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	width: 72px; padding: 12px 6px; border: 0; background: #fff; color: var(--demac-ink);
	font-size: 11px; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
	border-bottom: 1px solid var(--demac-line); transition: background .16s ease, color .16s ease;
}
.demac-fab__item:last-child { border-bottom: 0; }
.demac-fab__item:hover { background: var(--demac-blue); color: #fff; }
.demac-fab__item--primary { background: var(--demac-orange); color: #fff; }
.demac-fab__item--primary:hover { background: var(--demac-orange-dark); color: #fff; }
.demac-fab__item--wa:hover { background: #25d366; }
.demac-fab__icon { display: block; }

.demac-wechat-modal {
	position: fixed; inset: 0; z-index: 9995;
	background: rgba(9, 20, 34, .6); display: flex; align-items: center; justify-content: center;
}
.demac-wechat-modal[hidden] { display: none; }
.demac-wechat-modal__box { position: relative; background: #fff; padding: 28px 30px; border-radius: 12px; text-align: center; max-width: 300px; }
.demac-wechat-modal__box img { width: 220px; height: 220px; object-fit: contain; }
.demac-wechat-modal__box p { margin: 12px 0 0; font-size: 14px; color: var(--demac-muted); }
.demac-wechat-modal__close { position: absolute; top: 6px; inset-inline-end: 10px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--demac-muted); }

/* ---------- 语言切换 ---------- */
.demac-langs { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; align-items: center; }
.demac-langs__item a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 14px; color: var(--demac-muted); line-height: 1; }
.demac-langs__item a:hover { color: var(--demac-blue); }
.demac-langs__item.is-active a { color: var(--demac-blue); font-weight: 700; }
.demac-flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; flex: 0 0 auto; }
/* 头部右侧切换器：仅显示国旗以节省空间，悬停显示名称 */
.demac-site-header__lang .demac-langs__name,
.demac-site-footer__lang .demac-langs__name { display: none; }
.demac-site-header__lang .demac-langs,
.demac-site-footer__lang .demac-langs { gap: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
	.demac-product__head { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 782px) {
	.demac-section { padding: 44px 0; }
	.demac-hero { min-height: 506px; }   /* 移动端同样加高 15%：440 → 506 */
	/* 移动端按钮横排、贴底居中（保持询价键在右），让出轮播圆点 */
	.demac-hero__actions {
		left: 16px; right: 16px; bottom: 16px;
		flex-direction: row-reverse; flex-wrap: wrap; justify-content: center; align-items: stretch;
	}
	.demac-hero__dots { bottom: auto; top: 14px; }
	.demac-cta__inner { flex-direction: column; align-items: flex-start; }

	/* 移动端悬浮栏改为底部横条，避免遮挡正文 */
	.demac-fab {
		inset: auto 0 0 0; top: auto; transform: none;
		flex-direction: row; border-radius: 0; border-inline: 0; border-bottom: 0;
	}
	.demac-fab__item { flex: 1; width: auto; border-bottom: 0; border-inline-end: 1px solid var(--demac-line); padding: 10px 4px; }
	.demac-fab__item:last-child { border-inline-end: 0; }
	.demac-fab__item--top { display: none; }
	body { padding-bottom: 64px; }
}

/* ---------- 动效（滚动入场 + 交互增强） ----------
 * 初始隐藏态由 JS 添加 .demac-reveal 类控制，无 JS / JS 失败时内容正常显示。
 */
@keyframes demac-hero-in {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}
.demac-hero-caption__title, .demac-hero-caption__sub, .demac-hero-caption__usp, .demac-hero__actions {
	opacity: 0;
	animation: demac-hero-in .7s cubic-bezier(.2, .65, .3, 1) forwards;
}
.demac-hero-caption__sub { animation-delay: .12s; }
.demac-hero-caption__usp { animation-delay: .24s; }
.demac-hero__actions { animation-delay: .36s; }

.demac-reveal:not(.is-inview) {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .6s cubic-bezier(.2, .65, .3, 1), transform .6s cubic-bezier(.2, .65, .3, 1);
	transition-delay: var(--demac-reveal-delay, 0s);
	will-change: opacity, transform;
}
.demac-reveal--left:not(.is-inview) { transform: translateX(-34px); }
.demac-reveal--right:not(.is-inview) { transform: translateX(34px); }
.demac-reveal.is-inview {
	opacity: 1;
	transform: none;
	transition: opacity .6s cubic-bezier(.2, .65, .3, 1), transform .6s cubic-bezier(.2, .65, .3, 1);
	transition-delay: var(--demac-reveal-delay, 0s);
}

/* 网格卡片 hover 增强：占位图标微缩放，标题色过渡 */
.demac-post, .demac-case { transition: box-shadow .22s ease, transform .22s ease; }
.demac-post:hover, .demac-case:hover { box-shadow: var(--demac-shadow-lg); transform: translateY(-3px); }
.demac-post__thumb-placeholder svg { transition: transform .3s ease; }
.demac-post:hover .demac-post__thumb-placeholder svg { transform: scale(1.12); }

/* 板块标题装饰下划线：随入场展开 */
.demac-section__title { position: relative; padding-bottom: 14px; }
.demac-section__title::after {
	content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 44px; height: 3px; border-radius: 2px; background: var(--demac-orange);
	transition: width .6s cubic-bezier(.2, .65, .3, 1) .15s;
}
.demac-reveal.demac-section__title:not(.is-inview)::after { width: 0; }

/* 「查看全部」按钮微动效 */
.demac-section__more .demac-btn { transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.demac-section__more .demac-btn:hover { transform: translateY(-2px); box-shadow: var(--demac-shadow); }

/* 无障碍：用户偏好减少动效时全部关闭 */
@media (prefers-reduced-motion: reduce) {
	.demac-hero-caption__title, .demac-hero-caption__sub, .demac-hero-caption__usp, .demac-hero__actions {
		opacity: 1; animation: none;
	}
	.demac-reveal:not(.is-inview), .demac-reveal.is-inview {
		opacity: 1; transform: none; transition: none;
	}
	.demac-reveal.demac-section__title:not(.is-inview)::after { width: 44px; }
	* { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
