/* 全局样式 */
:root {
    --primary-color: #0066CC;
    --secondary-color: #333333;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e5e5e5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

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

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

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

/* 菜单按钮样式 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-image: url('../images/icons/menu.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    padding: 0;
    z-index: 100;
}

/* 语言切换样式 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover,
.language-btn.active {
    background: var(--primary-color);
    color: white;
}

[lang="en"] {
    display: none;
}

.en [lang="zh"] {
    display: none;
}

.en [lang="en"] {
    display: block;
}

/* 对于内联元素的语言切换 */
span[lang="en"] {
    display: none;
}

.en span[lang="zh"] {
    display: none;
}

.en span[lang="en"] {
    display: inline;
}

/* 主横幅样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-color: #666;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

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

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: white;
}

.hero-image {
    max-width: 1200px;
    margin: 2rem auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.btn.primary {
    background-color: #0066cc;
    color: white;
    border: none;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn.primary:hover {
    background-color: #0052a3;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 服务部分样式 */
.services {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 解决方案样式 */
.solutions {
    padding: 5rem 2rem;
}

.solutions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.solution-image {
    height: 250px;
    overflow: hidden;
}

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

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

.solution-content {
    padding: 2rem;
}

.solution-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.solution-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.solution-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.solution-content ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 解决方案详情样式 */
.solutions-detail {
    padding: 5rem 0;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem;
}

.solution-item:nth-child(even) {
    direction: rtl;
}

.solution-item:nth-child(even) .solution-content {
    direction: ltr;
}

.solution-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.solution-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* 方案优势样式 */
.solution-advantages {
    padding: 5rem 0;
    background: var(--light-gray);
}

.solution-advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .solution-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
    }

    .solution-content {
        direction: ltr !important;
    }

    .solution-content h2 {
        font-size: 2rem;
    }

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

    .advantages-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* 页脚样式 */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .main-nav {
        height: 60px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        height: 100%;
        position: relative;
    }

    .menu-toggle {
        display: inline-block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-right {
        position: absolute;
        right: 10px;
    }

    .language-switch {
        margin-left: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem;
        text-align: center;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content p {
        font-size: 1.2em;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* 发展历程适配 */
    .timeline::before {
        left: 50px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 100px;
    }

    .year {
        position: absolute;
        left: 0;
        top: 0;
        width: 80px;
        height: 80px;
        font-size: 1.3rem;
        margin: 0;
    }

    .event {
        width: 100%;
        margin-top: 10px;
    }
}

/* 页面通用横幅 */
.page-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

/* 容器通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 关于页面样式 */
.about-intro {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 核心优势样式 */
.core-advantages {
    padding: 5rem 0;
    background: var(--light-gray);
}

.core-advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

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

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 发展历程样式 */
.history {
    padding: 4rem 0;
    background: var(--light-gray);
}

.history h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.year {
    background: var(--primary-color);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    margin: 0 2rem;
    flex-shrink: 0;
}

.event {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.event h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 移动端适配样式 */
@media (max-width: 768px) {
    /* 发展历程适配 */
    .timeline::before {
        left: 50px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 100px;
    }

    .year {
        position: absolute;
        left: 0;
        top: 0;
        width: 80px;
        height: 80px;
        font-size: 1.3rem;
        margin: 0;
    }

    .event {
        width: 100%;
        margin-top: 10px;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .year {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .timeline::before {
        left: 35px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .event {
        padding: 1rem;
    }

    .event h3 {
        font-size: 1.3rem;
    }
}

/* 产品页面样式 */
.product-categories {
    padding: 2rem 0;
    background: var(--light-gray);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: white;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

/* 产品展示区域样式 */
.products-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.product-category {
    margin-bottom: 4rem;
}

.product-category h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-info p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-category {
        margin-bottom: 3rem;
    }
    
    .product-category h2 {
        font-size: 1.8rem;
    }
}

/* 联系页面样式 */
.contact-info {
    padding: 5rem 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 联系表单样式 */
.contact-form {
    padding: 5rem 0;
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-form form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .contact-form form {
        padding: 2rem;
        margin: 0 1rem;
    }
}
