/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

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

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

/* 导航栏 */
.header {
    position: fixed;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 40px;
}

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

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-buttons .btn {
    margin-left: 10px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 2px;
    width: 25px;
    background: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 10px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* 解决方案 */
.solutions {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.solution-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
}

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

.solution-card h3 {
    margin-bottom: 15px;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 服务目录 */
.services {
    padding: 80px 0;
}

.services-tabs {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content-inner {
    display: flex;
    padding: 40px;
    align-items: center;
}

.tab-text {
    flex: 1;
    padding-right: 40px;
}

.tab-text h3 {
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.tab-image {
    flex: 1;
}

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

/* 工具链 */
.toolchains {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.toolchain-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

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

.toolchain-card h3 {
    margin-bottom: 15px;
}

.toolchain-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.toolchain-examples span {
    background: #e9ecef;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 案例研究 */
.cases {
    padding: 80px 0;
}

.cases-slider {
    position: relative;
}

.case-slide {
    display: none;
}

.case-slide.active {
    display: block;
}

.case-content {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 40px;
}

.case-text {
    flex: 1;
    padding-right: 40px;
}

.case-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.case-text h3 {
    margin-bottom: 20px;
}

.case-stats {
    display: flex;
    margin: 20px 0;
}

.stat {
    margin-right: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
}

.case-image {
    flex: 1;
}

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

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-prev, .slider-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-content {
    display: flex;
    align-items: center;
}

.contact-text {
    flex: 1;
    padding-right: 40px;
}

.contact-text h2 {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-form {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

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

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
}

.footer-column {
    margin-left: 40px;
}

.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.copyright p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

/* 动画 */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.animate-text.delay-1 {
    animation-delay: 0.3s;
}

.animate-text.delay-2 {
    animation-delay: 0.6s;
}

.animate-image {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.6s forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
        text-align: center;
    }

    .tab-content-inner {
        flex-direction: column;
    }

    .tab-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .case-content {
        flex-direction: column;
    }

    .case-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .footer-column {
        margin: 0 20px 20px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

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

    .header-buttons {
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: none;
        width: 50%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}