/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #06c;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* 容器和通用布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 */
h3, h4, .section-title, .about-header h2 {
    color: #333;
}

.section-title, .about-header h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #06c;
}

/* 按钮样式 */
.btn, .btn-secondary {
    display: inline-block;
    font-weight: 600;
    border-radius: 4px;
    transition: all .3s ease;
}

.btn {
    background-color: #06c;
    color: #fff;
    padding: 12px 25px;
}

.btn:hover {
    background-color: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.btn-secondary {
    background-color: transparent;
    color: #06c;
    padding: 10px 20px;
    border: 2px solid #06c;
}

.btn-secondary:hover {
    background-color: #06c;
    color: #fff;
}

/* 页头样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #06c;
}

.logo img {
    max-width: 100px;
    height: auto;
}

/* 导航菜单 */
nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    transition: color .3s ease;
}

nav ul li a:hover {
    color: #06c;
}

/* 英雄区域/轮播图 */
.hero {
    position: relative;
    width: 100%;
    padding-bottom: 33.33%;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide .container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 卡片组件样式 */
.service-card, .testimonial, .company-intro, .cert-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.service-card:hover, .company-intro:hover, .cert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

/* 图标样式 */
.service-icon, .tech-icon, .cert-icon {
    color: #06c;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 3rem;
}

.tech-icon, .cert-icon {
    width: 70px;
    height: 70px;
    background-color: #06c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    transition: all .3s ease;
}

.company-intro:hover .tech-icon {
    transform: scale(1.1);
}

/* 服务和推荐区域 */
.services, .testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p, .about-content p, .product-info p, .intro-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

/* 关于我们区域 */
.about-preview, .about-section, .certifications {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* 网格布局组件 */
.testimonial-slider, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* 组织结构图样式 */
.org-structure {
    margin: 50px 0;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.parent-company {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.company-intro.parent {
    width: 100%;
    border: 2px solid #06c;
    position: relative;
    z-index: 2;
}

.org-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50px;
    position: relative;
    width: 100%;
}

.vertical-line {
    width: 2px;
    height: 30px;
    background-color: #06c;
}

.horizontal-line {
    width: 80%;
    height: 2px;
    background-color: #06c;
    position: absolute;
    bottom: 0;
}

.subsidiary-companies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    position: relative;
}

.subsidiary-companies:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: #06c;
    transform: translateX(-50%);
}

.company-intro.subsidiary {
    border: 2px solid #06c;
    position: relative;
}

.subsidiary-label, .parent-label {
    color: #06c;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.parent-label {
    background-color: #e6f0ff;
}

.subsidiary-label {
    background-color: #f0f7ff;
}

/* 推荐卡片样式 */
.testimonial {
    background-color: #f9f9f9;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #777;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p, .footer-links ul li a, .footer-contact p, .wechat-item p {
    color: #ccc;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: color .3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact i {
    margin-right: 10px;
    color: #06c;
}

.wechat-images {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.wechat-item {
    text-align: center;
}

.wechat-item img {
    width: 100px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wechat-item p {
    font-size: .9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #aaa;
}

/* 产品部分样式 */
.product-section {
    padding: 80px 0;
}

.product-header {
    text-align: center;
    margin-bottom: 60px;
}

.product-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-header p {
    max-width: 800px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image, .product-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.product-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-features {
    margin: 20px 0;
}

.product-features h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.product-features ul {
    padding-left: 20px;
}

.product-features ul li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
    padding-left: 15px;
}

.product-features ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #06c;
}

/* 关于我们页面样式 */
.about-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: #06c;
    margin-bottom: 30px;
    border-bottom: none;
    text-decoration: none;
    position: relative;
}

.about-header .subtitle:after {
    content: none;
    display: none;
    width: 0;
    height: 0;
    background: none;
}

.intro-header {
    text-align: center;
    margin-bottom: 20px;
}

.intro-header h3 {
    font-size: 1.8rem;
    margin: 0;
}

.intro-content {
    padding: 15px 0;
}

/* 认证部分样式 */
.certifications {
    margin-top: 80px;
    border-radius: 8px;
}

.cert-content {
    padding: 20px;
}

.cert-content img {
    max-width: 200px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    margin-bottom: 15px;
    transition: transform .3s ease;
}

.cert-item:hover .cert-content img {
    transform: scale(1.05);
}

.cert-content p {
    font-weight: 600;
    color: #333;
    margin-top: 15px;
}

/* 联系信息样式 */
.contact-info h3, .contact-header h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.company-name {
    margin: 0;
    line-height: .5;
}

.company-name + .company-name {
    margin-top: 0;
}

h3 + h3 {
    margin-top: .5em;
}

/* 响应式布局 - 平板设备 */
@media (max-width: 768px) {
    .hero {
        padding-bottom: 50%;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .product-item, .product-item:nth-child(even) {
        flex-direction: column;
    }
    
    .product-image, .product-info {
        width: 100%;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    /* 组织结构图响应式 */
    .subsidiary-companies {
        grid-template-columns: 1fr;
    }
    
    .horizontal-line {
        width: 2px;
        height: 20px;
        position: static;
    }
    
    .org-connector {
        height: 30px;
    }
}

/* 响应式布局 - 移动设备 */
@media (max-width: 480px) {
    .hero {
        padding-bottom: 75%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .service-grid, .testimonial-slider, .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}