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

html, body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    height: 87px;
    border-bottom: 1px solid #d1d1d1;
    background: #fff;
    position: relative;
    z-index: 100;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Logo样式 */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 35px;
    width: auto;
}

/* PC端导航样式 */
.pc-nav {
    display: flex;
    align-items: center;
}

.cat-menu {
    margin-right: 20px;
}

.cat-list {
    display: flex;
}

.cat-list > li {
    position: relative;
}

.cat-list > li > a {
    display: block;
    padding: 25px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    color: #000;
    border-right: 1px solid #e4e4e4;
    transition: all 0.3s ease;
}

.cat-list > li:first-child > a {
    border-left: 1px solid #e4e4e4;
}

.cat-list > li > a:hover {
    background-color: #f5f5f5;
}

.cat-list > li > dl {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #000;
    display: none;
    z-index: 10;
}

.cat-list > li:hover > dl {
    display: block;
}

.cat-list > li > dl > dt > a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-weight: normal;
    transition: background 0.3s ease;
}

.cat-list > li > dl > dt > a:hover {
    background: #333;
}

/* PC端搜索样式 */
.pc-search {
    display: flex;
}

.pc-search form {
    display: flex;
}

.pc-search input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #c1c1c1;
    width: 200px;
}

.pc-search input[type="submit"] {
    background: #c1c1c1;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* 移动端样式 */
.mobile-nav {
    display: none;
    align-items: center;
}

.mobile-icons {
    display: flex;
    gap: 15px;
}

.mobile-icons i {
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* 移动端搜索框 */
.mobile-search-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 99;
}

.mobile-search-box.active {
    display: block;
}

.mobile-search-box form {
    display: flex;
}

.mobile-search-box input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #c1c1c1;
}

.mobile-search-box input[type="submit"] {
    background: #c1c1c1;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.close-menu {
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list > li > a {
    display: block;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.mobile-submenu {
    display: none;
    background: #f9f9f9;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 15px 12px 30px;
    border-bottom: 1px solid #eee;
}

.mobile-submenu li:last-child a {
    border-bottom: none;
}

.menu-toggle {
    position: relative;
    padding-right: 25px;
}

.menu-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle.active::after {
    content: '\f106';
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .pc-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (min-width: 993px) {
    .mobile-nav {
        display: none;
    }
}