/* 首页布局 */
.home-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 80px; /* 为固定顶部导航留出空间 */
}

/* 左侧边栏 */
.sidebar {
    position: fixed;
    left: 50px;
    top: 140px; /* logo下方60px */
    width: 270px;
    background: #fff;
    z-index: 100;
    padding-top: 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 自定义滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Logo区域 */
/* .logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    padding: 0;
    z-index: 1001;
} */

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 产品分类 */
.category-menu {
    margin-top: 100px; /* 为logo留出空间 */
}

.category-menu h3 {
    margin: 0;
    padding: 10px 0;
    font-size: 16px;
}

.category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-menu a {
    color: #333;
    text-decoration: none;
}

/* 主包装容器 */
.main-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 容器样式 */
.container {
    max-width: none;
    padding: 0;
    width: 100%;
    position: relative;
}

/* 内容盒子 */
.content-box {
    margin-left: 510px;
    margin-top: 140px;
    margin-right: 50px;
    position: relative;
}

/* 主内容区域 */
.main-content {
    margin-left: 510px;
    margin-top: 140px;
    margin-right: 50px;
    width: calc(100% - 560px);
    overflow: visible;
}

/* 搜索框和导航区域 */
.top-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 0;
    background: transparent !important;
}

.search-box {
    flex: 0 0 840px;
    background: transparent !important;
    height: 40px !important;
    margin-left: 0; /* 移除负边距 */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    background: transparent !important;
}

/* 首页轮播图样式 */
.home-banner {
    margin-bottom: 40px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-banner .carousel {
    width: 100%;
}

.home-banner .carousel-inner {
    width: 100%;
}

.home-banner .carousel-item {
    width: 100%;
}

.home-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 覆盖bootstrap默认样式 */
.carousel-inner {
    margin-left: 0 !important;
    width: 100% !important;
}

.carousel {
    margin-left: 0 !important;
    width: 100% !important;
}

/* 首页产品展示区域 */
.home-section {
    margin-bottom: 40px;
}

.home-section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* 首页产品列表 */
.home-product-list {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;  /* 抵消子元素的margin */
}

.home-product-item {
    flex: 0 0 25%;  /* 4列布局 */
    padding: 10px;
    box-sizing: border-box;
}

.home-product-inner {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.home-product-inner:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.home-product-img {
    position: relative;
    padding-top: 100%;  /* 1:1 比例 */
    overflow: hidden;
    margin-bottom: 10px;
}

.home-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.home-product-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 首页新闻列表 */
.home-news-section {
    margin: 30px auto;
    max-width: 100%; /* 确保不超过父容器宽度 */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.home-news-block {
    flex: 1;
    min-width: 300px; /* 最小宽度 */
    max-width: calc(50% - 15px); /* 最大宽度为父容器的一半减去间距的一半 */
}

.home-news-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    position: relative;
    font-weight: 500;
}

.home-news-more {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.home-news-more:hover {
    color: #007bff;
}

.home-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.home-news-item:last-child {
    border-bottom: none;
}

.home-news-card {
    background: #fff;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.home-news-card:hover {
    background: #f8f9fa;
}

.home-news-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.home-news-link:hover {
    color: #007bff;
}

.home-news-date {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.home-news-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .home-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .logo {
        width: auto;
        text-align: center;
    }
    
    .main-content {
        padding-left: 0;
    }
    
    .home-product-item {
        flex: 0 0 33.333%;  /* 3列布局 */
    }
    
    .home-news-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .home-news-section {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .home-product-item {
        flex: 0 0 50%;  /* 2列布局 */
    }
    
    .home-section-title {
        font-size: 20px;
    }
    
    .home-news-title {
        font-size: 18px;
    }
    
    .home-news-section {
        margin: 20px auto;
    }
}

@media (max-width: 576px) {
    .home-product-item {
        flex: 0 0 100%;  /* 1列布局 */
    }
    
    .home-section {
        margin-bottom: 30px;
    }
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* 新闻动态区域 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 100%;
}

/* 新闻标题区域 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    margin-bottom: 25px;
    position: relative;
}

.news-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    padding-bottom: 15px;
}

.news-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #007bff;
    border-radius: 2px;
}

.news-more {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f8f9fa;
}

.news-more:hover {
    color: #007bff;
    background: #e9ecef;
}

/* 新闻列表样式 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
}

.news-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.news-item a:hover {
    color: #007bff;
}

.news-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
    position: relative;
    padding-left: 15px;
}

.news-item-title::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007bff;
}

.news-item-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .news-header {
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-item {
        padding: 12px 15px;
    }
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* 主导航样式 */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 60px;
    line-height: 60px;
}

.main-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap; /* 防止换行 */
}

.main-nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    flex-wrap: nowrap; /* 防止换行 */
}

.main-nav-item {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav-link {
    color: #333;
    font-size: 15px;
    text-decoration: none;
    padding: 0 25px; /* 增加间距 */
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    transition: color 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
}

.main-nav-item:last-child .main-nav-link {
    border-right: none;
}

.main-nav-link:hover,
.main-nav-link.active {
    color: #007bff;
}

/* 响应式处理 */
@media (max-width: 768px) {
    .main-nav-container {
        overflow-x: auto; /* 在小屏幕上允许横向滚动 */
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav-link {
        padding: 0 20px;
    }
}

/* 保持其他样式不变 */

/* 内容区域 */
.content-area {
    background: #fff;
}

/* 首页特定样式 */
.home-container {
    position: relative;
}

/* 首页左侧分类菜单 */
.home-category {
    margin-top: 100px;
}

.home-category h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
}

/* 顶部区域包装器 */
.header-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px; /* 整体向下移动 */
}

/* 搜索框区域 */
.home-search {
    width: 100%;
    padding: 15px;
}

.search-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    width: 560px;
    gap: 0;
}

