/* ==========================================================================
   小岚总餐厅 · 企业级点餐 Agent 专属设计系统（纯净高保真浅色版）
   ========================================================================== */

:root {
    --primary: #1e6fff;
    --primary-hover: #165ddb;
    --primary-light: #edf4ff;
    --primary-gradient: linear-gradient(135deg, #1e6fff 0%, #3685ff 100%);

    --cyan: #06b6d4;
    --cyan-soft: #ecfeff;
    --ok: #10b981;
    --ok-soft: #ecfdf5;
    --warn: #f59e0b;
    --warn-soft: #fffbeb;
    --badge-exclusive: #ff6b35;

    --bg-page: #e8eef7;
    --bg-phone: #f2f5fb;
    --bg-phone-gradient: linear-gradient(180deg, #f7faff 0%, #eef3fc 45%, #eaf0fa 100%);
    --bg-dialog-mesh: radial-gradient(at 0% 0%, rgba(30, 111, 255, 0.08) 0px, transparent 55%),
        radial-gradient(at 100% 20%, rgba(6, 182, 212, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 60%);
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-chip: #f1f5f9;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #8492a6;
    --text-link: #1e6fff;

    --border-card: #e2e8f0;
    --border-light: rgba(148, 163, 184, 0.18);

    --shadow-phone: 0 25px 60px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.85);
    --shadow-card: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 12px 32px -8px rgba(30, 111, 255, 0.35);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", -apple-system, system-ui, sans-serif;
    --num: "SF Pro Display", "Segoe UI Variable", var(--font);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    background: var(--bg-phone-gradient);
    display: block;
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   全屏自适应应用壳（仅 H5 内容）
   ========================================================================== */
.stage {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    display: block;
}

.brand-panel {
    display: none !important;
}

/* ==========================================================================
   应用主界面：随屏幕自适应
   ========================================================================== */
.phone-frame,
.app-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    background: var(--bg-phone-gradient);
    border-radius: 0;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-frame.mode-stretch {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    overflow: hidden !important;
}

.phone-frame.mode-stretch .dialog-stream {
    overflow-y: auto !important;
    flex: 1;
    min-height: 0;
}

.phone-frame.mode-stretch .app-footer {
    position: relative;
    bottom: auto;
    z-index: 20;
}

.phone-status-bar,
.phone-shot-fab,
.view-mode-bar {
    display: none !important;
}

/* 左侧品牌面板 */
.brand-panel {
    position: relative;
    padding: 16px 8px;
}

.brand-orb {
    position: absolute;
    top: -40px;
    left: 20px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(30, 111, 255, 0.15), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.brand-hero {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    box-shadow: 0 10px 30px -8px rgba(30, 111, 255, 0.35);
    border: 2px solid #ffffff;
}

.brand-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brand-header-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.brand-lead {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.brand-lead b {
    color: var(--text-main);
    font-weight: 700;
}

.brand-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.brand-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    display: grid;
    gap: 2px;
}

.feature-list b {
    font-size: 13.5px;
    color: var(--text-main);
}

.feature-list span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.brand-footer-tips {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.brand-footer-tips svg {
    width: 16px;
    height: 16px;
    color: var(--ok);
    flex-shrink: 0;
}

/* ==========================================================================
   演示视窗模式切换条 (长图截屏 vs 手机仿真视窗)
   ========================================================================== */
.view-mode-bar {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--r-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

.v-mode-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.v-mode-tabs {
    display: flex;
    gap: 8px;
}

.v-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.v-mode-btn svg {
    width: 14px;
    height: 14px;
}

.v-mode-btn.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 111, 255, 0.15);
}

.v-shot-actions {
    display: flex;
    gap: 8px;
}

.btn-shot {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: var(--r-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-shot svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-shot.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-shot.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-shot.secondary {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.btn-shot.secondary:hover {
    background: #dcfce7;
}

.btn-shot:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
    filter: none;
}

.v-shot-hint {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.v-shot-hint.is-busy {
    color: #2563eb;
    font-weight: 600;
}

.v-shot-hint.is-ok {
    color: #059669;
    font-weight: 600;
}

.v-shot-hint.is-err {
    color: #dc2626;
    font-weight: 600;
}

/* 手机框右上角悬浮截屏按钮 */
.phone-shot-fab {
    position: absolute;
    top: 52px;
    right: 12px;
    z-index: 45;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.phone-shot-fab svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.phone-shot-fab:hover {
    background: #2563eb;
    transform: scale(1.06);
}

.phone-shot-fab:disabled {
    opacity: 0.5;
    cursor: wait;
}

.phone-frame.is-capturing .phone-shot-fab {
    visibility: hidden;
}

/* ==========================================================================
   截屏色彩保真模式：关掉毛玻璃/滤镜/半透明叠层，避免 html2canvas 色偏发灰发暗
   ========================================================================== */
.phone-frame.is-capturing,
.phone-frame.is-capturing * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
}

.phone-frame.is-capturing {
    background: #f2f5fb !important;
    background-image: none !important;
    box-shadow: none !important;
}

.phone-frame.is-capturing .dialog-stream {
    background-color: #f2f5fb !important;
    background-image: none !important;
}

.phone-frame.is-capturing .dialog-stream::before {
    display: none !important;
}

.phone-frame.is-capturing .app-nav,
.phone-frame.is-capturing .app-footer,
.phone-frame.is-capturing .phone-status-bar {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.phone-frame.is-capturing .bubble {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.phone-frame.is-capturing .msg-row.me .bubble {
    background: #1e6fff !important;
    color: #ffffff !important;
}

.phone-frame.is-capturing .btn-start-dialog,
.phone-frame.is-capturing .btn-form-submit,
.phone-frame.is-capturing .btn-view-voucher,
.phone-frame.is-capturing .btn-qwen-book,
.phone-frame.is-capturing .send-btn {
    background: #1e6fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.phone-frame.is-capturing .btn-start-dialog::after,
.phone-frame.is-capturing .btn-start-dialog::before {
    display: none !important;
}

.phone-frame.is-capturing .drawer-backdrop,
.phone-frame.is-capturing .modal-backdrop,
.phone-frame.is-capturing .voice-screen-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.45) !important;
}

.phone-frame.is-capturing .voice-screen-backdrop {
    background: linear-gradient(180deg, #e0f2fe 0%, #0284c7 55%, #0369a1 100%) !important;
}

.phone-frame.is-capturing .policy-card-top-header {
    background: #172554 !important;
    background-image: none !important;
}

.phone-frame.is-capturing .policy-card-top-header::after {
    display: none !important;
}

.phone-frame.is-capturing .guide-icon-badge.blue {
    background: #2563eb !important;
    background-image: none !important;
    box-shadow: none !important;
}

.phone-frame.is-capturing .guide-icon-badge.orange {
    background: #ea580c !important;
    background-image: none !important;
    box-shadow: none !important;
}

.phone-frame.is-capturing .form-title-badge {
    background: #2563eb !important;
    background-image: none !important;
    box-shadow: none !important;
}

.phone-frame.is-capturing .confirmed-status-pill.done {
    background: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: none !important;
}

.phone-frame.is-capturing .badge-status-locking {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

/* ==========================================================================
   应用主界面（已在上方 .phone-frame / .app-shell 定义全屏自适应）
   ========================================================================== */

/* 顶部状态栏（演示用，已隐藏） */
.phone-status-bar {
    flex-shrink: 0;
    height: 38px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--num);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    background: #ffffff;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icons svg {
    width: 15px;
    height: 15px;
}

.battery-icon {
    width: 22px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 1px;
    position: relative;
}

.battery-icon::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 2px;
    bottom: 2px;
    width: 1.5px;
    background: currentColor;
    border-radius: 0 1px 1px 0;
}

.battery-icon span {
    display: block;
    height: 100%;
    width: 75%;
    background: currentColor;
    border-radius: 1px;
}

/* 顶栏导航条 */
.app-nav {
    flex-shrink: 0;
    height: calc(48px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.nav-back {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    color: var(--text-main);
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
}

.nav-record-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: var(--r-pill);
    transition: background 0.15s ease;
}

.nav-record-btn:active {
    background: var(--primary-light);
}

.badge-count {
    background: #ff4d4f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--r-pill);
    line-height: 1.2;
}

/* ==========================================================================
   对话主视窗 (增强层次感背景，避免单调白色)
   ========================================================================== */
.dialog-stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background-color: #f2f5fb;
    background-image: var(--bg-dialog-mesh),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(240, 245, 253, 0.85) 100%);
    position: relative;
}

/* 禁止 flex 子项被压扁；否则高大卡片（制度合规等）会被 overflow:hidden 裁切，看起来像点了没反应 */
.dialog-stream>* {
    flex-shrink: 0;
    max-width: 100%;
}

.dialog-stream::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(30, 111, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

/* 消息气泡行 */
.msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.msg-row.me {
    flex-direction: row-reverse;
}

.avatar-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.bubble {
    max-width: 84%;
    padding: 12px 15px;
    border-radius: 18px 18px 18px 4px;
    font-size: 14px;
    line-height: 1.6;
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow-wrap: anywhere;
}

.msg-row.me .bubble {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
    border: 0;
    box-shadow: 0 4px 14px rgba(30, 111, 255, 0.28);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: var(--primary);
    vertical-align: text-bottom;
    animation: typing-blink 0.9s step-end infinite;
}

@keyframes typing-blink {
    50% {
        opacity: 0;
    }
}

/* 小岚总思考步骤（不暴露底层数据源） */
.thinking-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.3s ease both;
}

.thinking-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.thinking-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(30, 111, 255, 0.45);
    animation: thinkPulse 1.2s ease-out infinite;
}

.thinking-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.thinking-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thinking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.thinking-step.is-active {
    color: var(--primary);
    font-weight: 600;
}

.thinking-step.is-done {
    color: var(--text-secondary);
}

.thinking-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.thinking-step.is-active .thinking-dot {
    background: var(--primary);
}

.thinking-step.is-done .thinking-dot {
    background: #94a3b8;
}

@keyframes thinkPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 111, 255, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(30, 111, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 111, 255, 0);
    }
}

.time-stamp {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: 4px 0 -6px;
    font-family: var(--num);
}

/* ==========================================================================
   参考设计稿 Screen 1 & 2: 欢迎卡片与引导卡
   ========================================================================== */
.welcome-hero-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 18px 16px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: grid;
    gap: 14px;
    animation: fadeUp 0.3s ease both;
}

.welcome-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-texts h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.welcome-texts p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.welcome-mascot {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(30, 111, 255, 0.2);
}

/* 引导说明两栏（高质感拟物立体图标，颜色区分鲜明） */
.guide-features {
    display: grid;
    gap: 10px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid #e8eef8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 111, 255, 0.08);
}

.guide-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.guide-icon-badge svg {
    width: 20px;
    height: 20px;
}

/* 语音提需求图标：微渐变高质感湛蓝 + 阴影光晕 */
.guide-icon-badge.blue {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.4);
}

/* 公司制度自动导入图标：微渐变高质感琥珀金/金橙 + 阴影光晕 */
.guide-icon-badge.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -2px rgba(234, 88, 12, 0.35);
}

.guide-text {
    flex: 1;
}

.guide-text b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.guide-text span {
    display: block;
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 快速提问问答药丸条 */
.quick-prompt-bar {
    background: #f1f6ff;
    border: 1px solid #dbe8fe;
    border-radius: var(--r-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quick-prompt-bar span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.4;
}

.btn-prompt-act {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 开始智能预订按钮：高质感多色流动渐变 + 扫光流光炫彩动效 */
.btn-start-dialog {
    position: relative;
    width: 100%;
    height: 48px;
    background: linear-gradient(115deg, #1e6fff 0%, #2563eb 30%, #7c3aed 70%, #06b6d4 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    animation: gradientShift 6s ease infinite;
}

.btn-start-dialog::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(25deg);
    animation: shimmerLight 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.btn-start-dialog svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.btn-start-dialog:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.55);
}

.btn-start-dialog:active {
    transform: scale(0.985);
    filter: brightness(0.96);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmerLight {
    0% {
        left: -60%;
    }

    50% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

/* ==========================================================================
   参考设计稿 Screen 3: 餐厅预订表单卡片
   ========================================================================== */
.form-booking-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 18px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: grid;
    gap: 16px;
}

.form-booking-card.locked {
    opacity: 0.85;
    pointer-events: none;
}

.form-booking-card.archived {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.15);
}

.form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.form-section-head h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-title-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28);
    flex-shrink: 0;
}

.form-title-badge svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
    fill: #ffffff;
}

