/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 防止水平滚动条 */
}

html {
    overflow-x: hidden; /* 确保html元素也不产生滚动条 */
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #3498db;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* ===== 网站头部 - 简单可靠的结构 ===== */

/* 1. 顶部联系栏 */
.top-contact {
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.user-links a {
    margin-left: 15px;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.user-links a:hover {
    color: #3498db;
}

/* 2. 整个头部包装器 - 固定定位 */
.sticky-header {
    position: fixed;
    top: 0; /* 从页面顶部开始 */
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; /* 确保背景色 */
}

.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 3. 主要导航栏 */
.site-navigation {
    background-color: #2c3e50;
}

/* 主内容区域 - 添加顶部内边距避免被固定头部覆盖 */
main {
    padding-top: 140px; /* 整个头部固定后的内边距：30px(顶部联系栏) + 60px(LOGO) + 50px(导航) */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO和文字区域 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    display: block;
}

/* LOGO文字 */
.site-logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 3px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
    letter-spacing: 1px;
    display: block;
}

/* 搜索和电话 */
.header-utils {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 280px;
    font-size: 0.9rem;
    outline: none;
}

.search-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #2980b9;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone i {
    font-size: 1.6rem;
    color: #2c3e50;
}

.phone-text {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px 10px;
}

/* 移动端关闭按钮 */
.mobile-close {
    display: none; /* 默认隐藏，只在移动端菜单中显示 */
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
}

.mobile-close i {
    margin-right: 8px;
}

/* 3. 主要导航栏 */
.site-navigation {
    background-color: #2c3e50;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navigation-menu {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-menu > li {
    position: relative;
}

.nav-item {
    display: block;
    padding: 16px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background-color: #3498db;
}

/* 下拉菜单 */
.nav-parent {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-parent:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    display: block;
    padding: 14px 20px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background-color: #3498db;
    color: white;
    padding-left: 25px;
}

.nav-submenu li:last-child .submenu-item {
    border-bottom: none;
}

/* ===== 头部响应式设计 ===== */

@media (max-width: 992px) {
    .header-search input {
        width: 200px;
    }
    
    .header-phone i {
        font-size: 1.4rem;
    }
    
    .phone-text {
        font-size: 1.2rem;
    }
    
    .nav-item {
        padding: 16px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* 隐藏顶部联系栏 */
    .top-contact {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-toggle {
        display: block;
    }
    
    /* 调整头部布局 */
    .header-utils {
        gap: 15px;
    }
    
    /* 隐藏搜索框和热线电话 */
    .header-search,
    .header-phone {
        display: none;
    }
    
    /* 移动端头部样式 - 固定定位，从top: 0开始 */
    .sticky-header {
        position: fixed;
        top: 0; /* 顶部联系栏被隐藏，从0开始 */
        background-color: white;
    }
    
    /* 移动端主内容内边距调整 */
    main {
        padding-top: 60px; /* 移动端头部高度约60px（更紧凑） */
    }
    
    .site-navigation {
        display: none;
        position: fixed; /* 使用fixed定位，覆盖整个屏幕 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #2c3e50;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .site-navigation.mobile-open {
        display: block;
    }
    
    .nav-inner {
        padding: 0;
        position: relative;
    }
    
    /* 移动端显示关闭按钮 */
    .mobile-close {
        display: block;
    }
    
    .navigation-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navigation-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navigation-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-item {
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 移动端下拉菜单 */
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border-top: none;
    }
    
    .nav-parent.mobile-open .nav-submenu {
        display: block;
    }
    
    .submenu-item {
        padding-left: 40px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .header-inner {
        padding: 10px 15px;
    }
    
    .site-logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-tagline {
        font-size: 0.8rem;
    }
    
    .mobile-toggle {
        font-size: 1.3rem;
        padding: 4px 8px;
    }
}

@media (max-width: 400px) {
    .site-logo h1 {
        font-size: 1.3rem;
    }
}

/* ===== 新导航响应式设计 ===== */

@media (max-width: 992px) {
    .search-tool input {
        width: 200px;
    }
    
    .hotline-tool i {
        font-size: 1.4rem;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 16px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* 隐藏顶部联系栏 */
    .contact-bar {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .menu-toggle {
        display: block;
    }
    
    /* 调整头部布局 */
    .header-tools {
        gap: 15px;
    }
    
    /* 隐藏搜索框和热线电话 */
    .search-tool,
    .hotline-tool {
        display: none;
    }
    
    /* 移动端导航样式 */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .main-navigation.mobile-open {
        display: block;
    }
    
    .main-navigation {
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border-top: none;
    }
    
    .nav-dropdown.dropdown-open .dropdown-content {
        display: block;
    }
    
    .dropdown-link {
        padding-left: 40px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        font-size: 1.3rem;
        padding: 4px 8px;
    }
}

@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* 横幅区域 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.banner-content {
    color: white;
    max-width: 600px;
    flex: 1;
}

.banner-image {
    flex-shrink: 0;
    max-width: 45%;
    text-align: right;
}

.banner-image img {
    max-width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.banner-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-content .btn {
    background-color: white;
    color: #2c3e50;
}

.banner-content .btn:hover {
    background-color: #f1f1f1;
}

.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-dot.active {
    background-color: white;
}

/* 服务特色区域 */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 产品展示区域 */
.products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-desc {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.product-category,
.product-brand {
    background-color: #f1f1f1;
    padding: 3px 10px;
    border-radius: 4px;
    color: #555;
}

/* 新闻资讯区域 */
.news {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
}

.news-date {
    background-color: #3498db;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month,
.date-year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-content h3 a:hover {
    color: #3498db;
}

.news-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-link {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.news-link:hover {
    color: #2980b9;
}

/* 页脚 */
.main-footer {
    background-color: #2c3e50;
    color: white;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-column p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    background-color: #1a252f;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .banner-content h2 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .search-box {
        display: none;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-info,
    .top-links {
        width: 100%;
        text-align: center;
    }
    
    .top-info span {
        display: block;
        margin: 5px 0;
    }
    
    .top-links a {
        margin: 0 10px;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .banner-image {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .services-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        flex-direction: row;
        justify-content: space-between;
        min-height: auto;
        padding: 15px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.product-card,
.news-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== 新布局样式 ===== */

/* ===== 重构头部样式 ===== */

/* 顶部信息栏 */
.top-bar {
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
}

.top-links a {
    margin-left: 15px;
    color: #ecf0f1;
}

.top-links a:hover {
    color: #3498db;
}

/* 网站头部 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: #7f8c8d;
    letter-spacing: 1px;
}

/* 头部控制区域 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 280px;
    font-size: 0.9rem;
}

.search-box button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 热线电话 */
.header-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    transition: opacity 0.3s ease;
}

.header-hotline:hover {
    opacity: 0.8;
}

.header-hotline i {
    font-size: 1.6rem;
    color: #2c3e50;
}

.hotline-number {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px 10px;
}

/* ===== 独立的主导航栏 ===== */

/* 最简单可靠的通栏解决方案 */
.main-navigation-wrapper {
    background-color: #2c3e50;
    position: relative;
    width: 100%;
    /* 使用负边距实现通栏 */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.main-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* .nav-container 现在由 .main-navigation 替代，删除重复样式 */

.nav-menu {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* 改进的鼠标悬停效果 */
.nav-link:hover {
    color: white;
    background-color: #3498db;
}

.nav-link.active {
    color: white;
    background-color: #3498db;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 14px 20px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: #3498db;
    color: white;
    padding-left: 25px;
}

.dropdown-content li:last-child .dropdown-link {
    border-bottom: none;
}

/* 品牌中心区域 */
.brands {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.brands-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.brands-sidebar {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.brands-featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.brands-featured-content {
    padding: 25px;
}

.brands-featured-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.brands-featured-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-logo {
    background-color: white;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.brand-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.brand-name {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* 热销产品区域 */
.hot-products {
    padding: 80px 0;
}

.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.hot-product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hot-product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.hot-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hot-product-info {
    padding: 20px;
}

.hot-product-info h3 {
    font-size: 1.1rem;
   /* margin-bottom: 10px;*/
    color: #2c3e50;
}

.hot-product-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hot-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-product-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

.hot-product-brand {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 产品推荐区域 */
.recommended-products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.recommended-product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.recommended-product-card:hover {
    transform: translateY(-3px);
}

.recommended-product-image {
    height: 180px;
    overflow: hidden;
}

.recommended-product-image img {
    width: 100%;
    height: 100%;

}

.recommended-product-info {
    padding: 15px;
    text-align: center;
}

.recommended-product-info h3 {
    font-size: 0.95rem;

    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-product-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 最新资讯与技术资料区域 */
.info-section {
    padding: 80px 0;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.info-left, .info-right {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-subtitle {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-thumbnail {
    flex-shrink: 0;
}

.info-thumbnail img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.info-content {
    flex: 1;
}

.info-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.info-content h4 a:hover {
    color: #3498db;
}

.info-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .brands-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hot-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recommended-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .brands-container {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hot-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommended-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .info-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .header-right {
        gap: 20px;
    }
    
    .search-box input {
        width: 250px;
    }
    
    .main-nav .nav-menu {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        padding: 15px 0;
    }
    
    .header-right {
        width: auto;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .search-box {
        display: none;
    }
    
    .header-hotline {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50; /* 保持深色主题 */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    /* 旧样式已移除，使用新的.main-navigation */
    
    .main-nav .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .main-nav .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .main-nav .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .main-nav .nav-menu > li > a {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2); /* 深色背景 */
        border-top: none;
        border-radius: 0;
    }
    
    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .main-nav .dropdown-menu a {
        padding-left: 40px;
        padding-right: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hot-products-grid {
        grid-template-columns: 1fr;
    }
    
    .recommended-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommended-products-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-thumbnail img {
        width: 100%;
        height: 120px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-info, .top-links {
        text-align: center;
        width: 100%;
    }
    
    .top-info span {
        display: block;
        margin: 3px 0;
    }
    
    .top-links a {
        margin: 0 8px;
    }
}

@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

/* 删除不需要的旧样式 - 已替换为新布局 */

/* ===== 新头部响应式设计 ===== */

@media (max-width: 1200px) {
    .search-box input {
        width: 240px;
    }
    
    .hotline-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .header-wrapper {
        padding: 12px 20px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .header-hotline i {
        font-size: 1.4rem;
    }
    
    .hotline-number {
        font-size: 1.2rem;
    }
    
    .nav-list > li > a {
        padding: 16px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* 隐藏顶部信息栏 */
    .top-bar {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 调整头部布局 */
    .header-controls {
        gap: 15px;
    }
    
    /* 隐藏搜索框和热线电话 */
    .search-box,
    .header-hotline {
        display: none;
    }
    
    /* 移动端导航样式 */
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .primary-nav.mobile-open {
        display: block;
    }
    
    .nav-wrapper {
        padding: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list > li:last-child {
        border-bottom: none;
    }
    
    .nav-list > li > a {
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border-top: none;
    }
    
    .has-dropdown.dropdown-open .dropdown-list {
        display: block;
    }
    
    .dropdown-list li a {
        padding-left: 40px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .header-wrapper {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
        padding: 4px 8px;
    }
}

@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.3rem;
    }
}