/**
 * 蜂鸟地图 - 组件样式
 * Components Styles for Fengmap Indoor Navigation
 * 
 * 包含：微信Header、搜索组件、按钮组件、移动端面板组件
 */

/* ==================== 微信Header组件 ==================== */

/* 微信头部容器 */
.wechat-header {
    position: relative;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    z-index: 100;
    flex-shrink: 0;
}

/* 状态栏 */
.wechat-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    padding: 0 16px;
    font-size: 12px;
    color: #000000;
    margin-top: 2px;
}

.status-time {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-indicator,
.wifi-indicator,
.battery-indicator {
    display: flex;
    align-items: center;
}

.signal-indicator i,
.wifi-indicator i,
.battery-indicator i {
    font-size: 12px;
    color: #000;
}

/* 导航栏 */
.wechat-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-title {
    flex: 2;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.back-btn {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn i {
    font-size: 14px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* ==================== 搜索组件 ==================== */

/* 搜索区域 */
.search-section {
    background: #fff;
    border-top: 1px solid #EEEEEE;
    padding: 12px 16px 8px 16px;
    flex-shrink: 0;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #F7F8FA;
    border: 1px solid #E4E7ED;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-input-wrapper:hover {
    background: #F0F2F5;
    border-color: #C0C4CC;
}

.search-icon {
    color: #909399;
    font-size: 14px;
    margin-right: 8px;
}

.search-placeholder {
    color: #909399;
    font-size: 14px;
    flex: 1;
}

/* 搜索框右侧收藏按钮 - 黄色五角星 - 强制覆盖原版样式 */
.search-bar .favorite-btn,
.wechat-nav-bar .favorite-btn {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.search-bar .favorite-btn i,
.wechat-nav-bar .favorite-btn i {
    font-size: 18px !important;
    color: #FFB800 !important;
    transition: color 0.2s ease !important;
}

.search-bar .favorite-btn:hover,
.wechat-nav-bar .favorite-btn:hover {
    background: rgba(255, 184, 0, 0.1) !important;
    transform: scale(1.1) !important;
}

.search-bar .favorite-btn:hover i,
.wechat-nav-bar .favorite-btn:hover i {
    color: #FF9500 !important;
}

/* 快捷分类标签容器 */
.category-tags-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tags-container::-webkit-scrollbar {
    display: none;
}

.category-tags {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    min-width: max-content;
}

/* 分类标签 */
.category-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 4px;
    background: #F7F8FA;
    border: 1px solid #E4E7ED;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-tag:hover {
    background: #E6F7FF;
    border-color: #91D5FF;
}

.category-tag.active {
    background: #1890FF;
    border-color: #1890FF;
    color: white;
}

.category-tag i {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.category-tag.active i {
    color: white;
}

.category-tag span {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.category-tag.active span {
    color: white;
}

/* ==================== 搜索模式页面组件 ==================== */

/* 搜索模式容器 - 类似推荐线路的实现方式 */
.search-mode-container {
    padding: 0;
    height: calc(100vh - 140px);
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 搜索模式容器内的键盘占位符 */
.search-mode-container .keyboard-placeholder {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: #F5F5F5;
    border-top: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.search-mode-page .wechat-header {
    flex-shrink: 0;
}

/* 搜索头部 */
.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #EEEEEE;
    background: #fff;
    flex-shrink: 0;
}

.search-header .back-btn {
    width: 40px;
    height: 40px;
    background: #F7F8FA;
    border: 1px solid #E4E7ED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    background: #E6F7FF;
    border-color: #91D5FF;
}

.back-btn i {
    font-size: 16px;
    color: #666;
}

.search-input-active {
    flex: 1;
    display: flex;
    align-items: center;
    background: #F7F8FA;
    border: 1px solid #E4E7ED;
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    max-width: calc(100% - 110px);
    margin-right: 2px;
}

.search-input-active:focus-within {
    background: #fff;
    border-color: #1890FF;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.search-icon-active {
    color: #909399;
    font-size: 14px;
    margin-right: 8px;
}

.search-input-active input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.search-input-active input::placeholder {
    color: #909399;
}

.search-btn-active {
    background: none;
    border: none;
    color: #1890FF;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.favorite-btn-active {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all var(--duration-normal) var(--ease-out) !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-right: 0px;
}

.favorite-btn-active:hover {
    background: var(--glass-bg-light) !important;
    border: none !important;
    transform: scale(1.05);
}

.favorite-btn-active i {
    font-size: 16px;
    color: #FFB800;
    transition: all var(--duration-normal) var(--ease-out);
}

.favorite-btn-active:hover i {
    color: #FFB800;
    filter: drop-shadow(var(--glow-white));
}

/* 搜索分类 */
.search-categories {
    padding: 16px;
    border-bottom: 1px solid #F5F5F5;
    flex-shrink: 0;
    background: #ffffff;
}

.search-category-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.search-category-tags::-webkit-scrollbar {
    display: none;
}

.search-category-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 4px;
    background: #F7F8FA;
    border: 1px solid #E4E7ED;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-category-tag:hover {
    background: #E6F7FF;
    border-color: #91D5FF;
}

.search-category-tag.active {
    background: #1890FF;
    border-color: #1890FF;
    color: white;
}

.search-category-tag i {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.search-category-tag.active i {
    color: white;
}

.search-category-tag span {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.search-category-tag.active span {
    color: white;
}

/* ==================== 移动端结果面板组件 ==================== */

/* 搜索结果面板遮罩层 */
.mobile-results-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.mobile-results-overlay.show {
    opacity: 1;
    display: block;
}

/* 搜索结果面板 */
.mobile-results-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #EEEEEE;
    border-radius: 16px 16px 0 0;
    height: 240px;
    max-height: 240px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-results-panel.show {
    transform: translateY(0);
    display: block;
}

.results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.close-results-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.mobile-results-list {
    max-height: calc(240px - 50px);
    overflow-y: auto;
    padding: 0 16px 16px 16px;
}

.mobile-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.mobile-result-item:last-child {
    border-bottom: none;
}

.mobile-result-info {
    flex: 1;
}

.mobile-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.mobile-result-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.mobile-result-floor {
    background: #E6F7FF;
    color: #1890FF;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.mobile-goto-btn {
    background: #1890FF;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-goto-btn:hover {
    background: #40A9FF;
}

/* ==================== POI信息窗组件 ==================== */

/* POI信息窗弹窗 - 适配手机界面 */
.poi-info-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* POI图片区域 */
.poi-image {
    height: 140px;
    background: linear-gradient(135deg, #F8FDFF 0%, #E3F2FD 50%, #BBDEFB 100%);
    position: relative;
    overflow: hidden;
}

.poi-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F8FDFF 0%, #E3F2FD 50%, #BBDEFB 100%);
    z-index: 1;
}

.poi-image::after {
    content: '🏛️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    z-index: 2;
    opacity: 0.7;
}

.poi-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 3;
}

/* 当有真实图片时隐藏占位符 */
.poi-image.has-image::before,
.poi-image.has-image::after {
    display: none;
}

.modal-header {
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2D3748;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

.poi-basic-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.poi-left-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.poi-right-info {
    display: flex;
    align-items: center;
}

.poi-area {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.poi-hours {
    color: #409eff;
    font-weight: 500;
    font-size: 14px;
}

.poi-floor {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.poi-type {
    background: #EDF2F7;
    color: #4A5568;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.poi-description h4 {
    margin: 0 0 12px 0;
    color: #2D3748;
    font-size: 14px;
    font-weight: 600;
}

.poi-description p {
    margin: 0;
    color: #4A5568;
    line-height: 1.6;
    font-size: 14px;
}

/* POI操作按钮区域 - 4个按钮一排 */
.poi-actions {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    padding-top: 15px;
    display: flex;
    gap: 8px;
}

/* 主要操作按钮 */
.poi-actions .btn-secondary,
.poi-actions .goto-btn-modal {
    flex: 1.2;
    padding: 10px 8px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 图标按钮 - 无边框纯图标 */
.poi-actions .icon-btn {
    flex: 0.8;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none !important;
    outline: none !important;
    border-radius: 50%;
    background: transparent !important;
    color: #4A5568;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.goto-btn-modal {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.goto-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38A169 0%, #2F855A 100%);
}

.btn-secondary {
    background: #E2E8F0;
    color: #4A5568;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

/* 图标按钮悬停效果 */
.poi-actions .share-btn:hover {
    background: rgba(49, 130, 206, 0.1);
    color: #3182CE;
    transform: scale(1.1);
}

.poi-actions .favorite-btn:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
    transform: scale(1.1);
}

.poi-actions .favorite-btn.favorited {
    background: rgba(255, 184, 0, 0.1);
    color: #FFB800;
}

.poi-actions .favorite-btn.favorited i {
    color: #FFB800;
}

/* 五角星收藏按钮悬停效果 */
.poi-actions .favorite-btn:hover {
    background: rgba(255, 184, 0, 0.1) !important;
    color: #FFB800 !important;
    transform: scale(1.1) !important;
}

/* ==================== 路线规划面板样式 ==================== */

/* 路线规划面板 - 按照PRD 2.1.4要求覆盖search-section和bottom-functions区域 */
.app-container .route-info-panel {
    position: absolute !important;
    bottom: 0 !important; /* 靠底部显示 */
    left: 0 !important;
    right: 0 !important;
    height: 200px !important; /* 固定高度，避免过大 */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1200 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* 路线规划头部 */
.route-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.route-title {
    font-size: 18px;
    font-weight: bold;
    color: #2D3748;
}

/* 路线信息 */
.route-info {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #F7FAFC;
    padding: 15px;
    border-radius: 8px;
}

.route-distance {
    font-weight: bold;
    color: #E53E3E;
}

.route-time {
    font-weight: bold;
    color: #38A169;
}

.route-segments {
    font-weight: bold;
    color: #3182CE;
}

/* 路线状态 */
.route-status {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 10px;
    background: #EDF2F7;
    border-radius: 6px;
}

/* 路线按钮区域 */
.route-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-bottom: 20px; /* 确保按钮不贴手机框架底部 */
}

.route-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

/* 强制统一分享和收藏按钮样式 - 解决样式冲突 */
.poi-actions .share-btn,
.poi-actions .favorite-btn {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 10px !important;
    margin: 0 !important;
    flex: 0.8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    font-size: 16px !important;
}

/* ==================== 搜索历史和建议组件 ==================== */

/* 搜索内容区域 */
.search-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

/* 搜索历史 */
.search-history {
    flex: 1;
    padding: 16px;
    padding-bottom: 220px;
    overflow-y: auto;
    background: #ffffff;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-history-header h4 {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.clear-history-btn {
    background: none;
    border: none;
    color: #1890FF;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
}

.search-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
}

.search-history-item:hover {
    background: #F7F8FA;
    margin: 0 -16px;
    padding: 12px 16px;
}

.search-history-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.search-history-icon {
    color: #909399;
    font-size: 14px;
}

.search-history-keyword {
    color: #333;
    font-size: 14px;
}

.delete-history-btn {
    background: none;
    border: none;
    color: #909399;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 12px;
}

.search-history-item:hover .delete-history-btn {
    opacity: 1;
}

.delete-history-btn:hover {
    color: #f56565;
    opacity: 1;
}

/* 搜索建议 */
.search-suggestions {
    flex: 1;
    padding: 16px;
    padding-bottom: 220px;
    overflow-y: auto;
    background: #ffffff;
}

/* 键盘提示文字样式 */
.keyboard-hint {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.search-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background: #F7F8FA;
    margin: 0 -16px;
    padding: 12px 16px;
}

.search-suggestion-icon {
    color: #909399;
    font-size: 16px;
}

.search-suggestion-text {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* 键盘占位符 */
.keyboard-placeholder {
    height: 200px;
    background: #F5F5F5;
    border-top: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.keyboard-hint {
    color: #999;
    font-size: 14px;
    text-align: center;
}
/* ==================== 删除确认弹窗组件 ==================== */

/* 适配手机界面，无背景蒙版 */
.delete-confirm-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.delete-confirm-modal.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
}

.delete-confirm-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.delete-confirm-modal .modal-overlay {
    display: none; /* 移除背景蒙版 */
}

.delete-confirm-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.delete-confirm-modal .modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.delete-confirm-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.delete-confirm-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.delete-confirm-modal .modal-body p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.delete-confirm-modal .warning-text {
    color: #ff6b6b !important;
    font-size: 14px;
    font-weight: 500;
}

.delete-confirm-modal .modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-confirm-modal .btn-cancel,
.delete-confirm-modal .btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.delete-confirm-modal .btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.delete-confirm-modal .btn-cancel:hover {
    background: #e0e0e0;
}

.delete-confirm-modal .btn-confirm {
    background: #ff6b6b;
    color: white;
}

.delete-confirm-modal .btn-confirm:hover {
    background: #ff5252;
}

/* ==================== AR内容触发弹窗组件 ==================== */
.ar-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-prompt-modal.hidden {
    display: none;
}

.ar-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.ar-prompt-container {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 180px;
    /* 添加移入特效 */
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    overflow: hidden;
}

.ar-prompt-container.show {
    opacity: 1;
    transform: scale(1);
}

.ar-prompt-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.ar-prompt-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--shine-gradient);
    border-radius: 50%;
    pointer-events: none;
}

.ar-prompt-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ar-prompt-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

.ar-prompt-actions {
    display: flex;
    gap: 12px;
}

.ar-prompt-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-prompt-btn.secondary {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
}

.ar-prompt-btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.ar-prompt-btn.primary {
    background: #007AFF;
    color: white;
    border: 1px solid #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.ar-prompt-btn.primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* ==================== Toast 通知样式 ==================== */

.toast-notification {
    /* 位置样式将由JavaScript动态设置 */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* 初始状态，用于动画 */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    color: #2D3748;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0; /* 初始透明度 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 动画 */
    max-width: 280px;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    pointer-events: none; /* 确保不阻挡下方元素的点击 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}