/*
 * 一枝红杏 homepage page template (core/pages/homepage/yzhx2026) - page-only CSS.
 * Rules mirror /workspace/yzhx-home-redesign/mockup.html (approved). Everything is scoped to .yz-home and uses its
 * own .yz-* classes (no Lagom .btn/.section-title), so the page renders the same under the "一枝红杏" style and under
 * Lagom's stock styles (where the self-hosted Noto Serif SC is not loaded and headings fall back to system serif).
 */
.yz-home {
    --yz-h-primary: #b7102a;
    --yz-h-primary-2: #db313f;
    --yz-h-primary-dark: #960e23;
    --yz-h-surface: #fcf9f8;
    --yz-h-surface-low: #f6f3f2;
    --yz-h-surface-c: #f0eded;
    --yz-h-card: #fff;
    --yz-h-ink: #1c1b1b;
    --yz-h-ink-2: #5b403f;
    --yz-h-muted: #736c6f;
    --yz-h-line: #ece6e5;
    --yz-h-save: #2c694e;
    --yz-h-save-bg: #e8f2ec;
    --yz-h-radius: 12px;
    --yz-h-head: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
    --yz-h-label: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background: var(--yz-h-surface);
    color: var(--yz-h-ink);
    line-height: 1.6;
    padding-bottom: 8px;
}
.yz-home *,
.yz-home *:before,
.yz-home *:after {
    box-sizing: border-box;
}
.yz-home a,
.yz-home a:hover,
.yz-home a:focus {
    text-decoration: none;
}
.yz-home h1,
.yz-home h2,
.yz-home h3,
.yz-home p {
    margin: 0;
}

/* pills (own classes, independent of Lagom .btn) */
.yz-home .yz-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: 0;
    font-family: var(--yz-h-label);
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.yz-home .yz-pill:hover {
    transform: scale(1.04);
}
.yz-home .yz-sm {
    padding: 8px 18px;
    font-size: 14px;
}
.yz-home .yz-lg {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
}
.yz-home .yz-solid,
.yz-home .yz-solid:hover,
.yz-home .yz-solid:focus {
    background: linear-gradient(90deg, var(--yz-h-primary), var(--yz-h-primary-2));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(183, 16, 42, .45);
}
.yz-home .yz-ghost,
.yz-home .yz-ghost:hover,
.yz-home .yz-ghost:focus {
    border: 1.5px solid rgba(228, 190, 188, .7);
    color: var(--yz-h-ink);
    background: transparent;
}
.yz-home .yz-outline,
.yz-home .yz-outline:hover,
.yz-home .yz-outline:focus {
    border: 2px solid var(--yz-h-primary);
    color: var(--yz-h-primary);
    background: transparent;
}
.yz-home .yz-pill.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

/* hero */
.yz-home .yz-hero {
    position: relative;
    overflow: hidden;
}
.yz-home .yz-hero:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../img/hero-bg.webp) center 30% / cover no-repeat;
    opacity: .22;
    filter: grayscale(1);
}
.yz-home .yz-hero:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(252, 249, 248, .2), var(--yz-h-surface) 92%);
}
.yz-home .yz-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 64px;
}
.yz-home .yz-hero-grid:before,
.yz-home .yz-hero-grid:after {
    /* Bootstrap .container clearfix pseudo-elements would become grid items */
    display: none;
}
.yz-home .yz-eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 14px;
    align-items: center;
    font-family: var(--yz-h-label);
    font-size: 12.5px;
    color: var(--yz-h-ink-2);
}
.yz-home .yz-eyebrow b {
    color: var(--yz-h-primary);
    border-left: 3px solid var(--yz-h-primary);
    padding-left: 10px;
    font-weight: 700;
}
.yz-home .yz-h1 {
    font-family: var(--yz-h-head);
    font-weight: 900;
    font-size: 60px;
    line-height: 1.1;
    margin: 22px 0 18px;
    letter-spacing: .02em;
    color: var(--yz-h-ink);
}
.yz-home .yz-h1 em {
    display: block;
    color: var(--yz-h-primary);
    font-style: italic;
}
.yz-home .yz-lead {
    color: var(--yz-h-ink-2);
    max-width: 460px;
    font-size: 16px;
}
.yz-home .yz-cta {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.yz-home .yz-art {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    border-radius: var(--yz-h-radius);
    background: #f4ead2 url(../img/apricot-branch.webp) center / 88% no-repeat;
    box-shadow: 0 30px 60px -30px rgba(60, 30, 20, .35);
    position: relative;
}
.yz-home .yz-art span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    writing-mode: vertical-rl;
    font-family: var(--yz-h-head);
    color: rgba(91, 64, 63, .55);
    letter-spacing: .3em;
    font-size: 15px;
}

