/* =========================================
   SECTION 1 - HERO
========================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100svh;
    padding: 126px 0 84px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 222, 231, 0.82), transparent 22%),
        radial-gradient(circle at 84% 14%, rgba(223, 217, 255, 0.72), transparent 24%),
        radial-gradient(circle at 50% 74%, rgba(255, 240, 213, 0.58), transparent 28%),
        linear-gradient(180deg, #fffdf9 0%, #fffaf6 42%, #fff7fb 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,0.78), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,247,250,0.82));
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: calc(100svh - 280px);
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(430px, 760px) minmax(300px, 1fr);
    align-items: end;
    gap: clamp(10px, 1.8vw, 24px);
}

/* =========================
   CENTER CARD
========================= */

.hero-content {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 58px 38px 34px;
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,248,251,0.72));
    border: 1px solid rgba(223, 197, 205, 0.58);
    box-shadow:
        0 30px 84px rgba(187, 154, 169, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 30px;
    border: 1px solid rgba(231, 207, 214, 0.78);
    pointer-events: none;
}

.hero-content::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: min(190px, 42%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 176, 189, 0.95), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,241,245,0.92));
    border: 1px solid rgba(226, 195, 201, 0.80);
    box-shadow: 0 10px 24px rgba(217, 187, 195, 0.18);
    margin-bottom: 18px;
}

.hero-badge span {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #9d7e84;
    font-weight: 700;
}

.hero-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b18d95;
}

.hero-title {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: clamp(40px, 6vw, 30px);
    line-height: 0.95;
    font-weight: 700;
    color: #6f5962;
    letter-spacing: 0.01em;
    text-shadow:
        0 8px 24px rgba(255,255,255,0.68),
        0 8px 26px rgba(214, 176, 191, 0.16);
}

.hero-title span {
    display: inline-block;
    margin: 0 10px;
    color: #ddb1bf;
    font-weight: 500;
    transform: translateY(-3px);
}

.hero-date {
    margin: 20px 0 8px;
    font-size: clamp(18px, 2vw, 25px);
    color: #7d6670;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-location {
    margin: 0;
    font-size: 14px;
    color: #9f8991;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-quote {
    max-width: 560px;
    margin: 24px auto 0;
    font-size: 16px;
    line-height: 1.95;
    color: #7c6871;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(226, 197, 203, 0.72);
    color: #93747d;
    font-size: 13px;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 20px rgba(216, 193, 199, 0.14);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-actions .btn {
    min-width: 168px;
    padding: 15px 26px;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #ebb9c8 0%, #d2a8cb 52%, #c6b8eb 100%);
    box-shadow: 0 18px 34px rgba(216, 178, 197, 0.30);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(216, 178, 197, 0.38);
}

.hero-actions .btn-ghost {
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(225, 194, 200, 0.86);
    color: #8d6e77;
    box-shadow: 0 12px 24px rgba(216, 196, 201, 0.16);
}

.hero-actions .btn-ghost:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.94);
}

.hero-scroll-btn {
    margin-top: 28px;
    background: transparent;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #9e8189;
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.hero-scroll-btn:hover {
    transform: translateY(-4px);
}

.hero-scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(215, 171, 187, 0.18), rgba(215, 171, 187, 1));
    animation: scrollLine 1.8s ease-in-out infinite;
}

.hero-scroll-text {
    font-size: 12px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

/* =========================
   SIDE CHARACTERS
========================= */

.hero-character {
    position: relative;
    align-self: end;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 720px;
    pointer-events: none;
    z-index: 6;
}

.hero-character-left {
    transform: translateX(-10%);
}

.hero-character-right {
    transform: translateX(10%);
}

.hero-character-aura {
    position: absolute;
    bottom: 110px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 229, 236, 0.76), rgba(224, 214, 255, 0.38), transparent 72%);
    filter: blur(18px);
    animation: auraPulse 4.8s ease-in-out infinite;
    z-index: 0;
}

.hero-character-ring {
    position: absolute;
    bottom: 150px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 1px dashed rgba(228, 194, 203, 0.55);
    opacity: 0.9;
    animation: ringSpin 18s linear infinite;
    z-index: 0;
}

