/* css/style.css */

/* --- 全局样式与重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 确保内边距和边框不增加元素的总宽度和高度 */
}

body {
    font-family: 'Open Sans', 'Roboto', Arial, sans-serif; /* 字体优先级，Open Sans 或 Roboto 是常用且易读的无衬线字体 */
    line-height: 1.6;
    color: #333; /* 主体文字颜色 */
    background-color: #f8f9fa; /* 轻微的背景色，增加层次感 */
    margin: 0 auto;
    overflow-x: hidden; /* 防止水平滚动条 */
}

a {
    text-decoration: none; /* 移除链接下划线 */
    color: #007bff; /* 默认链接颜色 (科技现代风主色) */
}

a:hover {
    color: #0056b3; /* 链接悬停颜色 */
}

ul {
    list-style: none; /* 移除列表默认样式 */
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* 标题颜色 (深灰蓝) */
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
p { margin-bottom: 1em; }


/* --- 布局容器 --- */
.container {
    max-width: 1200px; /* 网站最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 20px; /* 左右内边距 */
}

/* --- 头部导航 (Header) --- */
header {
    background-color: #ffffff; /* 导航背景色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 底部阴影 */
    padding: 15px 0;
    position: sticky; /* 粘性导航，滚动时固定在顶部 */
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex; /* Flexbox布局 */
    justify-content: space-between; /* 子元素两端对齐 */
    align-items: center; /* 垂直居中 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px; /* Logo高度 */
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 30px; /* 导航项间距 */
}

header nav ul li a {
    color: #333;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* active 类用于当前页面 */
    color: #007bff;
}

/* --- 英雄区 (Hero Section) --- */
.hero-section {
    background: linear-gradient(to right, #007bff, #0056b3); /* 渐变背景 (科技现代风主色) */
    color: white;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* 用于图片定位 */
    overflow: hidden; /* 防止图片溢出 */
}

.hero-section h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    opacity: 0.9;
}

.hero-section .cta-button,
.hero-section .secondary-button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-section .cta-button {
    background-color: #28a745; /* 绿色CTA按钮 (科技现代风辅助色) */
    color: white;
    border: none;
}

.hero-section .cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.hero-section .secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-section .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-section img {
    max-width: 400px; /* 图片大小 */
    margin-top: 40px;
    animation: fadeInScale 1s ease-out forwards; /* 简单动画 */
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


/* --- 通用内容区 (Sections) --- */
section {
    padding: 60px 20px;
    text-align: center;
}

section:nth-child(even) { /* 交替背景色，增加视觉分离 */
    background-color: #f0f2f5;
}

section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after { /* 标题下划线装饰 */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #007bff; /* 标题下划线颜色 (科技现代风主色) */
    border-radius: 2px;
}

/* --- 特性网格 (Features Grid) --- */
.features-grid, .service-cards, .use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 响应式网格 */
    gap: 30px; /* 网格间距 */
    max-width: 1000px;
    margin: 0 auto;
    text-align: left; /* 内容左对齐 */
}

.feature-item, .card, .use-case-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover, .card:hover, .use-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-item h3, .card h3, .use-case-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #333;
}

.feature-item h3 img, .use-case-item h3 img {
    height: 30px; /* 图标大小 */
    margin-right: 10px;
}

.card h3 a {
    color: #333;
}

.card .learn-more {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    font-weight: 600;
}

.card .learn-more:hover {
    text-decoration: underline;
}

/* --- 底部CTA --- */
.call-to-action-bottom {
    background-color: #007bff; /* 底部CTA背景色 (科技现代风主色) */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.call-to-action-bottom h2 {
    color: white;
    font-size: 2.5em;
}

.call-to-action-bottom p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.call-to-action-bottom .cta-button {
    background-color: #28a745; /* 绿色CTA按钮 */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.call-to-action-bottom .cta-button:hover {
    background-color: #218838;
}

.call-to-action-bottom .small-text {
    font-size: 0.9em;
    margin-top: 20px;
    opacity: 0.8;
}

/* --- 客户Logo (Client Logos) --- */
.client-logos {
    padding: 60px 20px;
    text-align: center;
}

