/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

a:hover {
    color: #d80e1a;
}

/* 容器样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: left 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-top {
    background-color: #d80e1a;
    color: #fff;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left p,
.header-top-right p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.header-top-left i,
.header-top-right i {
    margin-right: 8px;
}

/* 主导航样式 */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 350px;
    vertical-align: middle;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #d80e1a;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: #d80e1a;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: #fff;
    min-width: 100px;
    border: 1px solid #eee;
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #d80e1a;
}

/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
    background-color: #d80e1a;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.banner-slide .mobile-img {
    display: none;
}

.banner-slide .desktop-img {
    display: block;
}

/* 响应式banner样式 */
@media (max-width: 1200px) {
    .banner {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .banner {
        height: 500px;
    }
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 通用section样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 32px;
    color: #1d1819;
    margin-bottom: 15px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.products-section .section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 60px;
}

.products-section .section-title h3 {
    color: #FFFFFF;
}

.products-section .section-title p {
    color: #FFFFFF;
    opacity: 0.8;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* 关于我们部分 */
.about-section {
    height: 430px;
    display: flex;
    align-items: center;
    background: none !important;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    height: 430px;
    padding: 0;
    margin: 0;
    background: none !important;
}

.about-text {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    background: none !important;
}

.about-text h3 {
    font-size: 32px;
    color: #444444;
    margin-bottom: 10px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.about-text > p:first-of-type {
    font-size: 16px;
    color: #999999;
    margin-bottom: 15px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.about-text-content {
    height: 140px;
    overflow: hidden;
    margin-bottom: 15px;
    background: none !important;
}

.about-text-content p {
    font-size: 14px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.about-btn-container {
    margin-top: 0;
    background: none !important;
}

.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    background: none !important;
}

.about-image img {
    width: 420px;
    height: 305px;
    object-fit: cover;
    border-radius: 4px;
}

/* 产品中心部分 */
.products-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0) 60%, 
        #f5f5f5 60%, 
        #f5f5f5 100%), 
        url('http://www.hundreds100.com/statics/static/images/beijing1.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    position: relative;
}

.products-slider-wrapper {
    position: relative;
    padding: 0 50px;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.products-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.product-item {
    flex: 0 0 calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.products-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
    z-index: 1000;
}

.products-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(216,14,26,0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.products-btn:hover {
    background-color: #d80e1a;
    transform: scale(1.1);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 荣誉资质部分 */
.honor-section {
    padding: 80px 0;
    background-color: #fff;
}

.honor-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.honor-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.honor-item {
    flex: 0 0 calc(33.333% - 20px);
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.3s;
}

.honor-item:hover {
    transform: translateY(-5px);
}

.honor-item img {
    width: 100%;
    height: auto;
    display: block;
}

.honor-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.honor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.honor-dot.active {
    background-color: #d80e1a;
}

.honor-dot:hover {
    background-color: #999;
}

.honor-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 客户案例部分 */
.cases-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.case-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.case-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-item:hover .case-img img {
    transform: scale(1.1);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 16px;
    color: #d80e1a;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-info p {
    font-size: 13px;
    color: #666;
}

.cases-more {
    text-align: center;
    margin-top: 40px;
}

/* 合作伙伴部分 */
.partners-section {
    padding: 80px 0;
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.partner-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #fff;
}

.partner-item img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-section li a {
    color: #999;
}

.footer-section li a:hover {
    color: #d80e1a;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #999;
    border: 1px solid #999999;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d80e1a;
    color: #fff;
    border-color: #d80e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216,14,26,0.3);
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #999;
    border: 1px solid #999999;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-link:hover {
    background-color: #d80e1a;
    color: #fff;
    border-color: #d80e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216,14,26,0.3);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #d80e1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(216,14,26,0.3);
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: #b80c16;
    transform: translateY(-5px);
}

.main-content {
    position: relative;
    left: 0;
    transition: left 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-top {
        display: none;
    }
    
    .main-nav {
        padding: 5px 0;
        height: 70px;
    }
    
    .nav-content {
        height: 100%;
        align-items: center;
    }
    
    .logo img {
        height: 30px;
        width: 250px;
    }
    
    .mobile-menu-btn {
        display: block;
        padding: 5px;
    }
    
    .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}
    
    .nav-menu.active {
        right: 0;
    }
    
    .header.active {
        left: -300px;
    }
    
    .main-content.active {
        left: -300px;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu a {
        font-size: 16px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding: 0 0 0 0;
        box-shadow: none;
        margin-top: 10px;
        display: none;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-menu li {
        margin: 5px 0;
    }
    
    .dropdown-menu a {
        font-size: 14px;
    }
    
    .dropdown > a::after {
        content: ' +';
        float: right;
        font-size: 16px;
    }
    
    .dropdown.active > a::after {
        content: ' −';
    }
    
    .about-section {
        height: auto;
        padding: 40px 0;
    }
    
    .about-content {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }
    
    .about-text {
        height: auto;
        margin-top: 0;
    }
    
    .about-text-content {
        height: auto;
        overflow: visible;
    }
    
    .about-text-content p {
        -webkit-line-clamp: unset;
    }
    
    .about-image {
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    
    .about-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner {
        position: relative;
        overflow: hidden;
        padding-bottom: 56.25%; /* 16:9比例 */
        width: 100%;
        height: 0;
    }
    
    .banner-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .banner-slide .mobile-img {
        display: block;
    }
    
    .banner-slide .desktop-img {
        display: none;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-slider-wrapper {
        padding: 0 40px;
        overflow: visible;
    }
    
    .products-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .honor-slide {
        width: 250px;
        height: 170px;
    }
    
    .honor-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        width: 100%;
        height: auto;
    }
    
    .logo img {
        width: 250px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .section-title h3 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .honor-slide {
        width: 200px;
        height: 140px;
    }
    
    .honor-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        width: 200px;
        height: auto;
    }
    
    .btn-primary,
    .btn-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}