.form-section-head svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.form-rule-tag {
    font-size: 11px;
    color: var(--ok);
    background: var(--ok-soft);
    padding: 3px 8px;
    border-radius: var(--r-pill);
    font-weight: 600;
}

/* 表单字段通用项 */
.form-field {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-label .sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* 标签选项 */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-opt {
    padding: 7px 12px;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.pill-opt.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
    font-weight: 700;
}

/* 人数选择步进器 */
.stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: var(--r-md);
    border: 1px solid #e2e8f0;
}

.stepper-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #cbd5e1;
    font-size: 18px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stepper-val {
    min-width: 44px;
    text-align: center;
    font-family: var(--num);
    font-size: 17px;
    font-weight: 800;
}

.stepper-presets {
    display: flex;
    gap: 6px;
}

.preset-chip {
    font-size: 11.5px;
    padding: 4px 8px;
    background: #e2e8f0;
    color: var(--text-secondary);
    border-radius: var(--r-sm);
    font-weight: 600;
}

/* 联系人与公司制度条 */
.info-row-strip {
    background: #f8fafc;
    border-radius: var(--r-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
}

.info-row-strip .title {
    color: var(--text-muted);
}

.info-row-strip .val {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-row-strip .val svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* 打字补充特殊偏好输入行与已添加标签 */
.custom-req-input-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.custom-req-input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-md);
    font-size: 12.5px;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.custom-req-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.btn-voice-req {
    height: 38px;
    padding: 0 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-voice-req svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-voice-req:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.btn-voice-req.listening {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    animation: pulse 1s infinite alternate;
}

.btn-add-req {
    height: 38px;
    padding: 0 14px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 12.5px;
    border-radius: var(--r-md);
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.btn-add-req:hover {
    background: var(--primary);
    color: #ffffff;
}

.custom-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.custom-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0891b2;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px 3px 10px;
    border-radius: var(--r-pill);
    animation: popIn 0.2s ease both;
}

.btn-del-tag {
    color: #0891b2;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
}

.btn-del-tag:hover {
    color: #ef4444;
}

/* 特殊要求与语音框 */
.special-need-wrap {
    position: relative;
}

.special-textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--text-main);
    resize: none;
}

