/* LuckColor bespoke utility sheet */
:root {
    --lc-bg-start: #fef3f8;
    --lc-bg-mid: #fef9f3;
    --lc-bg-end: #f5f7ff;
    --lc-text: #2f2937;
    --lc-subtext: #6b6076;
    --lc-accent: #ff9ec7;
    --lc-secondary: #50c878;
    --lc-iris: #a78bfa;
    --lc-muted: rgba(255, 255, 255, 0.65);
    --lc-shadow-soft: 0 25px 45px -25px rgba(255, 158, 199, 0.7);
    --lc-shadow-card: 0 45px 75px -40px rgba(104, 82, 128, 0.35);
    --lc-radius-xl: 32px;
}

body.bg-ivory {
    background: radial-gradient(circle at top left, rgba(255, 204, 228, 0.32), transparent 45%),
                radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.28), transparent 40%),
                linear-gradient(180deg, var(--lc-bg-start) 0%, var(--lc-bg-mid) 46%, var(--lc-bg-end) 100%);
    color: var(--lc-text);
    font-family: "Playfair Display", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.page-home {
    width: min(760px, 100%);
    padding: 48px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-home.is-activated {
    opacity: 1;
    transform: translateY(0);
}

.locale-switch {
    position: absolute;
    top: 16px;
    right: 20px;
    display: inline-flex;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 38px -26px rgba(80, 45, 100, 0.45);
    z-index: 3;
}

.locale-switch__item {
    appearance: none;
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #715a82;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.locale-switch__item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #4a3b5d;
}

.locale-switch__item.is-active {
    background: linear-gradient(120deg, rgba(255, 158, 199, 0.95), rgba(255, 200, 120, 0.9));
    color: #341d2f;
    box-shadow: 0 12px 24px -18px rgba(255, 158, 199, 0.7);
}

@media (max-width: 640px) {
    .locale-switch {
        top: 12px;
        right: 12px;
        gap: 6px;
        padding: 8px 12px;
    }
    .locale-switch__item {
        padding: 4px 8px;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}

.page-home .locale-switch,
.page-home .morning-banner,
.page-home .hero,
.page-home .style-board,
.page-home .energy-timeline,
.page-home .reason,
.page-home .cta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-home.is-activated .locale-switch {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.02s;
}

.page-home.is-activated .morning-banner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.page-home.is-activated .hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.page-home.is-activated .style-board {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.page-home.is-activated .energy-timeline {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.32s;
}

.page-home.is-activated .reason {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.42s;
}

.page-home.is-activated .cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.52s;
}

.page-home.is-activated .cta__glow {
    animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
    .page-home,
    .page-home.is-activated,
    .page-home .morning-banner,
    .page-home .hero,
    .page-home .style-board,
    .page-home .energy-timeline,
    .page-home .reason,
    .page-home .cta {
        transition: none;
        transform: none;
        opacity: 1;
    }
    .cta__button::after,
    .cta__glow,
    .style-board__swatch::after,
    .cosmic-orb,
    .energy-timeline__pulse {
        animation: none;
    }
}
.cosmic-background {
    position: absolute;
    inset: -180px -120px auto -160px;
    height: 560px;
    pointer-events: none;
    filter: blur(0.2px);
    opacity: 0.95;
    z-index: -1;
}

.cosmic-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 158, 199, 0.45));
    filter: blur(0.5px);
    animation: orbFloat 16s ease-in-out infinite;
}

.cosmic-orb--one {
    width: 320px;
    height: 320px;
    top: 0;
    left: 0;
}

.cosmic-orb--two {
    width: 260px;
    height: 260px;
    top: 120px;
    right: -80px;
    animation-delay: -6s;
}

.cosmic-orb--three {
    width: 220px;
    height: 220px;
    top: -60px;
    right: 140px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75), rgba(167, 139, 250, 0.45));
    animation-delay: -3s;
}

.cosmic-orb--four {
    width: 280px;
    height: 280px;
    bottom: -40px;
    left: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(80, 200, 120, 0.35));
    animation-delay: -9s;
}

