/* ============================================
   🔧 短代码场景：覆盖主题的古典边框
   主题 style.css 给 article/.post/.card 统一加了：
     border: 1px solid #d4c6a8;
     padding: 2em;
     box-shadow: 0 2px 8px rgba(139,69,19,.08);
   导游个人主页用短代码嵌入时，外面套了主题的 article，
   导致整个导游卡有个难看的古典边框 + 大内边距。
   这里只在「短代码」场景（.wuchai-personal-guide 祖先链）
   下把主题样式全部干掉。
   ============================================ */

/* 短代码模式下，主题 article/.post/.card 作为容器时 */
.wuchai-personal-guide,
.wuchai-personal-guide article,
.wuchai-personal-guide .post,
.wuchai-personal-guide .card,
.wuchai-personal-guide .entry-content,
.wuchai-personal-guide .entry-summary {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* 短代码模式下，主题给 img 加的 2px 古典边框 */
.wuchai-personal-guide .entry-content img,
.wuchai-personal-guide img {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 短代码模式下，主题给 h1 加的 border-bottom */
.wuchai-personal-guide h1,
.wuchai-personal-guide h2,
.wuchai-personal-guide h3,
.wuchai-personal-guide h4,
.wuchai-personal-guide h5,
.wuchai-personal-guide h6 {
    border: none !important;
    padding: 0 !important;
}

/* ⚠️ 关键：反向命中祖先容器！
   主题结构是：article.post > .entry-content > .wuchai-personal-guide
   之前的选择器只命中了「里面的子元素」，
   但主题给 padding/border 加在「外面的祖先」上。
   :has() 能选到「包含 .wuchai-personal-guide 的那个祖先」。 */
article:has(.wuchai-personal-guide),
.post:has(.wuchai-personal-guide),
.card:has(.wuchai-personal-guide),
.entry-content:has(.wuchai-personal-guide),
.entry-summary:has(.wuchai-personal-guide),
.site-main:has(.wuchai-personal-guide) > article,
body:has(.wuchai-personal-guide) .site-content > article {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* 导游助手综合页面样式 */
/* 音频播放器 & 语音列表 所有按钮的彻底重置（防止主题加的全局button样式） */
.audio-player-overlay button,
.audio-card button,
.audio-guide-card button,
.audio-player-overlay button:hover,
.audio-card button:hover,
.audio-guide-card button:hover,
.audio-player-overlay button:focus,
.audio-card button:focus,
.audio-guide-card button:focus,
.audio-player-overlay button:focus-visible,
.audio-card button:focus-visible,
.audio-guide-card button:focus-visible,
.audio-player-overlay button:active,
.audio-card button:active,
.audio-guide-card button:active {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 播放器关闭按钮：深色 overlay 上必须是白背景+深色图标才看得见 */
.audio-player-overlay .player-close {
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #ddd !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* 列表里的播放按钮：无边框无背景，只留深棕色三角形 */
.audio-card .play-btn,
.audio-guide-card .play-audio-btn {
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    width: 45px !important;
    height: 45px !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.audio-card .play-btn::before,
.audio-guide-card .play-audio-btn::before {
    content: '' !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 11px solid transparent !important;
    border-bottom: 11px solid transparent !important;
    border-left: 17px solid #d97757 !important;  /* 主题暖橙色，协调好看 */
    position: absolute !important;
    left: 54% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.wuchai-tour-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 顶部导航栏 */
.tour-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    gap: 5px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-tab.active {
    background: white;
    color: #d97757;
    font-weight: 500;
}

/* 主内容区域 */
.tour-content {
    background: #fff8f0;
    border-radius: 15px;
    padding: 20px;
    min-height: 500px;
}

/* 标签页内容 */
.tab-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 搜索区域 */
.search-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    position: relative;
}

.search-section .region-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #d97757;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.search-section .region-selector:hover {
    transform: scale(1.02);
}

.search-section .search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-section .search-box input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-section .search-box input:focus {
    outline: none;
    border-color: #d97757;
}

.search-section .search-icon, 
.search-section .clear-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.search-section .clear-icon {
    color: #999;
    display: none;
}

/* 功能入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 119, 87, 0.2);
    border-color: #d97757;
}

.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.action-name {
    font-weight: 600;
    color: #333;
}

/* 通用区块样式 */
.section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.pg-filter-bar select,
.section-header select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}
.pg-filter-bar select:focus,
.section-header select:focus {
    border-color: #d97757;
}

/* 分页导航 */
.pg-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 16px 0;
}
.pg-pagination.show {
    display: flex;
}
.pg-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    box-shadow: none !important;
    outline: none !important;
}
.pg-page-btn:hover:not(.disabled):not(.active) {
    color: #d97757;
    border-color: #d97757;
}
.pg-page-btn.active {
    background: #d97757;
    color: #fff;
    border-color: #d97757;
}
.pg-page-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
}
.pg-page-dots {
    color: #999;
    font-size: 13px;
    padding: 0 4px;
}
.pg-page-total {
    margin-left: 12px;
    color: #999;
    font-size: 12px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.view-all {
    padding: 8px 16px;
    background: #d97757;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.view-all:hover {
    background: #c46a4b;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

/* 热门景点网格 */
/* 景点列表 —— 改成左图右文纵向排列，和路线一致 */
.attractions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attraction-card {
    display: flex;
    gap: 20px;
    height: 150px;
    align-items: stretch;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.attraction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.attraction-image {
    width: 200px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.attraction-info {
    padding: 14px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.attraction-name {
    font-weight: 600;
    font-size: 17px;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attraction-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
    line-height: 1.5;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}

.attraction-description {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* 攻略列表 */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-card {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.guide-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.guide-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.guide-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.guide-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.guide-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 路线列表 */
.routes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.route-card {
    display: flex;
    gap: 20px;
    height: 150px;
    align-items: stretch;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.route-image {
    width: 200px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.route-info {
    padding: 14px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.route-name {
    font-weight: 600;
    font-size: 17px;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #888;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
}

.route-description {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* 语音讲解列表 */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 15px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    flex-wrap: nowrap;          /* 🆕 强制不换行 */
    overflow: hidden;           /* 🆕 内容溢出安全 */
}

.audio-cover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;             /* 🆕 封面不被压缩 */
    border-radius: 10px;
    object-fit: cover;
}

.audio-info {
    flex: 1;
    min-width: 0;               /* 🆕 防止文字撑爆布局 */
    overflow: hidden;
}

.audio-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.audio-attraction {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.audio-duration {
    font-size: 13px;
    color: #666;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;              /* 🆕 播放区域不被挤掉 */
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: none;
}



/* 地区选择器弹窗 */
.region-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.region-picker {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 70vh;
    overflow: hidden;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.picker-title {
    font-size: 17px;
    font-weight: 600;
}

.picker-close {
    cursor: pointer;
    color: #999;
    font-size: 22px;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(70vh - 70px);
}

.region-item {
    padding: 14px;
    text-align: center;
    background: #fff8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.region-item:hover {
    background: #d97757;
    color: white;
}

/* 搜索结果弹窗 */
.search-results {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.results-header span:first-child {
    font-weight: 600;
}

.close-results {
    cursor: pointer;
    color: #999;
}

.results-list {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: #fff8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 15px;
}

.result-type {
    font-size: 13px;
    color: #999;
}

/* 详情页通用样式 */
.wuchai-attraction-detail,
.wuchai-guide-detail,
.wuchai-route-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 加载状态 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d97757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading span {
    color: #999;
    font-size: 16px;
}

/* 详情内容 */
.detail-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* 顶部图片 */
.detail-header {
    position: relative;
}

.cover-image-wrapper {
    position: relative;
}

.cover-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #e0e0e0;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.attraction-title {
    color: white;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.attraction-rating {
    color: white;
    font-size: 15px;
}

.route-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.route-title-overlay h1 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

/* 标题区域 */
.title-section {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.title-section h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.guide-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 14px;
}

/* 基本信息 */
.info-section {
    padding: 25px;
    background: #fff8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-content {
    text-align: center;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* 描述区域 */
.description-section,
.content-section {
    padding: 25px;
}

.description-section h3,
.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.description-content,
.guide-content {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.description-content p,
.guide-content p {
    margin: 0 0 15px 0;
}

.guide-content h1,
.guide-content h2,
.guide-content h3 {
    color: #333;
    margin: 20px 0 10px 0;
}

.guide-content ul,
.guide-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.guide-content li {
    margin-bottom: 8px;
}

.guide-content strong {
    color: #333;
    font-weight: 600;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* 交通方式区域 */
.transport-section {
    padding: 0 25px 25px;
}

.transport-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.transport-list {
    background: #fff8f0;
    border-radius: 12px;
    padding: 15px;
}

.transport-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.transport-item:last-child {
    border-bottom: none;
}

.transport-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.transport-info {
    flex: 1;
    min-width: 0;
}

.transport-type {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.transport-detail {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

.transport-time {
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 费用明细区域 */
.expenses-section {
    padding: 0 25px 25px;
}

.expenses-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.expenses-list {
    background: #fff8f0;
    border-radius: 12px;
    padding: 15px;
}

.expense-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-info {
    flex: 1;
}

.expense-category {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.expense-detail {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

.expense-amount {
    font-size: 16px;
    font-weight: 600;
    color: #d97757;
}

.expenses-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px 15px 0;
    margin-top: -15px;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #e53935;
    margin-left: 8px;
}

/* 图片展示区域 */
.images-section {
    padding: 0 25px 25px;
}

.images-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* 语音讲解区域 */
.audio-section {
    padding: 0 25px 25px;
}

.audio-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.audio-guides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-guide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff8f0;
    border-radius: 12px;
}

.audio-info {
    flex: 1;
}

.audio-guide-card .audio-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.audio-guide-card .audio-duration {
    font-size: 13px;
    color: #999;
}

.play-audio-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #d97757;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: color 0.2s;
    padding: 8px 12px;
}



.play-audio-btn.playing {
    color: #e53935;
}

/* 途经景点区域 */
.attractions-section {
    padding: 0 25px 25px;
}

.attractions-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.attractions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attraction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff8f0;
    border-radius: 12px;
}

.attraction-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.attraction-thumb-container {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attraction-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.attraction-item .attraction-info {
    flex: 1;
    min-width: 0;
}

.attraction-item .attraction-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.attraction-item .attraction-desc {
    font-size: 13px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-detail-btn {
    padding: 8px 16px;
    background: #d97757;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.view-detail-btn:hover {
    background: #c46a4b;
}

/* 地图区域 */
.map-section {
    padding: 0 25px 25px;
}

.map-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.map-container {
    height: 250px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.map-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.map-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 15px;
}

.map-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #d97757;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.map-action-btn:hover {
    color: #c46a4b;
}

.map-zoom-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-zoom-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.map-zoom-btn:active {
    transform: scale(0.95);
}

.map-nav-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #d97757 0%, #ffab91 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 147, 251, 0.5);
}

.map-nav-btn:active {
    transform: translateY(0);
}

/* 地图降级方案样式 */
.map-fallback {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.map-fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 50%, #7CB342 100%);
    position: absolute;
    top: 0;
    left: 0;
}

.map-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.map-fallback-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.marker-pin {
    font-size: 48px;
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.map-fallback-info {
    position: absolute;
    bottom: 45px;
    left: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.fallback-title {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fallback-address {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fallback-hint {
    font-size: 12px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.map-fallback-action {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    color: #d97757;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.map-fallback-action:hover {
    background: white;
    transform: scale(1.05);
}

.fallback-arrow {
    font-size: 16px;
}

.map-preview {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.map-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 50%, #7CB342 100%);
    position: absolute;
    top: 0;
    left: 0;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.overlay-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.overlay-title {
    font-size: 16px;
    font-weight: 600;
}

.overlay-address {
    font-size: 13px;
    opacity: 0.9;
}

.overlay-hint {
    font-size: 12px;
    opacity: 0.8;
}

.overlay-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(217, 119, 87, 0.8);
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.3s;
}

.overlay-action:hover {
    background: rgba(217, 119, 87, 1);
}

.overlay-arrow {
    font-size: 14px;
}

.map-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.map-icon-large {
    font-size: 48px;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-title {
    font-size: 16px;
    font-weight: 600;
}

.map-hint {
    font-size: 12px;
    opacity: 0.8;
}

.map-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s;
}

.map-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-arrow {
    font-size: 16px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.map-placeholder:hover {
    background: #e8e8e8;
}

.map-icon {
    font-size: 40px;
}

#wuchaiMapInfo {
    color: #999;
    font-size: 14px;
}

/* POI区域 */
.poi-section {
    padding: 0 25px 25px;
}

.poi-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.poi-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.poi-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.poi-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 12px;
}

.poi-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poi-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.poi-distance {
    font-size: 13px;
    color: #999;
}

.poi-nav-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.poi-nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.4);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 25px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
    color: #5d4037;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 87, 0.4);
}

.action-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.action-btn.secondary:hover {
    background: #e8e8e8;
}

.action-btn.secondary.collected {
    background: #fff0f0;
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wuchai-tour-full {
        padding: 15px;
    }

    .tour-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .search-section {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .search-section .region-selector {
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-section .search-box {
        min-width: 0;
        flex: 1;
    }

    .search-section .search-box input {
        padding: 12px 40px 12px 14px;
        font-size: 14px;
    }

    /* AI 图标：从 fixed 浮动改为嵌入搜索栏末尾 */
    .search-section .wuchai-chat-fab {
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        animation: none;
        box-shadow: 0 2px 10px rgba(217, 119, 87, 0.35);
    }
    .search-section .chat-fab-icon {
        font-size: 22px;
        line-height: 1;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .action-icon {
        font-size: 32px;
    }

    .guide-card,
    .route-card,
    .attraction-card {
        flex-direction: column;
        height: auto;
    }

    .guide-image,
    .route-image,
    .attraction-image {
        width: 100%;
        height: 160px;
    }

    .attraction-card .attraction-info,
    .route-card .route-info {
        padding: 14px 16px;
        overflow: visible;
    }

    .attraction-name,
    .route-name {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .attraction-meta,
    .route-meta {
        flex-wrap: wrap;
        white-space: normal;
        gap: 8px 14px;
    }

    .attraction-description {
        -webkit-line-clamp: 3;
    }

    .route-description {
        -webkit-line-clamp: 3;
    }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 🆕 语音列表：保持横向一排不换行，整体缩小自适应 */
    .audio-card {
        gap: 10px;
        padding: 12px;
    }
    .audio-cover {
        width: 60px;
        height: 60px;
    }
    .audio-title {
        font-size: 14px;
    }
    .audio-attraction {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .audio-duration {
        font-size: 12px;
    }
    .audio-card .play-btn,
    .audio-guide-card .play-audio-btn {
        width: 38px;
        height: 38px;
    }
    .audio-card .play-btn::before,
    .audio-guide-card .play-audio-btn::before {
        border-top: 9px solid transparent !important;
        border-bottom: 9px solid transparent !important;
        border-left: 14px solid #d97757 !important;
    }
}

@media (max-width: 480px) {
    .attraction-name {
        font-size: 16px;
    }

    .action-icon {
        font-size: 28px;
    }

    .action-name {
        font-size: 13px;
    }

    .nav-tab span:last-child {
        display: none;
    }
}

/* 音频播放器弹窗 */
.audio-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.audio-player-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.player-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.player-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #ffffff;
    color: #333333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.player-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.player-content {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #ffcc80 0%, #ffe0b2 100%);
}

.player-cover {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.player-info {
    color: white;
}

#playerTitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

#playerAttraction {
    font-size: 14px;
    opacity: 0.9;
}


.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.control-btn {
    border: none;
    background: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: none;
}

.play-pause-btn {
    border: none;
    background: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: none;
}



.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #d97757;
    border-radius: 50%;
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #d97757;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.player-progress span {
    font-size: 12px;
    color: #888;
    min-width: 40px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 15px;
}

.volume-control span {
    font-size: 14px;
    color: #888;
}

.volume-bar {
    flex: 1;
    max-width: 120px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
}

.volume-bar::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ✅ 已统一到顶部 .audio-card .play-btn + .play-btn 规则，不再重复定义 */


/* 详情页响应式 */
@media (max-width: 768px) {
    .wuchai-attraction-detail,
    .wuchai-guide-detail,
    .wuchai-route-detail {
        padding: 15px;
    }
    
    .cover-image {
        height: 220px;
    }
    
    .attraction-title {
        font-size: 22px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-image {
        height: 100px;
    }
    
    .attraction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .attraction-thumb {
        width: 100%;
        height: 150px;
    }
    
    .view-detail-btn {
        width: 100%;
        justify-content: center;
    }
    
    .poi-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        padding: 14px;
    }
}



.nav-tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
}

.nav-tab-link:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: white;
}

.nav-tab-link.active {
    background: white;
    color: #d97757;
}

/* ============ 收藏按钮（卡片右上角的 ♡ / ♥） ============ */
.route-card,
.guide-card {
    position: relative;
}

.fav-btn {
    display: none !important;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #999;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 10;
    -webkit-appearance: none !important;
}

.fav-btn:hover {
    transform: scale(1.15);
    color: #d97757;
}

.fav-btn.favorited {
    color: #e53935;
    animation: favPop 0.3s ease;
}

@keyframes favPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ============ 收藏列表页 ============ */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fav-card .fav-type-tag {
    display: inline-block;
    font-size: 12px;
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.fav-card .fav-time {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}
    font-weight: 500;
}

/* ============ 🆕 AI 导游助手浮动聊天 ============ */
.wuchai-chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80 0%, #ff9a56 100%);
    box-shadow: 0 4px 16px rgba(217, 119, 87, 0.5), 0 0 0 4px rgba(217, 119, 87, 0.1);
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
    animation: fab-bounce 2s infinite;
}
.wuchai-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(217, 119, 87, 0.6), 0 0 0 6px rgba(217, 119, 87, 0.15);
}
@keyframes fab-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.chat-fab-icon { font-size: 28px; line-height: 1; }

/* 聊天弹窗 */
.wuchai-chat-box {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 540px;
    max-height: calc(100vh - 160px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chat-slide-up .25s ease;
}
@keyframes chat-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 头部 */
.chat-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ffcc80 0%, #ff9a56 100%);
    color: #fff;
}
.chat-box-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.chat-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.chat-status { font-size: 11px; opacity: .9; display: flex; align-items: center; gap: 4px; }
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80; display: inline-block;
    box-shadow: 0 0 0 2px rgba(74,222,128,.3);
}
.chat-box-close {
    background: none; border: none; color: #fff;
    cursor: pointer; font-size: 20px; line-height: 1;
    padding: 2px 6px; font-weight: 400;
}
.chat-box-close:hover { color: #fff3e0; }

/* 消息区 */
.chat-box-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-box-messages::-webkit-scrollbar { width: 6px; }
.chat-box-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.chat-msg { display: flex; gap: 8px; max-width: 90%; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-bot  { align-self: flex-start; }

.msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #ffcc80, #ff9a56);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.chat-msg-user .msg-bubble {
    background: linear-gradient(135deg, #ffcc80, #ff9a56);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}
.chat-msg-bot .msg-bubble {
    background: #fff;
    color: #333;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid #eee;
}
.msg-bubble {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

/* 快捷提问 */
.chat-box-quick {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f7f8fa;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.quick-tag {
    font-size: 12px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    color: #d97757;
    transition: all .15s;
}
.quick-tag:hover { background: #ff9a56; color: #fff; border-color: #ff9a56; }

/* 输入区 */
.chat-box-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
}
.chat-box-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    background: #f7f8fa;
    transition: border-color .15s;
}
.chat-box-input input:focus {
    border-color: #ff9a56;
    background: #fff;
}
.chat-send-btn {
    background: linear-gradient(135deg, #ffcc80 0%, #ff9a56 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,119,87,.4);
}
.chat-send-btn:active { transform: translateY(0); }

/* 移动端适配 */
@media (max-width: 480px) {
    /* 小屏幕：在搜索栏里时保持 inline，在搜索栏外才 fixed */
    .search-section .wuchai-chat-fab { right: auto; bottom: auto; width: 40px; height: 40px; }
    .search-section .chat-fab-icon { font-size: 20px; }
    /* 不在搜索栏里的 AI 图标（详情页等）保持 fixed */
    .wuchai-chat-fab:not(.search-section .wuchai-chat-fab) { right: 16px; bottom: 16px; width: 50px; height: 50px; }
    .chat-fab-icon:not(.search-section .chat-fab-icon) { font-size: 24px; }
    .wuchai-chat-box {
        right: 0; bottom: 0; width: 100%; height: 100%; max-width: none; max-height: none;
        border-radius: 0;
        animation: none;
    }
}

/* ============ 🎒 个人导游主页 ============ */
.wuchai-personal-guide {
    width: 100%;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero 区 */
.pg-hero {
    position: relative;
    padding: 40px 30px;
    background: linear-gradient(135deg, #ffcc80 0%, #ff9a56 50%, #d97757 100%);
    border-radius: 0;
    overflow: hidden;
}
.pg-hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="white" opacity="0.2"/></svg>');
    pointer-events: none;
}
.pg-guide-card {
    position: relative;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.pg-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.pg-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
}
.pg-avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.pg-guide-info {
    flex: 1;
    min-width: 0;
    color: #fff;
}
.pg-guide-name {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.pg-guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.pg-tag {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}
.pg-guide-desc {
    margin: 0 0 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.7;
}
.pg-guide-stats {
    display: flex;
    gap: 24px;
}
.pg-stat {
    color: #fff;
}
.pg-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.pg-stat span {
    font-size: 12px;
    opacity: 0.85;
}
.pg-guide-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 33.333%;
    align-items: flex-start;
}
.pg-btn-primary,
.pg-btn-secondary {
    padding: 10px 22px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: normal !important;
    cursor: pointer;
    border: none !important;
    border-style: none !important;
    transition: all .2s;
    white-space: nowrap;
}
.pg-btn-primary {
    background: #fff !important;
    background-color: #fff !important;
    color: #d97757 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}
.pg-btn-primary:hover {
    background: #fff !important;
    color: #d97757 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
.pg-btn-secondary {
    background: rgba(255,255,255,0.25) !important;
    background-color: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-style: solid !important;
    backdrop-filter: blur(4px);
}
.pg-btn-secondary:hover {
    background: rgba(255,255,255,0.4) !important;
    background-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.5) !important;
}

/* ============ 🆕 主体卡片：对齐 tour-guide-full.php 的 .tour-content ============ */
.pg-body {
    background: #fff8f0;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

/* Tab 导航 —— 横向滚动，永不换行 */
.pg-tabs {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;              /* ✅ 强制一行显示，不换行 */
    overflow-x: auto;               /* ✅ 超出时横向滚动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* ✅ iOS 平滑滚动 */
    scroll-behavior: smooth;
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
/* 隐藏横向滚动条但保留可滚动 —— 各浏览器适配 */
.pg-tabs::-webkit-scrollbar {
    height: 0;
    height: 0;   /* Chrome/Safari/Opera */
    display: none; /* Firefox 旧版 */
}
.pg-tabs {
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}
.pg-tab {
    flex-shrink: 0;                 /* ✅ 关键：不让 tab 被挤压缩小！*/
    white-space: nowrap;            /* ✅ tab 标题不换行 */
    padding: 16px 22px;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    font-weight: 500;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
}
.pg-tab:hover {
    color: #d97757;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.pg-tab.active {
    color: #d97757;
    background: transparent !important;
    font-weight: 600;
    border-bottom-color: #d97757 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.pg-tab:focus,
.pg-tab:focus-visible,
.pg-tab:active {
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

/* ================================================
   🔥 对抗主题全局古典 button 样式的彻底重置
   主题强制了 button { padding:0.8em 2em !important;
   letter-spacing:3px; background:#8b4513 !important; }
   这里全部用 !important 覆盖回来
   ================================================ */

/* 1️⃣ Tab 栏按钮：彻底清零主题干扰 */
.pg-tabs .pg-tab,
.pg-tabs button.pg-tab,
.pg-tabs .pg-tab:hover,
.pg-tabs .pg-tab.active,
.pg-tabs .pg-tab:focus,
.pg-tabs .pg-tab:active {
    padding: 16px 22px !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}
.pg-tabs .pg-tab.active {
    color: #d97757 !important;
    border-bottom-color: #d97757 !important;
    font-weight: 600 !important;
}

/* 2️⃣ 地图区域所有按钮：清零主题强制的 padding/letter-spacing */
#wuchaiMapWrap button,
#pgZoomControls button,
#pgZoomControlsFs button,
#pgMapTabs button,
button[data-pgzoom],
button[data-pgzoomfs] {
    padding: 0 !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
    font-weight: normal !important;
    font-size: 14px !important;
    background-image: none !important;
    box-shadow: none !important;
    border-style: solid !important;
    color: #fff !important;
}
/* 3️⃣ 地图右上角全屏按钮（⛶）：固定尺寸 */
#wuchaiMapWrap > button {
    width: auto !important;
    height: auto !important;
    padding: 5px 9px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
}
/* 4️⃣ 地图底部缩放按钮：统一 30×30（非全屏）*/
#pgZoomControls button {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    font-size: 16px !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* 5️⃣ 全屏模式下的缩放按钮：统一 36×36 */
#pgZoomControlsFs button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 18px !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tab 内容 */
.pg-tab-content {
    padding: 24px 0;
}
.pg-tab-panel {
    display: none;
    scroll-margin-top: 64px;
}
.pg-tab-panel.active {
    display: block;
}

/* 卡片网格（路线/景点） */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pg-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    transition: all .2s;
    cursor: pointer;
}
.pg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #ffcc80;
}
.pg-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.pg-card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* 攻略列表 */
.pg-guides-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pg-guide-item {
    background: #fff;
    border-left: 3px solid #ff9a56;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    transition: all .15s;
}
.pg-guide-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pg-guide-item h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #333;
}
.pg-guide-item p {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* 评价 */
.pg-reviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pg-review-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 20px;
}
.pg-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pg-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.pg-reviewer strong {
    display: block;
    font-size: 14px;
    color: #333;
}
.pg-review-stars {
    font-size: 12px;
}
.pg-review-text {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.pg-empty {
    text-align: center;
    color: #aaa;
    padding: 40px;
    font-size: 14px;
}

/* 个人导游主页 - 响应式 */
/* ====== 🆕 微信二维码弹窗 ====== */
.pg-wechat-wrap { position: relative; display: inline-block; }
.pg-wechat-pop {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
    z-index: 9999;
    width: 170px;
    text-align: center;
}
.pg-wechat-pop img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 4px;
    display: block;
    margin: 0 auto;
}
.pg-wechat-pop-tip {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}
.pg-wechat-pop-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}
/* 移动端隐藏绝对定位弹窗（用 JS 全屏遮罩代替） */
@media (max-width: 768px) {
    .pg-wechat-pop { display: none !important; }
}

@media (max-width: 768px) {
    .pg-hero {
        padding: 30px 20px;
    }
    .pg-guide-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pg-guide-info {
        text-align: center;
    }
    .pg-guide-tags {
        justify-content: center;
    }
    .pg-guide-stats {
        justify-content: center;
        gap: 18px;
    }
/* ====== 🆕 微信二维码弹窗 ====== */
.pg-wechat-wrap { position: relative; display: inline-block; }
.pg-wechat-pop {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
    z-index: 9999;
    width: 170px;
    text-align: center;
}
.pg-wechat-pop img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 4px;
    display: block;
    margin: 0 auto;
}
.pg-wechat-pop-tip {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}
.pg-wechat-pop-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}
/* 移动端不显示绝对定位弹窗（用 JS 全屏遮罩） */
@media (max-width: 768px) {
    .pg-wechat-pop { display: none !important; }
}

    /* ====== 移动端强制重排：所有按钮统一 ====== */
    .pg-guide-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        align-content: center !important;
        gap: 8px !important;
        flex: none !important;
        width: 100% !important;
    }
    .pg-guide-actions > div,
    .pg-guide-actions > div:first-of-type {
        width: auto !important;                 /* 干掉旧的 width:100% */
        display: contents !important;            /* 让子元素直接参与父 flex */
        justify-content: center !important;
    }
    /* 大按钮（预约/电话/关注/分享/微信/服务）：36px 高，全统一 */
    .pg-guide-actions .pg-btn-primary,
    .pg-guide-actions .pg-btn-secondary {
        /* —— 颜色：统一深橙棕 —— */
        background: #d97757 !important;
        background-color: #d97757 !important;
        background-image: none !important;
        color: #fff !important;
        border: 1px solid #d97757 !important;
        border-color: #d97757 !important;
        box-shadow: 0 2px 6px rgba(217,119,87,0.35) !important;
        /* —— 尺寸：锁死 36px 高 —— */
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        font-family: inherit !important;
        letter-spacing: 0 !important;
        /* —— 形状 —— */
        border-radius: 20px !important;
        border-style: solid !important;
        /* —— 布局 —— */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        /* —— 交互 —— */
        cursor: pointer !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        position: relative !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        transition: all .15s ease !important;
    }
    /* 小社交图标（邮箱/微信/微博/抖音）：32px 高，同色系 */
    .pg-social-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }
    .pg-social-bar .pg-social-icon {
        /* —— 颜色：同深橙棕 —— */
        background: #d97757 !important;
        background-color: #d97757 !important;
        color: #fff !important;
        /* —— 尺寸：锁死 32px 高 —— */
        height: 32px !important;
        line-height: 32px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        /* —— 形状 —— */
        border-radius: 16px !important;
        /* —— 布局 —— */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 0 0 auto !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: all .15s ease !important;
    }
    .pg-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 12px 12px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .pg-tabs::-webkit-scrollbar {
        display: none;
    }
    .pg-tab {
        padding: 10px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .pg-tab-content {
        padding: 16px;
    }
    .pg-grid {
        grid-template-columns: 1fr;
    }
}