.hero-character img {
    position: relative;
    z-index: 2;
    width: min(100%, 660px);
    max-height: 92vh;
    object-fit: contain;
    filter:
        drop-shadow(0 28px 44px rgba(164, 132, 147, 0.24))
        drop-shadow(0 8px 20px rgba(255,255,255,0.36));
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-character-left img {
    animation-delay: 0s;
}

.hero-character-right img {
    animation-delay: 1.2s;
}

/* =========================
   DECORATIVE BACKGROUND
========================= */

.hero-bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(22px);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-blur-1 {
    width: 420px;
    height: 420px;
    top: 70px;
    left: -90px;
    background: radial-gradient(circle, rgba(255, 214, 224, 0.70), transparent 68%);
    animation: blurDrift 12s ease-in-out infinite;
}

.hero-bg-blur-2 {
    width: 420px;
    height: 420px;
    right: -100px;
    top: 90px;
    background: radial-gradient(circle, rgba(224, 217, 255, 0.68), transparent 68%);
    animation: blurDrift 14s ease-in-out infinite reverse;
}

.hero-bg-blur-3 {
    width: 280px;
    height: 280px;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 239, 211, 0.50), transparent 70%);
    animation: blurDrift 10s ease-in-out infinite;
}

.hero-floral {
    position: absolute;
    width: 240px;
    height: 240px;
    opacity: 0.34;
    pointer-events: none;
    z-index: 2;
    filter: blur(0.2px);
}

.hero-floral-left {
    top: 10px;
    left: -20px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 211, 223, 0.90) 0 16px, transparent 17px),
        radial-gradient(circle at 54% 18%, rgba(236, 214, 255, 0.80) 0 13px, transparent 14px),
        radial-gradient(circle at 47% 43%, rgba(255, 241, 203, 0.80) 0 11px, transparent 12px),
        linear-gradient(130deg, transparent 44%, rgba(146, 181, 146, 0.55) 45%, transparent 47%);
}

.hero-floral-right {
    right: -24px;
    bottom: 70px;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 218, 227, 0.90) 0 16px, transparent 17px),
        radial-gradient(circle at 52% 50%, rgba(220, 213, 255, 0.80) 0 13px, transparent 14px),
        radial-gradient(circle at 35% 68%, rgba(255, 241, 203, 0.80) 0 11px, transparent 12px),
        linear-gradient(220deg, transparent 44%, rgba(146, 181, 146, 0.55) 45%, transparent 47%);
}

.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-stars span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 0 12px rgba(255,255,255,0.95);
    animation: twinkleStar 3.5s ease-in-out infinite;
}

.hero-stars span:nth-child(1)  { top: 14%; left: 18%; animation-delay: 0s; }
.hero-stars span:nth-child(2)  { top: 12%; left: 36%; animation-delay: 0.8s; }
.hero-stars span:nth-child(3)  { top: 18%; left: 50%; animation-delay: 1.4s; }
.hero-stars span:nth-child(4)  { top: 11%; left: 64%; animation-delay: 2.1s; }
.hero-stars span:nth-child(5)  { top: 16%; left: 80%; animation-delay: 0.5s; }
.hero-stars span:nth-child(6)  { top: 28%; left: 24%; animation-delay: 1.6s; }
.hero-stars span:nth-child(7)  { top: 24%; left: 42%; animation-delay: 0.9s; }
.hero-stars span:nth-child(8)  { top: 26%; left: 58%; animation-delay: 2.4s; }
.hero-stars span:nth-child(9)  { top: 30%; left: 74%; animation-delay: 0.4s; }
.hero-stars span:nth-child(10) { top: 42%; left: 16%; animation-delay: 1.2s; }
.hero-stars span:nth-child(11) { top: 46%; left: 84%; animation-delay: 2s; }
.hero-stars span:nth-child(12) { top: 56%; left: 50%; animation-delay: 1.7s; }

