@charset "utf-8";

/* 智能新风控温床垫产品页：沿用官网设计语言（品牌青 + 深藏青），从改善睡眠环境助眠的角度叙事 */
.xfxwcd-page {
    --xf-primary: var(--puleap-primary, #16c2b0);
    --xf-primary-dark: var(--puleap-primary-dark, #0e9f91);
    --xf-primary-soft: var(--puleap-primary-soft, #effbf9);
    --xf-navy: var(--footer-background-color, #0f2341);
    --xf-navy-soft: var(--footer-control-color, #1a3155);
    --xf-ink: var(--puleap-heading, #1f2933);
    --xf-text: var(--puleap-text, #303b45);
    --xf-muted: var(--puleap-muted, #76828c);
    --xf-line: var(--puleap-border, #e8ecef);
    background: #fff;
    color: var(--xf-text);
}

.xfxwcd-page [hidden] { display: none !important; }
.xfxwcd-page .center { width: calc(100% - 48px); max-width: 1180px; }
.xfxwcd-main { overflow: hidden; }
.xfxwcd-main h1, .xfxwcd-main h2, .xfxwcd-main h3 { color: var(--xf-ink); }
.xfxwcd-main a:focus-visible, .xfxwcd-main button:focus-visible { outline: 3px solid var(--xf-primary); outline-offset: 3px; }
.xfxwcd-main svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xf-icon-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }

/* 渐显动效 */
.home-reveal { opacity: 0; transform: translateY(12px); transition: opacity .48s ease, transform .48s ease; }
.home-reveal.is-visible { opacity: 1; transform: none; }

/* 通用小标 */
.xf-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--xf-primary-dark); font-size: 15px; font-weight: 700; letter-spacing: .06em;
}
.xf-kicker-light { color: #78e9dd; }
.xf-heading-icon { width: 22px; height: 22px; flex: 0 0 22px; }

/* 通用 section 标题 */
.xf-section-heading { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.xf-section-heading > span {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 13px; color: var(--xf-primary-dark); font-size: 15px; font-weight: 700; letter-spacing: .06em;
}
.xf-section-heading h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
.xf-section-heading p { max-width: 720px; margin: 14px auto 0; color: var(--xf-muted); font-size: 16px; line-height: 1.75; }
.xf-section-heading-light > span { color: #78e9dd; }
.xf-section-heading-light h2 { color: #fff; }
.xf-section-heading-light p { color: rgba(255,255,255,.72); }

/* 脚注 */
.xf-footnote { max-width: 760px; margin: 26px auto 0; color: var(--xf-muted); font-size: 12.5px; line-height: 1.7; text-align: center; }

/* 按钮 */
.xf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.xf-actions-center { justify-content: center; }
.xf-button {
    min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 26px; border: 1px solid transparent; border-radius: 5px;
    font-size: 15px; font-weight: 700; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.xf-button:hover { transform: translateY(-2px); }
.xf-button-primary { color: #fff !important; background: var(--xf-primary); box-shadow: 0 8px 20px rgba(14,159,145,.18); }
.xf-button-primary:hover { background: var(--xf-primary-dark); box-shadow: 0 10px 24px rgba(14,159,145,.24); }
.xf-button-ghost { color: #fff !important; border-color: rgba(255,255,255,.55); background: transparent; }
.xf-button-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.xf-button-ghost-dark { color: var(--xf-ink) !important; border-color: rgba(31,41,51,.28); background: #fff; }
.xf-button-ghost-dark:hover { border-color: var(--xf-primary); color: var(--xf-primary-dark) !important; }
.xf-button-plain { color: var(--xf-ink) !important; border-color: rgba(31,41,51,.28); background: #fff; }
.xf-button-plain:hover { border-color: var(--xf-primary); color: var(--xf-primary-dark) !important; }

/* Hero */
.xf-hero {
    position: relative; overflow: hidden; color: #fff;
    background-color: var(--xf-navy);
    background-image: url("/static/web/images/xfxwcd/hero-bedroom-v2.webp?v=20260917-1");
    background-position: center center; background-size: cover; background-repeat: no-repeat;
}
.xf-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8,26,48,.98) 0%, rgba(8,26,48,.92) 32%, rgba(8,26,48,.62) 52%, rgba(8,26,48,.16) 76%, rgba(8,26,48,.08) 100%),
        linear-gradient(180deg, rgba(7,22,41,.12), rgba(7,22,41,.32));
}
.xf-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 360px at 72% 44%, rgba(22,194,176,.14), transparent 70%),
        radial-gradient(420px 320px at 12% 88%, rgba(22,194,176,.08), transparent 70%);
}
.xf-hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; min-height: 540px; padding: 72px 0 78px;
}
.xf-hero-copy { width: min(100%, 600px); }
.xf-hero-copy h1 { margin: 0 0 16px; color: #fff; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.04em; }
.xf-hero-copy > p { max-width: 540px; margin: 0 0 28px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.8; }
.xf-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.xf-hero-points li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 13px;
}
.xf-hero-points li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--xf-primary); box-shadow: 0 0 0 3px rgba(22,194,176,.18);
}

/* 睡眠环境四要素 */
.xf-env-section { padding: 88px 0 84px; background: #fff; }
.xf-env-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.xf-env-card {
    padding: 28px 24px; border: 1px solid var(--xf-line); border-radius: 8px; background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.xf-env-card:hover { border-color: rgba(14,159,145,.45); box-shadow: 0 14px 30px rgba(15,35,65,.08); transform: translateY(-3px); }
.xf-env-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
    background: var(--xf-primary-soft); color: var(--xf-primary-dark);
}
.xf-env-icon svg { width: 22px; height: 22px; }
.xf-env-card h3 { font-size: 17px; line-height: 1.45; }
.xf-env-card p { margin: 9px 0 0; color: var(--xf-muted); font-size: 13.5px; line-height: 1.7; }
.xf-env-conclusion { margin: 36px auto 0; max-width: 680px; text-align: center; color: var(--xf-text); font-size: 17px; line-height: 1.7; }
.xf-env-conclusion strong { color: var(--xf-primary-dark); }

/* 四项核心功能（深色） */
.xf-modes-section { padding: 88px 0 80px; background: var(--xf-navy); color: #fff; }
.xf-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xf-mode-card {
    display: flex; flex-direction: column; padding: 26px 22px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.045);
    transition: border-color .22s ease, background .22s ease;
}
.xf-mode-card:hover { border-color: rgba(120,233,221,.5); background: rgba(255,255,255,.07); }
.xf-mode-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
    background: rgba(22,194,176,.16); color: #78e9dd;
}
.xf-mode-icon svg { width: 24px; height: 24px; }
.xf-mode-tag { margin-bottom: 10px; color: #78e9dd; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.xf-mode-card h3 { margin: 0 0 12px; color: #fff; font-size: 19px; }
.xf-mode-stat { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: rgba(22,194,176,.1); color: #78e9dd; font-size: 20px; font-weight: 700; line-height: 1.3; }
.xf-mode-stat em { display: block; margin-top: 3px; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 400; font-style: normal; }
.xf-mode-card > p:last-child { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; }

/* 场景图文 */
.xf-scene-section { padding: 46px 0; background: #fff; }
.xf-scene-section-alt { background: #f7faf9; }
.xf-scene {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px; align-items: center; padding: 26px 0;
}
.xf-scene-reverse .xf-scene-media { order: 2; }
.xf-scene-reverse .xf-scene-copy { order: 1; }
.xf-scene-media {
    overflow: hidden; border-radius: 10px; border: 1px solid var(--xf-line);
    background: var(--xf-primary-soft); aspect-ratio: 4 / 3;
}
.xf-scene-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.xf-scene-media:hover img { transform: scale(1.025); }
.xf-scene-media.is-fallback { background: linear-gradient(140deg, var(--xf-primary-soft), rgba(22,194,176,.24)); }
/* 素材图带电商文案水印，通过取景位置裁除 */
.xf-scene-media img.xf-img-duo { object-position: center 62%; }
.xf-scene-media img.xf-img-app { object-position: center bottom; }
.xf-scene-media img.xf-img-parents { object-position: center bottom; }
.xf-scene-copy h2 { margin: 13px 0 14px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.28; letter-spacing: -.02em; }
.xf-scene-copy > p { margin: 0; color: var(--xf-muted); font-size: 15px; line-height: 1.8; }
.xf-scene-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.xf-scene-points li {
    position: relative; padding-left: 26px;
    color: var(--xf-text); font-size: 15px; line-height: 1.65;
}
.xf-scene-points li::before {
    content: ""; position: absolute; top: 8px; left: 6px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--xf-primary); box-shadow: 0 0 0 3px rgba(22,194,176,.14);
}

/* 科技与安全 */
.xf-tech-section { padding: 88px 0 84px; background: #fff; }
.xf-shield-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin: 0; padding: 0; list-style: none;
}
.xf-shield-list li {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border: 1px solid var(--xf-line); border-radius: 999px;
    background: #fff; color: var(--xf-text); font-size: 15px; font-weight: 600;
}
.xf-shield-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--xf-primary-soft); color: var(--xf-primary-dark);
}
.xf-shield-icon svg { width: 16px; height: 16px; }
.xf-tech-conclusion { max-width: none; white-space: nowrap; }

/* 五重结构 */
.xf-structure-section { padding: 84px 0 90px; }
.xf-structure {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 54px; align-items: center;
}
.xf-structure-copy h2 { margin: 13px 0 14px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.28; letter-spacing: -.02em; }
.xf-structure-copy > p { margin: 0; color: var(--xf-muted); font-size: 15px; line-height: 1.8; }
.xf-layers { display: grid; gap: 10px; padding: 30px; border: 1px solid var(--xf-line); border-radius: 10px; background: #fff; }
.xf-layer {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
    padding: 15px 20px; border-radius: 6px; color: #fff;
}
.xf-layer span { font-size: 15px; font-weight: 700; }
.xf-layer em { font-size: 12.5px; font-style: normal; opacity: .82; }
.xf-layer-1 { background: #9fb3c8; }
.xf-layer-2 { background: #6f93b8; }
.xf-layer-3 { background: linear-gradient(90deg, var(--xf-primary-dark), var(--xf-primary)); }
.xf-layer-4 { background: #33507a; }
.xf-layer-5 { background: var(--xf-navy); }

/* 产品参数（深藏青） */
.xf-spec-section { padding: 84px 0 90px; background: linear-gradient(180deg, #0c1e38 0%, var(--xf-navy) 100%); color: #fff; }
.xf-spec {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 50px; align-items: center;
}
.xf-spec-copy h2 { margin: 13px 0 12px; color: #fff; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.02em; }
.xf-spec-copy > p { margin: 0 0 28px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.xf-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.xf-spec-grid > div {
    padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
    background: rgba(255,255,255,.045);
}
.xf-spec-grid dt { margin-bottom: 5px; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .04em; }
.xf-spec-grid dd { margin: 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.xf-spec-note { margin: 22px 0 0; color: rgba(255,255,255,.5); font-size: 12.5px; line-height: 1.7; }
.xf-spec-copy > .xf-ecology-note { margin: 14px 0 0; color: #78e9dd; font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: normal; }
.xf-spec-visual {
    overflow: hidden; border: 1px solid rgba(120,233,221,.32); border-radius: 10px;
    background: #fff; aspect-ratio: 1 / 1;
}
.xf-spec-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.xf-spec-visual.is-fallback { background: linear-gradient(140deg, var(--xf-navy-soft), rgba(22,194,176,.28)); }

/* 服务支持 */
.xf-service-section { padding: 88px 0 86px; background: #fff; }
.xf-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.xf-service-card {
    padding: 28px 24px; border: 1px solid var(--xf-line); border-radius: 8px; background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.xf-service-card:hover { border-color: rgba(14,159,145,.45); box-shadow: 0 14px 30px rgba(15,35,65,.08); transform: translateY(-3px); }
.xf-service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
    background: var(--xf-primary-soft); color: var(--xf-primary-dark);
}
.xf-service-icon svg { width: 22px; height: 22px; }
.xf-service-card h3 { font-size: 17px; }
.xf-service-card p { margin: 9px 0 0; color: var(--xf-muted); font-size: 13.5px; line-height: 1.7; }
.xf-service-card-qr { display: flex; align-items: center; gap: 16px; }
.xf-service-card-qr .xf-service-qr {
    flex: 0 0 auto; width: 92px; height: 92px; padding: 6px;
    border: 1px solid var(--xf-line); border-radius: 8px; background: #fff;
}
.xf-service-card-qr .xf-service-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xf-service-card-qr h3 { margin-bottom: 6px; }
.xf-service-card-qr p { margin: 0; }
.xf-service-qr-body { min-width: 0; }
.xf-service-card-qr.qr-hidden .xf-service-qr { display: none; }

/* CTA */
.xf-cta { padding: 74px 0 80px; background: #f5f7f8; }
.xf-cta-inner { text-align: center; }
.xf-cta h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.02em; text-wrap: balance; }
.xf-cta p { margin: 14px auto 30px; max-width: 580px; color: var(--xf-muted); font-size: 15px; line-height: 1.75; }

/* 响应式 */
@media screen and (max-width: 1100px) {
    .xf-hero { background-position: 58% center; }
    .xf-scene { gap: 36px; }
    .xf-env-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xf-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xf-structure { gap: 36px; }
    .xf-spec { gap: 34px; }
}

@media screen and (max-width: 900px) {
    .xf-hero { background-position: 68% center; }
    .xf-hero::before { background: linear-gradient(90deg, rgba(8,26,48,.97), rgba(8,26,48,.78)); }
    .xf-hero-inner { min-height: 0; padding: 58px 0 64px; }
    .xf-scene { grid-template-columns: 1fr; gap: 24px; padding: 20px 0; }
    .xf-scene-reverse .xf-scene-media { order: 0; }
    .xf-scene-section { padding: 34px 0; }
    .xf-structure { grid-template-columns: 1fr; }
    .xf-spec { grid-template-columns: 1fr; }
    .xf-spec-visual { max-width: 560px; }
    .xf-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
    .xfxwcd-page .center { width: calc(100% - 28px); }
    .home-reveal { opacity: 1; transform: none; transition: none; }
    .xf-hero { background-position: 72% center; }
    .xf-hero::before { background: rgba(8,26,48,.83); }
    .xf-hero-inner { padding: 44px 0 50px; }
    .xf-hero-copy h1 { font-size: 38px; }
    .xf-actions .xf-button { width: 100%; }
    .xf-hero-points { gap: 8px; }
    .xf-env-section { padding: 62px 0 58px; }
    .xf-section-heading { margin-bottom: 32px; }
    .xf-section-heading h2 { font-size: 27px; }
    .xf-env-grid { grid-template-columns: 1fr; gap: 14px; }
    .xf-env-card { padding: 24px 22px; }
    .xf-env-conclusion { margin-top: 26px; font-size: 15px; }
    .xf-modes-section { padding: 62px 0 58px; }
    .xf-mode-grid { grid-template-columns: 1fr; gap: 14px; }
    .xf-mode-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 20px 18px; }
    .xf-mode-icon { grid-row: 1 / span 3; margin-bottom: 0; }
    .xf-mode-tag { grid-column: 2; margin-bottom: 4px; }
    .xf-mode-card h3 { grid-column: 2; margin-bottom: 8px; align-self: center; }
    .xf-mode-stat { grid-column: 2; }
    .xf-mode-card > p:last-child { grid-column: 2; }
    .xf-tech-section { padding: 62px 0 58px; }
    .xf-tech-conclusion { white-space: normal; }
    .xf-shield-list li { padding: 10px 14px; font-size: 13.5px; }
    .xf-structure-section { padding: 58px 0 64px; }
    .xf-layers { padding: 18px; }
    .xf-layer { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; }
    .xf-spec-section { padding: 58px 0 64px; }
    .xf-spec-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .xf-spec-grid > div { padding: 11px 12px; }
    .xf-spec-grid dd { font-size: 13px; }
    .xf-service-section { padding: 62px 0 60px; }
    .xf-service-grid { grid-template-columns: 1fr; }
    .xf-cta { padding: 56px 0 62px; }
    .xf-cta h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal { opacity: 1; transform: none; transition: none; }
    .xf-scene-media img, .xf-button, .xf-env-card, .xf-service-card, .xf-mode-card { transition: none; }
}