.morning-banner {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    border-radius: 999px;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #7a6b87;
    box-shadow: 0 20px 30px -18px rgba(160, 125, 177, 0.4);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.morning-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 40px -22px rgba(160, 125, 177, 0.45);
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--lc-radius-xl);
    background: linear-gradient(140deg, rgba(255, 184, 214, 0.88) 0%, rgba(255, 237, 215, 0.85) 48%, rgba(230, 243, 255, 0.9) 100%);
    padding: 44px 32px 40px;
    display: grid;
    gap: 24px;
    align-items: center;
    box-shadow: var(--lc-shadow-soft);
}

.hero__halo {
    position: absolute;
    inset: auto -40% -60% -40%;
    height: 280px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.65), transparent 65%);
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.hero__greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #725a7a;
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin: 12px 0 8px;
    font-weight: 600;
    color: #2d1f33;
}

.hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: var(--lc-subtext);
    letter-spacing: 0.04em;
}

.hero__mantra {
    margin-top: 12px;
    font-size: 1rem;
    color: #4f3e56;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    font-size: 0.88rem;
    color: #58455f;
    box-shadow: 0 18px 40px -24px rgba(90, 63, 102, 0.45);
}

.hero__note::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lc-secondary);
    box-shadow: 0 0 12px rgba(80, 200, 120, 0.7);
}

.hero__figure {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.hero__figure-gradient {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 260px;
    height: 260px;
    background: conic-gradient(from 45deg, rgba(255, 158, 199, 0.65), rgba(80, 200, 120, 0.45), rgba(255, 255, 255, 0.7));
    filter: blur(30px);
}

.hero__figure-img {
    width: 180px;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.style-board {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--lc-radius-xl);
    padding: 36px 28px;
    box-shadow: var(--lc-shadow-card);
    display: grid;
    gap: 24px;
}

.style-board__title {
    font-size: 1.6rem;
    margin: 0;
    text-align: center;
    color: #35263f;
}

.style-board__card {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
}

.style-board__swatch {
    border-radius: 28px;
    min-height: 180px;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.4);
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.style-board__swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    transform: translateX(-120%);
    animation: swatchShimmer 6s ease-in-out infinite;
}

.style-board__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.style-board__label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #8f7a99;
    text-transform: uppercase;
}

.style-board__name {
    font-size: 1.8rem;
    margin: 0;
}

.style-board__affair {
    margin: 0;
    color: #5b4a67;
    font-size: 1rem;
}

.style-board__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 40px -28px rgba(81, 56, 97, 0.35);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    color: #4a3b5d;
}

.meta-chip__label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: #8c7aa0;
}

.meta-chip__value {
    font-weight: 600;
}

.style-board__mood {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.style-board__mood li {
    background: rgba(255, 158, 199, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #7a5f8c;
}

.style-board__silhouettes {
    display: grid;
    gap: 12px;
}

.silhouette {
    position: relative;
    border-radius: 24px;
    padding: 32px 18px 20px;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
}

.silhouette span {
    position: relative;
    z-index: 1;
}

.silhouette::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
    mix-blend-mode: lighten;
}

.silhouette--top {
    background: linear-gradient(160deg, rgba(255, 189, 216, 0.95), rgba(245, 143, 204, 0.9));
}

.silhouette--bottom {
    background: linear-gradient(160deg, rgba(104, 196, 176, 0.95), rgba(80, 200, 120, 0.85));
}

.silhouette--accessory {
    background: linear-gradient(160deg, rgba(255, 200, 120, 0.95), rgba(255, 158, 199, 0.88));
}

.style-board__support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.support-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px -28px rgba(94, 70, 115, 0.45);
}

.support-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #4f3b5a;
}

.support-card p {
    margin: 0;
    color: #7a6b87;
}

.reason {
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--lc-radius-xl);
    padding: 36px;
    box-shadow: var(--lc-shadow-card);
    position: relative;
}

.reason__title {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.reason__content {
    display: grid;
    gap: 12px;
    position: relative;
}

.reason__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(80, 200, 120, 0.18);
    color: #3c6f5a;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}

.reason__text,
.reason__story {
    margin: 0;
    color: #5b4a67;
    line-height: 1.7;
}

.energy-timeline {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    padding: 32px 28px;
    border-radius: var(--lc-radius-xl);
    box-shadow: 0 45px 70px -38px rgba(95, 70, 115, 0.35);
    overflow: hidden;
}

.energy-timeline::before {
    content: '';
    position: absolute;
    inset: -40% 40% 40% -40%;
    background: linear-gradient(140deg, rgba(255, 158, 199, 0.22), rgba(167, 139, 250, 0.18));
    opacity: 0.65;
    filter: blur(90px);
}

.energy-timeline__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.energy-timeline__title {
    margin: 0;
    font-size: 1.25rem;
    color: #45344f;
}

.energy-timeline__pulse {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 6px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.25);
    animation: pulseGlow 3.4s ease-in-out infinite;
}