.client-logos h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Logo间距 */
    max-width: 1000px;
    margin: 0 auto;
}

.logos-container img {
    height: 60px; /* Logo高度 */
    filter: grayscale(100%); /* 灰色效果 */
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-container img:hover {
    filter: grayscale(0%); /* 悬停彩色 */
    opacity: 1;
}

/* --- 页脚 (Footer) --- */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.footer-nav ul {
    margin-bottom: 20px;
}

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

.footer-nav ul li a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

.contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.social-media {
    margin-top: 20px;
}

.social-media img {
    height: 30px;
    margin-right: 15px;
    transition: transform 0.2s ease;
}

.social-media img:hover {
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    opacity: 0.7;
}

/* --- 其他页面特定样式 --- */
.page-hero { /* 用于非首页的页面顶部Banner */
    background: linear-gradient(to right, #007bff, #0056b3); /* 渐变背景 (科技现代风主色) */
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 2.8em;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: left; /* 正文左对齐 */
}

.content-section h2, .content-section h3 {
    text-align: center; /* 标题居中 */
}
.content-section h2::after, .content-section h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px; /* 列表缩进 */
    list-style: disc; /* 默认点样式 */
}
.content-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-section ul li, .content-section ol li {
    margin-bottom: 8px;
}

/* Pricing Table Specifics */
.pricing-table {
    margin-top: 40px;
    overflow-x: auto; /* Allow horizontal scroll on small screens */
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.pricing-table th, .pricing-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.pricing-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.pricing-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.pricing-table tr:hover {
    background-color: #e9e9e9;
}

.pricing-table .note {
    font-size: 0.9em;
    color: #555;
    text-align: left;
    margin-top: 20px;
}

.pricing-table .note ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
}

.payment-methods img {
    height: 45px; /* Adjust as needed */
    width: auto;
    max-width: 100px; /* Ensure images don't stretch too much */
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px 10px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* Case Study Specifics */
.case-study-item {
    margin-bottom: 60px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.case-study-item h2 {
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}
.case-study-item h2::after {
    background-color: #007bff;
}

.case-study-item h3 {
    font-size: 1.4em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.case-study-item ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.case-study-item .quote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.client-logo-placeholder {
    text-align: center;
    font-size: 1.2em;
    color: #777;
    margin-bottom: 20px;
}
.contact-for-case-studies {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
}
.contact-for-case-studies a {
    color: #007bff;
    font-weight: bold;
}


/* FAQ Specifics */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.faq-item h3 {
    color: #007bff; /* FAQ 问题颜色 */
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* Space for toggle icon */
}

.faq-item h3::after { /* Toggle icon */
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: normal;
    color: #555;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation for '-' */
}

.faq-item .answer {
    display: none; /* Hide answer by default */
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.faq-item.active .answer {
    display: block; /* Show answer when active */
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.contact-info-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-info-block h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.contact-info-block p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-info-block .social-media-contact a {
    display: block;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-info-block .social-media-contact a:hover {
    background-color: #218838;
}

.contact-info-block .small-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- 响应式设计 (Media Queries) --- */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    header nav {
        flex-direction: column; /* 手机上导航堆叠 */
        align-items: center;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 10px 15px; /* 调整间距 */
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .features-grid, .service-cards, .use-case-grid, .contact-grid {
        grid-template-columns: 1fr; /* 单列布局 */
    }

    .feature-item, .card, .use-case-item, .contact-info-block {
        margin: 0 auto; /* 居中 */
        max-width: 400px; /* 限制手机上宽度 */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 30px;
    }
    .footer-nav ul li {
        margin: 0 10px 10px 10px;
    }

    .contact-info {
        margin-top: 20px;
    }
    .social-media {
        justify-content: center;
    }

    .pricing-table table {
        font-size: 0.9em; /* Smaller font for tables on mobile */
    }
}

@media (max-width: 480px) {
    .hero-section .cta-button,
    .hero-section .secondary-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .logos-container img {
        height: 45px; /* Smaller logos on very small screens */
    }
}