:root {
    --primary-color: #1a5fb4;
    --secondary-color: #26a269;
    --neutral-color: #5e5c64;
    --light-color: #f6f5f4;
    --dark-color: #241f31;
    --spacing-unit: 24px;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 首页横幅样式 */
.hero {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.9), rgba(38, 162, 105, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn:hover {
    background-color: #219a52;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 公司简介样式 */
.about {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--neutral-color);
}

/* 产品服务样式 */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--neutral-color);
    margin-bottom: 20px;
}

/* Amazon评论分析工具样式 */
.tool-showcase {
    padding: 80px 0;
}

.tool-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.tool-info {
    flex: 1;
}

.tool-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.feature-text h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature-text p {
    color: var(--neutral-color);
}

.tool-demo {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.demo-title {
    font-weight: bold;
    color: var(--primary-color);
}

.demo-controls {
    display: flex;
    gap: 10px;
}

.demo-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-btn.close {
    background-color: #ff5f56;
}

.demo-btn.minimize {
    background-color: #ffbd2e;
}

.demo-btn.maximize {
    background-color: #27c93f;
}

.demo-content {
    height: 300px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.demo-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-row {
    display: flex;
    height: 30px;
    margin-bottom: 10px;
    align-items: center;
}

.chart-label {
    width: 100px;
    font-size: 0.9rem;
}

.chart-bar-container {
    flex: 1;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.chart-bar.positive {
    background-color: var(--secondary-color);
}

.chart-bar.neutral {
    background-color: #f9c449;
}

.chart-bar.negative {
    background-color: #e74c3c;
}

.chart-value {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
    margin-left: 10px;
}

.demo-action {
    text-align: center;
    margin-top: 20px;
}

/* 培训体系样式 */
.training {
    padding: 80px 0;
    background-color: var(--light-color);
}

.training-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.training-courses {
    flex: 1;
}

.course-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-item:hover {
    transform: translateX(10px);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.course-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.course-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.course-description {
    color: var(--neutral-color);
    margin-left: 65px;
}

.training-image {
    flex: 1;
    text-align: center;
}

.training-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 案例展示样式 */
.cases {
    padding: 80px 0;
}

.case-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.case-tab {
    padding: 10px 25px;
    margin: 0 5px;
    background-color: var(--light-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.case-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.case-content {
    display: none;
}

.case-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.case-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 20px;
}

.case-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.case-description {
    color: var(--neutral-color);
    margin-bottom: 15px;
}

.case-result {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: bold;
}

.case-result i {
    margin-right: 5px;
}

/* 技术实力样式 */
.technology {
    padding: 80px 0;
    background-color: var(--light-color);
}

.tech-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.tech-info {
    flex: 1;
}

.tech-features {
    margin-top: 30px;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tech-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.tech-text h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.tech-text p {
    color: var(--neutral-color);
}

.tech-visual {
    flex: 1;
    position: relative;
}

.tech-chart {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.chart-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.chart-node {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.chart-node:hover {
    transform: scale(1.1);
    z-index: 10;
}

.chart-node.nlp {
    background-color: var(--primary-color);
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.chart-node.ml {
    background-color: var(--secondary-color);
    top: 200px;
    left: 100px;
}

.chart-node.dv {
    background-color: #e67e22;
    top: 200px;
    right: 100px;
}

.chart-node.mlp {
    background-color: #9b59b6;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.chart-node i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.chart-line {
    position: absolute;
    background-color: #ddd;
    z-index: 1;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--neutral-color);
}

.contact-form {
    flex: 1;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.2);
}

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

.form-submit {
    text-align: right;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

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

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-color);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 粒子动画效果 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .tool-content,
    .training-content,
    .tech-content,
    .contact-content {
        flex-direction: column;
    }

    .chart-node {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 10px auto;
    }

    .chart-node.nlp,
    .chart-node.ml,
    .chart-node.dv,
    .chart-node.mlp {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--box-shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }
}