/* 全局字体定义 - 阿里巴巴普惠体 */
@font-face {
    font-family: 'AliPuHui';
    src: url('/preorder/fonts/ali.woff2') format('woff2'),
         url('/preorder/fonts/ali.woff') format('woff');
    font-display: swap;
}

/* ===== 清新粉主题 ===== */
:root {
    --theme-primary: #D96B84;
    --theme-secondary: #FF8DA6;
    --theme-bg: #fff0f3;
    --theme-text: #4a3a42;
    --theme-light: #FFF5F7;
    --theme-border: #FFCFDA;
    --theme-shadow: rgba(250,218,221,0.3);
    --theme-star: #FFA5C3;
    --theme-card-bg: #ffffff;
    --theme-modal-border: #FADADD;
    --theme-close-btn-bg: #FF8DA6;
    --theme-close-btn-text: #fff;
    --theme-option-checked: #FF8DA6;
    --theme-option-border: #FFCFDA;
    --theme-option-bg: #FFF5F7;
    --blink-from: #FDE8EC;
    --blink-to: #FFB3C6;
    --theme-required: #ff4d6d;
    --theme-float-btn: #FF8DA6;
    --theme-sticky-btn: #FF8DA6;
    --theme-submit-btn: #FF8DA6;
    --theme-back-btn: #FF8DA6;
    --theme-search-active-bg: rgba(217,107,132,0.08);
    --theme-blend-active: rgba(0,0,0,0.03);
    --theme-chip-green: #22c55e;
    --theme-chip-teal: #14b8a6;
    --theme-chip-blue: #3b82f6;
    --theme-chip-purple: #a855f7;
    --theme-chip-pink: #ec4899;
    --theme-chip-orange: #f97316;
    --theme-chip-indigo: #6366f1;
    --reset-btn-bg: #fce4ec;
    --reset-btn-border: #FF8DA6;
    --reset-btn-color: #D96B84;
    --delete-color: #FF8DA6;
    --select-bg: #FFF0F3;
    /* 统计框图标与单位浅色：比主色亮但清晰的粉色 */
    --theme-unit-color: #FF9EAA;
}

/* 全局去除 tap 高亮 */
* { -webkit-tap-highlight-color: transparent; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--theme-bg);
    font-family: 'AliPuHui', "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    color: var(--theme-text);
    line-height: 1.5;
}
a, button, [onclick] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
a:active, button:active, [onclick]:active { outline: none; }

.site-container { max-width: 600px; margin: 0 auto; padding: 0 16px 30px; }
.title-section {
    width: 100%;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFF0F3 50%, #FFB6C1 100%);
    display: flex; align-items: center; justify-content: space-between; padding: 18px 16px;
    position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px var(--theme-shadow); margin-bottom: 16px;
}
.title-bg-shapes { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.shape { position: absolute; background: rgba(255,255,255,0.2); border-radius: 50%; animation: float 8s ease-in-out infinite; }
.shape-1 { width: 60px; height: 60px; top: -10px; left: -10px; animation-delay: 0s; }
.shape-2 { width: 40px; height: 40px; bottom: -8px; right: 15px; animation-delay: 2s; }
.shape-3 { width: 35px; height: 35px; top: 20%; right: -5px; animation-delay: 4s; }
.shape-4 { width: 50px; height: 50px; bottom: 20%; left: 10px; animation-delay: 6s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.05); } }
.title-content { display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.main-title {
    font-size: 1.6rem; font-weight: 700; color: var(--theme-primary);
    letter-spacing: 0.5px; line-height: 1.2;
}
.sub-title { color: var(--theme-secondary); font-size: 0.8rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.sub-title i { color: var(--theme-star); font-size: 0.75rem; }

.theme-switch-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: 1.5px solid var(--theme-border); color: var(--theme-primary);
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: 0.2s; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(232,135,154,0.2); outline: none;
}
.theme-switch-btn:active { transform: scale(0.92); background: var(--theme-card-bg); }

.theme-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; visibility: hidden; opacity: 0; transition: 0.2s;
}
.theme-modal-overlay.show { visibility: visible; opacity: 1; }
.theme-modal {
    background: #fff; border-radius: 30px; padding: 20px 20px; text-align: center;
    max-width: 360px; width: 90%;
    border: 2px solid var(--theme-border);
    box-shadow: 0 8px 25px var(--theme-shadow);
}
.theme-modal-icon { font-size: 1.8rem; color: var(--theme-star); margin-bottom: 10px; }
.theme-modal h3 { color: var(--theme-primary); font-size: 1.1rem; margin-bottom: 6px; }
.theme-modal p { color: var(--theme-secondary); font-size: 0.8rem; margin-bottom: 12px; }
.theme-modal-close {
    background: var(--theme-close-btn-bg); color: var(--theme-close-btn-text); border: none;
    border-radius: 40px; padding: 8px 20px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: 0.15s; outline: none;
}
.theme-modal-close:active { background: var(--theme-star); }

