/* style.css */
/* 基础样式 */
:root {
    --cream-white: #F5F3E7;
    --light-yellow: #F8E9C0;
    --clay-brown: #B08F7F;
    --grey-green: #A4B0A6;
    --amber-orange: #D97D54;
}

body {
    margin: 0;
    padding: 0 10px;
    background: var(--cream-white);
    font-family: 'PingFang SC', system-ui;
}

/* 位置信息模块 */
.location-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-yellow);
    border-radius: 6px;
    margin: 8px 0;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clay-brown);
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--amber-orange);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

/* CSS */
/* #搜索模块 */
/* 搜索模块 - 精致版 */
.search-module {
    --primary-color: #D8C1A5;
    --text-primary: #6E655D;
    --text-secondary: #A0988F;
    --bg-color: #FDFBF8;
    --border-color: #EDE5DA;
    padding: 16px 12px;
  }
  
  .search-container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .search-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(168,147,125,0.08);
  }
  
  .search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 4px 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
  }
  
  .search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(216,193,165,0.2);
  }
  
  .search-icon-wrapper {
    padding: 8px 4px 8px 0;
  }
  
  .search-icon {
    color: var(--text-secondary);
    font-size: 20px;
  }
  
  #searchInput {
    flex: 1;
    border: none;
    padding: 10px 8px;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    min-height: 40px;
  }
  
  #searchInput::placeholder {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.2px;
  }
  
  .search-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
  }
  
  .search-action:active {
    transform: scale(0.94);
    background: #C7B198;
  }
  
  /* 标签区域 */
  .search-tags {
    margin-top: 16px;
  }
  
  .tags-scroller {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .tags-scroller::-webkit-scrollbar {
    display: none;
  }
  
  .tag-bubble {
    flex-shrink: 0;
    background: rgba(216,193,165,0.1);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }
  
  .tag-bubble:active {
    background: rgba(216,193,165,0.2);
    border-color: rgba(168,147,125,0.2);
  }
  
  /* 微交互动画 */
  @keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }
  
  .search-action i {
    transition: transform 0.3s ease;
  }
  
  .search-action:active i {
    transform: translateX(2px);
  }
  
  .tag-bubble:active {
    animation: subtleBounce 0.4s ease;
  }
/* 滑动公告模块 */
/* 滑动公告模块 - 莫兰迪色系 */
.announcement-container {
    --mr-primary: #D8C1A5;
    --mr-text: #6E655D;
    --mr-urgent: #E6B8B8;
    --mr-discount: #A3C9AA;
    --mr-border: rgba(168,147,125,0.15);
    
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.announcement-container::before,
.announcement-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 2;
}

.announcement-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.announcement-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.announcement-scroll {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin-right: 20px;
    border-radius: 16px;
    font-size: 14px;
    font-family: -apple-system, "PingFang SC", sans-serif;
}

.announcement-item i {
    margin-right: 8px;
    font-size: 12px;
}

/* 公告类型样式 */
.urgent {
    background: rgba(230,184,184,0.2);
    color: #C76B6B;
}

.discount {
    background: rgba(163,201,170,0.2);
    color: #5A8F6B;
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 鼠标悬停暂停 */
.announcement-container:hover .announcement-scroll {
    animation-play-state: paused;
}

/* 筛选容器 */
.filter-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.filter-title {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-color);
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
}

.toggle-btn i {
    font-size: 0.9rem;
}

