@charset "utf-8";

/* 血氧仪产品页：与 smy/ddjcy 页共用设计语言（品牌青 + 深藏青），叙事聚焦蓝牙连接与生态联动 */
.xyy-page {
    --xyy-primary: var(--puleap-primary, #16c2b0);
    --xyy-primary-dark: var(--puleap-primary-dark, #0e9f91);
    --xyy-primary-soft: var(--puleap-primary-soft, #effbf9);
    --xyy-navy: var(--footer-background-color, #0f2341);
    --xyy-navy-soft: var(--footer-control-color, #1a3155);
    --xyy-ink: var(--puleap-heading, #1f2933);
    --xyy-text: var(--puleap-text, #303b45);
    --xyy-muted: var(--puleap-muted, #76828c);
    --xyy-line: var(--puleap-border, #e8ecef);
    background: #fff;
    color: var(--xyy-text);
}

.xyy-page [hidden] { display: none !important; }
.xyy-page .center { width: calc(100% - 48px); max-width: 1180px; }
.xyy-main { overflow: hidden; }
.xyy-main h1, .xyy-main h2, .xyy-main h3 { color: var(--xyy-ink); }
.xyy-main a:focus-visible, .xyy-main button:focus-visible { outline: 3px solid var(--xyy-primary); outline-offset: 3px; }
.xyy-main svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xyy-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; }

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

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

/* 按钮 */
.xyy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.xyy-actions-center { justify-content: center; }
.xyy-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;
}
.xyy-button:hover { transform: translateY(-2px); }
.xyy-button-primary { color: #fff !important; background: var(--xyy-primary); box-shadow: 0 8px 20px rgba(14,159,145,.18); }
.xyy-button-primary:hover { background: var(--xyy-primary-dark); box-shadow: 0 10px 24px rgba(14,159,145,.24); }
.xyy-button-ghost { color: #fff !important; border-color: rgba(255,255,255,.55); background: transparent; }
.xyy-button-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.xyy-button-plain { color: var(--xyy-ink) !important; border-color: rgba(31,41,51,.28); background: #fff; }
.xyy-button-plain:hover { border-color: var(--xyy-primary); color: var(--xyy-primary-dark) !important; }

/* Hero */
.xyy-hero {
    position: relative; overflow: hidden; color: #fff;
    background-color: var(--xyy-navy);
    background-image: url("/static/web/images/xyy/hero-bedroom-v2.png?v=20260917-2");
    background-position: right center; background-size: cover; background-repeat: no-repeat;
}
.xyy-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8,26,48,.98) 0%, rgba(8,26,48,.93) 32%, rgba(8,26,48,.68) 54%, rgba(8,26,48,.24) 76%, rgba(8,26,48,.12) 100%),
        linear-gradient(180deg, rgba(7,22,41,.12), rgba(7,22,41,.32));
}
.xyy-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 420px at 78% 42%, rgba(22,194,176,.24), transparent 68%),
        radial-gradient(420px 320px at 12% 88%, rgba(22,194,176,.12), transparent 70%);
}
.xyy-hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
    gap: 44px; align-items: center; padding: 66px 0 74px;
}
.xyy-hero-copy h1 { margin: 0 0 16px; color: #fff; font-size: clamp(44px, 4.6vw, 62px); line-height: 1.12; letter-spacing: -.04em; }
.xyy-hero-copy > p { max-width: 540px; margin: 0 0 28px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.8; }
.xyy-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.xyy-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;
}
.xyy-hero-points li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--xyy-primary); box-shadow: 0 0 0 3px rgba(22,194,176,.18);
}

/* 为什么关注血氧 */
.xyy-pain-section { padding: 88px 0 84px; background: #fff; }
.xyy-pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.xyy-pain-card {
    padding: 30px 28px 28px; border: 1px solid var(--xyy-line); border-radius: 8px; background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.xyy-pain-card:hover { border-color: rgba(14,159,145,.45); box-shadow: 0 14px 30px rgba(15,35,65,.08); transform: translateY(-3px); }
.xyy-pain-index { display: block; margin-bottom: 12px; color: var(--xyy-primary-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.xyy-pain-card h3 { font-size: 19px; line-height: 1.45; }
.xyy-pain-card p { margin: 10px 0 0; color: var(--xyy-muted); font-size: 14px; line-height: 1.75; }
.xyy-pain-conclusion { margin: 36px auto 0; max-width: 640px; text-align: center; color: var(--xyy-text); font-size: 17px; line-height: 1.7; }
.xyy-pain-conclusion strong { color: var(--xyy-primary-dark); }

/* 蓝牙连接（深色，本页核心） */
.xyy-connect-section {
    scroll-margin-top: 76px; /* 锚点跳转时避开吸顶导航 */
    position: relative; overflow: hidden;
    padding: 88px 0 92px; background: linear-gradient(180deg, var(--xyy-navy) 0%, #0c1e38 100%); color: #fff;
}
.xyy-connect-section::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(620px 420px at 18% 36%, rgba(22,194,176,.14), transparent 70%),
        radial-gradient(520px 360px at 86% 74%, rgba(22,194,176,.1), transparent 70%);
}
.xyy-connect-map {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(230px, 300px) minmax(60px, 104px) 1fr;
    align-items: stretch;
}
.xyy-connect-device {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px 36px;
    border: 1px solid rgba(120,233,221,.32); border-radius: 14px;
    background: rgba(22,194,176,.08);
    box-shadow: 0 0 0 6px rgba(22,194,176,.06), 0 18px 40px rgba(0,0,0,.3);
}
.xyy-connect-device-product {
    display: block; width: 132px; height: 132px; margin: 0 0 18px;
    object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28));
}
.xyy-connect-device.is-fallback::before {
    content: "血氧仪"; display: inline-flex; align-items: center; justify-content: center;
    width: 92px; height: 92px; margin-bottom: 18px; border-radius: 50%;
    background: rgba(22,194,176,.18); color: #78e9dd; font-size: 14px; font-weight: 700;
    box-shadow: 0 0 0 10px rgba(22,194,176,.08);
}
.xyy-connect-device h3 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.xyy-connect-device p { margin: 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.7; }
.xyy-connect-pipe { position: relative; height: 100%; min-height: 240px; }
.xyy-connect-pipe::before {
    content: ""; position: absolute; left: 6px; right: 6px; top: 50%;
    border-top: 2px dashed rgba(120,233,221,.45);
}
.xyy-connect-pipe-icon {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(120,233,221,.4); background: #12304f; color: #78e9dd;
    box-shadow: 0 0 0 8px rgba(18,48,79,.9);
}
.xyy-connect-pipe-icon svg { width: 22px; height: 22px; }
.xyy-connect-targets { display: grid; gap: 20px; min-width: 0; }
.xyy-connect-card {
    padding: 30px 30px 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    background: rgba(255,255,255,.045);
    transition: border-color .22s ease, background .22s ease;
}
.xyy-connect-card:hover { border-color: rgba(120,233,221,.5); background: rgba(255,255,255,.07); }
.xyy-connect-tag {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 14px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(120,233,221,.35); background: rgba(22,194,176,.12);
    color: #78e9dd; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.xyy-connect-tag svg { width: 16px; height: 16px; }
.xyy-connect-card h3 { margin: 0 0 10px; color: #fff; font-size: 21px; line-height: 1.4; }
.xyy-connect-card > p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.75; }
.xyy-connect-points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.xyy-connect-points li {
    position: relative; padding-left: 24px;
    color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.65;
}
.xyy-connect-points li::before {
    content: ""; position: absolute; top: 7px; left: 5px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--xyy-primary); box-shadow: 0 0 0 3px rgba(22,194,176,.18);
}
.xyy-connect-more {
    display: inline-block; margin-top: 16px;
    color: #78e9dd !important; font-size: 14px; font-weight: 700;
}
.xyy-connect-more:hover { text-decoration: underline; }

/* 场景 */
.xyy-scene-section { padding: 46px 0; background: #fff; }
.xyy-scene-section-alt { background: #f7faf9; }
.xyy-scene-section:first-of-type { padding-top: 24px; }
.xyy-scene {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px; align-items: center; padding: 26px 0;
}
.xyy-scene-reverse .xyy-scene-media { order: 2; }
.xyy-scene-reverse .xyy-scene-copy { order: 1; }
.xyy-scene-media {
    overflow: hidden; border-radius: 10px; border: 1px solid var(--xyy-line);
    background: var(--xyy-primary-soft); aspect-ratio: 3 / 2;
}
.xyy-scene-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.xyy-scene-media:hover img { transform: scale(1.025); }
.xyy-scene-media.is-fallback { background: linear-gradient(140deg, var(--xyy-primary-soft), rgba(22,194,176,.24)); }
.xyy-scene-copy h2 { margin: 13px 0 14px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.28; letter-spacing: -.02em; }
.xyy-scene-copy > p { margin: 0; color: var(--xyy-muted); font-size: 15px; line-height: 1.8; }
.xyy-scene-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.xyy-scene-points li {
    position: relative; padding-left: 26px;
    color: var(--xyy-text); font-size: 15px; line-height: 1.65;
}
.xyy-scene-points li::before {
    content: ""; position: absolute; top: 8px; left: 6px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--xyy-primary); box-shadow: 0 0 0 3px rgba(22,194,176,.14);
}
.xyy-scene-points a { color: var(--xyy-primary-dark) !important; font-weight: 600; }

/* 工作方式（深色） */
.xyy-how-section { padding: 88px 0 80px; background: var(--xyy-navy); color: #fff; }
.xyy-how-timeline {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
    margin: 0; padding: 0; list-style: none;
}
.xyy-how-step {
    position: relative; 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;
}
.xyy-how-step:hover { border-color: rgba(120,233,221,.5); background: rgba(255,255,255,.07); }
.xyy-how-step-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;
}
.xyy-how-step-icon svg { width: 24px; height: 24px; }
.xyy-how-step h3 { margin: 0 0 8px; color: #fff; font-size: 19px; }
.xyy-how-step p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; }

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

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

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

/* 响应式 */
@media screen and (max-width: 1100px) {
    .xyy-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 34px; }
    .xyy-scene { gap: 36px; }
    .xyy-connect-map { grid-template-columns: minmax(210px, 260px) minmax(48px, 72px) 1fr; }
    .xyy-spec-inner { gap: 34px; }
    .xyy-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 900px) {
    .xyy-hero { background-position: right center; }
    .xyy-hero::before { background: linear-gradient(90deg, rgba(8,26,48,.97), rgba(8,26,48,.74)); }
    .xyy-hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 52px 0 58px; }
    .xyy-pain-grid { grid-template-columns: 1fr; gap: 14px; }
    .xyy-pain-card { padding: 24px 22px; }
    .xyy-connect-section { padding: 62px 0 66px; }
    .xyy-connect-map { grid-template-columns: 1fr; justify-items: center; }
    .xyy-connect-device { width: min(100%, 420px); padding: 30px 24px 28px; }
    .xyy-connect-pipe { width: 44px; min-height: 64px; }
    .xyy-connect-pipe::before { left: 50%; top: 4px; bottom: 4px; right: auto; border-top: 0; border-left: 2px dashed rgba(120,233,221,.45); }
    .xyy-connect-targets { width: min(100%, 560px); }
    .xyy-scene { grid-template-columns: 1fr; gap: 24px; padding: 20px 0; }
    .xyy-scene-reverse .xyy-scene-media { order: 0; }
    .xyy-scene-section { padding: 34px 0; }
    .xyy-how-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xyy-spec-inner { grid-template-columns: 1fr; }
    .xyy-spec-visual { max-width: 480px; }
    .xyy-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
    .xyy-page .center { width: calc(100% - 28px); }
    .home-reveal { opacity: 1; transform: none; transition: none; }
    .xyy-hero { background-position: right center; }
    .xyy-hero::before { background: rgba(8,26,48,.82); }
    .xyy-hero-inner { padding: 40px 0 46px; }
    .xyy-hero-copy h1 { font-size: 42px; }
    .xyy-actions .xyy-button { width: 100%; }
    .xyy-hero-points { gap: 8px; }
    .xyy-pain-section { padding: 62px 0 58px; }
    .xyy-section-heading { margin-bottom: 32px; }
    .xyy-section-heading h2 { font-size: 27px; }
    .xyy-pain-conclusion { margin-top: 26px; font-size: 15px; }
    .xyy-connect-card { padding: 24px 20px 22px; }
    .xyy-connect-card h3 { font-size: 19px; }
    .xyy-how-section { padding: 62px 0 58px; }
    .xyy-how-timeline { grid-template-columns: 1fr; }
    .xyy-how-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 20px 18px; }
    .xyy-how-step-icon { grid-row: 1 / span 2; margin-bottom: 0; }
    .xyy-how-step h3 { align-self: center; }
    .xyy-spec-section { padding: 58px 0 64px; }
    .xyy-spec-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .xyy-spec-grid > div { padding: 11px 12px; }
    .xyy-spec-grid dd { font-size: 13px; }
    .xyy-service-section { padding: 62px 0 60px; }
    .xyy-service-grid { grid-template-columns: 1fr; }
    .xyy-cta { padding: 56px 0 62px; }
    .xyy-cta h2 { font-size: 26px; }
}

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