/* 基础样式重置与布局 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
  }
  
  body { 
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif; 
    background-color: #f5f5f5;
    color: #333;
  }
  
  .container {
    max-width: 750px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 60px;
  }
  
  /* 头部导航栏 */
  .header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #0099FF; 
    color: #FFFFFF; 
    padding: 10px 16px; 
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header .title { 
    font-size: 18px; 
    font-weight: bold;
  }
  
  .header .icons { 
    display: flex; 
  }
  
  .header .icons i { 
    font-size: 20px; 
    margin-left: 16px; 
    cursor: pointer;
  }
  
  /* 搜索栏 */
  .search-bar { 
    display: flex; 
    margin: 16px; 
    background-color: #F2F2F2; 
    border-radius: 20px; 
    padding: 8px 16px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .search-bar input { 
    flex: 1; 
    background: none; 
    border: none; 
    outline: none; 
    font-size: 16px; 
    padding: 4px;
  }
  
  .search-bar button { 
    background-color: #0099FF; 
    color: #FFFFFF; 
    border: none; 
    border-radius: 20px; 
    padding: 8px 16px; 
    font-size: 16px; 
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .search-bar button:hover {
    background-color: #0088ee;
  }
  
  /* 分类标签 */
  .category-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .category-tabs .tab {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .category-tabs .tab.active {
    color: #0099FF;
    border-bottom-color: #0099FF;
    font-weight: bold;
  }
  
  .category-tabs .tab:hover {
    color: #0099FF;
  }
  
  /* 内容区域 */
  .content-section {
    padding: 16px;
  }
  
  .section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .section-more {
    font-size: 14px;
    color: #999;
    cursor: pointer;
  }
  
  /* 推荐商家 */
  .store-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .store-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .store-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .store-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
  }
  
  .store-info {
    flex: 1;
    padding: 12px;
  }
  
  .store-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  .store-rating {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
  }
  
  .store-rating .stars {
    color: #FFB800;
    margin-right: 8px;
  }
  
  .store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }
  
  .store-tag {
    background: #FFF2E8;
    color: #FF6600;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
  }
  
  .store-delivery {
    font-size: 12px;
    color: #666;
  }
  
  /* 热门活动 */
  .activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .activity-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .activity-item:hover {
    transform: translateY(-3px);
  }
  
  .activity-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }
  
  .activity-info {
    padding: 8px;
  }
  
  .activity-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  .activity-desc {
    font-size: 12px;
    color: #666;
  }
  
  /* 今日特惠 */
  .discount-section {
    margin: 16px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 8px;
    padding: 16px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .discount-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
  }
  
  .discount-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
  }
  
  .discount-desc {
    font-size: 14px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }
  
  .discount-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 1;
  }
  
  /* 附近商家 */
  .nearby-stores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  
  .nearby-store {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .nearby-store:hover {
    transform: translateY(-3px);
  }
  
  .nearby-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
  }
  
  .nearby-info {
    padding: 8px;
  }
  
  .nearby-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  .nearby-distance {
    font-size: 12px;
    color: #666;
  }
  
  /* 底部导航栏 */
  .footer { 
    display: flex; 
    justify-content: space-around; 
    background-color: #FFFFFF; 
    padding: 10px 16px; 
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    z-index: 100;
  }
  
  .footer .item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
    text-decoration: none;
    color: #666;
  }
  
  .footer .item.active {
    color: #0099FF;
  }
  
  .footer .item i { 
    font-size: 22px; 
    margin-bottom: 4px;
  }
  
  .footer .item span { 
    font-size: 12px; 
  }
  
  /* 响应式调整 */
  @media (max-width: 480px) {
    .activity-grid {
      grid-template-columns: 1fr;
    }
    
    .nearby-stores {
      grid-template-columns: 1fr;
    }
  }