/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.poster-display {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.poster-image {
    width: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-logo h2 {
    background: linear-gradient(135deg, #38b2ac 0%, #f687b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.language-switcher {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.language-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    padding: 0;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.language-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.language-btn.active {
    color: rgba(255, 255, 255, 1);
}

.language-separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: -2px 12px 0 4px;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    margin-top: 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d3748;
    padding: 120px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 600px;
    gap: 4rem;
}

/* 左侧内容区域 */
.hero-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    justify-content: center;
}

/* 右侧内容区域 */
.hero-right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 首页内容样式 */
.hero-content {
    text-align: left;
}

/* 介绍副标题样式 */
.intro-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    line-height: 1.3;
}

/* 介绍描述样式 */
.intro-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0;
}

/* 确保照片框宽度一致 */
.hero-container .image-slider,
.hero-container .placeholder-image {
    width: 100% !important;
    max-width: 400px !important;
    flex-shrink: 0 !important;
}

/* 强制照片框宽度，覆盖所有可能的样式 */
.hero-container .image-slider,
.hero-container .placeholder-image,
.hero-container .hero-image {
    width: 100% !important;
    max-width: 400px !important;
    min-width: 400px !important;
    flex-shrink: 0 !important;
}

/* 强制照片框样式，确保没有红色背景 */
.hero-container .placeholder-image {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px dashed rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 介绍伴伴板块样式 */
.intro {
    padding: 100px 0;
    background: #f7fafc;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #475569;
}

.intro-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-gallery .image-slider {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 介绍伴伴板块中的照片样式 */
.intro-gallery .placeholder-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    border: none !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

/* 测试完成 - CSS文件正常加载 */

/* 所有英文版特殊样式已移除，确保与中文版完全一致 */

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    min-height: 4.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* 英文版标题并列显示 */
.hero-title[data-lang="en"] {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    min-height: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    min-height: 3rem;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #2d3748;
    color: white;
}

.placeholder-image {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px dashed rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    height: 300px !important;
    width: 100% !important;
    max-width: 400px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* 图片轮播样式 */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    position: relative;
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
}



/* 应用场景 */
.scenarios {
    padding: 100px 0;
    background: #ffffff;
}

.scenarios-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 左侧约2/3，右侧约1/3 */
    gap: 2rem;
    align-items: start;
}

.scenarios-left {
    min-height: 200px;
}

.scenarios-right {
    display: flex;
    justify-content: center;
}

.scenarios-image {
    width: 100%;
    max-width: 360px;
    height: 240px;
}

/* 功能特色 */
.features {
    padding: 100px 0;
    background: #f0f4f8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon .icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
}



.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: white;
}

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

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #64748b;
    font-weight: 500;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 页脚 */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section p,
.footer-section li {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #cbd5e1;
}

/* 常见问题解答样式 */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    transition: transform 0.3s ease;
    user-select: none;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .hero-left-content {
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        justify-content: center;
    }

    .intro-subtitle {
        text-align: center;
        font-size: 1.5rem;
    }

    .intro-description {
        text-align: center;
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-right-content {
        order: -1;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 应用场景在移动端改为上下布局 */
    .scenarios-content {
        grid-template-columns: 1fr;
    }
    .scenarios-right {
        order: -1; /* 图片在上 */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .container {
        padding: 0 15px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
    }
}