.energy-timeline__list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.energy-timeline__item {
    display: grid;
    gap: 6px;
    padding-left: 32px;
    position: relative;
}

.energy-timeline__item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(255, 158, 199, 0.9), rgba(80, 200, 120, 0.9));
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.55);
}

.energy-timeline__item::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 20px;
    width: 1px;
    height: calc(100% + 10px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(167, 139, 250, 0.35));
}

.energy-timeline__item:last-child::after {
    display: none;
}

.energy-timeline__time {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8c7aa0;
}

.energy-timeline__text {
    margin: 0;
    color: #534360;
    line-height: 1.65;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.cta--fixed {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(760px, 96vw);
    padding: 8px 12px;
    z-index: 50;
    backdrop-filter: saturate(1.2) blur(14px);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 18px 40px -24px rgba(80, 45, 100, 0.35);
}

/* 给固定 CTA 让出底部空间，避免遮挡内容 */
.page-home {
    padding-bottom: 140px;
}

.cta__button {
    appearance: none;
    border: none;
    background: linear-gradient(120deg, rgba(255, 158, 199, 1), rgba(255, 200, 120, 1));
    color: #3b1d33;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 25px 45px -25px rgba(255, 158, 199, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -24px rgba(255, 158, 199, 0.8);
}

.cta__button:active {
    transform: scale(0.98);
}

.cta__button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.cta__button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 120%;
    height: 200%;
    background: conic-gradient(from 90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    animation: buttonSheen 5s ease-in-out infinite;
}

.cta__glow {
    position: absolute;
    inset: auto;
    bottom: -10px;
    width: 240px;
    height: 46px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 158, 199, 0.45), transparent 55%);
    filter: blur(10px);
    animation: glowPulse 4.2s ease-in-out infinite;
    pointer-events: none;
    animation-play-state: paused;
}

.cta__installed {
    font-size: 1rem;
    color: #7a6b87;
}

.cta__hint {
    font-size: 0.82rem;
    color: #6f607f;
    text-align: center;
    margin: 0;
}

.ios-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 999;
}

.ios-modal[hidden] {
    display: none;
}

.ios-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(39, 20, 35, 0.55);
}

.ios-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    width: min(92vw, 360px);
    box-shadow: 0 30px 65px -28px rgba(89, 61, 103, 0.55);
}

.ios-modal__title {
    margin: 0 0 16px;
    font-size: 1.3rem;
    color: #4b395a;
}

.ios-modal__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: #5c4c68;
}

.ios-modal__image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35);
}

.ios-modal__close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: #a38fb6;
    cursor: pointer;
}

.visually-hidden,
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: 1fr auto;
        padding: 48px 48px 40px;
    }

    .hero__figure-img {
        width: 220px;
    }

    .page-home {
        padding: 64px 0 96px;
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(18px, -12px, 0) scale(1.05);
    }
    66% {
        transform: translate3d(-12px, 16px, 0) scale(0.97);
    }
}

@keyframes swatchShimmer {
    0%, 35% {
        transform: translateX(-120%);
        opacity: 0;
    }
    45%, 60% {
        transform: translateX(120%);
        opacity: 1;
    }
    70%, 100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.35);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(167, 139, 250, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
    }
}

@keyframes buttonSheen {
    0%, 20% {
        transform: translateX(-120%) rotate(15deg);
        opacity: 0;
    }
    30%, 40% {
        transform: translateX(120%) rotate(15deg);
        opacity: 1;
    }
    55%, 100% {
        transform: translateX(120%) rotate(15deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.65;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.08);
    }
}

@media (max-width: 640px) {
    .hero {
        text-align: center;
    }

    .hero__figure {
        justify-content: center;
    }

    .style-board__card {
        grid-template-columns: 1fr;
    }

    .style-board__swatch {
        min-height: 240px;
    }
}
