/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 板块通用样式 */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px;
}

/* 首页Banner样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.banner-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 产品介绍样式 */
.product-intro {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 解决方案样式 */
.solutions {
    background-color: #f8f9fa;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.solution-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.solution-problem h4, .solution-benefit h4 {
    font-size: 16px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.solution-problem {
    margin-bottom: 20px;
}

.solution-benefit ul {
    list-style: none;
    padding-left: 0;
}

.solution-benefit li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #666;
}

.solution-benefit li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 客户案例样式 */
.case-studies {
    background-color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.case-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.case-industry {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 20px;
}

.case-challenge h4, .case-result h4 {
    font-size: 16px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.case-challenge {
    margin-bottom: 20px;
}

.case-result ul {
    list-style: none;
    padding-left: 0;
}

.case-result li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #666;
}

.case-result li::before {
    content: '📈';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* 关于我们样式 */
.about-us {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.about-info h3, .about-strengths h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-strengths ul {
    list-style: none;
    padding-left: 0;
}

.about-strengths li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.about-strengths li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* 联系我们样式 */
.contact-us {
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #3498db;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-form p {
    color: #666;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input, select, textarea {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #3498db;
    opacity: 1;
}

.footer-copyright {
    margin-top: 20px;
    opacity: 0.6;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 首页Banner */
    .banner {
        padding: 100px 0 60px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-highlights {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .highlight-item {
        width: 80%;
    }

    /* 板块样式 */
    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 28px;
    }

    /* 通用网格布局 */
    .features-grid, .solutions-grid, .cases-grid, .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 按钮样式 */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 联系表单 */
    .contact-form {
        order: -1;
    }
}

@media (max-width: 480px) {
    /* 首页Banner */
    .banner-content h1 {
        font-size: 28px;
    }

    .highlight-item {
        width: 100%;
        font-size: 14px;
    }

    /* 板块标题 */
    section h2 {
        font-size: 24px;
    }

    /* 通用内边距 */
    .feature-item, .solution-item, .case-item, .about-info, .about-strengths, .contact-info, .contact-form {
        padding: 20px;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item, .solution-item, .case-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 表单提交加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* 平滑滚动效果 - 添加浏览器兼容性 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 修复IE11的grid布局问题 */
@supports not (display: grid) {
    .features-grid,
    .solutions-grid,
    .cases-grid,
    .about-content,
    .contact-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-item,
    .solution-item,
    .case-item,
    .about-info,
    .about-strengths,
    .contact-info,
    .contact-form {
        flex: 1 1 300px;
        margin: 15px;
    }
}