/* ============================================
   杨晨艺 · 12岁生日派对邀请函 — 卡通可爱风格
   Mobile-First 响应式设计
   ============================================ */

/* --- 字体引入 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

/* --- CSS 变量 --- */
:root {
    --pink: #FF6B9D;
    --pink-light: #FFB8D0;
    --pink-pale: #FFF0F5;
    --purple: #C06ECC;
    --purple-light: #E8C5F0;
    --yellow: #FFD93D;
    --yellow-light: #FFF3B0;
    --mint: #6BCB77;
    --mint-light: #D4F0D4;
    --blue: #4D96FF;
    --blue-light: #C5DFFF;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --text: #4A3055;
    --text-light: #8B6B9E;
    --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-card: 0 8px 32px rgba(192, 110, 204, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* --- 全局重置 --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #FFF0F5 0%, #F8E8FF 30%, #FFF5F0 60%, #FFF0F5 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   背景动画装饰
   ============================================ */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* --- 气球浮动动画 --- */
.balloon {
    position: absolute;
    font-size: 2.5rem;
    animation: floatUp 8s ease-in-out infinite;
    opacity: 0.35;
    filter: blur(0.5px);
}

.b1 { left: 5%;  animation-delay: 0s; animation-duration: 9s; font-size: 2.8rem; }
.b2 { left: 22%; animation-delay: 2s; animation-duration: 7.5s; font-size: 2.2rem; }
.b3 { left: 48%; animation-delay: 4s; animation-duration: 8.5s; font-size: 3rem; }
.b4 { left: 72%; animation-delay: 1.5s; animation-duration: 8s; font-size: 2.4rem; }
.b5 { left: 88%; animation-delay: 3s; animation-duration: 9.5s; font-size: 2.6rem; }

@keyframes floatUp {
    0%, 100% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(25px) rotate(5deg);
    }
    50% {
        bottom: 65%;
        transform: translateX(-15px) rotate(-3deg);
    }
    75% {
        transform: translateX(20px) rotate(4deg);
    }
}

/* --- 星星闪烁动画 --- */
.star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.3;
}

.s1 { top: 8%;  left: 10%;  animation-delay: 0s; }
.s2 { top: 15%; left: 35%;  animation-delay: 1s; font-size: 2rem; }
.s3 { top: 5%;  left: 58%;  animation-delay: 0.5s; }
.s4 { top: 12%; left: 80%;  animation-delay: 1.8s; font-size: 2.2rem; }
.s5 { top: 20%; left: 92%;  animation-delay: 2.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%      { opacity: 0.7;  transform: scale(1.4); }
}

/* --- 爱心飘动 --- */
.heart {
    position: absolute;
    font-size: 1.8rem;
    animation: heartFloat 6s ease-in-out infinite;
    opacity: 0.3;
}

.h1 { top: 25%; left: 8%;  animation-delay: 0s; }
.h2 { top: 60%; left: 85%; animation-delay: 2s; }
.h3 { top: 40%; left: 92%; animation-delay: 3.5s; }

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.3); }
}

/* --- 糖果摇摆 --- */
.candy {
    position: absolute;
    font-size: 1.8rem;
    animation: swing 5s ease-in-out infinite;
    opacity: 0.35;
}

.c1 { top: 70%; left: 6%;  animation-delay: 0s; }
.c2 { top: 75%; left: 90%; animation-delay: 2.5s; }
.c3 { top: 55%; left: 15%; animation-delay: 1s; }

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(10deg); }
}

/* ============================================
   邀请函主体卡片
   ============================================ */
.invitation-card {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* --- 顶部丝带 --- */
.top-ribbon {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.top-ribbon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.15) 55%,
        transparent 60%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   英雄头部
   ============================================ */
.hero {
    text-align: center;
    padding: 32px 20px 20px;
    position: relative;
}

.cake-icon {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-12px); }
    75%      { transform: translateY(-4px); }
}

.birthday-name {
    margin-top: 4px;
}

.name-deco {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    display: inline-block;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.age-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background: linear-gradient(135deg, #FFF0F5, #F8E8FF);
    border: 3px dashed var(--pink-light);
    border-radius: 50px;
    padding: 4px 24px;
    margin-top: 8px;
    animation: borderDance 2s steps(8) infinite;
}

@keyframes borderDance {
    0%   { border-color: var(--pink-light); }
    50%  { border-color: var(--purple-light); }
    100% { border-color: var(--pink-light); }
}

.age-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--pink);
    line-height: 1;
}

.age-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple);
}

.hero-subtitle {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 2px;
}

/* ============================================
   头像区域
   ============================================ */
.avatar-section {
    text-align: center;
    padding: 10px 20px 20px;
}

.avatar-ring {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 110px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    margin: 5px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE0EC, #F0D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--pink-light),
                0 0 0 8px rgba(255,107,157,0.12),
                var(--shadow-soft);
    animation: avatarPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--pink-light), 0 0 0 8px rgba(255,107,157,0.12), var(--shadow-soft); }
    50%      { box-shadow: 0 0 0 6px var(--purple-light), 0 0 0 14px rgba(192,110,204,0.15), var(--shadow-soft); }
}

.crown {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: crownBob 2s ease-in-out infinite;
}

@keyframes crownBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-6px); }
}