/* quick entries */
.yz-home .yz-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -8px;
    position: relative;
    z-index: 1;
}
.yz-home .yz-q {
    background: var(--yz-h-card);
    border: 1px solid var(--yz-h-line);
    border-radius: var(--yz-h-radius);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--yz-h-ink);
    transition: box-shadow .2s;
}
.yz-home .yz-q:hover {
    box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25);
    color: var(--yz-h-ink);
}
.yz-home .yz-q i {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(183, 16, 42, .08);
    color: var(--yz-h-primary);
    display: grid;
    place-items: center;
    font-style: normal;
}
.yz-home .yz-q h3 {
    font-family: var(--yz-h-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--yz-h-ink);
}
.yz-home .yz-q p {
    font-size: 13px;
    color: var(--yz-h-muted);
}

/* sections */
.yz-home .yz-section {
    padding: 88px 0 0;
}
.yz-home .yz-sec-h {
    text-align: center;
    margin-bottom: 28px;
}
.yz-home .yz-sec-h h2 {
    font-family: var(--yz-h-head);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    color: var(--yz-h-ink);
    text-transform: none;
}
.yz-home .yz-sec-h p {
    color: var(--yz-h-muted);
    margin-top: 8px;
    font-size: 15px;
}

/* plans: tier switch */
.yz-home .yz-seg {
    display: flex;
    justify-content: center;
    margin: 26px 0 8px;
}
.yz-home .yz-seg > div {
    background: var(--yz-h-surface-c);
    border-radius: 999px;
    padding: 5px;
    display: flex;
    gap: 4px;
}
.yz-home .yz-seg button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 9px 26px;
    font-family: var(--yz-h-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--yz-h-ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yz-home .yz-seg button.on {
    background: var(--yz-h-primary);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(183, 16, 42, .6);
}
.yz-home .yz-seg button small {
    font-family: var(--yz-h-label);
    font-size: 11px;
    background: var(--yz-h-save-bg);
    color: var(--yz-h-save);
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}
.yz-home .yz-seg button.on small {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
.yz-home .yz-tagline {
    text-align: center;
    color: var(--yz-h-muted);
    font-size: 13.5px;
    margin-bottom: 34px;
}

/* plans: cards (DOM order 1y / 3y / 2y, 3y = .best in the centre) */
.yz-home .yz-tier {
    display: none;
}
.yz-home .yz-tier.on {
    display: grid;
}
.yz-home .yz-cards {
    grid-template-columns: 1fr 1.06fr 1fr;
    gap: 22px;
    align-items: center;
}
.yz-home .yz-card {
    background: var(--yz-h-card);
    border: 1px solid var(--yz-h-line);
    border-radius: 16px;
    padding: 28px 26px 26px;
    position: relative;
}
.yz-home .yz-card.best {
    border: 1.5px solid var(--yz-h-primary);
    padding-top: 52px;
    box-shadow: 0 24px 50px -28px rgba(183, 16, 42, .45);
}
.yz-home .yz-band {
    position: absolute;
    left: -1.5px;
    right: -1.5px;
    top: -1.5px;
    height: 36px;
    background: var(--yz-h-primary);
    color: #fff;
    border-radius: 16px 16px 0 0;
    display: grid;
    place-items: center;
    font-family: var(--yz-h-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2em;
}
.yz-home .yz-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.yz-home .yz-card h3 {
    font-family: var(--yz-h-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--yz-h-ink);
}
.yz-home .yz-sub {
    font-family: var(--yz-h-label);
    font-size: 12.5px;
    color: var(--yz-h-muted);
}
.yz-home .yz-save {
    font-family: var(--yz-h-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--yz-h-save);
    background: var(--yz-h-save-bg);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}
.yz-home .yz-price {
    margin: 22px 0 4px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--yz-h-label);
    color: var(--yz-h-ink);
}
.yz-home .yz-price .c {
    font-size: 22px;
    font-weight: 700;
}
.yz-home .yz-price .n {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}
.yz-home .yz-price .n.yz-tbd {
    font-family: var(--yz-h-head);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--yz-h-muted);
}
.yz-home .yz-price .u {
    font-size: 14px;
    color: var(--yz-h-muted);
    margin-left: 4px;
}
.yz-home .yz-total {
    font-size: 13px;
    color: var(--yz-h-muted);
    font-family: var(--yz-h-label);
}
.yz-home .yz-card .yz-pill {
    width: 100%;
    margin-top: 20px;
    padding: 13px 0;
    font-size: 15px;
}
.yz-home .yz-refund {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--yz-h-muted);
    margin-top: 10px;
}
.yz-home .yz-feat {
    list-style: none;
    border-top: 1px solid var(--yz-h-line);
    margin: 20px 0 0;
    padding: 18px 0 0;
    display: grid;
    gap: 9px;
    font-size: 14px;
    color: var(--yz-h-ink);
}
.yz-home .yz-feat li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.yz-home .yz-feat li:before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: rgba(183, 16, 42, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23b7102a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px;
}
.yz-home .yz-feat li.k {
    font-weight: 700;
}

