/* ========================================
   观影派对页 — 超级马力欧主题
   仅在观影派对页面 (pages/party/index.html) 加载
   ======================================== */

/* ── 变量 ── */
:root {
    --mario-red: #E52521;
    --mario-blue: #049CD8;
    --mario-gold: #FBD000;
    --mario-green: #43B047;
    --mario-brick: #C84C09;
    --mario-sky: #5C94FC;
    --mario-brown: #6B3304;
    --card-bg: rgba(20, 18, 30, 0.92);
    --card-border: rgba(251, 208, 0, 0.35);
    --text-primary: #FFF8E7;
    --text-secondary: #FFE4A0;
    --text-muted: #C8B878;
}

/* ── 基础重置（独立页面，不依赖 base.css）── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1028;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   背景层
   ======================================== */
.party-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.party-bg-image {
    position: absolute;
    inset: 0;
    background: url("bg.webp") center / cover no-repeat;
    filter: blur(8px) brightness(0.55);
    transform: scale(1.08);
}

.party-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(251, 208, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(229, 37, 33, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(4, 156, 216, 0.08) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(10, 5, 20, 0.45) 0%,
            rgba(20, 12, 35, 0.30) 40%,
            rgba(10, 5, 20, 0.50) 100%);
}

/* ========================================
   浮动装饰（星星 & 金币）
   ======================================== */
.floating-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* ── 浮动星星 ── */
.float-star {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.18;
    animation: floatStar 8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(251, 208, 0, 0.4));
}

.float-star--1 { top: 10%; left: 8%;  animation-delay: 0s;    font-size: 2rem; }
.float-star--2 { top: 18%; right: 10%; animation-delay: 1.5s;  font-size: 1.4rem; }
.float-star--3 { top: 45%; left: 5%;  animation-delay: 3s;    font-size: 1.2rem; }
.float-star--4 { top: 60%; right: 7%;  animation-delay: 4.5s;  font-size: 1.8rem; }
.float-star--5 { top: 75%; left: 12%; animation-delay: 2s;    font-size: 1.3rem; }
.float-star--6 { top: 85%; right: 15%; animation-delay: 5.5s;  font-size: 1.5rem; }

@keyframes floatStar {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-18px) rotate(8deg) scale(1.15);
        opacity: 0.28;
    }
    50% {
        transform: translateY(-8px) rotate(-4deg) scale(1.05);
        opacity: 0.20;
    }
    75% {
        transform: translateY(-22px) rotate(6deg) scale(1.18);
        opacity: 0.26;
    }
}

/* ── 浮动金币 ── */
.float-coin {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFE566 0%, #FBD000 40%, #D4A800 100%);
    border: 2px solid #C89800;
    box-shadow:
        0 0 10px rgba(251, 208, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: floatCoin 6s ease-in-out infinite;
    opacity: 0.22;
}

.float-coin--1 { top: 25%; left: 15%;  animation-delay: 0s;   }
.float-coin--2 { top: 55%; right: 12%; animation-delay: 2s;   }
.float-coin--3 { top: 70%; left: 20%;  animation-delay: 4s;   }

@keyframes floatCoin {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-25px) rotateY(180deg);
        opacity: 0.32;
    }
}

/* ========================================
   主布局
   ======================================== */
.party-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 40px;
    z-index: 1;
}

/* ========================================
   马力欧装饰 — 左右两侧
   ======================================== */
.mario-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

/* ── 水管 ── */
.mario-deco--left {
    top: 12%;
    left: 4%;
}

