/* ==================== REM 基准设置 ==================== */
/* 设计稿基准: 375px, 1rem = 16px */
/* 计算公式: rem = px / 16 */
html {
    font-size: 14px;
}

/* 小屏幕手机 (≤375px) - iPhone SE、旧款 iPhone */
@media screen and (max-width: 375px) {
    html { font-size: 12px; }
}

/* 中等屏幕手机 (376-414px) - iPhone 6/7/8 Plus、iPhone XR/11 */
@media screen and (min-width: 376px) and (max-width: 414px) {
    html { font-size: 13px; }
}

/* 大屏幕手机 (415-480px) - iPhone 12/13/14 Pro Max、大屏 Android */
@media screen and (min-width: 415px) and (max-width: 480px) {
    html { font-size: 14px; }
}

/* 超大屏手机 (481-768px) - 华为 Mate 系列、折叠屏展开态 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    html { font-size: 16px; }
}

/* 平板设备 (769-1024px) - iPad Mini、Android 平板 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    html { font-size: 18px; }
}

/* 大平板/桌面 (>1024px) - iPad Pro、桌面端 */
@media screen and (min-width: 1025px) {
    html { font-size: 20px; }
}

/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e8f0e0;
}

/* ==================== 加载动画 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e8f0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.loading-overlay.active {
    opacity: 1;
}
.loading-content {
    text-align: center;
}
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(255, 87, 34, 0.2);
    border-top-color: #ff5722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    color: #666;
    font-size: 0.9375rem;
    letter-spacing: 0.0625rem;
}

/* ==================== 错误提示 ==================== */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 240, 224, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.error-overlay.active {
    display: flex;
    opacity: 1;
}
.error-content {
    text-align: center;
    padding: 1.875rem;
}
.error-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.error-message {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.error-retry-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: #fff;
    border: none;
    border-radius: 1.5625rem;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.9375rem rgba(255, 87, 34, 0.3);
    transition: transform 0.2s;
}
.error-retry-btn:active {
    transform: scale(0.95);
}

/* ==================== 空状态提示 ==================== */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    opacity: 0.7;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.empty-state-text {
    font-size: 0.875rem;
    color: #666;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10%);
    right: 0.75rem;
    z-index: 50;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

/* 搜索输入框容器 */
.search-input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 0.5rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    pointer-events: none;
}
.search-input-container.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.375rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-input {
    width: 55vw;
    max-width: 18rem;
    padding: 0.6875rem 1rem;
    border: none;
    font-size: 0.875rem;
    background: transparent;
    outline: none;
}
.search-input::placeholder {
    color: #999;
}

/* 搜索图标按钮 */
.search-toggle {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    pointer-events: auto;
    color: #ff5722;
    flex-shrink: 0;
}
.search-toggle:active {
    transform: scale(0.92);
    box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
}

/* 搜索结果下拉框 */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 65vw;
    max-width: 20rem;
    max-height: 18rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: none;
    pointer-events: auto;
}
.search-results.active {
    display: block;
}
.search-results::-webkit-scrollbar {
    width: 0.25rem;
}
.search-results::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.125rem;
}

.search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 0.0625rem solid #f0f0f0;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:active,
.search-result-item:hover {
    background: rgba(255, 87, 34, 0.08);
}
.search-result-item.selected {
    background: rgba(255, 87, 34, 0.12);
}

.search-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.search-result-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-address {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.125rem;
}

.search-no-result {
    padding: 1.25rem 0.875rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #999;
}

/* ==================== 地图容器 ==================== */
.map-wrapper {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: #e8f0e0;
}
.map-container {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    transform-origin: top left;
    transform: scale(1.5);
    will-change: transform;
}
#map-bg {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
#shop-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* ==================== 商家气泡图标 ==================== */
@keyframes bubble-pulse {
    0%   { transform: scale(1); opacity: 1; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}
/* 商家气泡 - 带箭头指向位置 */
.shop-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -100%) scale(0.62);
    transform-origin: center bottom;
    margin-top: 0;
    z-index: 10;
}
.shop-point:active {
    transform: translate(-50%, -100%) scale(0.58);
    margin-top: 0;
}
/* 商家名称气泡 */
.shop-point .shop-name {
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 0.125rem 0.5rem rgba(255, 87, 34, 0.4);
    position: relative;
}
/* 脉冲动画用伪元素实现，仅选中状态播放，避免大量同时动画 */
.shop-point .shop-name::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.625rem;
    background: rgba(255, 87, 34, 0.35);
    z-index: -1;
    opacity: 0;
}
.shop-point.selected .shop-name::before {
    animation: bubble-pulse 2.4s ease-out infinite;
    will-change: transform, opacity;
}
/* 气泡下方的箭头 */
.shop-point .shop-name::after {
    content: '';
    position: absolute;
    bottom: -0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.375rem solid transparent;
    border-right: 0.375rem solid transparent;
    border-top: 0.5rem solid #ff5722;
}
/* 商家位置点 */
.shop-point .shop-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #ff5722;
    border-radius: 50%;
    box-shadow: 0 0 0 0.1875rem rgba(255, 87, 34, 0.3);
    margin-top: 0.125rem;
}