.search-input {
    width: 490px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 70px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -70px;
    top: 0;
}

.search-btn i {
    font-size: 13px;
    color: #666;
}

.search-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ced4da;
}

.search-btn:hover i {
    color: #333;
}

/* 移动端样式 */
@media screen and (max-width: 576px) {
    .search-input,
    .search-btn {
        height: 36px;
    }
    
    .search-btn {
        width: 60px;
        font-size: 13px;
    }
    
    .search-btn i {
        font-size: 12px;
    }
}

/* 导航区域 */
.header-nav {
    position: absolute;
    left: 1240px;
    margin-top: 70px; /* 与搜索框保持一致 */
}

.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 0 15px;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
    outline: none; /* 移除点击时的边框 */
}

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
    background-color: transparent; /* 确保背景透明 */
}

/* 当前页面激活状态 */
.nav-link.active {
    color: #4a90e2;
}

.nav-link.active::after {
    width: 100%;
}

/* 确保样式优先级 */
body .sidebar {
    position: fixed !important;
    top: 140px !important;
}

/* 首页导航 */
.home-nav {
    display: flex;
    gap: 20px;
}

.home-nav .nav-link {
    font-size: 15px;
}

/* 首页登录按钮 */
.home-login {
    margin-left: auto;
}

/* 首页内容区域 */
.home-content {
    margin: 0; /* 移除所有边距 */
    padding: 0; /* 移除所有内边距 */
}

/* 顶部头部区域样式 */
.top-header {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 100;
}

/* 登录框样式 */
.login-box {
    position: absolute;
    right: 50px; /* 距离右边距离 */
    margin-top: 70px; /* 与搜索框和导航对齐 */
}

.login-btn {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #4a90e2;
    color: #fff;
}

/* 确保样式优先级 */
body .login-box {
    position: absolute !important;
    right: 50px !important;
    margin-top: 70px !important;
}

/* 搜索框输入框样式 */
.search-input {
    width: 100%;
    height: 40px;
    padding: 0 120px 0 15px; /* 右侧留出按钮的空间 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none; /* 移除输入框聚焦时的默认边框 */
}

.search-input:focus {
    border-color: #4a90e2; /* 输入框聚焦时的边框颜色 */
}

/* 搜索按钮新样式 */
.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 100px; /* 固定按钮宽度 */
    height: 100%;
    background: #4a90e2; /* 按钮背景色 */
    color: #fff; /* 按钮文字颜色 */
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.search-btn:hover {
    background: #357abd; /* 鼠标悬停时的背景色 */
}

/* 确保样式优先级 */
body .home-search {
    position: absolute !important;
    left: 370px !important;
    transform: none !important;
    width: 820px !important;
    margin-top: 70px !important;
}

body .search-btn:hover {
    background: #357abd !important;
}

/* 固定顶部导航区域 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 120px;
}

/* 主内容区域 - 调整上边距 */
.main-content {
    margin-top: 20px;
}

/* 轮播图样式 */
.banner {
    width: 100%;
    max-width: 1310px;
    height: 500px;
    margin: 0 0 30px 0;
    overflow: hidden;
    position: relative;
}

.swiper-container {
    width: 100% !important;
    height: 100% !important;
}

.swiper-slide {
    height: 100%;
}

.swiper-slide img {
    width: 100% !important;
    height: 100% !important; /* 确保图片填充整个容器 */
    object-fit: cover;
}

.banner .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    opacity: 0.8;
}

.banner .swiper-pagination-bullet-active {
    background: #4a90e2;
}

