/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #333;
}

ul, li {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部导航样式 */
.header-top {
    height: 36px;
    line-height: 36px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
}

.top-links a {
    margin-left: 15px;
    color: #666;
}

.top-links a:hover {
    color: #2979ff;
}

.header-main {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: #2979ff;
}

.search-box {
    display: flex;
    width: 500px;
}

.search-box input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 2px solid #2979ff;
    border-right: none;
    outline: none;
}

.search-btn {
    width: 90px;
    height: 40px;
    background: #2979ff;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.nav-cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 10px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #ff2020;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
}

.main-nav {
    height: 50px;
    background: #2979ff;
}

.nav-menu {
    display: flex;
    height: 50px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0 30px;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
}

.nav-menu li.active a,
.nav-menu li a:hover {
    background: #1565c0;
}

/* 底部样式 */
.footer {
    margin-top: 50px;
    padding: 50px 0 20px;
    background: #f5f5f5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    padding: 0 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #666;
}

.footer-col ul li a:hover {
    color: #2979ff;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #999;
    border-top: 1px solid #e5e5e5;
} 