/* 商家选中效果 */
.shop-point.selected {
    z-index: 20;
}
.shop-point.selected .shop-name {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    box-shadow: 0 0.1875rem 0.625rem rgba(255, 87, 34, 0.5);
    transform: scale(1.1);
}
.shop-point.selected .shop-name::after {
    border-top-color: #e64a19;
}
.shop-point.selected .shop-dot {
    width: 0.625rem;
    height: 0.625rem;
    box-shadow: 0 0 0 0.25rem rgba(255, 87, 34, 0.4);
}

/* ==================== 弹窗遮罩 ==================== */
.modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2.5rem);
    max-width: 23.75rem;
    max-height: 85vh;
    border-radius: 1.125rem;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.28s ease;
    box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,0.35);
    pointer-events: auto;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-overlay.closing {
    display: flex;
    opacity: 0;
}

/* 弹窗背景遮罩层 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.125rem);
    -webkit-backdrop-filter: blur(0.125rem);
    z-index: 99;
    display: none;
}
.modal-backdrop.active {
    display: block;
}

/* ==================== 弹窗主体 ==================== */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: scale(0.88);
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.18);
    /* 确保子元素可以正确计算高度 */
    min-height: 0;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* 背景图层 */
.modal-bg {
    position: absolute;
    inset: -3rem 0 3rem 0;
    width: 100%;
    height: calc(100% + 3rem);
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}
/* 背景遮罩 */
.modal-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 232, 0.95);
    z-index: 1;
}

/* 关闭按钮 - 固定在弹窗右上角 */
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: #FFF8E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100 !important;
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    border: 0.125rem solid rgba(0, 0, 0, 0.08);
}

/* 所有内容层叠在背景之上（排除关闭按钮和 wrapper） */
.modal-content > *:not(.modal-bg):not(.modal-bg-overlay):not(.close-btn):not(.modal-pages-wrapper) {
    position: relative;
    z-index: 2;
}

/* 翻页容器包裹层 - 负责裁剪溢出 */
.modal-pages-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 3rem;
}
.close-btn:hover {
    background: #fff3dc;
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.close-btn:active {
    transform: scale(0.9);
    background: #ffe8c8;
}

/* ==================== 多页滑动区 ==================== */
.modal-pages {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    touch-action: pan-y;
    transition: transform 0.32s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
    align-items: stretch;
    transform-origin: left center;
    min-height: fit-content;
}
.modal-page {
    /* 关键修复：确保每个页面占满容器宽度并横向排列 */
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* 确保 content 可见 */
    visibility: visible;
    /* 确保内容在背景之上 */
    z-index: 10;
}
.modal-page::-webkit-scrollbar { display: none; }

.page-img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    cursor: pointer;
}

/* 图片全屏预览 */
.img-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.img-preview-overlay.active {
    display: flex;
    opacity: 1;
}
.img-preview-overlay img {
    max-width: 92%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.5rem;
}
.img-preview-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}

/* 图片占位符 */
.page-img-placeholder {
    width: 100%;
    height: 18rem;
    background: linear-gradient(135deg, #fff3dc 0%, #ffe8c8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.page-img-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-img-placeholder-text {
    font-size: 0.8125rem;
    color: #999;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0.875rem 1.125rem 0.25rem;
    letter-spacing: 0.03125rem;
}
.page-address {
    padding: 0 1.125rem 0.25rem;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.page-text {
    flex: 1;
    padding: 0.375rem 1.125rem 0.875rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    white-space: pre-wrap;
}

/* ==================== 分页指示点 ==================== */
.modal-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-shrink: 0;
    min-height: 1.5rem;
}
.modal-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: rgba(0,0,0,0.18);
    transition: width 0.25s ease, background 0.25s ease;
    padding: 0;
    cursor: pointer;
    min-width: 0.5rem;
    min-height: 0.5rem;
}
.modal-dot.active {
    width: 1.25rem;
    background: #ff5722;
}

