/* 海南云博碳汇汽车科技有限公司 - 官网样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    height: 40px;
    width: auto;
}

.logo span {
    color: #3498db;
}

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

.nav-menu li {
    margin-left: 30px;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 30px;
}

/* 顶部导航链接去下划线，保持与首页一致 */
.nav-links a,
.nav-links a:visited {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    text-decoration: none;
    color: #3498db;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}
/* 新闻页横幅，避免被固定头部覆盖 */
.news-banner {
    background: linear-gradient(135deg, #1a2a6c, #3498db);
    color: #fff;
    padding: 120px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #fff;
}

.btn:hover {
    background-color: transparent;
    color: #fff;
}

/* 主要内容区域 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff;
}

.section-title p {
    color: #666;
    font-size: 18px;
    margin-top: 20px;
}

/* 服务卡片 */
.services {
    background-color: #fff;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* 关于我们 */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 15px;
    color: #666;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ddd;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 解决方案 */
.solutions {
    background-color: #fff;
}

.solution-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.solution-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.solution-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.solution-item p {
    color: #666;
    line-height: 1.6;
}

/* 新闻动态 */
.news {
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #007bff;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.certification-content {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.cert-item img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 8px;
}

/* 联系我们 */
.contact {
    background-color: #fff;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.contact-detail {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p {
    color: #666;
    margin: 0;
}

.contact-form {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: white;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .about-content,
    .contact-container {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.nav-menu ul {
    display: flex;
    list-style: none;
}
.nav-menu ul li {
    margin-left: 30px;
}
.hero-section.solutions-hero {
    background: linear-gradient(135deg, #1a2a6c, #3498db);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}
.hero-section h1 {
    font-size: 40px;
    margin-bottom: 10px;
}
.hero-section p {
    font-size: 18px;
    opacity: 0.9;
}
.solutions-section {
    padding: 80px 0;
    background-color: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff;
}
.section-header p {
    color: #666;
    font-size: 18px;
    margin-top: 20px;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.solution-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 30px;
}
.industry-solutions {
    background-color: #fff;
    padding: 80px 0;
}
.industry-tabs .tab-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.industry-content {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 10px;
}
.case-studies {
    background-color: #fff;
    padding: 80px 0;
}
.case-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.case-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
}
.case-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}
.stat-label {
    color: #666;
}
.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
}