.hero-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.hero-petals .petal {
    position: absolute;
    top: -70px;
    width: 18px;
    height: 26px;
    border-radius: 60% 40% 65% 35%;
    background: linear-gradient(180deg, #ffdce6 0%, #f4bdd0 100%);
    opacity: 0.72;
    filter: blur(0.2px);
    box-shadow: 0 4px 10px rgba(220, 183, 193, 0.18);
    animation: petalFallSoft linear infinite;
}

.hero-petals .petal::after {
    content: "";
    position: absolute;
    inset: 2px 3px auto auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

.petal-1 { left: 6%;  animation-duration: 13s; animation-delay: 0s; }
.petal-2 { left: 16%; animation-duration: 16s; animation-delay: 2s; }
.petal-3 { left: 30%; animation-duration: 14s; animation-delay: 1s; }
.petal-4 { left: 46%; animation-duration: 15s; animation-delay: 2.8s; }
.petal-5 { left: 60%; animation-duration: 17s; animation-delay: 0.8s; }
.petal-6 { left: 74%; animation-duration: 14s; animation-delay: 3.2s; }
.petal-7 { left: 86%; animation-duration: 18s; animation-delay: 1.8s; }
.petal-8 { left: 94%; animation-duration: 16s; animation-delay: 2.5s; }

.hero-mist {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.55;
}

.hero-mist-1 {
    width: 380px;
    height: 120px;
    left: 14%;
    bottom: 80px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.75), rgba(255,255,255,0));
    animation: mistMove 12s ease-in-out infinite;
}

.hero-mist-2 {
    width: 420px;
    height: 130px;
    right: 10%;
    bottom: 54px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(245,236,245,0.88), rgba(255,255,255,0));
    animation: mistMove 14s ease-in-out infinite reverse;
}

.hero-bottom-flowers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 128px;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 100%, rgba(255, 212, 224, 0.92) 0 32px, transparent 33px),
        radial-gradient(circle at 16% 100%, rgba(228, 219, 255, 0.88) 0 24px, transparent 25px),
        radial-gradient(circle at 24% 100%, rgba(255, 236, 205, 0.90) 0 20px, transparent 21px),
        radial-gradient(circle at 38% 100%, rgba(255, 215, 227, 0.92) 0 30px, transparent 31px),
        radial-gradient(circle at 50% 100%, rgba(233, 224, 255, 0.90) 0 26px, transparent 27px),
        radial-gradient(circle at 62% 100%, rgba(255, 236, 205, 0.88) 0 22px, transparent 23px),
        radial-gradient(circle at 76% 100%, rgba(255, 215, 227, 0.92) 0 32px, transparent 33px),
        radial-gradient(circle at 88% 100%, rgba(228, 219, 255, 0.88) 0 24px, transparent 25px),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,249,251,0.95));
    opacity: 0.72;
}

.section-divider-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 75px;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,252,248,0.15)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180'%3E%3Cpath fill='rgba(255,255,255,0.9)' d='M0,96L80,90.7C160,85,320,75,480,85.3C640,96,800,128,960,133.3C1120,139,1280,117,1360,106.7L1440,96L1440,181L1360,181C1280,181,1120,181,960,181C800,181,640,181,480,181C320,181,160,181,80,181L0,181Z'/%3E%3C/svg%3E") no-repeat center bottom / cover;
}

/* =========================
   ANIMATION
========================= */

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes auraPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.55; }
    50% { transform: scale(1.05); opacity: 0.82; }
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blurDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(12px, -18px, 0); }
}

@keyframes twinkleStar {
    0%, 100% {
        opacity: 0.22;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@keyframes petalFallSoft {
    0% {
        transform: translate3d(0, -50px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.75;
    }
    100% {
        transform: translate3d(42px, 112vh, 0) rotate(290deg);
        opacity: 0;
    }
}

@keyframes mistMove {
    0%, 100% { transform: translateX(0); opacity: 0.45; }
    50% { transform: translateX(26px); opacity: 0.72; }
}

@keyframes scrollLine {
    0%   { transform: scaleY(0.6); opacity: 0.45; }
    50%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.6); opacity: 0.45; }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1360px) {
    .hero-container {
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 720px) minmax(250px, 1fr);
    }

    .hero-character {
        min-height: 640px;
    }

    .hero-character-left {
        transform: translateX(-7%);
    }

    .hero-character-right {
        transform: translateX(7%);
    }

    .hero-character img {
        width: min(100%, 580px);
        max-height: 88vh;
    }

    .hero-character-ring {
        width: 390px;
        height: 390px;
        bottom: 138px;
    }

    .hero-character-aura {
        width: 320px;
        height: 320px;
        bottom: 100px;
    }
}

