* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Microsoft YaHei', serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.invitation-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

/* 装饰元素 */
.decoration-top,
.decoration-bottom {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-top {
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.decoration-bottom {
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

/* 主卡片 */
.invitation-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fff5f5 100%);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    position: relative;
    overflow: hidden;
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #ffecd2);
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.rings {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.title {
    font-size: 42px;
    color: #d4556a;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(212,85,106,0.1);
}

.subtitle {
    font-size: 16px;
    color: #999;
    letter-spacing: 3px;
    font-style: italic;
}

/* 内容区域 */
.content {
    margin-bottom: 40px;
}

.names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.name {
    font-size: 32px;
    color: #333;
    font-weight: 500;
}

.heart {
    font-size: 28px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #fad0c4, transparent);
    margin: 30px 0;
}

.info {
    text-align: center;
    margin-bottom: 30px;
}

.info p {
    color: #555;
    margin: 10px 0;
    font-size: 18px;
}

.date {
    font-size: 24px !important;
    color: #d4556a !important;
    font-weight: 500;
}

.time {
    font-size: 20px !important;
}

.location {
    font-size: 18px !important;
    color: #666 !important;
}

.message-text {
    text-align: center;
    line-height: 2;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

/* 签到表单 */
.checkin-section {
    background: linear-gradient(135deg, #fff9f9 0%, #ffe9e9 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}

.checkin-title {
    text-align: center;
    color: #d4556a;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 400;
}

.checkin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #fad0c4;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Microsoft YaHei', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255,154,158,0.1);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: #ccc;
}

textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

.checkin-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,154,158,0.3);
}

.checkin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,154,158,0.4);
}

.checkin-btn:active {
    transform: translateY(-1px);
}

.success-message {
    display: none;
    text-align: center;
    color: #4caf50;
    font-size: 18px;
    font-weight: 500;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 15px;
    margin-top: 20px;
    animation: slideIn 0.5s ease;
}

.success-message.show {
    display: block;
}

/* 管理链接 */
.admin-link {
    text-align: center;
    margin-top: 30px;
}

.admin-link a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.admin-link a:hover {
    color: #d4556a;
}

/* 花瓣动画 */
.petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffc0cb, #ffb6c1);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: fall linear infinite;
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 45%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 60%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.petal:nth-child(5) {
    left: 75%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.petal:nth-child(6) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 5s;
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes fall {
    0% {
        top: -10%;
        transform: rotate(0deg);
    }
    100% {
        top: 110%;
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .invitation-card {
        padding: 30px 20px;
    }

    .title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .name {
        font-size: 24px;
    }

    .date {
        font-size: 20px !important;
    }

    .checkin-section {
        padding: 20px;
    }
}
