 /* 全局样式重置 - 消除浏览器默认样式 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  }
  /* 全局变量 - 方便后续修改主色调/辅助色 */
  :root {
    --primary: #4CAF50; /* 主色调：青绿色（生活/美食主题） */
    --primary-light: #e8f5e9; /* 主色浅背景 */
    --primary-dark: #388E3C; /* 主色加深（hover） */
    --text-main: #333; /* 主要文字色 */
    --text-secondary: #666; /* 次要文字色 */
    --text-light: #999; /* 浅色文字 */
    --bg-main: #f9f9f9; /* 页面主背景 */
    --bg-white: #fff; /* 白色背景（卡片/容器） */
    --border: #eee; /* 边框色 */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
    --transition: all 0.3s ease; /* 统一过渡效果 */
  }
  body {
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
  }
  /* 通用容器 - 限定PC端宽度，居中显示（1200px黄金宽度） */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  /* 通用按钮样式 */
  .btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
  }
  .btn:hover {
    background-color: var(--primary-dark);
  }
  .btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
  }
  .btn-outline:hover {
    background-color: var(--primary-light);
  }
  /* 通用标题样式 - 区分一级/二级标题 */
  .title-h2 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
  }
  .title-h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-main);
  }
  /* 清除浮动 - 兼容旧浏览器 */
  .clearfix::after {
    content: "";
    display: block;
    clear: both;
  }
  /* 隐藏元素 */
  .hidden {
    display: none;
  }

  /************************** 1. 顶部导航栏（PC端核心） **************************/
  .header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999; /* 导航栏悬浮在最上层 */
    box-shadow: var(--shadow);
  }
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  /* LOGO */
  .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  .logo i {
    margin-right: 8px;
  }
  /* 一级导航 */
  .nav-main {
    display: flex;
    list-style: none;
  }
  .nav-main > li {
    position: relative;
    margin: 0 15px;
  }
  .nav-main > li > a {
    display: block;
    height: 80px;
    line-height: 80px;
    font-size: 16px;
    color: var(--text-main);
    text-decoration: none;
    padding: 0 5px;
    transition: var(--transition);
  }
  /* 核心栏目标色突出（生活技巧/美食专区/场景好物） */
  .nav-main > li.nav-core > a {
    color: var(--primary);
    font-weight: 500;
  }
  .nav-main > li > a:hover {
    color: var(--primary);
  }
  /* 二级下拉菜单 */
  .nav-sub {
    position: absolute;
    top: 90px;
    left: 0;
    width: 200px;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 998;
  }
  .nav-sub > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-sub > li:last-child {
    border-bottom: none;
  }
  .nav-sub > li > a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
  }
  .nav-sub > li > a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 20px;
  }
  /* 鼠标hover显示二级菜单 */
  .nav-main > li:hover .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* 导航右侧：搜索+快捷入口 */
  .nav-right {
    display: flex;
    align-items: center;
  }
  /* 搜索框 */
  .search-box {
    position: relative;
    margin-right: 20px;
  }
  .search-box input {
    width: 220px;
    height: 38px;
    padding: 0 15px 0 35px;
    border: 1px solid var(--border);
    border-radius: 19px;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
  }
  .search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
  }
  .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-light);
  }
  /* 快捷入口（订单/收藏） */
  .nav-utils {
    display: flex;
    align-items: center;
  }
  .nav-utils a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    margin-left: 10px;
    transition: var(--transition);
  }
  .nav-utils a:hover {
    background-color: var(--primary);
    color: #fff;
  }

  /************************** 2. 轮播图（首页焦点区） **************************/
  .banner {
    width: 100%;
    height: 450px;
    background-color: #eee;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
  }
  .banner-slide {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
  }
  .banner-item {
    flex: 1 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  /* 轮播图指示器 */
  .banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
  }
  .banner-dots li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
  }
  .banner-dots li.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 6px;
  }
  /* 轮播图左右箭头 */
  .banner-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  .banner-arrows a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
  }
  .banner-arrows a:hover {
    background-color: var(--primary);
  }

  /************************** 3. 核心内容区：美食专区+生活技巧（双列布局） **************************/
  .content-core {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
  }
  .content-core .column {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
  }
  /* 技巧卡片列表 */
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  .skill-card {
    width: calc(50% - 10px);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
  }
  .skill-card:hover {
    transform: translateY(-5px);
  }
  .skill-card-img {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .skill-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  .skill-card:hover .skill-card-img img {
    transform: scale(1.05);
  }
  .skill-card-title {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .skill-card-desc {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
  }
  .skill-card-desc i {
    font-size: 12px;
    margin-right: 4px;
  }
  /* 更多按钮 */
  .more-btn {
    margin-top: 20px;
    text-align: right;
  }

  /************************** 4. 电商转化区：场景好物+新品推荐+优惠活动（三列布局） **************************/
  .goods-area {
    margin-bottom: 60px;
  }
  .goods-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .goods-column {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  /* 优惠活动特殊标色 */
  .goods-column.promotion {
    border-top: 4px solid #FF5722;
  }
  .goods-column.promotion .title-h3 {
    color: #FF5722;
  }
  .goods-column.promotion .btn {
    background-color: #FF5722;
  }
  .goods-column.promotion .btn:hover {
    background-color: #E64A19;
  }
  /* 商品卡片 */
  .product-card {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
  }
  .product-card:last-child {
    border-bottom: none;
  }
  .product-card:hover {
    background-color: var(--primary-light);
    padding-left: 5px;
  }
  .product-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
  }
  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-info {
    flex: 1;
    overflow: hidden;
  }
  .product-name {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-price {
    font-size: 14px;
    color: #FF5722;
    font-weight: 500;
  }
  .product-price del {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 5px;
    font-weight: normal;
  }

  /************************** 5. 专题合集（通栏卡片） **************************/
  .topic-area {
    margin-bottom: 60px;
  }
  .topic-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .topic-card {
    flex: 1;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
  }
  .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .topic-card-img {
    width: 100%;
    height: 100%;
  }
  .topic-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  .topic-card:hover .topic-card-img img {
    transform: scale(1.05);
  }
  .topic-card-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
  }
  .topic-card-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
  }
  .topic-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
  }
  .topic-card-desc {
    font-size: 12px;
    opacity: 0.9;
  }

  /************************** 6. 底部导航（页脚） **************************/
  .footer {
    background-color: var(--text-main);
    color: #fff;
    padding: 50px 0 20px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col {
    width: 22%;
  }
  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  .footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
  }
  .footer-col ul {
    list-style: none;
  }
  .footer-col ul li {
    margin-bottom: 10px;
  }
  .footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
  }
  .footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
  }
  .footer-col .contact {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
  }
  .footer-col .contact i {
    font-size: 16px;
    margin-right: 10px;
    color: var(--primary);
  }
  .footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding-top: 20px;
  }

  /************************** 适配小屏PC（1200px以下） **************************/
  @media (max-width: 1200px) {
    .nav-main > li {
      margin: 0 10px;
    }
    .skill-card {
      width: 100%;
    }
    .goods-list {
      flex-wrap: wrap;
    }
    .goods-column {
      width: calc(50% - 10px);
    }
    .topic-list {
      flex-wrap: wrap;
    }
    .topic-card {
      width: calc(50% - 10px);
      margin-bottom: 20px;
    }
  }