/* 全局样式 */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #172554;
    --primary-blue-light: #3b82f6;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部联系栏 */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
}

.top-bar .btn-green {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 4px 12px;
    font-size: 12px;
}

.top-bar .btn-green:hover {
    background: var(--primary-blue-light);
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    color: var(--primary-blue) !important;
}

.navbar-brand i {
    font-size: 28px;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* 轮播区域 */
.hero-carousel {
    background: var(--dark);
}

.carousel-content {
    padding: 60px 0;
    min-height: 675px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.carousel-content .container {
    position: relative;
    z-index: 2;
}

.carousel-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-desc {
    font-size: 18px;
    color: #fff;
    margin-bottom: 25px;
    max-width: 400px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-icon {
    font-size: 180px;
    color: var(--primary-blue);
    opacity: 0.3;
}

/* 轮播指示器 */
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
    margin: 0 4px !important;
}

.carousel-indicators button.active {
    background-color: var(--primary-blue) !important;
}

/* 轮播控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    background-size: 50%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary-blue);
}

.carousel-control-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
}

.carousel-control-text:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* 功能条 */
.features-bar {
    background: var(--dark);
    padding: 25px 0;
}

.features-bar a {
    text-decoration: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-blue);
}

.feature-item span {
    font-weight: 600;
    font-size: 14px;
}

/* 标题样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin: 10px auto 0;
}

.section-title::after {
    margin: 10px 0 0;
}

.section-padding {
    padding: 80px 0;
}

/* 优势卡片 */
.advantage-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.advantage-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--primary-blue);
}

.advantage-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* 服务卡片 */
.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    height: 100%;
    display: block;
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-blue);
}

.service-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 0;
}

/* 合作伙伴 */
.partner-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.partner-item:hover {
    border-color: var(--primary-blue);
}

.partner-item i {
    font-size: 36px;
    color: var(--gray);
    display: block;
    margin-bottom: 10px;
}

.partner-item:hover i {
    color: var(--primary-blue);
}

.partner-item span {
    font-size: 13px;
    color: var(--dark);
}

/* 客户评价 */
.testimonial-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
}

.quote-icon {
    font-size: 48px;
    color: var(--primary-blue);
    opacity: 0.3;
    display: block;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    color: var(--dark);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-blue);
    font-size: 16px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--gray);
}

/* 底部 */
.footer {
    background: #111;
    color: #999;
    padding: 80px 0 50px;
    margin-top: 60px;
}

.footer h5 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 25px;
}

.footer h6 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    font-size: 16px;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer hr {
    border-color: #444;
    margin: 50px 0;
    opacity: 0.5;
}

.footer .list-unstyled li {
    font-size: 16px;
    line-height: 1.8;
    transition: all 0.3s;
}

.footer .list-unstyled li:hover {
    color: #fff;
}

.footer .text-center {
    margin-top: 30px;
}

.footer .text-center p {
    font-size: 14px;
    color: #888;
}

/* 按钮 */
.btn-green {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    background: var(--primary-blue-dark);
    color: var(--white);
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

/* 浅色背景 */
.bg-light {
    background: #f8f9fa !important;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #333 100%);
    color: var(--white);
    padding: 120px 0;
    min-height: 240px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.8;
}

/* 详情页内容区 */
.detail-content {
    padding: 60px 0;
}

.detail-content h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 20px;
}

.detail-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.detail-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-content ul {
    list-style: none;
    padding: 0;
}

.detail-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.detail-content ul li i {
    color: var(--primary-blue);
    margin-right: 10px;
}

/* 流程步骤 */
.process-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.process-step:last-child {
    border-bottom: none;
}

.process-num {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.process-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.process-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* 设备卡片 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.equipment-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.equipment-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
}

.equipment-item i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.equipment-item h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.equipment-item p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 0;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-text {
    color: var(--dark);
}

/* 评价卡片 */
.review-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.review-card .quote-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.review-author strong {
    display: block;
    color: var(--primary-blue);
}

.review-author span {
    font-size: 14px;
    color: var(--gray);
}

/* 联系表单 */
.contact-section {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0;
}

.contact-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-card i {
    font-size: 32px;
    color: var(--primary-blue);
}

.contact-card h6 {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-card p {
    color: #495057;
    font-size: 14px;
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
}

.contact-form .form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: none;
}

.contact-form textarea {
    resize: vertical;
}

/* 能力统计 */
.capability-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 10px;
}

/* Capability Card with Image */
.capability-card-image {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.capability-card-image:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.capability-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.capability-card-image .capability-content {
    padding: 20px;
}

.capability-card-image h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.capability-card-image p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* Service Card with Image */
.service-card-image {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card-image:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.service-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card-image .service-content {
    padding: 20px;
}

.service-card-image h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card-image p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* Partner Image */
.partner-image {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.partner-image:hover {
    border-color: var(--primary-blue);
}

.partner-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.partner-image span {
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

/* About Us Section */
.about-section {
    background: var(--white);
}

.about-section .about-banner {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.about-section .about-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section .about-content {
    padding: 20px;
}

.about-section .about-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-section .about-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Manufacturing Phases */
.phase-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.phase-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
}

.phase-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.phase-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.phase-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

/* Equipment Section */
.equipment-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.equipment-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
}

.equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.equipment-card .equipment-content {
    padding: 20px;
}

.equipment-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.equipment-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 0;
}

/* Testimonials Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务详情页banner */
.service-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}

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

.service-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 响应式 */
@media (max-width: 991px) {
    .carousel-title {
        font-size: 32px;
    }
    
    .carousel-desc {
        font-size: 16px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .features-bar .row > div {
        margin-bottom: 15px;
    }
    
    /* 平板设备上的服务卡片调整 */
    .service-card-image h5 {
        font-size: 16px;
    }
    
    .service-card-image p {
        font-size: 13px;
    }
    
    .service-card-image img {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 26px;
    }
    
    .carousel-content {
        padding: 40px 0;
    }
    
    .carousel-title {
        font-size: 26px;
    }
    
    .carousel-icon {
        font-size: 100px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    /* 移动设备上的服务卡片调整 */
    .service-card-image h5 {
        font-size: 16px;
    }
    
    .service-card-image p {
        font-size: 13px;
    }
    
    .service-card-image img {
        height: 180px;
    }
    
    .service-card-image .service-content {
        padding: 20px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}