.reset-filters {
    padding: 8px 20px;
    background: var(--accent-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-top: 10px;
    transition: all 0.2s ease;
    align-self: flex-end;
}

.reset-filters:hover {
    background: #e0d9c8;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .reset-filters {
        align-self: center;
    }
}
/* 基础样式 */
:root {
    --primary-color: #6D8B74;
    --secondary-color: #A7BEAE;
    --accent-color: #D0C9C0;
    --light-color: #F1F1F1;
    --dark-color: #5F7161;
    --text-color: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

/* 基础样式 */
:root {
    --primary-color: #6D8B74;
    --secondary-color: #A7BEAE;
    --accent-color: #D0C9C0;
    --light-color: #F1F1F1;
    --dark-color: #5F7161;
    --text-color: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

/* 搜索栏 */
/* 搜索栏 - 精致版 */
.search-module {
    --primary-color: #D8C1A5;
    --text-primary: #6E655D;
    --text-secondary: #A0988F;
    --bg-color: #FDFBF8;
    --border-color: #EDE5DA;
    padding: 12px 16px;
  }
  
  .search-wrapper {
    position: relative;
    max-width: 100%;
  }
  
  .search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(152,130,109,0.05);
    overflow: hidden;
  }
  
  .search-input-group {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .search-icon {
    color: var(--text-secondary);
    font-size: 20px;
    margin-right: 8px;
  }
  
  #searchInput {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    min-height: 36px;
  }
  
  #searchInput::placeholder {
    color: var(--text-secondary);
    font-weight: 300;
  }
  
  .search-action {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s ease;
  }
  
  .search-action:active {
    transform: scale(0.94);
    background: #C7B198;
  }
  
  /* 搜索建议框 */
  .suggestions-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .search-input-group:focus-within ~ .suggestions-box,
  .suggestions-box.active {
    max-height: 300px;
  }
  
  .suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .close-suggestions {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px;
  }
  
  .suggestions-list {
    padding: 8px 0;
  }
  
  .suggestion-item {
    padding: 10px 24px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .suggestion-item:active {
    background: rgba(216,193,165,0.1);
  }
  
  /* 微交互 */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .suggestion-item {
    animation: fadeIn 0.3s ease backwards;
  }
  
  .suggestion-item:nth-child(1) { animation-delay: 0.05s }
  .suggestion-item:nth-child(2) { animation-delay: 0.1s }
  .suggestion-item:nth-child(3) { animation-delay: 0.15s }
  .suggestion-item:nth-child(4) { animation-delay: 0.2s }

/* 页面标题 */
.page-title {
    text-align: center;
    margin: 30px 0 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: 300;
}

/* 商家容器 */
.stall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 商家列表 */
.stall-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stall-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stall-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.stall-card-content {
    padding: 18px;
}

.stall-card-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.stall-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stall-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.stall-card-rating {
    display: flex;
    align-items: center;
}

.stall-card-stars {
    color: #ffc107;
    margin-right: 5px;
}

.stall-card-score {
    font-size: 0.9rem;
    color: #888;
}

.stall-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-color);
    margin-right: 5px;
}

/* 商家详情弹窗 */
.stall-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stall-detail-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 商家头部 */
.stall-header {
    position: relative;
    height: 250px;
    display: flex;
    align-items: flex-end;
    color: white;
}

.stall-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.stall-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.stall-basic {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
}

.stall-name {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stall-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.rating-score {
    font-weight: 500;
    margin-right: 10px;
}

.review-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stall-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stall-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 商家内容区 */
.stall-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.stall-info {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.stall-map {
    width: 40%;
    padding: 25px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.map-tip {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* 高德地图样式覆盖 */
.amap-logo, .amap-copyright {
    display: none !important;
}

/* 信息区域样式 */
.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.info-section h3 i {
    margin-right: 8px;
    font-size: 1rem;
}

.location-info p {
    margin-bottom: 10px;
    color: #555;
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn i {
    margin-right: 5px;
}

.nav-btn:hover {
    background-color: var(--dark-color);
}

.stall-desc {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.menu-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}

.menu-item-name {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.menu-item-price {
    color: #d4b499;
    font-weight: 500;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

/* 商家底部 */
.stall-footer {
    display: flex;
    justify-content: center;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.action-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.favorite-btn:hover {
    color: #e74c3c;
    border-color: #f5c6cb;
}

.share-btn:hover {
    color: #3498db;
    border-color: #bee1f4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stall-body {
        flex-direction: column;
    }
    
    .stall-map {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }
    
    .stall-header {
        height: 200px;
    }
    
    .stall-name {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .stall-list {
        grid-template-columns: 1fr;
    }
    
    .stall-header {
        height: 180px;
    }
    
    .stall-basic {
        padding: 20px;
    }
    
    .stall-info, .stall-map {
        padding: 15px;
    }
}
/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--clay-brown);
    font-size: 0.8rem;
    padding: 8px 0;
    flex: 1;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--amber-orange);
    transform: translateY(-5px);
}

.nav-item.active i {
    text-shadow: 0 2px 4px rgba(217, 125, 84, 0.3);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .nav-item span {
        font-size: 0.7rem;
    }
    .nav-item i {
        font-size: 1rem;
    }
}