.deco-pipe {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pipe-top {
    width: 60px;
    height: 24px;
    background: #43B047;
    border: 3px solid #2D7A30;
    border-radius: 4px 4px 0 0;
}

.pipe-body {
    width: 48px;
    height: 80px;
    background: linear-gradient(90deg, #43B047 0%, #3A9840 15%, #5CC94E 50%, #3A9840 85%, #43B047 100%);
    border-left: 3px solid #2D7A30;
    border-right: 3px solid #2D7A30;
    border-bottom: 3px solid #2D7A30;
    border-radius: 0 0 4px 4px;
}

/* ── 问号方块 ── */
.mario-deco--right {
    bottom: 18%;
    right: 5%;
    animation: blockBounce 2s ease-in-out infinite;
}

.deco-block {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FBD000 0%, #E8B800 40%, #FBD000 60%, #C89800 100%);
    border: 4px solid #B8860B;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 4px 0 #8B6508,
        0 6px 12px rgba(0, 0, 0, 0.4);
}

.block-face {
    font-size: 1.8rem;
    font-weight: 900;
    color: #8B6508;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes blockBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-12px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-6px); }
    85% { transform: translateY(0); }
}

/* ========================================
   主卡片
   ======================================== */
.party-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background:
        linear-gradient(175deg,
            rgba(40, 35, 55, 0.94) 0%,
            rgba(30, 25, 45, 0.96) 100%);
    border: 3px solid var(--card-border);
    border-radius: 20px;
    box-shadow:
        0 0 0 6px rgba(251, 208, 0, 0.08),
        0 0 0 12px rgba(251, 208, 0, 0.04),
        0 0 60px rgba(251, 208, 0, 0.10),
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* ── 顶部砖块装饰条 ── */
.party-card-topbar {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid rgba(251, 208, 0, 0.15);
    justify-content: center;
}

.brick {
    width: 52px;
    height: 16px;
    background: linear-gradient(180deg, #D45A1A 0%, #B8450E 100%);
    border: 2px solid #8B3508;
    border-radius: 3px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

/* ── 底部金币装饰条 ── */
.party-card-bottombar {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    border-top: 2px solid rgba(251, 208, 0, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

.coin-row {
    display: flex;
    gap: 10px;
}

.coin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFE566 0%, #FBD000 50%, #C89800 100%);
    border: 2px solid #A07800;
    box-shadow:
        0 0 6px rgba(251, 208, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* ========================================
   头部标题
   ======================================== */
.party-header {
    padding: 28px 36px 0;
    text-align: center;
}

.party-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 22px;
    background: rgba(229, 37, 33, 0.15);
    border: 2px solid rgba(229, 37, 33, 0.4);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #FF8A80;
    margin-bottom: 18px;
}

.label-star {
    font-size: 1rem;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.label-star:last-child {
    animation-delay: 0.75s;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.3); opacity: 1; }
}

.party-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: #FBD000;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow:
        0 2px 0 #C89800,
        0 4px 12px rgba(251, 208, 0, 0.3),
        0 8px 24px rgba(229, 37, 33, 0.2);
}

/* ========================================
   信息区块
   ======================================== */
.party-info-blocks {
    padding: 28px 36px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-block {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(251, 208, 0, 0.18);
    border-radius: 14px;
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.3s ease;
}

.info-block:hover {
    border-color: rgba(251, 208, 0, 0.45);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.info-block-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 37, 33, 0.12);
    border: 2px solid rgba(229, 37, 33, 0.3);
    border-radius: 50%;
    font-size: 1.15rem;
    color: #FF8A80;
}

.info-block-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.info-block-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.info-block-value {
    font-size: 1rem;
    font-weight: 600;
    color: #E8DCC0;
    line-height: 1.55;
    letter-spacing: 0.03em;
}

/* ── 流程步骤 ── */
.info-block-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: #D0C8A8;
    letter-spacing: 0.02em;
}

.step-item strong {
    color: #FBD000;
    font-weight: 700;
}

.step-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #6B3304;
    border-radius: 50%;
}

/* 金币风格步骤号 */
.step-num--coin {
    background: radial-gradient(circle at 40% 35%, #FFE566 0%, #FBD000 40%, #D4A800 100%);
    border: 2px solid #B8860B;
    box-shadow:
        0 0 8px rgba(251, 208, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   报名按钮区
   ======================================== */
.party-action {
    padding: 28px 36px;
    text-align: center;
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 17px 28px;
    background: linear-gradient(180deg, #5CC94E 0%, #3A9840 50%, #2D7A30 100%);
    color: #FFF8E0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    border: 3px solid #1E5A20;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow:
        0 6px 0 #1E5A20,
        0 8px 24px rgba(0, 0, 0, 0.45);
    position: relative;
    top: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-signup:hover {
    background: linear-gradient(180deg, #6DD95E 0%, #4AB848 50%, #3A9840 100%);
    border-color: #2D7A30;
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #1E5A20,
        0 14px 32px rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
}

.btn-signup:active {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 #1E5A20,
        0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 倒计时 */
.btn-countdown {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #FBD000;
    margin-bottom: 14px;
    min-height: 1.5em;
}

.btn-countdown strong {
    color: #FFE566;
    font-weight: 800;
}

/* 已结束状态 */
.btn-signup.is-ended {
    background: linear-gradient(180deg, #7A7A7A 0%, #555555 50%, #444444 100%);
    border-color: #333333;
    box-shadow:
        0 4px 0 #2A2A2A,
        0 8px 20px rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
    pointer-events: none;
    color: #AAAAAA;
}

.btn-signup.is-ended:hover {
    background: linear-gradient(180deg, #7A7A7A 0%, #555555 50%, #444444 100%);
    border-color: #333333;
    transform: none;
    box-shadow:
        0 4px 0 #2A2A2A,
        0 8px 20px rgba(0, 0, 0, 0.4);
    color: #AAAAAA;
}



/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .party-card {
        max-width: 92vw;
        border-radius: 16px;
        border-width: 2px;
    }

    .party-title {
        font-size: 1.75rem;
    }

    .party-header {
        padding: 24px 24px 0;
    }

    .party-info-blocks {
        padding: 24px 24px 0;
        gap: 12px;
    }

    .party-action {
        padding: 24px 24px;
    }

    .mario-deco--left  { left: 1%;  top: 6%; }
    .mario-deco--right { right: 1%; bottom: 10%; }

    .deco-pipe .pipe-top  { width: 44px; height: 18px; }
    .deco-pipe .pipe-body { width: 34px; height: 56px; }
    .deco-block { width: 48px; height: 48px; }
    .deco-block .block-face { font-size: 1.3rem; }

    .btn-signup {
        font-size: 1.05rem;
        padding: 15px 22px;
        letter-spacing: 0.16em;
    }

    .float-star { font-size: 1.1rem; }
    .float-coin  { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
    .party-main {
        padding: 32px 10px 24px;
    }

    .party-card {
        max-width: 96vw;
        border-radius: 14px;
    }

    .party-title {
        font-size: 1.45rem;
    }

    .party-label {
        font-size: 0.7rem;
        padding: 5px 14px;
        gap: 6px;
        letter-spacing: 0.2em;
    }

    .party-header {
        padding: 20px 16px 0;
    }

    .party-info-blocks {
        padding: 20px 16px 0;
        gap: 10px;
    }

    .party-action {
        padding: 20px 16px;
    }

    .info-block {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .info-block-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .mario-deco,
    .floating-decorations {
        display: none;
    }


    .brick {
        width: 36px;
        height: 12px;
    }

    .btn-countdown {
        font-size: 0.82rem;
    }

}
