/* =========================================
   RIGHT SIDE WEDDING CONTROLLER
========================================= */

.site-header-controller {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 0;
    z-index: 80;
    pointer-events: none;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.header-brand-wrap {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 82;
    pointer-events: auto;
}

.brand-mark-floating {
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.66);
    border: 1px solid rgba(232, 205, 212, 0.54);
    box-shadow: 0 16px 34px rgba(191, 157, 171, 0.12);
    backdrop-filter: blur(12px);
}

.site-nav-controller {
    position: fixed;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    z-index: 82;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 14px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,247,250,0.62));
    border: 1px solid rgba(232, 203, 210, 0.50);
    box-shadow:
        0 24px 54px rgba(191, 157, 171, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    min-width: 74px;
}

.site-nav-controller::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(233, 172, 188, 0),
        rgba(233, 172, 188, 0.92),
        rgba(206, 180, 223, 0.92),
        rgba(233, 172, 188, 0)
    );
    opacity: 0.72;
    pointer-events: none;
}

.controller-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    color: var(--text-soft);
    transition: transform 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}

.controller-link:hover {
    transform: scale(1.08);
    color: var(--text);
}

.controller-dot {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(245, 210, 220, 0.95) 58%, rgba(208, 191, 231, 0.92) 100%);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow:
        0 0 0 6px rgba(255, 250, 251, 0.78),
        0 10px 18px rgba(206, 171, 186, 0.24);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.controller-link::before {
    content: "";
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    min-width: 92px;
    max-width: 150px;
    padding: 8px 14px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,247,250,0.76));
    border: 1px solid rgba(232, 203, 210, 0.62);
    box-shadow: 0 16px 32px rgba(191, 157, 171, 0.12);
    color: #8d6d77;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    content: attr(data-label);
    backdrop-filter: blur(10px);
}

.controller-link:hover::before,
.controller-link.is-active::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.controller-link:hover .controller-dot,
.controller-link.is-active .controller-dot {
    transform: scale(1.18);
    box-shadow:
        0 0 0 8px rgba(255, 249, 250, 0.9),
        0 14px 24px rgba(219, 178, 196, 0.28);
}

.controller-link.is-active .controller-dot {
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.98), rgba(236, 174, 192, 0.96) 54%, rgba(201, 178, 226, 0.95) 100%);
}

.controller-link.is-active::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1px dashed rgba(232, 171, 188, 0.45);
    animation: controllerPulse 2.4s linear infinite;
    pointer-events: none;
}

.controller-text {
    display: none;
}

/* 顶部 hamburger 只给手机 */
.controller-toggle {
    position: fixed;
    top: 20px;
    right: 18px;
    z-index: 83;
    pointer-events: auto;
    display: none;
}

/* 小小浪漫光晕 */
.site-nav-controller::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 223, 232, 0.32), transparent 72%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