@media (max-width: 1180px) {
    .hero-container {
        grid-template-columns: minmax(210px, 1fr) minmax(360px, 640px) minmax(210px, 1fr);
        gap: 14px;
    }

    .hero-character {
        min-height: 560px;
    }

    .hero-character-left {
        transform: translateX(-4%);
    }

    .hero-character-right {
        transform: translateX(4%);
    }

    .hero-character img {
        width: min(100%, 500px);
        max-height: 84vh;
    }

    .hero-character-ring {
        width: 340px;
        height: 340px;
        bottom: 118px;
    }

    .hero-character-aura {
        width: 280px;
        height: 280px;
        bottom: 88px;
    }
}

/* --- 针对 860px 以下手机端的“大手术” --- */
@media (max-width: 860px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto; /* 让它根据内容自动撑开，解决滑不下去的问题 */
        overflow: hidden; /* 绝对禁止内部装饰溢出 */
    }

    .hero-container {
        display: grid !important; /* 强制开启网格模式 */
        grid-template-areas: 
            "content content"
            "bride groom"; /* 第一行是文字，第二行是左右两个角色 */
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: 100vw; /* 禁止超过屏幕 */
        padding: 0 10px;
        margin: 0;
    }

    /* 文字区域占据第一行全宽 */
    .hero-content {
        grid-area: content;
        width: 100%;
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    /* 角色位置锁定 */
    .hero-character {
        min-height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .hero-character-left {
        grid-area: bride; /* 强制定位在左边 */
        transform: none !important;
    }

    .hero-character-right {
        grid-area: groom; /* 强制定位在右边 */
        transform: none !important;
    }

    .hero-character img {
        width: 100%;
        max-width: 150px; /* 限制宽度，防止挤爆 */
        height: auto;
        object-fit: contain;
    }

    /* 缩小背景圆环，不然会把屏幕撑宽 */
    .hero-character-aura, .hero-character-ring {
        width: 120px;
        height: 120px;
        bottom: 0;
    }

    .hero-scroll-btn {
        margin-top: 15px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 100px 0 56px;
    }

    .hero-container {
        gap: 16px 10px;
    }

    .hero-content {
        border-radius: 28px;
        padding: 36px 18px 24px;
    }

    .hero-content::before {
        inset: 8px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: clamp(38px, 12vw, 58px);
    }

    .hero-date {
        font-size: 18px;
    }

    .hero-location {
        font-size: 12px;
        letter-spacing: 0.18em;
    }

    .hero-quote {
        font-size: 14px;
        line-height: 1.85;
    }

    .hero-tags {
        gap: 8px;
    }

    .hero-tags span {
        font-size: 12px;
        min-height: 34px;
        padding: 7px 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    .hero-character img {
        width: min(100%, 220px);
    }

    .hero-character-ring {
        width: 180px;
        height: 180px;
        bottom: 22px;
    }

    .hero-character-aura {
        width: 150px;
        height: 150px;
        bottom: 10px;
    }

    .hero-floral {
        width: 150px;
        height: 150px;
        opacity: 0.22;
    }

    .hero-bottom-flowers {
        height: 96px;
        opacity: 0.66;
    }
}

@media (max-width: 430px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 14px 8px;
    }

    .hero-content {
        padding: 32px 16px 22px;
    }

    .hero-title {
        font-size: clamp(34px, 12vw, 50px);
    }

    .hero-quote {
        font-size: 13px;
        line-height: 1.8;
    }

    .hero-character img {
        width: min(100%, 180px);
    }

    .hero-character-ring {
        width: 150px;
        height: 150px;
        bottom: 18px;
    }

    .hero-character-aura {
        width: 130px;
        height: 130px;
        bottom: 8px;
    }
}