/* faq */
.yz-home .yz-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}
.yz-home .yz-faq-list details {
    background: var(--yz-h-surface-low);
    border-radius: var(--yz-h-radius);
    padding: 18px 22px;
}
.yz-home .yz-faq-list summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--yz-h-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--yz-h-ink);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.yz-home .yz-faq-list summary::-webkit-details-marker {
    display: none;
}
.yz-home .yz-faq-list summary:after {
    content: "+";
    color: var(--yz-h-primary);
    font-family: var(--yz-h-label);
    font-size: 20px;
    line-height: 1;
}
.yz-home .yz-faq-list details[open] summary:after {
    content: "\2212";
}
.yz-home .yz-faq-list details p {
    margin-top: 10px;
    color: var(--yz-h-ink-2);
    font-size: 14.5px;
}

/* help card */
.yz-home .yz-help {
    max-width: 780px;
    margin: 22px auto 0;
    background: var(--yz-h-primary);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.yz-home .yz-help:after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: url(../img/apricot-blossom.webp) center / contain no-repeat;
    opacity: .18;
    mix-blend-mode: screen;
    pointer-events: none;
}
.yz-home .yz-help h3 {
    font-family: var(--yz-h-head);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.yz-home .yz-help p {
    opacity: .85;
    font-size: 14px;
    margin-top: 4px;
}
.yz-home .yz-help-btns {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.yz-home .yz-w,
.yz-home .yz-w:hover,
.yz-home .yz-w:focus {
    background: #fff;
    color: var(--yz-h-primary);
}
.yz-home .yz-wl,
.yz-home .yz-wl:hover,
.yz-home .yz-wl:focus {
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: transparent;
}

/* tablet: keep the art from squeezing the headline */
@media (max-width: 991px) {
    .yz-home .yz-hero-grid {
        grid-template-columns: 1fr;
    }
    .yz-home .yz-art {
        display: none;
    }
}

/* mobile (mockup breakpoint 760px, aligned to Lagom's xs) */
@media (max-width: 767px) {
    .yz-home .yz-hero-grid {
        padding-top: 40px;
        padding-bottom: 36px;
        gap: 0;
    }
    .yz-home .yz-h1 {
        font-size: 44px;
    }
    .yz-home .yz-cta .yz-pill {
        flex: 1;
    }
    .yz-home .yz-quick {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .yz-home .yz-q {
        padding: 14px 16px;
    }
    .yz-home .yz-section {
        padding-top: 60px;
    }
    .yz-home .yz-sec-h h2 {
        font-size: 28px;
    }
    .yz-home .yz-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .yz-home .yz-card {
        padding: 22px 20px;
    }
    .yz-home .yz-card.best {
        order: -1;
        padding-top: 48px;
    }
    .yz-home .yz-price .n {
        font-size: 40px;
    }
    .yz-home .yz-help {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}
