/* Wedding invitation style file */

/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B7B7A;
    --secondary-color: #A69B9A;
    --background-color: #f5f2e8;
    --white: #ffffff;
    --text-light: #C8BFBE;
    --accent-blue: #4A90A4;
    --dark-header: #2c2c2c;
    --shadow-light: rgba(139, 123, 122, 0.1);
    --shadow-medium: rgba(139, 123, 122, 0.15);
    --shadow-heavy: rgba(139, 123, 122, 0.25);
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main container */
.invitation-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-color);
    min-height: 100vh;
    position: relative;
}

/* Language switch button */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.language-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

/* 主建筑区域 */
.main-building {
    text-align: center;
    padding: 60px 20px 20px;
    position: relative;
}

.building-illustration {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 1080 / 1200;
    margin: 0 auto 0px;
    background-image: url('/images/newhome.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    cursor: pointer;
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 350px;
    height: 400px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 123, 122, 0.2);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    opacity: 0;
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: white;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 轮播图扩散光圈指示器 */
.carousel-ripple {
    position: absolute;
    top: 47%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 5;
}

.carousel-ripple-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid rgba(139, 123, 122, 0.6);
    border-radius: 90%;
    animation: ripple 5s ease-out infinite;
}

.carousel-ripple-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.carousel-ripple-circle:nth-child(3) {
    animation-delay: 1s;
}

.carousel-ripple-circle:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* 提示文字 - 固定在圆形中心 */
.carousel-hint-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;  /* 在圆形上方 */
    text-align: center;
    pointer-events: none;
}

.carousel-hint-text span {
    display: block;
    font-size: 3px;
    color: #8B7B7A;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}
/* 轮播图提示文字 */
.carousel-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 6;
}

.building-illustration:hover .carousel-hint {
    opacity: 1;
}