@keyframes controllerPulse {
    0% {
        transform: scale(0.88);
        opacity: 0.72;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

/* 平板 */
@media (max-width: 980px) {
    .site-nav-controller {
        right: 18px;
        min-width: 66px;
        padding: 18px 10px;
    }

    .controller-link::before {
        min-width: 82px;
        font-size: 11px;
    }
}

/* 手机改回浮层菜单 */
@media (max-width: 860px) {
    .header-brand-wrap {
        top: 14px;
        left: 14px;
    }

    .brand-mark-floating {
        padding: 10px 14px 10px 12px;
    }

    .controller-toggle {
        display: flex;
    }

    .site-nav-controller {
        top: 76px;
        right: 14px;
        left: 14px;
        transform: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
        border-radius: 24px;
        min-width: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .site-nav-controller::before,
    .site-nav-controller::after {
        display: none;
    }

    .site-nav-controller.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .controller-link {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        justify-content: flex-start;
        gap: 12px;
        border-radius: 16px;
        background: rgba(255,255,255,0.62);
        border: 1px solid rgba(232, 203, 210, 0.42);
    }

    .controller-link::before {
        display: none;
    }

    .controller-link.is-active::after {
        display: none;
    }

    .controller-text {
        display: inline-block;
        font-size: 13px;
        font-weight: 600;
        color: #846770;
    }
}

.site-footer {
    padding: 1.4rem 0 2.2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 26px;
    background: rgba(255, 252, 247, 0.62);
    border: 1px solid rgba(255,255,255,0.54);
    backdrop-filter: blur(14px);
}

.footer-title {
    margin: 0 0 0.25rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
}

.footer-copy,
.footer-meta {
    color: var(--text-soft);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   VINTAGE LOADING PAGE - CUSTOM STYLE
   ========================================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7bec6; /* 古典象牙白 */
    background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png"); /* 纸张纹理 */
    overflow: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease, transform 1.2s ease;
}

.loader-inner {
    position: relative;
    z-index: 5;
    text-align: center;
}

/* 深红火漆印章 */
.loader-stamp {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    background: #a63e3e; /* 复古朱红 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #f4f1ea, 0 0 0 6px #a63e3e, 0 15px 30px rgba(0,0,0,0.1);
    animation: stampPulse 2.5s ease-in-out infinite;
}

.stamp-text {
    color: #f4f1ea;
    font-size: 50px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    line-height: 1;
}

.loader-names {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: #4a3e37;
    margin: 10px 0;
    letter-spacing: 2px;
}

/* 极细进度线 */
.loader-line-wrap {
    width: 180px;
    height: 1px;
    background: rgba(166, 62, 62, 0.15);
    margin: 25px auto 10px;
    position: relative;
    overflow: hidden;
}

.loader-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%; /* JS 控制 */
    background: #a63e3e;
    transition: width 0.3s ease;
}

.loader-percentage {
    font-family: 'Garamond', 'Inter', serif;
    font-size: 15px;
    color: #a63e3e;
    font-weight: 700;
    letter-spacing: 1px;
}

.loader-motto {
    font-size: 23px;
    color: #a69386;
    margin-top: 25px;
    letter-spacing: 4px;
    font-style: italic;
}

/* 退出动画：微微放大并淡出 */
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
}

@keyframes stampPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 1rem 1.1rem;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-1 {
    grid-template-columns: 1fr;
}

.form-col-full {
    grid-column: 1 / -1;
}

.dream-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dream-form label span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dream-form input,
.dream-form select,
.dream-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.submit-button {
    align-self: flex-start;
}

.blessing-form-card .submit-button {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-col-full {
        grid-column: auto;
    }

    .submit-button,
    .blessing-form-card .submit-button {
        width: 100%;
    }
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: center;
}

.split-section + .container {
    margin-top: 3rem;
}

.split-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.split-copy p {
    max-width: 520px;
}

.split-copy-right {
    align-items: flex-start;
}

.split-illustration {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.split-illustration img {
    width: min(100%, 420px);
    height: auto;
    display: block;
    object-fit: contain;
}

.split-form-card {
    width: 100%;
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 1rem 1.1rem;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-1 {
    grid-template-columns: 1fr;
}

.form-col-full {
    grid-column: 1 / -1;
}

.dream-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dream-form label span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dream-form input,
.dream-form select,
.dream-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.submit-button {
    align-self: flex-start;
}

@media (max-width: 980px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-copy,
    .split-copy-right {
        order: 1;
    }

    .split-form-card {
        order: 2;
    }

    .split-illustration {
        justify-content: center;
    }

    .split-copy,
    .split-copy-right {
        text-align: center;
        align-items: center;
    }

    .split-copy p,
    .split-copy-right p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-col-full {
        grid-column: auto;
    }

    .submit-button {
        width: 100%;
    }
}

.dreamy-heading {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 32px;
}

.heading-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(170, 138, 160, 0.12);
    animation: eyebrowFloat 4.8s ease-in-out infinite;
}

.heading-eyebrow::before {
    content: "✦";
    font-size: 0.82rem;
    opacity: 0.8;
}

.heading-title {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    margin-top: 0.9rem;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-shadow: 0 10px 30px rgba(170, 132, 150, 0.12);
    animation: titleLift 1.15s ease both;
}

.heading-title::after {
    content: "";
    display: block;
    width: 68%;
    height: 10px;
    margin-top: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255, 214, 224, 0) 0%,
        rgba(255, 214, 224, 0.9) 20%,
        rgba(226, 213, 255, 0.95) 55%,
        rgba(255, 214, 224, 0) 100%
    );
    filter: blur(1px);
    animation: titleLineGlow 3.6s ease-in-out infinite;
}

.heading-desc {
    position: relative;
    margin-top: 1rem;
    max-width: 34rem;
    line-height: 1.85;
    animation: descFadeUp 1.3s ease both;
}

.heading-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
    opacity: 0.7;
}

.orb-one {
    top: 2%;
    right: 7%;
    width: 86px;
    height: 86px;
    background: radial-gradient(circle, rgba(255, 226, 234, 0.9) 0%, rgba(255, 226, 234, 0) 72%);
    animation: orbFloatOne 7.5s ease-in-out infinite;
}

.orb-two {
    bottom: 16%;
    left: -10px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(230, 220, 255, 0.75) 0%, rgba(230, 220, 255, 0) 72%);
    animation: orbFloatTwo 8.5s ease-in-out infinite;
}

.heading-sparkle {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.7;
}

.heading-sparkle::before,
.heading-sparkle::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.95), rgba(255,255,255,0));
    border-radius: 999px;
}

.heading-sparkle::before {
    width: 2px;
    height: 18px;
}

.heading-sparkle::after {
    width: 18px;
    height: 2px;
}

.sparkle-one {
    top: 14%;
    right: 19%;
    animation: sparkleBlink 3.8s ease-in-out infinite;
}

.sparkle-two {
    bottom: 24%;
    right: 10%;
    transform: scale(0.8);
    animation: sparkleBlink 4.6s ease-in-out infinite 1.2s;
}

.dreamy-heading .split-illustration {
    margin-top: 1.5rem;
    animation: figureFloat 6.5s ease-in-out infinite;
}

.dreamy-heading .split-illustration img {
    filter: drop-shadow(0 24px 40px rgba(180, 145, 165, 0.16));
}

@keyframes eyebrowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes titleLift {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes descFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleLineGlow {
    0%, 100% {
        opacity: 0.65;
        transform: scaleX(0.96);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.04);
    }
}

@keyframes orbFloatOne {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(10px, -8px, 0);
    }
}

@keyframes orbFloatTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-8px, 10px, 0);
    }
}

@keyframes sparkleBlink {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.75) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(14deg);
    }
}

@keyframes figureFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 980px) {
    .dreamy-heading {
        padding: 1rem 0.5rem 1rem;
    }

    .heading-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .heading-desc {
        max-width: 100%;
    }

    .sparkle-one {
        right: 12%;
    }

    .sparkle-two {
        right: 6%;
    }
}

.dreamy-heading {
    background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
    border: 1px solid rgba(255,255,255,0.48);
    box-shadow: 0 20px 50px rgba(176, 142, 156, 0.08);
}