:root {
    --dialog-radius: 14px;
    --primary: #1b6fd1;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body.home-body {
    min-height: 100vh;
    background: #bfe0f5 url('../img/bg.jpg') top center / cover no-repeat fixed;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #fff;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px 12px 40px;
}

/* 顶部 banner */
.banner img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 70, 140, .25);
}

/* 2 列卡片网格 */
.menu-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.menu-card {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(20, 70, 140, .22);
    transition: transform .12s ease, box-shadow .12s ease;
}
.menu-card:active { transform: scale(.97); }
.menu-card img { width: 100%; display: block; }

/* ---------- 弹框（Vant 风格） ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fade .18s ease;
}
.overlay[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(12px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.dialog {
    width: 100%;
    max-width: 420px;
    max-height: 82vh;
    background: #fff;
    border-radius: var(--dialog-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pop .2s ease;
    color: #333;
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.dialog-title { font-size: 17px; font-weight: 600; color: var(--primary); }
.dialog-close {
    border: 0; background: transparent; font-size: 26px; line-height: 1;
    color: #999; cursor: pointer; padding: 0 4px;
}
.dialog-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 座位查询 */
.seat-form { display: flex; gap: 10px; }
.seat-form input {
    flex: 1; padding: 11px 12px; font-size: 16px;
    border: 1px solid #dcdfe6; border-radius: 8px; outline: none;
}
.seat-form input:focus { border-color: var(--primary); }
.btn {
    border: 0; border-radius: 8px; padding: 11px 18px; font-size: 16px;
    background: var(--primary); color: #fff; cursor: pointer;
}
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.seat-result { margin-top: 18px; text-align: center; }
.seat-result .empty { color: #e6534f; font-size: 15px; }
.seat-badge {
    display: inline-block; margin: 6px; padding: 14px 22px;
    background: linear-gradient(135deg, #2f80e0, #1b6fd1);
    color: #fff; border-radius: 12px; font-size: 22px; font-weight: 700;
    min-width: 90px;
}
.seat-badge small { display: block; font-size: 12px; font-weight: 400; opacity: .85; }
.hint { color: #888; font-size: 13px; margin-top: 10px; }

/* 图集 */
.gallery img { width: 100%; display: block; border-radius: 8px; margin-bottom: 12px; }

/* 嘉宾 */
.speaker { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.speaker:last-child { border-bottom: 0; }
.speaker .avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    background: #eef3fa; flex: 0 0 auto;
}
.speaker .info { flex: 1; min-width: 0; }
.speaker .name { font-size: 16px; font-weight: 600; color: #222; }
.speaker .title { font-size: 13px; color: var(--primary); margin: 2px 0 6px; }
.speaker .intro { font-size: 13px; color: #666; line-height: 1.6; white-space: pre-wrap; }

.loading, .empty-tip { text-align: center; color: #999; padding: 24px 0; font-size: 14px; }
