/* 全局样式 */
body {
    font-family: "Microsoft Yahei", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: #333;
    outline: none;
}

a:hover {
    text-decoration: none;
    color: #c00;
    outline: none;
}

a:focus {
    outline: none;
}

/* 头部 */
.header-top {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    text-align: left;
}

.header-right {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.header-right .hotline {
    color: #f00;
    font-weight: bold;
}

.search-box {
    margin: 10px 0;
    text-align: center;
}

.search-box input {
    border: 1px solid #ccc;
    padding: 0 5px;
}

.search-box button {
    height: 30px;
    background: #c00;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.hot-keywords {
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* 导航栏 */
.nav-main {
    background: #c00;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-main .nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

/* 去掉导航li外部间距 */
.nav-main .nav li {
    padding: 10px 20px;
    margin: 0 !important;
}

.nav-main .nav li a {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.nav-main .nav li a:hover {
    color: #fff;
}

/* 主体 */
.main-container {
    display: flex;
    margin: 0 auto;
    max-width: 1200px;
    background: url('../images/carousel/1.jpg') no-repeat;
    background-size: 100% 100%;
    /* opacity: 0.8; */
}

.sidebar {
    width: 180px;
    background: #f9f9f9;
    padding: 10px;
    border-right: 1px solid #eee;
}

.sidebar .category-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #c00;
}

.sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.sidebar .category-list li {
    margin-bottom: 8px;
    padding-left: 10px;
    position: relative;
    cursor: pointer;
}

.sidebar .category-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #666;
}

/* 分类列表 hover 效果 */
.sidebar .category-list li:hover {
    color: #c00;
    font-weight: bold;
}

.banner {
    flex: 1;
    text-align: center;
}

.banner img {
    width: 100%;
    max-height: 400px;
}

.notice-bar {
    width: 200px;
    padding: 10px;
    border-left: 1px solid #eee;
}

.notice-bar .notice-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #c00;
}

.notice-bar .notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.notice-bar .notice-list li {
    margin-bottom: 8px;
    cursor: pointer;
}

/* 最新公告 hover 效果 */
.notice-bar .notice-list li:hover {
    color: #c00;
    font-weight: bold;
}

.notice-bar .ad-img {
    margin-top: 15px;
    width: 116px;
}

/* 商品板块 */
.product-recommend,
.hot-brand {
    max-width: 1200px;
    margin: 20px auto;
}

.title {
    font-weight: bold;
    color: #c00;
    border-bottom: 2px solid #c00;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 16px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    text-align: center;
    margin-bottom: 15px;
}

/* 商品图片默认大小 */
.product-item img {
    height: auto;
    object-fit: cover;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

/* 商品图片 hover 边框+阴影 */
.product-item img:hover {
    border-color: #c00;
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.3);
}

.product-item .name {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.hot-brand-cate {
    background: #f5f5f5;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.hot-brand-cate a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 8px 5px 0;
    font-size: 13px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.hot-brand-cate a:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* 底部 */
.footer {
    margin-top: 40px;
    padding: 30px 0;
    background: #c00;
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}