/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 40px;
}

/* 导航菜单 */
.desktop-menu {
    display: none;
    flex: 1;
    justify-content: center;
    gap: 30px;
}

.desktop-menu a {
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-menu a:hover {
    color: #333;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 101;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 100;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* 语言选择器 - 修复显示问题 */
.language-container {
    position: relative;
    z-index: 100; /* 确保在其他内容上方 */
}

.language-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.language-btn:hover {
    border-color: #999;
}

.language-btn svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 5px;
    padding: 5px 0;
    list-style: none;
}

.language-menu.active {
    display: block;
}

.language-menu li {
    margin: 0;
    padding: 0;
}

.language-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.language-menu a:hover {
    background-color: #f5f5f5;
}

/* 移动版语言选择器 */
.mobile-language {
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.mobile-language-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
}

.mobile-language-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-language-menu a {
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    border-bottom: none 
}

/* Hero区域 */
.hero {
    background-color: #0f172a;
    color: #4f46e5; /* 文字基础颜色跟按钮一致 */
    background-image: url('banner.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #4f46e5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* 黑色阴影，类似描边效果 */
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #4f46e5;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #4f46e5;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #f0f0f0;
}


/* Why We Do This Section */
.why-we-do-this {
    background-color: #f5f5f5; /* 可根据需要调整背景色 */
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    padding: 100px 20px;      /* 上下左右间距 */
    text-align: center;       /* 文字水平居中 */
}

.why-we-do-this .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;       /* 下方间距 */
    color: #4f46e5;            /* 标题颜色，与按钮一致 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* 轻微阴影提高可读性 */
}

.why-we-do-this .why-content {
    max-width: 800px;          /* 控制段落宽度 */
    margin: 0 auto;
    color: #333;
    line-height: 1.7;
    font-size: 1.1rem;
}

.why-we-do-this .why-content p {
    margin-bottom: 20px;       /* 段落间距 */
}

/* 响应式调整 */
@media (max-width: 767px) {
    .why-we-do-this {
        padding: 60px 15px;   /* 移动端上下间距更紧凑 */
    }

    .why-we-do-this .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .why-we-do-this .why-content {
        font-size: 1rem;
        line-height: 1.6;
    }
}




/* 优势区域 */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.advantage-card {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}



/* 流程区域 */
.process {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.process-step {
    text-align: center;
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}



/* 案例研究 */
.case-studies {
    padding: 80px 0;
    background-color: white;
}

.case-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.case-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}


/* About Me Section */
.about-me {
    background-color: #ffffff; /* 可换成 #f5f5f5 以区分 Case Studies / Contact */
    padding: 80px 20px;
    text-align: center;
}

.about-me .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #4f46e5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* 头像特效 */
.about-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #4f46e5, #8b5cf6, #4f46e5);
    border: 4px solid transparent;
    background-clip: padding-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.about-photo img:hover {
    transform: rotate(5deg) scale(1.08);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 文字内容 */
.about-text {
    max-width: 600px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* 社交媒体按钮 */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center; /* 居中 */
    gap: 15px; /* 按钮间距 */
}

.social-links a {
    padding: 8px 15px;
    background-color: #4f46e5;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.social-links a:hover {
    background-color: #4338ca;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-photo img {
        width: 200px;
        height: 200px;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .social-links {
        gap: 10px;
        flex-wrap: wrap;
    }
}





/* 联系区域 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-btn {
    display: block;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.email-btn {
    background-color: #4f46e5;
    color: white;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.call-btn {
    background-color: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.email-btn:hover {
    background-color: #4338ca;
}

.whatsapp-btn:hover {
    background-color: #1da851;
}

.call-btn:hover {
    background-color: #f5f5f5;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-language {
        display: none; /* 桌面版隐藏移动语言选择器 */
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .language-container {
        display: none; /* 移动版隐藏顶部语言选择器 */
    }
    
}