/* 左侧导航样式 */
.sidebar .nav-list {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar .nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.sidebar .nav-link:hover {
    background: #f5f5f5;
    color: #4a90e2;
}

.sidebar .nav-link.active {
    background: #4a90e2;
    color: #fff;
}

/* 确保样式优先级 */
body .header-nav {
    position: absolute !important;
    left: 1240px !important;
    margin-top: 70px !important;
}

/* 向左偏移的内容 - 首页专用 */
.shifted-content {
    position: relative;
    width: 100%; /* 修改宽度 */
    overflow: hidden;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* 关于我们容器样式 */
.about-container {
    width: 100%;
    max-width: 1310px;
    margin-top: 0;
    position: relative;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

/* 导航按钮样式 */
.category-prev,
.category-next {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.category-prev:after,
.category-next:after {
    font-size: 20px;
    color: #fff;
}

/* 产品列表样式 */
.product-list {
    margin-top: 20px;
}

.product-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.product-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-item-link {
    text-decoration: none;
    color: inherit;
}

.product-img {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    height: auto;
}

.product-info {
    padding: 0 20px;
}

.product-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-specs {
    margin-bottom: 10px;
}

.product-specs span {
    display: inline-block;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 轮播图样式 */
.banner {
    width: 100% !important;
    max-width: 1310px !important;
    height: 500px !important;
    margin: 0;
    margin-bottom: 30px; /* 添加底部间距 */
    overflow: hidden;
    position: relative;
    left: -30px;
}

/* 向左偏移的内容 - 首页专用 */
.shifted-content {
    position: relative;
    width: 100%; /* 修改宽度 */
    overflow: hidden;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* 主内容区域 */
.main-content {
    margin-left: 510px;
    margin-top: 140px;
    margin-right: 50px;
    width: calc(100% - 560px);
    overflow: visible;
}

/* 关于我们容器样式 */
.about-container {
    width: 100% !important;
    max-width: 1310px !important;
    margin-top: 0;
    position: relative;
    left: -30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 关于我们页面样式 */
.about-content {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.about-text {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text ul {
    margin: 0 0 20px 20px;
    padding: 0;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-text li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #4a90e2;
    border-radius: 50%;
}

.about-text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* 欢迎容器样式 */
.welcome-container {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative; /* 添加相对定位 */
    left: -30px; /* 向左移动30px */
}

.welcome-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.welcome-content {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.welcome-content p {
    margin-bottom: 15px;
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

.terms-link {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 用户信息样式 */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
}

.logout-btn {
    padding: 6px 12px;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    color: #ff4d4f;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff4d4f;
    color: #fff;
}

/* 登录页面样式 */
.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.login-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.login-form .form-control {
    width: 100%;
    height: 40px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.verification-code .code-input-group {
    display: flex;
    gap: 10px;
}

.verification-code input {
    width: 60%;
}

.verification-image {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.submit-btn {
    flex: 1;
    height: 40px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #357abd;
}

.register-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #4a90e2;
}

/* 个人中心样式 */
.ucenter-container {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ucenter-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

/* 用户信息卡片 */
.user-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-details {
    flex: 1;
}

.user-name-large {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.user-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 账户信息表单 */
.account-form {
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ucenter-form .form-group {
    margin-bottom: 20px;
}

.ucenter-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.ucenter-form .form-control {
    width: 100%;
    height: 40px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ucenter-form .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.ucenter-form .form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.ucenter-form .form-actions {
    margin-top: 30px;
}

.ucenter-form .submit-btn {
    height: 40px;
    padding: 0 30px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ucenter-form .submit-btn:hover {
    background: #357abd;
}

/* 修改资料页面的额外样式 */
.cancel-btn {
    height: 40px;
    padding: 0 30px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.cancel-btn:hover {
    background: #eee;
    color: #333;
    text-decoration: none;
}

/* 表单分组标题 */
.section-title.mt-4 {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* 下拉选择框样式 */
.ucenter-form select.form-control {
    height: 40px;
    padding: 0 15px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* 日期输入框样式 */
.ucenter-form input[type="date"].form-control {
    height: 40px;
    padding: 0 15px;
}

/* 搜索结果页面样式 */
.search-result-container {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

/* 搜索结果列表 */
.search-list {
    width: 100%;
}

.search-item {
    display: flex;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.search-item-left {
    flex: 0 0 200px;
    margin-right: 20px;
}

.search-item-left img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.search-item-right {
    flex: 1;
}

.search-item-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.search-specs {
    margin-bottom: 10px;
}

.search-specs span {
    display: inline-block;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.search-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 无搜索结果样式 */
.no-result {
    text-align: center;
    padding: 50px 20px;
}

.no-result-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-result-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.keyword {
    color: #4a90e2;
    font-weight: 500;
}

.no-result-tips {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.no-result-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.no-result-suggestions li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 标签页面样式 */
.tags-container {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tags-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

/* 标签云样式 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tag-item {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #4a90e2;
    color: #fff;
    text-decoration: none;
}

.tag-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 5px;
}

/* 标签内容列表样式 */
.tag-content {
    margin-top: 40px;
}

.tag-result-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.highlight {
    color: #4a90e2;
    font-weight: 500;
}

.tag-list {
    width: 100%;
}

.tag-list-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tag-item-content {
    display: flex;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.tag-item-content:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tag-item-left {
    flex: 0 0 200px;
    margin-right: 20px;
}

.tag-item-left img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.tag-item-right {
    flex: 1;
}

.tag-item-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.tag-specs {
    margin-bottom: 10px;
}

.tag-specs span {
    display: inline-block;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.tag-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 新闻内容页特定样式 */
.news-content-box {
    margin-top: 170px; /* 原来的140px + 30px */
}

.news-container {
    width: 100%;
    max-width: 1310px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    padding-bottom: 15px;
}

.news-meta {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-meta span {
    display: inline-block;
    margin: 0 15px;
}

.news-content {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* 新闻缩略图容器样式 */
.news-thumbnail {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.news-thumbnail:hover img {
    transform: scale(1.02);
}

/* 图片和表格布局容器 */
.image-table-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

/* 缩略图外框 */
.news-thumbnail-box {
    flex: 0 0 400px;
    border: 2px solid #4a90e2;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

.news-thumbnail {
    width: 100%;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
}

/* 规格表格样式 */
.specs-table-container {
    flex: 1;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.specs-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
    text-align: left;
}

.specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table td:first-child {
    width: 120px;
    color: #666;
}

.specs-table td:last-child {
    color: #333;
}

/* 文章内容容器样式 */
.article-content-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.article-content-box .news-content {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

/* 搜索框样式优化 */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.search-type {
    position: relative;
    width: 120px;
}

.search-select {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-select:hover {
    border-color: #4a90e2;
}

.search-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
    outline: none;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
    outline: none;
}

.search-btn {
    width: 70px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-btn i {
    font-size: 13px;
    color: #666;
    margin-right: 2px;
}

.search-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ced4da;
}

.search-btn:hover i {
    color: #333;
}

/* 响应式布局调整 */
@media screen and (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .main-wrapper {
        margin-left: 220px;
    }
}

@media screen and (max-width: 992px) {
    /* 头部导航响应式 */
    .fixed-header {
        position: relative;
        height: auto;
    }
    
    .header-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        position: static;
        margin: 10px auto;
        text-align: center;
    }
    
    .home-search {
        width: 100%;
        margin: 10px 0;
    }
    
    .header-nav {
        width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 侧边栏响应式 */
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    /* 搜索框响应式 */
    .search-form {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-type {
        width: 100%;
    }
    
    /* 内容区域响应式 */
    .content-box {
        margin-top: 20px !important;
    }
    
    /* 图片表格布局响应式 */
    .image-table-container {
        flex-direction: column;
    }
    
    .news-thumbnail-box {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 20px;
    }
    
    .specs-table-container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    /* 导航菜单响应式 */
    .nav-list li {
        width: 50%;
        text-align: center;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    /* 登录框响应式 */
    .login-box {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* 新闻标题响应式 */
    .news-title {
        font-size: 20px;
        padding: 15px 0;
    }
    
    /* 表格响应式 */
    .specs-table th,
    .specs-table td {
        padding: 8px;
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    /* 搜索框进一步优化 */
    .search-input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    /* 内容间距调整 */
    .content-box {
        padding: 15px;
    }
    
    .article-content-box {
        padding: 15px;
    }
    
    /* 导航菜单进一步优化 */
    .nav-list li {
        width: 100%;
    }
}

/* 修复移动端可能的溢出问题 */
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* 响应式工具类 */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@media (max-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
}

/* 响应式间距类 */
.m-auto {
    margin: auto !important;
}

.w-100 {
    width: 100% !important;
}

.text-center-sm {
    @media (max-width: 576px) {
        text-align: center !important;
    }
}

/* 添加或修改底部样式 */
.footer {
    padding: 20px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding: 5px 0;
    line-height: 1.5;
    text-align: center;
}

.email {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding: 5px 0;
    line-height: 1.5;
    text-align: center;
}

/* 底部链接样式 */
.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #4a90e2;
}

/* 添加在文件前面的样式定义部分 */
body .search-btn {
    width: 70px !important;
    height: 36px !important;
    border: 1px solid #e0e0e0 !important;
    background: #f8f9fa !important;
    color: #666 !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

body .search-btn:hover {
    background: #e9ecef !important;
    color: #333 !important;
    border-color: #ced4da !important;
}

/* 导航列表样式 */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.nav-list li {
    border-bottom: 1px solid #eee;
    width: 100%;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #4a90e2;
}

.nav-link.active {
    background: #4a90e2;
    color: #fff;
} 