/* 基础样式 - 与首页保持一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
}

body {
    background: linear-gradient(135deg, #fef8f8 0%, #fff8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #e01b24 0%, #a80f15 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.8rem;
    color: #ffd43b;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo-text h1 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.1rem;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
}

/* 美食英雄区域 */
.food-hero {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(224, 27, 36, 0.2);
    background-image: url('../文旅/美食背景4.jpg');
    background-size: cover;
    background-position: center;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 0.8; /* 降低透明度，让背景图片显示出来 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content {
    color: white;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd43b;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 美食探索面板 */
.food-explore-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 紧凑型美食分类和搜索 */
.food-categories-compact {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.categories-title {
    font-size: 1.5rem;
    color: #e01b24;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.category-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.category-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
}

.category-item-compact:hover {
    background: #fff5f5;
    transform: translateY(-3px);
}

.category-item-compact.active {
    background: #fff5f5;
    border-color: #e01b24;
    box-shadow: 0 5px 15px rgba(224, 27, 36, 0.1);
}

.category-icon-compact {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.category-text-compact h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.category-text-compact p {
    font-size: 0.75rem;
    color: #666;
}

.food-search-compact {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.search-box-compact {
    position: relative;
    flex: 1;
}

.search-input-compact {
    width: 100%;
    padding: 12px 20px;
    padding-left: 45px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-compact:focus {
    outline: none;
    border-color: #e01b24;
    box-shadow: 0 0 0 3px rgba(224, 27, 36, 0.1);
}

.search-icon-compact {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* 美食展示网格 */
.food-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.food-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.grid-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    border-color: #e01b24;
    color: #e01b24;
}

.view-btn.active {
    background: #e01b24;
    border-color: #e01b24;
    color: white;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* 美食卡片样式 */
.food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.food-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(224, 27, 36, 0.15);
}

.food-card.featured {
    border: 3px solid #ffd43b;
}

.food-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-card:hover .food-image img {
    transform: scale(1.05);
}

.food-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
}

.badge-region {
    background: rgba(26, 95, 180, 0.9);
}

.badge-popular {
    background: rgba(224, 27, 36, 0.9);
}

.badge-featured {
    background: rgba(255, 212, 59, 0.9);
}

.food-rating {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}


.food-content {
    padding: 25px;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.food-name {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 700;
}

.food-price {
    font-size: 1.2rem;
    color: #e01b24;
    font-weight: 700;
}

.food-region {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.food-desc {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
    height: 60px;
    overflow: hidden;
}

.food-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.food-tag {
    padding: 4px 12px;
    background: #f5f7fa;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #666;
}

.food-tag.hot {
    background: #ffeaea;
    color: #e01b24;
}

.food-tag.traditional {
    background: #e8f4ff;
    color: #1a5fb4;
}

.food-tag.rural {
    background: #e8f7ea;
    color: #2ec27e;
}

.food-tag.seasonal {
    background: #fff5e6;
    color: #ff7f50;
}

.food-actions {
    display: flex;
    gap: 10px;
}

.food-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.food-btn.primary {
    background: linear-gradient(135deg, #e01b24, #ff7f50);
    color: white;
}

.food-btn.secondary {
    background: #f5f7fa;
    color: #555;
}

.food-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 美食详情模态框 */
.food-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

/* 美食地图区域 */
.food-map-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.food-map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: #f9fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-text {
    font-size: 0.9rem;
    color: #666;
}

/* 视频交互体验区 - 替换原美食故事区 */
.video-interactive-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.video-main-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.video-player-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(224, 27, 36, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.hotspot:hover {
    background: rgba(224, 27, 36, 1);
    transform: scale(1.2);
}

.hotspot i {
    color: white;
    font-size: 14px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 27, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(224, 27, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 27, 36, 0); }
}

.video-controls-panel {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-wrap: wrap;
}

.video-control-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(224, 27, 36, 0.8);
    transform: translateY(-3px);
}

.video-control-btn.active {
    background: #e01b24;
}

.video-interactive-sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-info-card.active {
    background: rgba(224, 27, 36, 0.2);
    border-left: 4px solid #e01b24;
}

.video-timestamp {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.video-timestamp:hover .timestamp-time {
    color: #ffd43b;
}

.timestamp-time {
    color: #ff7f50;
    font-weight: bold;
    font-size: 1.1rem;
}

.timestamp-title {
    color: white;
    font-size: 1rem;
}

.timestamp-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.video-info-card.active .timestamp-desc {
    display: block;
}

.video-3d-viewer {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    background: #000;
}

.video-3d-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.video-3d-canvas:active {
    cursor: grabbing;
}

.video-3d-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.video-3d-btn {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-3d-btn:hover {
    background: rgba(224, 27, 36, 0.8);
    transform: scale(1.1);
}

.video-3d-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 10;
}

.video-3d-model-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.video-3d-model-btn {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.video-3d-model-btn:hover {
    background: rgba(224, 27, 36, 0.5);
}

.video-3d-model-btn.active {
    background: #e01b24;
}

/* AI助手悬浮窗样式 - 美食专用 - 增强版（可拖动+可滚动） */
.ai-floating-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    overflow: hidden;
    display: none;
    flex-direction: column;
    transition: all 0.3s ease;
    resize: both;
    min-width: 300px;
    min-height: 400px;
    max-width: 600px;
    max-height: 700px;
    user-select: none;
}

.ai-header {
    background: linear-gradient(135deg, #e01b24 0%, #ff7f50 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    user-select: none;
    -webkit-app-region: drag;
}

.ai-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-header h3 i {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ai-controls {
    display: flex;
    gap: 8px;
    -webkit-app-region: no-drag;
    cursor: default;
}

.ai-controls .ai-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

.ai-controls .ai-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ai-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafc;
    scroll-behavior: smooth;
    max-height: calc(100% - 120px);
}

.ai-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
    background: #e01b24;
}

.ai-message {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 85%;
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
    animation: fadeInUp 0.3s ease forwards;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ai-message.bot {
    background: white;
    border: 1px solid #e8f0f7;
    align-self: flex-start;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-message.user {
    background: linear-gradient(135deg, #e01b24, #ff7f50);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    flex-direction: row-reverse;
}

/* 消息头像 */
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-message.bot .message-avatar {
    background: linear-gradient(135deg, #e01b24, #ff7f50);
    color: white;
    box-shadow: 0 2px 8px rgba(224, 27, 36, 0.3);
}

.ai-message.user .message-avatar {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 消息内容 */
.message-content {
    flex: 1;
}

.message-content h4 {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.ai-message.user .message-content h4 {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.message-content-text {
    white-space: pre-line;
}

.ai-message p {
    margin: 0 0 8px 0;
}

.ai-message p:last-child {
    margin-bottom: 0;
}

.ai-message ul, .ai-message ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-message li {
    margin-bottom: 4px;
}

.ai-message strong {
    color: inherit;
}

.ai-input-area {
    padding: 20px;
    border-top: 1px solid #e0e6ef;
    background: white;
    flex-shrink: 0;
}

.ai-input-group {
    display: flex;
    gap: 10px;
}

.ai-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.ai-input:focus {
    border-color: #e01b24;
    box-shadow: 0 0 0 3px rgba(224, 27, 36, 0.1);
}

.ai-send {
    background: linear-gradient(135deg, #e01b24, #ff7f50);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(224, 27, 36, 0.3);
}

.ai-quick-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.ai-quick-btn {
    padding: 8px 12px;
    background: #f0f4f9;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-quick-btn:hover {
    background: #e0e6ef;
    transform: translateY(-2px);
}

.ai-floating-window::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nw-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(224, 27, 36, 0.3) 50%);
    border-radius: 0 0 20px 0;
    pointer-events: none;
}

.ai-toggle-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #ffd43b, #ffb347) !important;
    color: #1a5fb4 !important;
    border: 2px solid rgba(255, 212, 59, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    z-index: 9999 !important;
    box-shadow: 
        0 10px 30px rgba(255, 212, 59, 0.4),
        0 0 20px rgba(255, 179, 71, 0.2),
        0 0 40px rgba(255, 212, 59, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    /* 确保固定位置不受其他元素影响 */
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* 确保按钮始终显示在最前面 */
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ai-toggle-btn:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 
        0 12px 35px rgba(224, 27, 36, 0.5),
        0 6px 15px rgba(0, 0, 0, 0.25);
}

.ai-toggle-btn:active {
    transform: scale(0.95) translateZ(0);
}

.ai-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(56, 139, 253, 0.6),
        0 0 30px rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
}

.ai-toggle-btn:hover::before {
    left: 100%;
}

.ai-toggle-btn i {
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .food-explore-panel {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .video-main-container {
        grid-template-columns: 1fr;
    }
    
    .category-list-compact {
        justify-content: flex-start;
    }
    
    .category-item-compact {
        min-width: 120px;
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .food-grid {
        grid-template-columns: 1fr;
    }
    
    .food-map-section,
    .video-interactive-section {
        padding: 30px 20px;
    }
    
    .ai-floating-window {
        width: 90vw;
        height: 70vh;
        right: 5vw;
        bottom: 20px;
    }
    
    .category-list-compact {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .category-item-compact {
        flex: 0 0 auto;
        min-width: 130px;
    }
    
    .food-search-compact {
        flex-direction: column;
    }
    
    .video-3d-viewer {
        height: 250px;
    }
}

/* 页脚样式 */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e01b24;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #e01b24;
    padding-left: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.95rem;
    color: #777;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