.couple-names {
    font-size: 28px;
    margin: 0px 0 15px;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.wedding-date {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.welcome-text {
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 5px;
}

/* 功能按钮网格 */
.function-grid {
    display: flex;
    justify-content: center;
    gap: 26px;
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* 波浪边框按钮 */
.function-card {
    position: relative;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    width: 170px;
    z-index: 0;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

/* 使用 SVG 做整块云朵形按钮（带填充 + 波浪边框） */
/* 使用 base64 SVG 做整块云朵形按钮（带填充 + 波浪边框） */
.function-card::before {
    content: "";
    position: absolute;
    inset: 0;  /* 如果觉得太贴边，可以改成 4px、6px */
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%238B7B7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4,14 Q8,6 12,14 T20,14 T28,14 T36,14 T44,14 T52,14 T60,14 T68,14 T76,14 T84,14 T92,14 T100,14 T108,14 T116,14 T124,14 T132,14 T140,14 T148,14 T156,14 T164,14 T172,14 T180,14 T188,14 T196,14 Q200,6 196,14'/%3E%3Cpath d='M196,14 Q204,22 196,30 T196,46 T196,62 T196,78 T196,94 T196,110 T196,126 T196,142 T196,158 T196,174 T196,190 T196,206 T196,222 T196,238 T196,254 Q204,262 196,266'/%3E%3Cpath d='M196,266 Q192,274 176,266 T160,266 T144,266 T128,266 T112,266 T96,266 T80,266 T64,266 T48,266 T32,266 T16,266 Q8,274 4,266'/%3E%3Cpath d='M4,266 Q-4,258 4,246 T4,230 T4,214 T4,198 T4,182 T4,166 T4,150 T4,134 T4,118 T4,102 T4,86 T4,70 T4,54 T4,38 T4,22 Q-4,14 4,14'/%3E%3C/g%3E%3C/svg%3E")
        no-repeat center / 100% 105%;
}

/* 功能图标 - PNG图片方案 */
.function-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

/* 默认图标 */
.schedule-icon {
    background-image: url('/images/icons/schedule.png');
}

.restaurant-icon {
    background-image: url('/images/icons/restaurant.png');
}

.rsvp-icon {
    background-image: url('/images/icons/rsvp.png');
}

.photos-icon {
    background-image: url('/images/icons/photos.png');
}

/* 悬停和激活时使用active图标 */
.function-card:hover .schedule-icon,
.function-card.active .schedule-icon {
    background-image: url('/images/icons/schedule-active.png');
}

.function-card:hover .restaurant-icon,
.function-card.active .restaurant-icon {
    background-image: url('/images/icons/restaurant-active.png');
}

.function-card:hover .rsvp-icon,
.function-card.active .rsvp-icon {
    background-image: url('/images/icons/rsvp-active.png');
}

.function-card:hover .photos-icon,
.function-card.active .photos-icon {
    background-image: url('/images/icons/photos-active.png');
}

/* 图标动画效果 */
.function-card:hover .function-icon {
    transform: scale(1.15) rotate(3deg);
}

.function-card:active .function-icon,
.function-card.touching .function-icon {
    transform: scale(0.95);
}

.function-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.3;
}

.function-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 400;
}

.coming-soon {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

/* 添加音乐播放器样式 */
.music-player {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 6px 25px var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 3px solid var(--background-color);
}

.music-player:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px var(--shadow-heavy);
}

.music-player:active {
    transform: scale(1.05);
}

.music-player img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* 播放中的旋转动画 */
.music-player.playing img {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 用户状态栏 - 更隐蔽的设计 */
.user-bar {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 99;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.user-bar:hover {
    opacity: 1;
}

.user-bar-content {
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-bar a {
    color: #8B7B7A;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.user-bar a:hover {
    background: rgba(139, 123, 122, 0.1);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8B7B7A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 隐藏类 */
.hidden-login-trigger {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 98;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-card {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }
    
    .welcome-poster {
        max-height: 220px;
        border-radius: 16px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-enter-btn {
        width: 100%;
    }
    
    .carousel-ripple {
        top: 48%;
        width: 60px;
        height: 60px;
    }
    
    .carousel-container {
        width: 280px;
        height: 320px;
    }
    
    .user-bar {
        bottom: 30px;
        left: 30px;
    }
    
    .music-player {
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
    }
    
    .music-player img {
        width: 28px;
        height: 28px;
    }
}

/* 详情页面样式 */
.detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 500;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    overflow-y: auto;
}

.detail-page.show {
    transform: translateX(0);
}

.detail-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.back-btn {
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.detail-content {
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 50px;
}

.detail-section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    font-weight: 500;
}

.detail-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 1px;
}

/* 分组按钮样式 */
.group-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.group-button {
    flex: 1;
    min-width: 200px;
    background: var(--white);
    border: 2px solid #E0DDD8;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.group-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.group-button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.group-button.active .group-button-title,
.group-button.active .group-button-desc {
    color: var(--white);
}

.group-button-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.group-button-desc {
    font-size: 14px;
    color: var(--secondary-color);
}

.group-content {
    display: none;
}

.group-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 时间安排样式 */
.schedule-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.schedule-time {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 25px;
    min-width: 80px;
    line-height: 1.3;
}

.schedule-event {
    flex: 1;
}

.schedule-event-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.schedule-event-desc {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* 地址信息 */
.address-info {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px var(--shadow-light);
}

.hotel-name {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.hotel-address {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.map-tip {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 着装建议 */
.dress-code {
    text-align: center;
}

.dress-code-desc {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* 表单样式 */
.rsvp-form {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0DDD8;
    border-radius: 10px;
    font-size: 16px;
    background: #fafafa;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(139, 123, 122, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #756965;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 加载状态 */
.submit-btn.loading {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* 欢迎页样式 */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f2e8;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeFadeIn 1s ease-out;
}

/* 长方形欢迎卡片 */
.welcome-card {
    width: 100%;
    background: #fdf9f0;
    border-radius: 28px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* 卡片里的插画占上半部分 */
.welcome-poster {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 123, 122, 0.18);
}

/* 标题、副标题居中排版 */
.welcome-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #8B7B7A;
    margin-top: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #A69B9A;
    font-style: italic;
    text-align: center;
}

/* 让按钮在卡片里稍微宽一点 */
.welcome-enter-btn {
    margin-top: 10px;
    width: 80%;
    padding: 18px 50px;
    background: #8B7B7A;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 123, 122, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-enter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.welcome-enter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.welcome-enter-btn:hover {
    background: #756965;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 123, 122, 0.5);
}

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

.welcome-enter-btn span {
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-building {
    animation: fadeInUp 0.8s ease-out;
}

.function-grid {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.function-card {
    animation: slideInRight 0.6s ease-out both;
}

.function-card:nth-child(1) { animation-delay: 0.1s; }
.function-card:nth-child(2) { animation-delay: 0.2s; }
.function-card:nth-child(3) { animation-delay: 0.3s; }
.function-card:nth-child(4) { animation-delay: 0.4s; }

/* 桌面端适配 */
@media (min-width: 768px) {
    .invitation-container {
        padding: 0 20px;
    }

    .building-illustration {
        width: 400px;
        height: 450px;
    }

    .couple-names {
        font-size: 32px;
    }

    .wedding-date {
        font-size: 20px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .function-grid {
        justify-content: center;
        gap: 30px;
        padding: 60px 40px;
        flex-wrap: wrap;
    }

    .function-card {
        padding: 32px 28px;
        width: 190px;
    }

    .function-title {
        font-size: 20px;
    }

    .function-subtitle {
        font-size: 16px;
    }

    .detail-content {
        padding: 60px 50px;
    }

    .schedule-item {
        padding: 25px 30px;
    }

    .schedule-time {
        font-size: 20px;
        margin-right: 30px;
        min-width: 100px;
    }

    .schedule-event-title {
        font-size: 18px;
    }
}

/* 移动端适配 */
@media (max-width: 767px) {
    .language-toggle {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-building {
        padding: 40px 15px 30px;
    }

    .building-illustration {
        width: 280px;
        height: 320px;
    }

    .couple-names {
        font-size: 24px;
    }

    .wedding-date {
        font-size: 16px;
    }

    .welcome-text {
        font-size: 14px;
    }

    .function-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 30px 20px;
    }

    .function-card {
        width: 100%;
        max-width: 260px;
        padding: 26px 22px;
    }

    .function-title {
        font-size: 16px;
    }

    .function-subtitle {
        font-size: 13px;
    }

    .detail-content {
        padding: 30px 20px;
    }

    .detail-header {
        padding: 15px 20px;
    }

    .back-btn {
        font-size: 20px;
        margin-right: 15px;
    }

    .group-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .group-button {
        min-width: auto;
        width: 100%;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .schedule-time {
        margin-right: 0;
        margin-bottom: 10px;
        min-width: auto;
        font-size: 16px;
    }

    .schedule-event-title {
        font-size: 15px;
    }

    .hotel-name {
        font-size: 20px;
    }

    .hotel-address {
        font-size: 15px;
    }

    .detail-section-title {
        font-size: 18px;
    }

    .rsvp-form {
        padding: 25px 20px;
    }

    .form-input {
        padding: 12px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 16px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 关闭按钮 */
.carousel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    color: #8B7B7A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-close:hover {
    background: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 插图显示/隐藏 */
.building-illustration.hidden {
    display: none;
}

/* 轮播图淡入动画 */
.carousel-container.active {
    display: block;
    animation: carouselFadeIn 0.5s ease-out;
}

@keyframes carouselFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 相册区域样式 ===== */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.photo-item {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-light);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px var(--shadow-medium);
}

.photo-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 10px 12px 12px;
}

.photo-caption {
    font-size: 14px;
    color: #5b4b4a;
    margin-bottom: 6px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.photo-uploader {
    display: flex;
    align-items: center;
    gap: 6px;
}

.visibility-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 11px;
    color: #777;
}

.visibility-badge.private {
    background: #fee;
    color: #c33;
}

.admin-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #ffeeba;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.admin-notice .btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
}

.empty-message {
    text-align: center;
    padding: 40px 20px 10px;
    color: #999;
}

.empty-message h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.empty-message p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* ===== 图片查看器样式 ===== */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-viewer.active {
    display: flex;
}

.viewer-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.viewer-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.viewer-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    z-index: 2100;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    user-select: none;
}

.viewer-prev {
    left: 18px;
}

.viewer-next {
    right: 18px;
}

.viewer-info {
    max-width: 90vw;
    color: #f5f2e8;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
    margin-top: 4px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    margin-top: 4px;
}

.download-btn:hover {
    background: #756965;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .photo-item img {
        height: 170px;
    }

    .viewer-prev {
        left: 6px;
    }

    .viewer-next {
        right: 6px;
    }
}

.upload-entry {
    text-align: center;
    margin-bottom: 16px;
}

.upload-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 6px var(--shadow-medium);
    transition: background 0.2s ease;
}

.upload-btn:hover {
    background: #756965;
}

.image-viewer {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999 !important;
}

.image-viewer.active {
    display: flex !important;
}

.viewer-image {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
}

.viewer-close,
.viewer-prev,
.viewer-next {
    position: fixed;
    z-index: 100000;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 26px;
    backdrop-filter: blur(8px);
}

.viewer-close { top: 20px; right: 20px; }
.viewer-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.viewer-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.upload-header {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f2e8; /* 跟主背景颜色一致 */
    border-bottom: 1px solid rgba(139, 123, 122, 0.15);
}

.upload-back-btn {
    border: none;
    background: none;
    color: #8B7B7A;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.upload-back-btn:active {
    transform: scale(0.96);
    background: rgba(139, 123, 122, 0.08);
}

.upload-header-title {
    font-size: 15px;
    color: #8B7B7A;
}