* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background-color: #f5f7fa;
}

/* 导航 */
.header {
    background: #2E86AB;
    color: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-right: 60px;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
    padding: 0;
    margin: 0;
}
.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}
.nav-list a:hover {
    color: #e3f2fd;
}
.nav-list a.active {
  background: rgba(255,255,255,0.25) !important;
  border-radius: 8px !important;
  font-weight: bold !important;
}

.top-nav{
  background:#409EFF;
  color:#fff;
  padding:12px 0
}
.top-nav .nav-box{
  display:flex;
  justify-content:space-between;
  align-items:center
}
.nav-left a{
  color:#fff;
  margin-right:25px
}
.nav-right a{
  color:#fff
}

.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    width: 220px;
    height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: 18px 0 0 18px;
    outline: none;
}
.search-box button {
    height: 36px;
    padding: 0 15px;
    background: #FFD166;
    border: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
}

/* 横幅 */
.banner {
    width: 90%;
    height: 260px;
    background: #A23B72;
    margin: 20px auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

/* 容器 */
.container {
    width: 90%;
    margin: 0 auto;
}
.title {
    font-size: 20px;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid #2E86AB;
}

.category {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.category-item {
    background: #fff;
    padding: 18px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.25s;
}
.category-item:hover {
    transform: translateY(-4px);
}
.category-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    margin-bottom: 6px;
}
.category-more {
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.category-more span {
    font-size: 28px;
    color: #666;
}

/* 商品卡片 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.goods-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
}
.goods-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.goods-info {
    padding: 12px;
}
.goods-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.goods-price {
    color: #e53935;
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
}
.goods-user {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 底部 */
.footer {
    background: #2E86AB;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* 轮播图样式 */
.carousel {
    width: 100%;
    height: 360px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* 箭头样式 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    color: #2E86AB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-arrow:hover {
    background: #2E86AB;
    color: #fff;
}

/* 小圆点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #2E86AB;
    width: 24px;
    border-radius: 5px;
}