* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域，占据剩余空间 */
main {
    flex: 1;
}

/* 为没有main标签的页面添加通用样式 */
body > *:not(header):not(footer) {
    flex: 1;
}

/* 导航栏样式 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: #2866a9;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 35px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 55px;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu .active a {
    color: #fff;
}

.nav-menu .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* 桌面端隐藏菜单切换按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Banner样式 */
.banner {
    height: calc(100vh - 70px);
    background: linear-gradient(45deg, #000428, #004e92);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/index_banner.png') no-repeat center center;
    background-size: cover;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 580px;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: normal;
}

.banner-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
}

.learn-more {
    display: inline-block;
    padding: 8px 30px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 2px solid #1e90ff;
    font-size: 14px;
}

.learn-more:hover {
    background-color: rgba(30, 144, 255, 0.2);
    border-color: #1e90ff;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: none;
}

/* 关于页面样式 */
.about-page {
    padding-top: 70px;
    padding-bottom: 60px;
}

.about-banner {
    background: url('images/about_banner.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.about-banner .banner-text {
    max-width: 800px;
    padding: 0 20px;
}

.about-banner .banner-text h1 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2866a9;
}

.about-banner .banner-subtitle {
    font-size: 1em;
    line-height: 1.8;
    color: #2866a9;
    font-weight: bold;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.header-title {
    display: inline-block;
    position: relative;
}

.header-title h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.header-subtitle {
    color: #666;
    font-size: 1.2em;
    text-transform: uppercase;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

.intro-content p {
    margin-bottom: 8px;
    text-align: justify;
    font-size: 14px;
}

.about-link {
    color: #2866a9;
    text-decoration: none;
    transition: color 0.3s;
}

.about-link:hover {
    color: #1e50a2;
    text-decoration: underline;
}

.about-onet {
    background-color: #f8f8f8;
    padding: 40px 0;
    margin-top: 40px;
}

.onet-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.onet-content h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: normal;
}

.onet-content p {
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu li {
        margin-left: 30px;
    }

    .about-container {
        padding: 0 15px;
    }

    .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2866a9;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        margin-left: 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .about-banner {
        height: 300px;
    }

    .banner-text h1 {
        font-size: 1.8em;
    }

    .banner-subtitle {
        font-size: 1em;
    }

    .about-container {
        flex-direction: column;
    }

    .about-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .about-content {
        width: 100%;
        padding: 15px;
    }

    .product-info {
        flex-direction: column;
    }

    .product-images {
        width: 100%;
        margin-bottom: 20px;
    }

    .product-details {
        width: 100%;
    }

    .business-banner {
        height: 250px;
    }

    /* 手机端业务页面侧边栏适配 */
    .container {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
        position: relative;
    }

    /* 手机端侧边栏切换按钮 - 悬浮图标 */
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: 45px;
        padding: 0 12px;
        background-color: #4f8bce;
        color: white;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(79, 139, 206, 0.4);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
        white-space: nowrap;
        min-width: 60px;
    }

    .sidebar-toggle:hover {
        background-color: #3a7bc8;
        box-shadow: 0 6px 20px rgba(79, 139, 206, 0.6);
        transform: translateY(-50%) scale(1.05);
    }

    .sidebar-toggle::before {
        content: '分类';
        display: inline-block;
        margin-right: 6px;
        font-weight: 500;
    }

    .sidebar-toggle::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 4px solid white;
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .sidebar-toggle.active::after {
        transform: rotate(180deg);
    }

    .sidebar {
        position: fixed;
        top: 70px;
        left: -300px;
        width: 280px;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

    /* 手机端菜单容器正常显示 */
    .menu-container {
        display: block;
        padding: 15px 20px;
        background-color: #ffffff;
    }

    /* 手机端显示原有的侧边栏标题 */
    .sidebar h3 {
        display: flex;
        color: #4f8bcc;
        font-size: 16px;
        font-weight: 900;
        padding: 0 20px 15px;
        border-bottom: 1px solid #e4e7ed;
        margin-bottom: 15px;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .sidebar h3::before,
    .sidebar h3::after {
        content: '';
        display: block;
        width: 66px;
        height: 1px;
        background-color: #4f8bcc;
        margin: 0 10px;
    }

    /* 添加遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .menu-level-1 > li > span {
        font-size: 14px !important;
        padding: 8px 10px;
    }

    .menu-level-2 li a {
        font-size: 12px;
        padding: 5px 15px;
    }

    .content {
        width: 100%;
        flex: 1;
        padding: 15px;
    }

    .content-header h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .product-images img {
        max-width: 100%;
        height: auto;
    }

    .detail-section h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .detail-section ul {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    .banner-text h1 {
        font-size: 1.5em;
    }

    .banner-subtitle {
        font-size: 0.9em;
    }

    .about-banner {
        height: 250px;
    }

    .detail-section h2 {
        font-size: 1.2em;
    }

    /* 更小屏幕的优化 */
    .container {
        padding: 0 10px;
        gap: 10px;
    }

    .sidebar {
        width: 100%;
    }

    .menu-level-1 > li > span {
        font-size: 12px !important;
        padding: 6px 8px;
    }

    .menu-level-2 li a {
        font-size: 11px;
        padding: 4px 12px;
    }

    .content {
        width: 100%;
        padding: 10px;
    }

    .content-header h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .detail-section h2 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .detail-section ul {
        font-size: 12px;
    }
}

/* 标签页样式 */
.about-tabs {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    padding: 15px 30px;
    font-size: 16px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #2866a9;
}

.tab-btn.active {
    color: #2866a9;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2866a9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 关于页面布局 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.about-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.about-content {
    flex: 1;
}

.side-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 1px;
    transition: all 0.3s;
    background-color: #a4c5eb;
}

.side-btn:hover {
    opacity: 0.9;
}

.side-btn.active {
    background-color: #2866a9;
    opacity: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.intro-content {
    line-height: 1.8;
    color: #666;
}

.intro-content p {
    margin-bottom: 8px;
    text-align: justify;
}

/* 业务页面样式 */
.business-page {
    padding-top: 70px;
    padding-bottom: 60px;
    background-color: #f5f5f5;
}

.business-banner {
    height: 400px;
    background: url('images/business_banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* 产品应用页面banner样式 */
.application-banner {
    height: 400px;
    background: url('images/application_banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.banner-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-text h1 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 15px;
}

.banner-text h2 {
    font-size: 24px;
    font-weight: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 280px;
    background-color: #ffffff;
    padding: 20px 0;
    min-height: calc(100vh - 70px - 60px);
}

/* 桌面端隐藏侧边栏切换按钮 */
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important;
    }
}

.sidebar h3 {
    color: #4f8bcc;
    font-size: 16px;
    font-weight: 900;
    padding: 0 20px 15px;
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar h3::before,
.sidebar h3::after {
    content: '';
    display: block;
    width: 66px;
    height: 1px;
    background-color: #4f8bcc;
    margin: 0 10px;
}

.menu-container {
    padding: 0 20px;
}

.menu-level-1 {
    list-style: none;
}

.menu-level-1 > li {
    margin-bottom: 10px;
}

.menu-level-1 > li > span {
    display: block;
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #4f8bce;
    border-radius: 4px;
    position: relative;
}

.menu-level-1 > li > span::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s;
}

.menu-level-1 > li.active > span::after {
    transform: translateY(-50%) rotate(-135deg);
}

.menu-level-2 {
    list-style: none;
    display: none;
    padding: 5px 0;
}

.menu-level-1 > li.active .menu-level-2 {
    display: block;
}

.menu-level-2 > li {
    margin: 2px 0;
}

.menu-level-2 > li > a {
    display: block;
    color: #666;
    font-size: 14px;
    padding: 8px 15px 8px 30px;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.menu-level-2 > li > a:hover {
    color: #2866a9;
    background-color: #eff7ff;
}

.menu-level-2 > li.active > a {
    color: #2866a9;
    background-color: #eff7ff;
}

.menu-level-3 {
    list-style: none;
    padding-left: 0;
    display: none;
    background-color: #fafafa;
}

.menu-level-2 > li.active .menu-level-3 {
    display: block;
}

.menu-level-3 > li {
    margin: 0;
}

.menu-level-3 > li > a {
    display: block;
    padding: 8px 20px 8px 60px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.menu-level-3 > li > a:hover {
    color: #2866a9;
}

.menu-level-3 > li.active > a {
    color: #2866a9;
    background-color: #f5f5f5;
}

.content {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.content-header h1 {
    font-size: 16px;
    color: #000;
    font-weight: 1000;
    font-family: "Microsoft YaHei Bold", "微软雅黑", Arial, sans-serif;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-details {
    color: #666;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h2 {
    font-size: 14px;
    color: #000;
    font-weight: 900;
    margin-bottom: 10px;
}

.detail-section ul {
    list-style: none;
    padding-left: 15px;
}

.detail-section li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
    color: #000;
}

.detail-section li:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #000;
}

html {
    overflow-y: scroll;
}

/* 联系我们页面样式 */
.contact-page {
    padding-top: 70px;
}

/* 联系我们页面banner样式 */
.contact-banner {
    height: 400px;
    background: url('images/contact_banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.contact-banner .banner-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.contact-banner .banner-text h1 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-banner .banner-text h2 {
    font-size: 32px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 联系信息内容区域 */
.contact-content {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
}

/* 左侧地图区域 */
.map-section {
    flex: 1;
    max-width: 800px;
    display: flex;
}

.map-container {
    background-color: #fff;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex: 1;
    display: flex;
    min-height: 400px;
}

.contact-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧联系信息区域 */
.contact-info-section {
    flex: 0 0 500px;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.contact-company {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2e5b8c;
}

.company-logo {
    margin-bottom: 15px;
}

.company-logo img {
    height: 45px;
    width: auto;
}

.contact-company h3 {
    font-size: 20px;
    color: #2e5b8c;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    padding: 0;
}

.contact-label {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.contact-value {
    font-size: 18px;
    color: #333;
    flex: 1;
    margin-left: 5px;
}

/* 页脚样式 - 取消固定定位 */
footer {
    background-color: #2866a9;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .contact-container {
        max-width: 95%;
        gap: 20px;
        flex-direction: column;
        min-height: auto;
    }
    
    .map-section {
        max-width: none;
        height: 300px;
    }
    
    .map-container {
        border-radius: 12px;
        height: 100%;
        min-height: 300px;
    }
    
    .contact-info-section {
        flex: none;
        border-radius: 12px;
        padding: 30px;
        min-height: auto;
    }
    
    .contact-banner .banner-text h1 {
        font-size: 36px;
    }
    
    .contact-banner .banner-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 300px;
    }
    
    .contact-banner .banner-text h1 {
        font-size: 28px;
    }
    
    .contact-banner .banner-text h2 {
        font-size: 20px;
    }
    
    .contact-content {
        padding: 30px 0;
    }
    
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-info-section {
        padding: 25px 20px;
    }
    
    .contact-item {
        padding: 0 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-label,
    .contact-value {
        font-size: 16px;
    }
    
    .contact-value {
        margin-left: 0;
    }
}

/* 内容切换相关样式 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}
