:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --secondary: #10B981;
    --dark: #1E293B;
    --dark-light: #334155;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --gray-light: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 通用布局和组件 */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 20;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: var(--light);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* 首页英雄区 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('../images/bg-1.png') center center no-repeat;
    background-size: cover;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 248, 253, 0.9) 0%, rgba(233, 241, 255, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 卡片样式 */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--primary);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: var(--dark-light);
}

/* 特性部分 */
.features {
    background-color: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.feature-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-subtitle {
    margin-bottom: 2rem;
    color: var(--dark-light);
}

.feature-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-list {
    list-style: none;
}

.feature-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.feature-item .feature-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-item .feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-item .feature-content p {
    color: var(--dark-light);
}

/* 统计数据部分 */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 产品卡片样式 */
.product-cards .card {
    display: flex;
    flex-direction: column;
}

.product-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    transition: transform 0.3s;
}

.product-link:hover {
    color: var(--primary-light);
}

/* 解决方案部分 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.solution-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.solution-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.solution-image {
    height: 200px;
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-content {
    padding: 2rem;
}

.solution-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--dark-light);
    margin-bottom: 1.5rem;
}

/* 客户案例部分 */
.case-cards .card {
    height: 100%;
}

.case-description {
    margin-bottom: 1rem;
}

.client-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 3rem 0 2rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.client-logo {
    width: 150px;
    height: 80px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    padding: 1rem;
}

.client-logo:hover {
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
}

/* CTA 部分 */
.cta-section {
    text-align: center;
    background: url('../images/cta-bg.jpg') center center;
    background-size: cover;
    padding: 6rem 0;
    position: relative;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 页脚部分 */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-about p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: var(--gray);
}

.footer-contact li svg {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

.footer-bottom a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 15;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .solution-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .client-logos {
        gap: 1.5rem;
    }
    
    .client-logo {
        width: 120px;
        height: 60px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* 无障碍设计优化 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {
    /* 1. 顶部的预约演示移动端不显示 */
    header .btn {
        display: none;
    }
    
    /* 2. 右侧的联系我们移动端不显示 */
    .floating-contact-btn {
        display: none;
    }
    
    /* 3. 探索解决方案、联系我们 按钮文本居中 */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        text-align: center;
        margin: 8px 0;
        width: 200px;
    }
    
    /* 4. 关于我们卡片布局调整 */
    .card {
        text-align: left;
        padding: 20px 15px;
        padding-top: 10px;
    }
    
    .card-icon {
        float: left;
        margin-right: 10px;
        margin-bottom: 0;
        margin-top: 3px;
    }
    
    .card h3 {
        margin-left: 50px;
        margin-bottom: 10px;
        padding-top: 13px;
    }
    
    .card p {
        clear: both;
        margin-top: 15px;
    }
    
    /* 5. 产品中心卡片样式全面调整 */
    .product-cards .card {
        position: relative;
        text-align: left;
        padding: 15px;
        padding-left: 60px;  /* 为左侧图标留出空间 */
    }
    
    .product-cards .card-icon {
        position: absolute;
        left: 15px;
        top: 15px;
        margin: 0;
        width: 35px;
        height: 35px;
    }
    
    .product-cards .card h3 {
        font-size: 1.1rem;
        margin: 0 0 15px 0;
        padding: 0;
        line-height: 1.3;
    }
    
    .product-cards .card p {
        margin: 0 0 12px 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .product-cards .card .product-link {
        margin-top: 10px;
        display: inline-block;
    }
    
    /* 6. 解决方案的标题和描述居中 */
    .solution-content {
        text-align: center;
        padding: 15px 10px;
    }
    
    /* 7. 底部信息居中 */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid > div {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-contact ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .footer-contact ul li svg {
        margin-bottom: 5px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    /* 成功案例卡片样式调整 */
    .case-cards .card {
        text-align: center;
        display: block;
        padding: 20px 15px;
    }
    
    /* 确保所有标题在移动端居中 */
    .section-title, 
    .section-subtitle {
        text-align: center;
    }
    
    /* 让核心技术优势中的列表项在移动端更紧凑 */
    .feature-item {
        margin-bottom: 15px;
    }
    
    .feature-content h4 {
        margin-bottom: 5px;
    }
    
    /* 确保统计数据区域在移动端正确显示 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 移动端导航菜单优化 */
    .nav-links {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    
    .nav-links a {
        margin: 5px 10px;
    }
    
    /* 确保标题区域在移动端正确显示 */
    .hero-content {
        text-align: center;
        padding: 40px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    /* 技术优势区域移动端布局优化 */
    .feature-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .feature-content {
        order: 1;
    }
    
    .feature-image {
        margin-top: 0;
        text-align: center;
        order: 2;
    }
    
    .feature-image img {
        max-width: 100%;
    }
    
    /* 解决方案板块移动端优化 */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-card {
        flex-direction: column;
    }
    
    .solution-image {
        width: 100%;
    }
    
    /* 产品中心标题特别处理 */
    .product-cards .card-icon {
        margin-top: 0;
        width: 35px;
        height: 35px;
    }
    
    .product-cards .card h3 {
        font-size: 1.1rem;
        margin-left: 10px;
        line-height: 1.3;
        padding-top: 8px;
        min-height: 45px;
        display: flex;
        align-items: center;
    }
    
    /* 减小关于我们部分与技术优势部分之间的间距 */
    #about {
        padding-bottom: 0;
    }
    
    .features {
        padding-top: 20px;
    }
    
    /* 如果部分之间边距仍然过大，减小section通用间距 */
    .section {
        padding: 40px 0;
    }
} 