.greeting {
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.greeting-sub {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.greeting-sub strong {
    color: var(--pink);
}

/* ============================================
   倒计时
   ============================================ */
.countdown-section {
    background: linear-gradient(135deg, #FFFFFF, #FFF5FA);
    border-radius: var(--radius-xl);
    margin: 8px 0 20px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 107, 157, 0.08);
}

.countdown-section .section-title {
    margin-bottom: 14px;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.countdown-num {
    display: block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
    letter-spacing: 2px;
}

.countdown-divider {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--pink-light);
    animation: blink 1s step-end infinite;
    margin-top: -14px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

.countdown-label {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   通用 section 标题
   ============================================ */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-light), var(--purple-light));
    border-radius: 2px;
    margin: 6px auto 0;
}

/* ============================================
   派对信息卡片
   ============================================ */
.info-section {
    background: linear-gradient(135deg, #FFFFFF, #FFF5FA);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    padding: 20px 16px;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 107, 157, 0.08);
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #FFF0F5, #FFF);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    border: 1.5px solid rgba(255, 107, 157, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-soft);
}

.info-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF, #FFF0F5);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.1);
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.info-sub {
    font-size: 0.72rem;
    color: var(--pink);
    margin-top: 1px;
}

/* 导航卡片特殊样式 */
.info-card-nav {
    cursor: pointer;
    position: relative;
    border: 2px dashed var(--pink-light) !important;
    background: linear-gradient(135deg, #FFF5FA, #FFE8F0);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    touch-action: manipulation;
}

.info-card-nav:active {
    transform: scale(0.96);
    border-color: var(--pink) !important;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.25);
}

.nav-hint {
    font-size: 0.65rem;
    color: var(--pink);
    font-weight: 600;
    animation: navBlink 1.5s ease-in-out infinite;
}

@keyframes navBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ============================================
   派对亮点
   ============================================ */
.highlights-section {
    background: linear-gradient(135deg, #FFF5FA, #F8E8FF);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    padding: 20px 16px;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(192, 110, 204, 0.12);
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    background: white;
    border: 2px solid rgba(255, 107, 157, 0.15);
    color: var(--text);
    transition: transform 0.2s, background 0.2s;
    user-select: none;
}

.tag:active {
    transform: scale(0.95);
    background: var(--pink-pale);
    border-color: var(--pink-light);
}

/* ============================================
   照片墙
   ============================================ */
.gallery-section {
    background: linear-gradient(135deg, #FFFFFF, #FFF5FA);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(255, 107, 157, 0.08);
}

.photo-strip {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-frame {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    padding: 4px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light), var(--yellow-light));
    box-shadow: var(--shadow-soft);
    animation: frameRotate 0.3s ease-out;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.photo-frame-lg {
    width: 160px;
    height: 160px;
}

.photo-placeholder:active {
    transform: scale(0.93);
}

.gallery-hint {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================
   RSVP 按钮
   ============================================ */
.rsvp-section {
    text-align: center;
    padding: 10px 0 0;
}

.rsvp-btn {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 107, 157, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.rsvp-btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 12px rgba(255, 107, 157, 0.25);
}

.rsvp-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.2) 45%,
        rgba(255,255,255,0.2) 55%,
        transparent 60%
    );
    animation: shimmer 2.5s infinite;
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(255, 107, 157, 0.35); }
    50%      { box-shadow: 0 6px 36px rgba(255, 107, 157, 0.55), 0 0 0 12px rgba(255, 107, 157, 0.08); }
}

.rsvp-btn.pressed {
    animation: none;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.rsvp-note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================
   底部
   ============================================ */
.footer-deco {
    text-align: center;
    padding: 28px 0 12px;
}

.footer-bows {
    font-size: 1.4rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.footer-credit {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--pink);
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-parents {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    box-shadow: 0 12px 40px rgba(192, 110, 204, 0.25);
    z-index: 1000;
    text-align: center;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.25s ease;
    pointer-events: none;
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.toast-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.toast-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================
   五彩纸屑
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    animation: confettiFall 3s ease-out forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ============================================
   RSVP 弹窗表单
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 48, 85, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    border-radius: var(--radius-xl);
    width: calc(100% - 48px);
    max-width: 360px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(192, 110, 204, 0.35);
    transform: translateY(40px) scale(0.9);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modal-overlay.show .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 48, 85, 0.06);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

.modal-close:active {
    background: rgba(74, 48, 85, 0.15);
}

.modal-header {
    text-align: center;
    padding: 28px 24px 0;
}

.modal-emoji {
    font-size: 2.8rem;
    display: block;
    animation: bounce 1.5s ease-in-out infinite;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
}

.modal-form {
    padding: 16px 24px 6px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid #F0E0F5;
    border-radius: var(--radius-sm);
    background: #FFF8FC;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #D0B8D8;
}

/* 人数选择器 */
.count-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: #FFF8FC;
    border: 2px solid #F0E0F5;
    border-radius: 50px;
    overflow: hidden;
}

.count-btn {
    width: 48px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

.count-btn:active {
    background: rgba(192, 110, 204, 0.12);
}

.count-btn:disabled {
    color: #D0C4D8;
    pointer-events: none;
}

.count-value {
    width: 48px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.count-unit {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 4px;
    margin-right: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.form-btn:active {
    transform: scale(0.95);
}

.form-btn-cancel {
    background: #F5F0F8;
    color: var(--text-light);
}

.form-btn-submit {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.form-btn-submit:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.modal-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    padding: 12px 24px 20px;
}

.form-error {
    border-color: #FF6B6B !important;
    background: #FFF5F5 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* ============================================
   响应式微调
   ============================================ */
@media screen and (min-width: 440px) {
    .invitation-card {
        padding: 0 0 40px;
    }

    .top-ribbon {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
}

@media screen and (max-width: 360px) {
    .name-deco {
        font-size: 2.2rem;
    }
    .info-cards {
        grid-template-columns: 1fr;
    }
    .countdown-num {
        width: 46px;
        height: 46px;
        line-height: 46px;
        font-size: 1.2rem;
    }
    .countdown-item {
        min-width: 46px;
    }
}