/* 图片轮播箭头 - 弹窗外两侧 */
.modal-arrow {
    position: fixed;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, opacity 0.2s, background 0.2s, box-shadow 0.2s;
    color: #ff5722;
    border: 0.0625rem solid rgba(255, 87, 34, 0.2);
}
.modal-arrow:hover {
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}
.modal-arrow:active {
    transform: translateY(-50%) scale(0.9);
}
.modal-arrow-left {
    left: 0.5rem;
    transform: translateY(-50%);
}
.modal-arrow-right {
    right: 0.5rem;
    transform: translateY(-50%);
}
.modal-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.modal-arrow.hidden {
    display: none;
}

/* ==================== 底部按钮组 ==================== */
.btn-group {
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem 0.875rem;
    flex-shrink: 0;
    border-top: 0.0625rem solid rgba(0,0,0,0.06);
}
.btn {
    flex: 1;
    padding: 0.6875rem 0.375rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    transition: opacity 0.15s, transform 0.15s;
    letter-spacing: 0.01875rem;
}
.btn:active {
    opacity: 0.82;
    transform: scale(0.97);
}
.btn-shop {
    background: linear-gradient(135deg, #ffb347, #ff9f43);
    box-shadow: 0 0.125rem 0.5rem rgba(255,159,67,0.35);
}
.btn-call {
    background: linear-gradient(135deg, #56d364, #2ea84a);
    box-shadow: 0 0.125rem 0.5rem rgba(46,168,74,0.35);
}
.btn-nav {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 0.125rem 0.5rem rgba(238,90,36,0.35);
}

/* ==================== 推文详情弹窗 ==================== */
.article-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    z-index: 150;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.18);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -0.25rem 1.875rem rgba(0,0,0,0.15);
}
.article-modal.active {
    transform: translateY(0);
}

.article-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.article-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.article-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border-bottom: 0.0625rem solid #f0f0f0;
    flex-shrink: 0;
}
.article-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}
.article-close {
    width: 2rem;
    height: 2rem;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #666;
    cursor: pointer;
}
.article-close:active {
    background: #eee;
}

#article-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.125rem;
    -webkit-overflow-scrolling: touch;
}

.article-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.875rem;
    white-space: pre-wrap;
}

.article-img {
    width: 100%;
    border-radius: 0.625rem;
    margin-bottom: 0.875rem;
    display: block;
}

.btn-group-extra {
    display: flex;
    gap: 0.5rem;
    padding: 0 0.875rem 0.875rem;
}
.btn-share {
    flex: 1;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    box-shadow: 0 0.125rem 0.5rem rgba(30, 136, 229, 0.35);
}

/* ==================== 分享海报 ==================== */
.poster-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.25rem;
}
.poster-container.active {
    display: flex;
}
.poster-image-wrapper {
    width: 100%;
    max-width: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}
.poster-image {
    width: 100%;
    display: block;
}
.poster-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 20rem;
}
.poster-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.poster-btn:active {
    transform: scale(0.95);
}
.poster-btn-save {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
}
.poster-btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ==================== 音乐按钮 ==================== */
.music-toggle {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s;
    pointer-events: auto;
    color: #ff5722;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.music-toggle:active {
    box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
}
.music-toggle.playing {
    animation: music-spin 3s linear infinite;
}
@keyframes music-spin {
    to { transform: rotate(360deg); }
}

/* ==================== 地图分享按钮 ==================== */
.map-share-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(255, 87, 34, 0.4);
    z-index: 50;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.map-share-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0.125rem 0.375rem rgba(255, 87, 34, 0.3);
}

/* ==================== 提示框 ==================== */
.toast {
    position: fixed;
    bottom: 6.875rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.75rem);
    background: rgba(30, 30, 30, 0.88);
    color: #fff;
    padding: 0.625rem 1.375rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 200;
    pointer-events: none;
    text-align: center;
    max-width: 80%;
    backdrop-filter: blur(0.25rem);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