.special-textarea:focus {
    outline: 2px solid #bfdbfe;
    background: #ffffff;
}

.wave-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-top: 6px;
    color: #c2410c;
    font-size: 12px;
}

.wave-input-bar svg {
    width: 16px;
    height: 16px;
    color: #ea580c;
    flex-shrink: 0;
}

.btn-form-submit {
    width: 100%;
    height: 46px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-form-submit:active {
    transform: scale(0.985);
}

/* ==========================================================================
   参考设计稿 Screen 4: 需求摘要栏与推荐卡片列表
   ========================================================================== */
.summary-spec-card {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    animation: fadeUp 0.3s ease both;
}

.summary-spec-card b {
    color: var(--text-main);
    font-weight: 700;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.spec-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-item.full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   深度还原图三千问风格推荐餐厅卡片 (Qwen Structured Cards)
   ========================================================================== */
.qwen-category-header {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 14px 2px 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qwen-restaurant-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 14px 14px 12px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: fadeUp 0.3s ease both;
}

.qwen-restaurant-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -4px rgba(30, 111, 255, 0.14);
}

.qwen-card-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.qwen-rest-thumb-wrap {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.qwen-rest-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qwen-restaurant-card:hover .qwen-rest-thumb {
    transform: scale(1.05);
}

.qwen-rest-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qwen-title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.qwen-rest-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qwen-distance {
    font-size: 11.5px;
    color: #64748b;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--num);
}

.qwen-rating-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.qwen-score {
    color: #2563eb;
    font-weight: 800;
    font-family: var(--num);
    font-size: 13.5px;
}

.qwen-score-text {
    color: #2563eb;
    font-weight: 600;
    font-size: 11.5px;
}

.qwen-price {
    color: #334155;
    font-weight: 500;
    font-size: 12px;
}

.qwen-cuisine {
    color: #64748b;
    font-size: 11.5px;
}

/* 扫街榜奖杯横幅 (模仿图三金色条带) */
.qwen-award-badge {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #b45309;
    margin-top: 2px;
}

.award-trophy {
    font-size: 11px;
}

.award-text {
    flex: 1;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.award-tuan {
    background: #f97316;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    display: grid;
    place-items: center;
}

.qwen-intro-line {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-reason-label {
    display: inline-flex;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.dining-empty-state {
    margin: 10px 48px 14px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.dining-empty-state b,
.dining-empty-state span {
    display: block;
}

.dining-empty-state span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.btn-complete-meal {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-complete-meal:disabled {
    opacity: .62;
    cursor: default;
}

@media (max-width: 420px) {
    .qwen-card-main {
        gap: 10px;
    }

    .qwen-rest-thumb-wrap {
        width: 68px;
        height: 68px;
    }

    .qwen-title-line {
        flex-wrap: wrap;
    }

    .qwen-distance {
        white-space: normal;
    }

    .qwen-card-acts {
        align-items: flex-end;
        gap: 8px;
    }

    .dining-empty-state {
        margin-inline: 16px;
    }
}

.qwen-meta-line {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qwen-tuan-hint {
    color: #ea580c;
    font-weight: 600;
}

.qwen-deal-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.qwen-deal-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
}

.qwen-deal-chip b {
    background: #f97316;
    color: #fff;
    border-radius: 3px;
    padding: 0 3px;
    font-size: 10px;
}

.qwen-deal-chip em {
    color: #ea580c;
    font-style: normal;
    font-weight: 700;
}

.deal-footnote {
    margin: 8px 2px 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

#deal-list .deal-item-card+.deal-item-card {
    margin-top: 10px;
}

/* 口碑推荐金句 (模仿图三斜体引用) */
.qwen-quote-line {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 操作行 */
.qwen-card-acts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.qwen-protocol-tag {
    font-size: 11px;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-weight: 600;
}

.qwen-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-qwen-detail {
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.btn-qwen-detail:hover {
    background: #e2e8f0;
}

.btn-qwen-book {
    padding: 5px 14px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, #1e6fff 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(30, 111, 255, 0.3);
    transition: transform 0.1s ease;
}

.btn-qwen-book:active {
    transform: scale(0.96);
}

.recs-footer-links {
    text-align: center;
    padding: 8px 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.recs-footer-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin: 0 6px;
}

/* ==========================================================================
   参考设计稿 Screen 5: 正在对接餐厅席位倒计时
   ========================================================================== */
.booking-progress-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #bfdbfe;
    display: grid;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.3s ease both;
}

.booking-progress-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: barProgress 2s infinite ease-in-out;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-title-block h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.progress-title-block p {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.progress-countdown-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 4px 8px;
    border-radius: var(--r-pill);
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--num);
}

.progress-steps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.progress-steps-bar .step-active {
    color: var(--primary);
    font-weight: 700;
}

.progress-card-acts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-title-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.badge-status-locking {
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 2px 7px;
    border-radius: var(--r-pill);
}

.in-progress-btn-row {
    display: flex;
    gap: 8px;
}

.btn-sub-modify,
.btn-sub-cancel {
    flex: 1;
    height: 36px;
    border-radius: var(--r-md);
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-sub-modify {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.btn-sub-modify:hover {
    background: #dbeafe;
}

.btn-sub-cancel {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-sub-cancel:hover {
    background: #fee2e2;
}

.btn-secondary-act {
    width: 100%;
    height: 38px;
    border-radius: var(--r-md);
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-cancel-link {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 4px 0;
}

/* ==========================================================================
   参考设计稿 Screen 6: 已完成预订凭据卡片
   ========================================================================== */
.booking-confirmed-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #a7f3d0;
    display: grid;
    gap: 12px;
    animation: fadeUp 0.3s ease both;
}

.confirmed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirmed-head h3 {
    font-size: 16px;
    font-weight: 800;
}

.confirmed-status-pill {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.confirmed-status-pill.done {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #6ee7b7;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.confirmed-status-pill.cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.confirmed-details-box {
    background: #f8fafc;
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.confirmed-details-box b {
    color: var(--text-main);
}

.booking-sections .bk-sec+.bk-sec {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.bk-sec-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.v-sec-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.v-sec-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.confirmed-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-view-voucher {
    flex: 1 1 100%;
    height: 40px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--r-md);
    box-shadow: 0 4px 14px rgba(30, 111, 255, 0.25);
    cursor: pointer;
}

.btn-modify-order,
.btn-cancel-order,
.confirmed-acts .btn-ghost {
    flex: 1;
    height: 36px;
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modify-order {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.btn-cancel-order {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-modify-order:hover {
    background: #dbeafe;
}

.btn-cancel-order:hover {
    background: #fee2e2;
}

/* ==========================================================================
   底部输入条与麦克风
   ========================================================================== */
.app-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    z-index: 10;
}

.footer-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.mic-btn svg {
    width: 20px;
    height: 20px;
}

.mic-btn:active {
    transform: scale(0.92);
}

.footer-input-row input {
    flex: 1;
    height: 40px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    padding: 0 16px;
    font-size: 13.5px;
    color: var(--text-main);
}

.footer-input-row input:focus {
    outline: 0;
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
    transition: transform 0.15s ease;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.send-btn:active {
    transform: scale(0.92);
}

/* ==========================================================================
   溢出滚动：超出容器可滑，并显示细滑动条
   ========================================================================== */
.scroll-y,
.dialog-stream,
.drawer-body,
.drawer-scroll,
.shop-meta-content,
.modal-card,
.voice-screen-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
}

.scroll-y::-webkit-scrollbar,
.dialog-stream::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar,
.drawer-scroll::-webkit-scrollbar,
.shop-meta-content::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.voice-screen-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scroll-y::-webkit-scrollbar-thumb,
.dialog-stream::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb,
.drawer-scroll::-webkit-scrollbar-thumb,
.shop-meta-content::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.voice-screen-content::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.45);
    border-radius: 999px;
}

.scroll-y::-webkit-scrollbar-track,
.dialog-stream::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track,
.drawer-scroll::-webkit-scrollbar-track,
.shop-meta-content::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track,
.voice-screen-content::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
}

.scroll-x::-webkit-scrollbar {
    height: 5px;
}

.scroll-x::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 999px;
}

/* ==========================================================================
   抽屉面板：我的预订记录 / 模板
   ========================================================================== */
.drawer-sheet[hidden] {
    display: none;
}

.drawer-sheet {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease both;
}

.drawer-panel {
    position: relative;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    max-height: min(92%, 92dvh);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    padding-bottom: env(safe-area-inset-bottom);
}

.drawer-handle {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

.drawer-head {
    padding: 12px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.drawer-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.drawer-close svg {
    width: 16px;
    height: 16px;
}

.drawer-tabs {
    display: flex;
    padding: 8px 16px;
    gap: 8px;
    border-bottom: 1px solid #f8fafc;
    flex-shrink: 0;
}

.d-tab {
    flex: 1;
    padding: 6px 0;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
}

.d-tab.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-scroll>.drawer-body {
    flex: 0 0 auto;
    overflow: visible;
    min-height: auto;
}

/* 预订历史卡片 */
.record-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-md);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.record-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.record-top-line b {
    font-size: 15px;
    color: var(--text-main);
}

.record-meta-line {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.record-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: 4px;
    font-size: 12px;
}

.record-total {
    font-family: var(--num);
    font-weight: 800;
    color: var(--warn);
    font-size: 15px;
}

/* 空态提示 */
.records-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================================
   凭据弹窗 (Voucher Modal)
   ========================================================================== */
.modal-dialog[hidden] {
    display: none;
}

.modal-dialog {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 48px);
    margin: auto 0;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 24px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.voucher-top {
    text-align: center;
}

.voucher-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: var(--r-pill);
    margin-bottom: 6px;
}

.voucher-top h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.v-tag {
    font-size: 12px;
    color: var(--ok);
    font-weight: 600;
}

.voucher-media-wrap {
    text-align: center;
    background: #f8fafc;
    border-radius: var(--r-md);
    padding: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voucher-shop-cover {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.voucher-shop-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-img-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.voucher-code-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
}

.v-code-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.voucher-code {
    font-family: var(--num);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.voucher-booker-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.booker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.b-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.b-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.booker-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.voucher-hint {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.voucher-details {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.v-detail-row .k {
    font-weight: 700;
    color: var(--text-main);
    flex-shrink: 0;
    width: 78px;
}

.v-detail-row .v {
    flex: 1;
}

.v-detail-row.park-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 10px;
    border-radius: 8px;
    color: #15803d;
}

.v-detail-row.park-tip .k {
    color: #166534;
    width: auto;
}

.btn-inline-map {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.voucher-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.btn-primary {
    height: 40px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-voucher-map {
    height: 40px;
    background: #0284c7;
    color: #ffffff;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-voucher-map svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-ghost {
    height: 40px;
    background: #f1f5f9;
    color: var(--text-main);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   语音悬浮波形条
   ========================================================================== */
.voice-floating-bar[hidden] {
    display: none;
}

.voice-floating-bar {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    color: #ffffff;
    border-radius: var(--r-pill);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.25s ease both;
    z-index: 40;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice-wave span {
    width: 3px;
    height: 100%;
    background: #38bdf8;
    border-radius: 999px;
    animation: waveBar 0.8s ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2) {
    animation-delay: 0.15s;
}

.voice-wave span:nth-child(3) {
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(4) {
    animation-delay: 0.45s;
}

.voice-wave span:nth-child(5) {
    animation-delay: 0.6s;
}

.voice-tip {
    font-size: 12.5px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-stop {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    padding: 4px 8px;
}

/* ==========================================================================
   模仿图二商家详情面板 (Shop Detail Bottom Sheet)
   ========================================================================== */
.shop-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: min(92%, 92dvh);
    min-height: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 55;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    padding-bottom: env(safe-area-inset-bottom);
}

.sheet-top-notch {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

/* 顶部相册轮播横滑 */
.shop-gallery-wrap {
    position: relative;
    width: 100%;
    background: #0f172a;
    flex-shrink: 0;
}

.shop-gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 4px;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.7) transparent;
}

.shop-gallery-scroll::-webkit-scrollbar {
    height: 5px;
}

.shop-gallery-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

.gallery-slide {
    flex: 0 0 65%;
    height: 140px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
}

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

.gallery-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
}

.gallery-close-btn svg {
    width: 16px;
    height: 16px;
}

/* 商家信息主体 */
.shop-meta-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-meta-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

/* 评分行 (模仿图二大蓝底评分块) */
.shop-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-box-badge {
    background: #2563eb;
    color: #ffffff;
    font-family: var(--num);
    font-size: 16px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.rating-sub-text {
    font-size: 13px;
    color: #64748b;
}

.rating-price-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* 榜单与标签行 */
.shop-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.badge-gold-pill {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.badge-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}

.badge-link {
    color: #64748b;
    margin-left: auto;
    font-size: 11px;
}

/* 营业时间 */
.shop-hours-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    flex-wrap: nowrap;
}

.hours-text {
    min-width: 0;
    white-space: normal;
}

.status-open-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.status-open-text {
    color: #10b981;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 口碑金句引用 (模仿图二) */
.shop-quote-card {
    background: #fffaf0;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
}

.quote-mark {
    color: #f97316;
    font-size: 22px;
    font-family: serif;
    font-weight: 900;
    line-height: 1;
}

.quote-body {
    font-size: 12.5px;
    color: #7c2d12;
    line-height: 1.5;
    margin-top: 2px;
}

.quote-social-proof {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .av {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    margin-left: -4px;
}

.av1 {
    background: #3b82f6;
}

.av2 {
    background: #ec4899;
}

.av3 {
    background: #eab308;
}

.proof-count {
    font-size: 11px;
    color: #9a3412;
}

/* 地址与快捷动作 */
.shop-address-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.addr-full {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.addr-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.addr-act-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.addr-act-btn svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* 团购模块 (模仿图二) */
.shop-deal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deal-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.deal-tuan-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
}

.deal-assures {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 8px;
}

.deal-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.deal-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.deal-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deal-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-rules {
    font-size: 10.5px;
    color: #64748b;
}

.deal-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.price-curr {
    font-size: 16px;
    font-weight: 800;
    color: #ef4444;
    font-family: var(--num);
}

.price-orig {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-discount {
    font-size: 10.5px;
    color: #ef4444;
    background: #fee2e2;
    padding: 0 4px;
    border-radius: 2px;
}

.deal-tags-row {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.deal-tag-orange {
    font-size: 10px;
    background: #ffedd5;
    color: #c2410c;
    padding: 1px 4px;
    border-radius: 2px;
}

.deal-save-tag {
    font-size: 10px;
    background: #fee2e2;
    color: #dc2626;
    padding: 1px 4px;
    border-radius: 2px;
}

.deal-buy-btn {
    background: #2563eb;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

/* 网友推荐横滑 (模仿图二网友推荐) */
.shop-recommend-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sec-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sec-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}

.sec-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.sec-more {
    font-size: 11.5px;
    color: #64748b;
}

.dishes-scroll-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.dishes-scroll-list::-webkit-scrollbar {
    height: 4px;
}

.dishes-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 999px;
}

.dish-card-item {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dish-card-item img {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.dish-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

/* 详情底栏CTA */
.shop-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.shop-price-est {
    display: flex;
    flex-direction: column;
}

.est-label {
    font-size: 10.5px;
    color: #64748b;
}

.est-val {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

.btn-book-instant {
    flex: 1;
    max-width: 180px;
    height: 42px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-float);
}

/* ==========================================================================
   模仿图一高保真沉浸语音交互浮层 (Voice Dialogue Screen)
   ========================================================================== */
.voice-screen-overlay[hidden] {
    display: none;
}

.voice-screen-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: fadeIn 0.25s ease both;
    overflow: hidden;
    min-height: 0;
}

.voice-screen-backdrop {
    position: absolute;
    inset: 0;
    /* 深度还原图一渐变：上方通透，下方饱和天蓝渐变柔和融入 */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(56, 189, 248, 0.3) 30%, #0284c7 80%, #0369a1 100%);
    backdrop-filter: blur(20px);
}

.voice-screen-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 上方浮动推荐气泡 (模仿图一) */
.voice-prompts-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.voice-prompt-bubble {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: var(--r-pill);
    font-size: 13.5px;
    color: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: left;
    line-height: 1.4;
    transition: transform 0.15s ease, background 0.15s ease;
}

.voice-prompt-bubble:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.voice-prompt-bubble:active {
    transform: scale(0.98);
}

/* 交互提示文字 (模仿图一“松手发送，上移取消”) */
.voice-action-text {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 对称律动声波条 (模仿图一白条波形) */
.voice-waveform-wrap {
    width: 100%;
    max-width: 320px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-pill-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.w-bar {
    width: 3.5px;
    height: var(--h, 16px);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: barPulse 1.2s ease-in-out infinite alternate;
}

.w-bar:nth-child(2n) {
    animation-delay: 0.15s;
}

.w-bar:nth-child(3n) {
    animation-delay: 0.3s;
}

.w-bar:nth-child(4n) {
    animation-delay: 0.45s;
}

.w-bar:nth-child(5n) {
    animation-delay: 0.6s;
}

@keyframes barPulse {
    0% {
        transform: scaleY(0.4);
        opacity: 0.7;
    }

    100% {
        transform: scaleY(1.3);
        opacity: 1;
    }
}

.voice-transcript-preview {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    min-height: 20px;
}

.ios-home-indicator {
    width: 134px;
    height: 5px;
    background: #ffffff;
    border-radius: 3px;
    margin-top: 10px;
    opacity: 0.8;
}

/* 结构化合规制度卡片（高级质感中台标准，彻底解决换行与格式准确度） */
.policy-rich-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    margin: 4px 0 10px;
    animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 顶部暗夜深蓝渐变抬头 */
.policy-card-top-header {
    background: linear-gradient(135deg, #090e1a 0%, #172554 60%, #1e3a8a 100%);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.policy-card-top-header::after {
    content: "";
    position: absolute;
    right: -10px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.p-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    min-width: 0;
}

.p-shield-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.45) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.p-shield-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #38bdf8;
    stroke-width: 2.2;
}

.p-header-title-box {
    min-width: 0;
}

.p-header-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-main-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.02em;
    margin: 0;
}

.p-version-badge {
    font-size: 10px;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 1px 5px;
    border-radius: 999px;
    white-space: nowrap;
}

.p-header-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-header-status {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 1;
    flex-shrink: 0;
}

.p-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 2s infinite;
}

.p-status-txt {
    font-size: 10.5px;
    font-weight: 700;
    color: #34d399;
}

/* 区域公共小标头 */
.p-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

.p-sec-kicker {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.p-sec-tip {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* 三大就餐场景限额 */
.policy-scenes-section {
    padding: 12px 14px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.policy-scenes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

@media (max-width: 420px) {
    .policy-scenes-grid {
        grid-template-columns: 1fr;
    }

    .p-sc-tag,
    .p-sc-amount,
    .p-sc-note {
        white-space: normal;
    }
}

.p-scene-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.p-scene-card.active-blue {
    border-top: 2.5px solid #2563eb;
}

.p-scene-card.active-purple {
    border-top: 2.5px solid #7c3aed;
}

.p-scene-card.active-green {
    border-top: 2.5px solid #059669;
}

.p-sc-tag {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.p-sc-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 2px 0 1px;
    white-space: nowrap;
}

.p-sc-curr {
    font-size: 12px;
    font-weight: 800;
    color: #0284c7;
    margin-right: 1px;
}

.p-sc-val {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    font-family: var(--num);
    line-height: 1;
}

.p-sc-unit {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.p-sc-note {
    font-size: 9.5px;
    color: #64748b;
    white-space: nowrap;
}

/* 四大核心制度单列行条目 */
.policy-rules-list-section {
    padding: 12px 14px;
}

.policy-rules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-rule-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.15s ease;
}

.p-rule-row:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.p-rule-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    padding: 6px 4px;
    border-radius: 8px;
    flex-shrink: 0;
    gap: 2px;
}

.p-rule-badge.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.p-rule-badge.gold {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.p-rule-badge.purple {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #6b21a8;
}

.p-rule-badge.emerald {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.p-badge-icon {
    font-size: 16px;
    line-height: 1;
}

.p-badge-name {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.p-rule-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.p-rule-headline {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    word-break: keep-all;
}

.p-rule-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
    word-break: break-word;
}

/* 底部操作与提示条 */
.policy-card-bottom-bar {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.p-bottom-tip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #334155;
    font-weight: 500;
    min-width: 0;
}

.p-tip-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.p-tip-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-policy-goto-booking {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 111, 255, 0.25);
    transition: transform 0.15s ease;
}

.btn-policy-goto-booking:active {
    transform: scale(0.96);
}

/* ==========================================================================
   常用需求模板面板 (Templates Sheet)
   ========================================================================== */
.tpl-custom-bar {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
}

.btn-create-tpl,
.btn-save-curr-tpl {
    flex: 1;
    height: 34px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-create-tpl {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.btn-save-curr-tpl {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.btn-create-tpl:hover {
    background: #dbeafe;
}

.btn-save-curr-tpl:hover {
    background: #dcfce7;
}

.tpl-create-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 0 16px 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
    animation: fadeUp 0.2s ease both;
}

.tpl-create-box[hidden] {
    display: none;
}

.tpl-create-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
}

.tpl-form-group input,
.tpl-form-row select {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #1e293b;
}

.tpl-form-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 6px;
}

.tpl-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-sub-save {
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.tpl-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tpl-badge.custom {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.tpl-badge.shared {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tpl-card-item.shared-tpl {
    border-left: 3px solid #3b82f6;
}

.tpl-hint {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

.btn-del-custom-tpl {
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #fecaca;
    cursor: pointer;
    white-space: nowrap;
}

.btn-edit-tpl {
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
}

.tpl-act-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tpl-loading,
.tpl-empty {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    padding: 24px 12px;
}

.tpl-card-item.custom-tpl {
    border-left: 3px solid #f59e0b;
}

.tpl-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.tpl-card-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(30, 111, 255, 0.1);
}

.tpl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tpl-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpl-icon {
    font-size: 18px;
}

.tpl-title-wrap h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.tpl-badge {
    font-size: 11px;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    font-weight: 700;
}

.tpl-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.tpl-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tpl-req-pill {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
}

.tpl-act-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
    flex-wrap: wrap;
}

.tpl-meta-info {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.btn-apply-tpl {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(30, 111, 255, 0.25);
    transition: transform 0.1s ease;
}

.btn-apply-tpl:active {
    transform: scale(0.96);
}

/* 顶栏常用模板快捷按钮 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tpl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid #bae6fd;
}

.nav-tpl-btn:hover {
    background: #bae6fd;
}

/* 底部快捷药丸胶囊栏 (模仿图三底栏功能入口) */
.footer-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 4px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.footer-quick-chips::-webkit-scrollbar {
    height: 4px;
}

.footer-quick-chips::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 999px;
}

.q-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.q-chip:hover {
    background: #e2e8f0;
}

.q-chip.active {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
    font-weight: 700;
}

.q-icon {
    font-size: 12px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes barProgress {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes waveBar {
    0% {
        height: 4px;
    }

    100% {
        height: 18px;
    }
}

/* ==========================================================================
   全屏自适应（任意宽度铺满视口）
   ========================================================================== */
@media (min-width: 960px) {
    .dialog-stream {
        padding-left: max(14px, calc((100% - 720px) / 2 + 14px));
        padding-right: max(14px, calc((100% - 720px) / 2 + 14px));
    }

    .app-footer,
    .app-nav {
        padding-left: max(16px, calc((100% - 720px) / 2 + 16px));
        padding-right: max(16px, calc((100% - 720px) / 2 + 16px));
    }

    .app-nav {
        padding-top: env(safe-area-inset-top);
    }
}

/* ==========================================================================
   登录门（对齐决策端账号 / SSO）
   ========================================================================== */
.dining-login-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(14, 165, 233, 0.12), transparent 50%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.dining-login-gate[hidden] {
    display: none !important;
}

.dining-login-card {
    width: min(100%, 380px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.dining-login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.dining-login-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    margin-bottom: 10px;
}

.dining-login-brand h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.dining-login-brand p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.dining-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dining-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
}

.dining-field input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.dining-field input:focus {
    border-color: #38bdf8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.dining-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.dining-login-btn {
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    cursor: pointer;
}

.dining-login-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dining-login-err {
    margin: 0;
    font-size: 0.85rem;
    color: #dc2626;
    text-align: center;
}

.dining-login-tip {
    margin: 4px 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

.dining-login-tip code {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 1px 4px;
    border-radius: 4px;
}

#dining-app-stage[hidden] {
    display: none !important;
}