body {
    margin: 0;
    background-color: #f4f4f4;
}

/* 顶部导航 */
.top-nav {
    background-color: #ff5500;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
}
.search-box input {
    width: 300px;
    padding: 6px;
    border: none;
    border-radius: 3px;
}
.search-box button {
    background-color: white;
    color: #ff5500;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}
.user-actions a:hover {
    color: #333333;
}

/* 轮播图 */
.banner-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
}
#banner-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink:0;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
}
.arrow.left {
    left: 20px;
}
.arrow.right {
    right: 20px;
}
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.dots span {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    display: inline-block;
    background-color: #888;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dots span.active {
    background-color: #fff;
}

/* 分类导航栏 */
.category-nav {
    background-color: #fff;
    z-index: 9999;
}
#nav1{
    position: sticky;
    top: 0;
    left: 100px;
}
.category-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px 50px;
}
.category-nav li {
    margin-right: 35px;
}
.category-nav a {
    text-decoration: none;
    color: #333;
}
.category-nav a:hover {
    color: #ff5500;
}

/* 侧边栏 */
aside {
    position: fixed;
    right: 20px;
    top: 350px;
    width: 70px;
    background-color: rgba(200,180,220,0.7);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    list-style: none;
    z-index: 9999;
}
.aside-a{
    text-decoration: none;
    display: block;
    height: 35px;
}
.aside-a:link{
    color: black;
}
.aside-a:hover{
    color: yellow;
}
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 商品展示 */
.products {
    padding: 30px 50px;
    background-color: #fff;
    margin-top: 20px;
}
.products h2 {
    color: #333;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-card {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    transition: all 0.2s;
}
.product-card:hover {
    transform: scale(1.05);
}
.product-card img {
    border-radius: 8px;
}
.price {
    color: #ff5500;
    font-weight: bold;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}