/* 主题列表两列布局 */
.theme-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}
.theme-list-container > div {
    margin-bottom: 0 !important;
}

#utilModal .theme-modal-close { margin-top: 25px; }

.util-entry-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.util-entry-label { font-size: 1.1rem; font-weight: 600; color: var(--theme-primary); }
.util-entry-btn {
    background: var(--theme-secondary); color: #fff; border: none; padding: 6px 12px;
    border-radius: 30px; font-size: 0.75rem; font-weight: 600; cursor: pointer;
    transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center;align-self: center;
}

.banner-box { margin: 0 0 20px; border-radius: 30px; overflow: hidden; border: 0px solid var(--theme-border); background: #fff; }
.carousel-container { width: 100%; position: relative; }
.carousel-slides { display: flex; transition: transform 0.3s ease; width: 100%; }
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img { width: 100%; display: block; object-fit: cover; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--theme-primary); font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); z-index: 30; transition: 0.2s;
    border: 1px solid var(--theme-border); outline: none;
}
.carousel-arrow:hover { background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.carousel-arrow-left { left: 10px; }
.carousel-arrow-right { right: 10px; }

.announce-wrapper {
    background: #fff; border-radius: 40px; padding: 10px 20px; margin: 12px 0 22px;
    border: 0px solid var(--theme-border); color: var(--theme-primary); font-weight: 600;
    font-size: 1rem; white-space: nowrap; overflow: hidden; display: flex; align-items: center;
}
.announce-icon { background: var(--theme-secondary); color: #fff; border-radius: 30px; padding: 5px 14px; margin-right: 16px; font-size: 0.9rem; font-weight: 700; }
.announce-scroll-container { flex: 1; overflow: hidden; }
.announce-scroll { display: inline-block; animation: scrollLeft 20s linear infinite; }
.announce-scroll span { margin-right: 40px; display: inline-block; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.recommend-section { margin: 12px 0 18px; background: #fff; border-radius: 28px; padding: 20px 20px 16px; border: 0px solid var(--theme-border); }
.recommend-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.recommend-title-left { display: flex; align-items: center; gap: 10px; }
.recommend-title-left i { font-size: 1.2rem; color: var(--theme-star); }
.recommend-title-left span { font-size: 1.1rem; font-weight: 700; color: var(--theme-primary); }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; background: #d1d5db; border-radius: 50%; transition: 0.3s; }
.carousel-dot.active { background: var(--theme-primary); }

.recommend-carousel { position: relative; height: 180px; overflow: hidden; margin-top: 6px; }
.recommend-grid {
    display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease-in-out; pointer-events: none; padding-bottom: 8px;
}
.recommend-grid.active { opacity: 1; pointer-events: auto; position: relative; }

.dish-card {
    background: var(--theme-card-bg); border-radius: 20px; padding: 14px 10px; text-align: center;
    text-decoration: none; color: var(--theme-text); border: 1px solid var(--theme-border);
    transition: 0.2s; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 2px 8px var(--theme-shadow);
}
.dish-card:active { transform: scale(0.97); background: var(--theme-light); }
.dish-name { font-weight: 700; font-size: 0.95rem; color: var(--theme-primary); margin-bottom: 6px; }
.dish-meta { font-size: 0.7rem; color: var(--theme-secondary); display: flex; align-items: center; justify-content: center; }
.dish-meta .sep { margin: 0 0.25rem; color: var(--theme-star); }

.featured-card {
    background: var(--theme-card-bg); border-radius: 26px; padding: 16px 22px;
    border: 0px solid var(--theme-border); text-decoration: none; color: inherit; transition: 0.2s;
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
    box-shadow: 0 4px 12px var(--theme-shadow);
}
.featured-card:active { transform: scale(0.98); background: var(--theme-light); }
.featured-title { font-size: 1.6rem; font-weight: 700; color: var(--theme-primary); display: flex; align-items: center; gap: 8px; }
.featured-count-area { display: flex; align-items: center; gap: 5px; background: #FFF7F7; padding: 6px 16px; border-radius: 50px; border: 0px solid var(--theme-star); }
.featured-count-number { font-size: 1.3rem; font-weight: 800; color: var(--theme-primary); }
.featured-count-unit { font-size: 0.75rem; color: var(--theme-unit-color); font-weight: 600; }
.featured-count-area i { color: var(--theme-unit-color); }

.menu-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 20px; }
.menu-card {
    background: var(--theme-card-bg); border-radius: 26px; padding: 16px 10px 14px;
    border: 0px solid var(--theme-border); text-decoration: none; color: inherit; transition: 0.2s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    box-shadow: 0 4px 12px var(--theme-shadow);
}
.menu-card:active { transform: scale(0.98); background: var(--theme-light); }
.menu-title { font-size: 1.2rem; font-weight: 700; color: var(--theme-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.menu-count-area { display: flex; align-items: center; gap: 4px; background: #FFF7F7; padding: 5px 14px; border-radius: 50px; border: 0px solid var(--theme-star); }
.menu-count-number { font-size: 1.2rem; font-weight: 800; color: var(--theme-primary); }
.menu-count-unit { font-size: 0.7rem; color: var(--theme-unit-color); font-weight: 600; }
.menu-count-area i { color: var(--theme-unit-color); }

.total-dishes-box { display: flex; align-items: center; justify-content: center; margin: 25px 0; gap: 12px; }
.total-lines { flex: 1; height: 1px; background: var(--theme-border); }
.total-label { font-size: 0.95rem; color: var(--theme-secondary); font-weight: 400; white-space: nowrap; }
.total-number { font-size: 1.6rem; font-weight: 600; color: var(--theme-primary); margin: 0 4px; vertical-align: middle; }

.footer-wrap { margin-top: 28px; text-align: center; padding: 12px 0 4px; border-top: 1px dashed var(--theme-border); }
.footer-credit { color: var(--theme-secondary); font-size: 0.8rem; }
.footer-credit strong { color: var(--theme-primary); }
.footer-credit i { color: var(--theme-star); margin: 0 3px; }

/* 表单页 / 成功页 */
.candy-container { max-width: 560px; margin: 0 auto; padding: 20px 16px 100px; }
.header-card {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 35px; padding: 22px 20px 18px; margin-bottom: 20px;
    border: 0px solid var(--theme-border); box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.header-card .header-text h1 { color: var(--theme-primary); font-size: 2rem; font-weight: 700; }
.header-card .header-text .subtitle { color: var(--theme-secondary); font-size: 0.95rem; }

.search-box {
    display: flex; align-items: center; background: #fff; border-radius: 40px;
    border: 1.5px solid var(--theme-border); padding: 4px 4px 4px 18px; transition: box-shadow 0.2s;
    margin-top: 16px;
}
.search-box:focus-within { box-shadow: 0 0 0 4px rgba(255,141,166,0.25); }
.search-input { border: none; outline: none; flex: 1; font-size: 1rem; background: transparent; color: #334155; padding: 8px 0; }
.search-input::placeholder { color: var(--theme-secondary); opacity: 0.8; }
.search-btn {
    background: var(--theme-secondary); border: none; border-radius: 50%; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
    cursor: pointer; flex-shrink: 0; transition: 0.15s;
}
.search-btn:active { transform: scale(0.92); }

.field-group {
    background: #fff; border-radius: 35px; padding: 18px 22px; margin-bottom: 20px;
    border: 2px solid var(--theme-border); box-shadow: 0 4px 12px var(--theme-shadow);
}
.field-label-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.field-label-wrapper label { font-weight: 700; color: var(--theme-primary); font-size: 1.2rem; margin-bottom: 0 !important; }
.required { color: var(--theme-required); font-size: 1.3rem; margin-left: 4px; }
.required-tip {
    background: var(--theme-required); color: #fff; font-size: 0.8rem; font-weight: 600;
    padding: 4px 12px; border-radius: 30px; display: none; pointer-events: none; white-space: nowrap;
}
.field-group.error .required-tip { display: inline-block; }
.clear-field-btn {
    margin-left: auto; cursor: pointer;
    background: var(--reset-btn-bg);
    border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--reset-btn-border); font-size: 1rem; color: var(--reset-btn-color);
}
.clear-field-btn:active { background: #fce4ec; }
.field-note { font-size: 0.9rem; color: var(--theme-secondary); margin-bottom: 10px; margin-top: -2px; }

.cute-input {
    width: 100%; padding: 14px 18px; border: 2px solid var(--theme-border); border-radius: 40px !important;
    font-size: 1.1rem; background: var(--theme-card-bg); box-shadow: inset 0 1px 4px rgba(0,0,0,0.02);
    transition: 0.2s; font-family: inherit; color: var(--theme-text);
}
.cute-input::placeholder { color: #d1b5bc !important; opacity: 0.8; }
.cute-input:focus { border-color: var(--theme-star); outline: none; box-shadow: 0 0 0 4px rgba(247,176,94,0.15); background: #fff; }
textarea.cute-input { border-radius: 25px !important; min-height: 100px; resize: vertical; }

/* ---------- 下拉框美化 ---------- */
select.cute-input {
    appearance: none; -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23e8879a" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat; background-position: right 18px center; background-size: 20px; padding-right: 52px; cursor: pointer;
    background-color: var(--select-bg);
    color: var(--theme-primary); /* 下拉框未展开时的文字颜色也设为粉色 */
}

/* 下拉选项文字：使用主题主色（粉色） */
select.cute-input option {
    background: #fff;
    color: var(--theme-primary);
    font-weight: 500;
}

/* 当前已选中的项：粉色背景 + 白色文字，清晰醒目 */
select.cute-input option:checked {
    background: var(--theme-primary);
    color: #fff;
    font-weight: 600;
}

/* Firefox 悬停与聚焦时确保文字可见 */
select.cute-input:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--theme-primary);
}
/* ---------- 下拉框美化结束 ---------- */

.option-block { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.option-radio, .option-checkbox {
    flex-shrink: 0; width: 24px; height: 24px; appearance: none; border: 2px solid var(--theme-option-border);
    border-radius: 50%; background: white; cursor: pointer; margin: 0; transition: 0.15s; outline: none;
}
.option-checkbox { border-radius: 8px; }
.option-radio:checked, .option-checkbox:checked {
    background: var(--theme-option-checked); border-color: var(--theme-option-checked);
    box-shadow: inset 0 0 0 4px white;
}
.option-content {
    flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px 16px;
    border-radius: 20px; border: 1px solid var(--theme-option-border); background: var(--theme-option-bg);
    cursor: pointer; transition: background 0.2s; font-size: 1.2rem; color: var(--theme-primary);
}
.option-text { font-weight: inherit; }
.option-note-text { font-size: 0.85rem; color: #9ca3af; line-height: 1.4; }
.option-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.tag-chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: #fff;
    border: 2px solid transparent; cursor: pointer; transition: 0.2s; position: relative;
    z-index: 2; user-select: none; touch-action: manipulation;
}
.tag-chip.tag-green { background-color: var(--theme-chip-green); }
.tag-chip.tag-teal { background-color: var(--theme-chip-teal); }
.tag-chip.tag-blue { background-color: var(--theme-chip-blue); }
.tag-chip.tag-purple { background-color: var(--theme-chip-purple); }
.tag-chip.tag-pink { background-color: var(--theme-chip-pink); }
.tag-chip.tag-orange { background-color: var(--theme-chip-orange); }
.tag-chip.tag-indigo { background-color: var(--theme-chip-indigo); }

.tag-chip::after {
    content: '✓'; position: absolute; bottom: -4px; right: -4px;
    background-color: inherit; color: #fff; border-radius: 50%;
    width: 18px; height: 18px; font-size: 12px; display: flex;
    align-items: center; justify-content: center; border: 2px solid #fff;
    opacity: 0; transform: scale(0.5); transition: 0.2s;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1); z-index: 3;
}
.tag-chip.selected::after { opacity: 1; transform: scale(1); }
.tag-chip:active { transform: scale(0.95); }

.option-content:active, .option-content.active { background: var(--theme-blend-active); border-radius: 20px; }

.option-content.blink-active {
    animation: blink-soft 0.6s ease-in-out 4;
    border-radius: 20px;
}
@keyframes blink-soft {
    0% { background-color: var(--blink-from); }
    50% { background-color: var(--blink-to); }
    100% { background-color: var(--blink-from); }
}

.option-content.blink-interaction {
    animation: blink-once 0.3s ease-in-out 1;
    border-radius: 20px;
}
@keyframes blink-once {
    0% { background-color: var(--blink-from); }
    50% { background-color: var(--blink-to); }
    100% { background-color: var(--blink-from); }
}

.float-buttons { position: fixed; bottom: 100px; right: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 998; }
.float-btn {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; text-decoration: none; border: none; background: var(--theme-float-btn); transition: 0.2s;
}
.float-btn:active { transform: scale(0.95); }

.quick-nav-wrapper { position: relative; margin: 0 0 24px; }
.quick-nav {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 20px; padding: 12px 15px; border: 2px solid var(--theme-border);
    box-shadow: 0 4px 12px var(--theme-shadow); z-index: 500;
}
.quick-nav.quick-nav--sticky {
    position: fixed; top: 0; left: 0; right: 0; margin: 0; border-radius: 0 0 20px 20px;
    max-width: 100%; padding: 10px 15px; border-top: none; border-left: none; border-right: none;
    border-bottom: 3px solid var(--theme-border); box-shadow: 0 6px 18px rgba(0,0,0,0.15); z-index: 999;
}
.quick-nav-placeholder { display: none; }
.quick-nav-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--theme-primary); }
.quick-nav-title i { color: var(--theme-star); }
.quick-nav-links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.quick-link {
    background: var(--theme-light); border: 1px solid var(--theme-border); border-radius: 30px;
    padding: 5px 14px; font-size: 0.9rem; font-weight: 600; color: var(--theme-primary);
    text-decoration: none; transition: 0.1s; display: inline-block;
}
.quick-link:active { transform: scale(0.96); background: var(--theme-border); }

.order-sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px; border-top: 3px solid var(--theme-border);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between;
}
.sticky-left { display: flex; align-items: center; gap: 10px; }
.sticky-avatar-wrapper { position: relative; display: inline-block; cursor: pointer; }
.sticky-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.avatar-badge {
    position: absolute; top: -4px; right: -4px; background: var(--delete-color); color: #fff;
    font-size: 12px; font-weight: bold; min-width: 20px; height: 20px; line-height: 20px;
    text-align: center; border-radius: 20px; padding: 0 4px; border: 2px solid #fff; display: none;
}
.avatar-badge.show { display: inline-block; }
.sticky-text { font-size: 0.95rem; font-weight: 600; max-width: 180px; color: var(--theme-primary); }
.sticky-btn {
    border: none; border-radius: 40px; padding: 12px 28px;
    font-size: 1.2rem; font-weight: bold; background: var(--theme-sticky-btn); color: #fff; cursor: pointer; transition: 0.15s;
}
.sticky-btn:active { transform: scale(0.97); }

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: flex-end; justify-content: center;
    visibility: hidden; opacity: 0; transition: 0.2s;
}
.modal-overlay.show { visibility: visible; opacity: 1; }
.modal-sheet {
    background: #fff; width: 100%; max-width: 600px; border-radius: 30px 30px 0 0;
    padding: 24px 20px 30px; border-top: 3px solid var(--theme-border);
    transform: translateY(100%); transition: transform 0.3s; max-height: 80vh; overflow-y: auto;
}
.modal-overlay.show .modal-sheet { transform: translateY(0); }
.modal-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; text-align: center; color: var(--theme-primary); }
.modal-field-list { margin-bottom: 20px; }
.modal-row { display: flex; padding: 10px 0; border-bottom: 1px dashed #ccc; }
.modal-label { font-weight: 700; min-width: 100px; color: var(--theme-primary); }
.modal-value { color: #333; word-break: break-word; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.modal-btn { flex: 1; padding: 14px; border-radius: 40px; font-weight: bold; font-size: 1.1rem; border: none; cursor: pointer; }
.modal-btn.confirm { background: var(--theme-secondary); color: #fff; }
.modal-btn.cancel { background: #f5f5f5; color: var(--theme-primary); }

.selection-overlay {
    position: fixed; top: 0; left: 0; right: 0; /* bottom 动态 */
    background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); z-index: 1001;
    display: flex; align-items: flex-end; justify-content: center;
    visibility: hidden; opacity: 0; transition: 0.2s;
}
.selection-overlay.show { visibility: visible; opacity: 1; }
.selection-sheet {
    background: #fff; width: 100%; max-width: 600px;
    border-radius: 30px 30px 0 0;
    padding: 25px 20px 25px;
    border-top: 3px solid var(--theme-border);
    transform: translateY(100%); transition: transform 0.3s; max-height: 60vh; overflow-y: auto;
    margin: 0; -webkit-overflow-scrolling: touch;
}
.selection-overlay.show .selection-sheet { transform: translateY(0); }
.selection-sheet .modal-title { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 20px; font-size: 1.3rem; color: var(--theme-primary); }
.selection-sheet .modal-title i { margin-right: 6px; color: var(--theme-star); }
.close-sheet-btn {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    border-radius: 50%; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px;
    border: none; outline: none;
    background: var(--theme-close-btn-bg); color: var(--theme-close-btn-text);
}
.close-sheet-btn:active { opacity: 0.8; }
.selection-item { padding: 14px 0; border-bottom: 1px dashed #ddd; }
.selection-info { flex: 1; }
.selection-label { font-weight: 700; margin-bottom: 6px; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--theme-primary); }
.selection-value { background: var(--theme-light); padding: 6px 12px; border-radius: 20px; color: #333; font-size: 0.95rem; border: 1px solid var(--theme-border); }
.multi-value-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.multi-value-item { display: flex; align-items: center; justify-content: space-between; background: var(--theme-light); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--theme-border); }
.multi-value-text { color: #333; font-size: 0.95rem; }
.delete-value-btn {
    background: none; border: 1px solid #FF8DA6; border-radius: 50%; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center; color: var(--delete-color); cursor: pointer; font-size: 16px;
}
.delete-value-btn:active { background: #fce4ec; }
.clear-selection-btn {
    background: none; border: 1px solid #D96B84; border-radius: 20px; padding: 5px 14px;
    font-weight: 600; font-size: 0.85rem; color: var(--theme-primary); cursor: pointer; margin-left: 10px; white-space: nowrap;
}
.clear-selection-btn:active { background: var(--theme-light); }
.empty-selection { text-align: center; padding: 30px; color: #888; font-size: 1rem; background: var(--theme-light); border-radius: 20px; }

.success-card { text-align: center; padding: 25px 20px 20px; background: #fff; border-radius: 30px; margin-bottom: 15px; border: 1px solid var(--theme-border); }
.success-emoji { font-size: 5rem; margin-bottom: 5px; }
.success-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; color: var(--theme-primary); }
.success-card p { font-size: 1.1rem; color: var(--theme-secondary); }
.order-summary { background: #fff; border-radius: 25px; padding: 20px; margin: 20px 0 15px; border: 1px solid var(--theme-border); text-align: left; }
.order-summary h3 { font-size: 1.4rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed var(--theme-border); color: var(--theme-primary); }
.summary-row { display: flex; margin-bottom: 10px; font-size: 1rem; }
.summary-label { font-weight: 700; min-width: 100px; color: var(--theme-primary); }
.summary-value { color: #333; word-break: break-word; }
.summary-divider { margin: 18px 0; border-top: 1px dotted #ccc; }
.back-btn {
    display: inline-block; border-radius: 40px; padding: 14px 28px; font-size: 1.3rem;
    font-weight: bold; text-decoration: none; color: #fff; border: none; transition: 0.15s;
    background: var(--theme-back-btn);
}
.back-btn:active { transform: scale(0.97); }
.booking-hint { text-align: center; margin-top: 25px; font-size: 0.9rem; color: var(--theme-secondary); }

#homeFloatBtn, .float-home-btn {
    position: fixed; bottom: 50px; right: 20px; width: 48px; height: 48px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; text-decoration: none; border: none; background: var(--theme-float-btn); z-index: 9999;
}

.search-modal-overlay { /* ... 不变 ... */ }
.search-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); z-index: 3000; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; opacity: 0; transition: 0.25s; }
.search-modal-overlay.show { visibility: visible; opacity: 1; }
.search-modal { background: #fff; width: 100%; max-width: 600px; border-radius: 30px 30px 0 0; padding: 25px 20px 30px; max-height: 70vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s; border-top: 3px solid var(--theme-border); position: relative; }
.search-modal-overlay.show .search-modal { transform: translateY(0); }
.search-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; position: relative; }
.search-modal-title { display: flex; align-items: center; font-size: 1.3rem; font-weight: 700; color: var(--theme-primary); }
.search-modal-close { position: absolute; top: 0; right: 0; background: none; border: 2px solid var(--theme-border); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--theme-primary); }
.search-modal-subtitle { font-size: 0.9rem; margin-top: 2px; color: var(--theme-secondary); opacity: 0.9; }
.search-result-item { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.search-result-item i { color: var(--theme-star); margin-right: 14px; font-size: 1.2rem; }
.search-result-item:active { background: var(--theme-search-active-bg); }
.search-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: #fff; padding: 14px 28px; border-radius: 40px; z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s; white-space: nowrap; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.search-toast.show { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
    .site-container { padding: 0 12px 20px; }
    .candy-container { padding: 16px 12px 90px; }
    .float-btn { width: 40px; height: 40px; font-size: 18px; }
    .sticky-text { font-size: 0.85rem; }
    .sticky-btn { padding: 10px 20px; font-size: 1rem; }
    .clear-field-btn { width: 28px; height: 28px; font-size: 0.9rem; }
    .clear-selection-btn { padding: 5px 12px; font-size: 0.8rem; }
    .selection-sheet .modal-title { font-size: 1.2rem; }
    .close-sheet-btn { width: 28px; height: 28px; font-size: 18px; }
    .success-emoji { font-size: 4rem; }
    .success-card h2 { font-size: 1.8rem; }
    #homeFloatBtn, .float-home-btn { width: 44px; height: 44px; font-size: 20px; bottom: 40px; right: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .site-container { max-width: 90%; }
    .candy-container { max-width: 90%; }
}
@media (max-width: 420px) {
    .theme-switch-btn { width: 34px; height: 34px; font-size: 1rem; }
}