/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 注意：这里改成了 #section1，对应 HTML 中的 id="section1" */
#section1 {
    position: relative;
    width: 100%;
    height: 100vh; /* 核心修复：必须设置高度为屏幕高度，否则是 0 */
    background-color: #050510;
    overflow: hidden;
}

/* 注意：这里改成了 #three-container，对应 HTML 中的 id="three-container" */
#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, #050510 90%);
    pointer-events: none;
}

/* 确保 .content 能覆盖在上面 */
#section1 .content {
    position: relative;
    z-index: 10;
    /* 如果文字也是黑色，可能会看不见，建议强制设置白色 */
    color: #ffffff; 
    height: 100%; /* 让内容区域也撑满 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容垂直居中 */
    align-items: center;
}

:root {
    --primary-purple: #8B34BA;
    --secondary-purple: #561780;
    --accent-purple: #D140C1;
    --dark-bg: #0a0118;
    --gradient-blue: #0ea5e9;
    --gradient-purple: #a855f7;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 60px;
    background: rgba(10, 1, 24, 0.35);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 52, 186, 0.2);
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.lang-btn, .contact-btn {
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: 1px solid rgba(139, 52, 186, 0.3);
    padding: 10px 20px;
}

.lang-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
}

.lang-text {
    font-size: 14px;
}

.lang-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 52, 186, 0.6);
}

.contact-btn {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
}

/* 通用section样式 */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 60px 60px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.content {
    max-width: 1500px;
    width: 100%;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

/* 粒子画布 */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 第一屏 */
.section-1 {
    background-position: center center !important;
    background-size: cover !important;
    text-align: center;
    position: relative;
}



.section-1 .content {
    position: relative;
    z-index: 2;
}

/* Logo占位符 */
.logo img, .hero-logo img, .modal-logo {
    max-height: 100%;
}

img[src*=".png"]:not([src]) {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent);
    min-width: 100px;
    min-height: 100px;
}

.main-title {
    font-size: 75px;
    font-weight: 700;
    margin-bottom: 1px;
    color: white !important;
    letter-spacing: 12px;
}

/* 添加在这行下面 */
html[lang="en"] .main-title {
    font-size: 60px;
    letter-spacing: 3px;   /* 这里修改您想要的英文字号 */
}

.subtitle {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 80px;
    letter-spacing: 3px;
    line-height: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

html[lang="en"] .subtitle {
    font-size: 19px;  /* 英文从21px改为18px */
    letter-spacing: 2px;  /* 英文减小字间距 */
    line-height: 1.8;  /* 英文行高可以稍小 */
}

.scroll-hint {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: wheel 2s ease-in-out infinite;
}



/* 第二屏 */
.section-2 {
    background-position: center center !important;
    background-size: cover !important;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

html[lang="en"] .section-title {
    font-size: 40px;  /* 英文从40px改为36px */
}

.section-5 .section-title {
    margin-bottom: 40px;
}

.title-deco {
    color: var(--accent-purple);
    margin: 0 20px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

.title-deco-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
    animation: sparkle 2s ease-in-out infinite;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 70px);
    max-width: 1346px;
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}


.card-bg-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(139, 52, 186, 0.4));
    object-fit: contain;
}

.card-text-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 0 30px;      /* 左右缩进 20px */
    z-index: 10;
}


.card-text-overlay h3 {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

html[lang="en"] .card-text-overlay h3 {
    font-size: 16px;  /* 英文从26px改为24px */
    margin-bottom: 10px;  /* 英文可以减小间距 */
}

.card-text-overlay p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

html[lang="en"] .card-text-overlay p {
    font-size: 15px;  /* 英文从16px改为15px */
    line-height: 1.6;  /* 英文行高可以稍小 */
}

html[lang="zh-CN"] .card-text-overlay.bottom0 {
    bottom: 8%; /* 中文距离底部20% */
}

/* 英文样式 - bottom1控制距离 */
html[lang="en"] .card-text-overlay.bottom1 {
    bottom: 2%; /* 英文距离底部5% */
}

.card-text-overlay {
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align: center;
}

html[lang="en"] .card-text-overlay {
    width: 89% !important; /* 英文状态下更宽 */
    padding: 0 20px !important;
}



.card-hover:hover {
    transform: scale(1.08) translateY(-15px);
}

.card-hover:hover .card-bg-image {
    filter: drop-shadow(0 15px 50px rgba(139, 52, 186, 0.7));
}

/* 第三屏 */
.section-3 {
    background-position: center center !important;
    background-size: cover !important;
}

.web-diagram {
    position: relative;
    height: 700px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-item {
    position: absolute;
    width: 170px;
    height: 170px;
    z-index: 2;
}



.bubble-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(139, 52, 186, 0.6));
    mix-blend-mode: screen;
    opacity: 0.9;
}

.bubble-purple img {
    filter: drop-shadow(0 10px 30px rgba(139, 52, 186, 0.7));
    mix-blend-mode: screen;
}

.bubble-red img {
    filter: drop-shadow(0 10px 30px rgba(233, 30, 99, 0.7));
    mix-blend-mode: screen;
}

.bubble-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble-label {
    font-size: 24px;
    color:  #ffffff;
    text-transform: lowercase;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(107, 91, 255, 0.8),    /* 蓝紫色偏光 */
    0 0 15px rgba(192, 132, 252, 0.7),   /* 紫色光 */
    0 0 25px rgba(192, 66, 224, 0.6),    /* 紫红色光 */
    0 0 40px rgba(192, 66, 224, 0.4);    /* 更大范围扩散光 */
}




.bubble-content {
    font-size: 24px;
    color: #ffffff; 
    font-weight: 600;
    text-shadow:
    0 0 8px rgba(107, 91, 255, 0.8),    /* 蓝紫色偏光 */
        0 0 15px rgba(192, 132, 252, 0.7),   /* 紫色光 */
        0 0 25px rgba(192, 66, 224, 0.6),    /* 紫红色光 */
        0 0 40px rgba(192, 66, 224, 0.4);    /* 更大范围扩散光 */
}

 :root {
    /* Logo位置变量 */
    --logo-top: 47%;
    --logo-left: 55%;
    --logo-transform: translate(-50%, -50%);
    --logo-size: 120px;
    
    /* 文字位置变量 */
    --text-top: 62%;
    --text-left: 3%;
    --text-transform: translateX(-50%);
    --text-width: 400px;
    
    /* 文字大小变量 */
    --text-font-size: 25px;
    --text-line-height: 1.5;
}

/* 英文状态下的变量值 */
html[lang="en"] {
    /* Logo位置 - 英文时调整 */
    --logo-top: 50%;
    --logo-left: 56.5%;
    --logo-size: 140px;
    
    /* 文字位置 - 英文时调整 */
    --text-top: 55%;
    --text-left: 2%;
    --text-width: 400px;
    
    /* 文字大小 - 英文时调整 */
    --text-font-size: 20px;
    --text-line-height: 1.4;
}

/* 应用CSS变量 */
.center-logo {
    position: absolute;
    top: var(--logo-top);
    left: var(--logo-left);
    transform: var(--logo-transform);
    z-index: 10;
    transition: all 0.5s ease;
}

.center-logo img {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.7));
    transition: all 0.5s ease;
}

.center-text {
    position: absolute;
    top: var(--text-top);
    left: var(--text-left);
    transform: var(--text-transform);
    text-align: center;
    z-index: 10;
    width: var(--text-width);
    transition: all 0.5s ease;
}

.center-text p {
    font-size: var(--text-font-size);
    font-weight: 600;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: var(--text-line-height);
    transition: all 0.5s ease;
}

/* 中文默认大小 */
:root {
    --center-logo-size: 130px;
}

/* 英文状态下的logo大小 */
html[lang="en"] {
    --center-logo-size: 170px; /* 英文时缩小 */
}

/* 应用变量 */
.center-logo img {
    width: var(--center-logo-size);
    height: var(--center-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(168, 85, 247, 0.9));
    animation: pulse 3s ease-in-out infinite;
}



html[lang="en"] .center-text p {
    font-size: 18px;  /* 英文从20px改为18px */
}

.center-text p.no-wrap {
    font-size: 24px;
    white-space: nowrap;
}

/* 气泡漂浮动画：随机方向漂移 + 缓慢速度 */
@keyframes float-free {
    0% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(20px, -15px) rotate(2deg) scale(1.02);
    }
    40% {
        transform: translate(-15px, 20px) rotate(-1.5deg) scale(0.98);
    }
    60% {
        transform: translate(25px, -10px) rotate(1deg) scale(1.03);
    }
    80% {
        transform: translate(-10px, 15px) rotate(-2deg) scale(0.99);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg) scale(1);
    }
}

/* 所有气泡应用漂浮动画 */
.bubble-float {
    animation-name: float-free;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* 不同气泡设置不同周期和延迟，让漂浮更自然 */
.bubble-item:nth-child(1) { animation-duration: 10s; animation-delay: 0s; }
.bubble-item:nth-child(2) { animation-duration: 12s; animation-delay: 2s; }
.bubble-item:nth-child(3) { animation-duration: 11s; animation-delay: 1s; }
.bubble-item:nth-child(4) { animation-duration: 13s; animation-delay: 3s; }
.bubble-item:nth-child(5) { animation-duration: 9s;  animation-delay: 0.5s; }
.bubble-item:nth-child(6) { animation-duration: 14s; animation-delay: 1.5s; }



/* 第四屏 */
.section-4 {
    background: transparent;
    position: relative;
}

.section-4-bg-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: url('../images/screen_3/banner1.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.section-4-bg-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: url('../images/screen_3/banner2.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.section-4 .content {
    position: relative;
    z-index: 10;
}

.rays-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.business-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 四列结构 */
    gap: 40px 50px;
    max-width: 1400px;
    margin: 60px auto 0;
}

/* 第一行两个大卡片：6 栏中各占 3 栏 */
.business-grid .business-card:nth-child(1),
.business-grid .business-card:nth-child(2) {
    grid-column: span 3;
}

/* 第二行三个小卡片：6 栏中各占 2 栏 */
.business-grid .business-card:nth-child(3),
.business-grid .business-card:nth-child(4),
.business-grid .business-card:nth-child(5) {
    grid-column: span 2;
}





.business-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: visible; /* 允许放大时不裁切 */
}

.business-card-with-bg {
    background: none;
}

.business-card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(139, 52, 186, 0.5));
    transition: all 0.4s ease;
    object-fit: contain;
}

/* ⬇ ⬇ ⬇ 这里是重点：卡片 hover 整体放大，包含图片 + 文字 */
.business-card:hover .business-card-image {
    transform: translateY(-12px) scale(1.06);
    filter: drop-shadow(0 20px 55px rgba(139, 52, 186, 0.9));
}

/* ⬇ ⬇ ⬇ 文字随图片一起上移 + 放大 */
.business-card:hover .business-card-text-overlay {
    transform: translateX(-50%) translateY(-12px) scale(1.06);
}


.business-card-text-overlay {
    position: absolute;
    top:70%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
    z-index: 10;
    transition: all 0.4s ease; /* 添加平滑动画 */
}

.business-card-text-overlay h3 {
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.business-card-text-overlay p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

html[lang="en"] .business-card-text-overlay p {
    font-size: 16px;  /* 英文从17px改为16px */
    line-height: 1.6;  /* 英文行高可以稍小 */
}

html[lang="en"] .business-grid .business-card:nth-child(3) .business-card-text-overlay,
html[lang="en"] .business-grid .business-card:nth-child(4) .business-card-text-overlay,
html[lang="en"] .business-grid .business-card:nth-child(5) .business-card-text-overlay {
    bottom: 5% !important;  /* 从2%改为1%，更靠近底部 */
    top: auto !important;   /* 确保top不会干扰 */
}

.business-card:hover .business-card-image {
    transform: translateY(-10px);
    filter: drop-shadow(0 15px 50px rgba(139, 52, 186, 0.8));
}

.business-card.large {
    grid-column: span 1;
}
/* 第一行两个卡片：文字靠左 */
.business-grid .business-card:nth-child(1) .business-card-text-overlay,
.business-grid .business-card:nth-child(2) .business-card-text-overlay {
    left: 8%;                 /* 靠左 */
    transform: none;          /* 去掉水平居中 transform 影响 */
    top: 35%;              /* 可微调位置（比第二行更上）*/
    text-align: left;         /* 文本左对齐 */
    width: 45%;               /* 文字区域不占满，让布局更像官网 */
}

/* 第一行 hover 状态时，左侧文字同步放大 + 上移 */
.business-grid .business-card:nth-child(1):hover .business-card-text-overlay,
.business-grid .business-card:nth-child(2):hover .business-card-text-overlay {
    transform: translateY(-12px) scale(1.06);
}

/* 第五屏 */
.section-5 {
    background-position: center center !important;
    background-size: cover !important;
    min-height: 70vh;
    padding: 150px 60px 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    text-align: center;
    position: relative;
    margin-bottom: 0px;  /* 确保没有额外外边距 */
}



.partner-item {
    margin-bottom: 0 !important;
}

.partner-logo-bg {
    width: 450px;  /* 设置固定宽度 */
    height: 100px;  /* 设置固定高度 */
    aspect-ratio: 1;
    transition: all 0.4s ease;
    position: relative;
    margin: 0;  /* 清除外边距 */
}

.partner-logo-bg:hover {
    transform: scale(1.08);
}

.partner-logo-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(139, 52, 186, 0.5));
}

.partner-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    width: 80%;
}

/*logo插入*/
.partner-logo-bg {
    position: relative;      /* 为圆形和文本提供定位参照 */
    width: 100%;
    min-height: 150px;       /* 背景高度可调 */
    overflow: hidden;
    transition: transform 0.4s ease; /* hover动画 */
}

.partner-logo-bg:hover {
    transform: scale(1.08); /* 背景放大 */
}

/* 背景图 */
.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 圆形在背景内部左侧 */
.circle {
    position: absolute;
    left: 10px;              /* 距离背景左边距 */
    top: 50%;                /* 垂直居中 */
    transform: translateY(-50%);
    width: 55px;             /* 圆形大小可调 */
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* logo顺应圆形大小 */
}

/* 文本在圆形右侧 */
.partner-text {
    position: absolute;
    left: 120px;             /* 圆形右边+间距 */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.partner-text {
    position: absolute;
    left: calc(20px + 55px + 20px); /* 圆形宽度80px + 左边距20px + 圆形与文字间距20px */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    max-width: calc(100% - (20px + 55px + 20px + 20px)); 
    /* 背景宽度减去左侧圆形和边距, 保证不超出背景 */
    word-wrap: break-word;   /* 自动换行 */
    overflow: hidden;        /* 防止超出显示 */
}


.partner-hkust .partner-text {
    font-size: 15px !important; /* 使用!important确保优先级 */
    line-height: 1.2; /* 调整行高适应小字体 */
     /* 如果需要进一步调整位置 */
    
}
html[lang="en"] .partner-text {
    font-size: 17px !important; /* 从14px增大到16px */
    font-weight: 600 !important; /* 增加字重，更醒目 */
    line-height: 1.3 !important;
    left:90px !important; /* 调整行高适应新字号 */
}

/* 第六屏 */
.section-6 {
    background-position: center center !important;
    background-size: cover !important;
}

.final-title {
    font-size: 46px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.4);
    letter-spacing: 4px;
    line-height: 1.5;
    position: relative;
    top: -150px;
}

html[lang="en"] .final-title {
    font-size: 40px;  /* 英文从46px改为40px */
    letter-spacing: 3px;  /* 英文减小字间距 */
    line-height: 1.3;  /* 英文行高可以稍小 */
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1550 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.modal-logo {
    height: 40px;
}

.modal-decoration {
    position: absolute;
    top: -25px;
    right: 60px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(139, 52, 186, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--accent-purple);
}

.tab-btn:hover {
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 52, 186, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.5);
}

.info-content {
    padding: 40px;
    text-align: center;
}

.info-content p {
    font-size: 18px;
    color: white;
    margin: 15px 0;
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.9));
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes wheel {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* 选中文本样式 */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* 加载动画 */
.section {
    opacity: 0;
    animation: sectionFadeIn 1s ease-out forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
    }
}

/* 为每个section添加不同的延迟 */
.section-1 { animation-delay: 0s; }
.section-2 { animation-delay: 0.1s; }
.section-3 { animation-delay: 0.2s; }
.section-4 { animation-delay: 0.3s; }
.section-5 { animation-delay: 0.4s; }
.section-6 { animation-delay: 0.5s; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .business-grid .business-card:nth-child(1),
    .business-grid .business-card:nth-child(2) {
        grid-column: span 1 !important;
        grid-row: 1 !important;
    }
    
    .business-grid .business-card:nth-child(3),
    .business-grid .business-card:nth-child(4) {
        grid-column: span 1 !important;
        grid-row: 2 !important;
    }
    
    .business-grid .business-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .business-card.large {
        grid-column: span 1;
    }
    
    .web-diagram {
        height: 550px;
    }
    
    .center-logo img {
        width: 240px;
        height: 240px;
    }
    
    .bubble-item {
        width: 150px;
        height: 150px;
    }
    
    .bubble-label {
        font-size: 12px;
    }
    
    .bubble-content {
        font-size: 16px;
    }
    
    .card-text-overlay h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .card-text-overlay p {
        font-size: 12px;
    }
    
    .business-card-text-overlay {
        bottom: 15%;
        width: 85%;
    }
    
    .business-card-text-overlay h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .business-card-text-overlay p {
        font-size: 12px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .lang-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .lang-text {
        font-size: 13px;
    }
    
    .section {
        padding: 70px 25px 40px;
    }
    
    .main-title {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 30px;
        gap: 15px;
    }
    
    .title-deco {
        margin: 0 10px;
    }
    
    .title-deco-img {
        width: 24px;
        height: 24px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card {
        padding: 40px 30px;
    }
    
    .web-diagram {
        height: 450px;
    }
    
    .center-logo img {
        width: 180px;
        height: 180px;
    }
    
    .bubble-item {
        width: 120px;
        height: 120px;
    }
    
    .bubble-label {
        font-size: 10px;
    }
    
    .bubble-content {
        font-size: 14px;
    }
    
    .card-text-overlay {
        bottom: 20%;
        width: 85%;
    }
    
    .card-text-overlay h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .card-text-overlay p {
        font-size: 11px;
    }
    
    .business-card-text-overlay {
        bottom: 12%;
        width: 88%;
    }
    
    .business-card-text-overlay h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .business-card-text-overlay p {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .modal-content {
        width: 95%;
        padding: 35px 25px;
    }
    
    .modal-tabs {
        gap: 5px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .final-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 20px 30px;
    }
    
    .hero-logo img {
        max-width: 160px;
    }
    
    .main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
        gap: 10px;
        flex-direction: column;
    }
    
    .title-deco-img {
        width: 20px;
        height: 20px;
    }
    
    .card {
        padding: 35px 25px;
    }
    
    .card-icon {
        width: 100px;
        height: 100px;
    }
    
    .web-diagram {
        height: 380px;
    }
    
    .center-logo img {
        width: 120px;
        height: 120px;
    }
    
    .bubble-item {
        width: 100px;
        height: 100px;
    }
    
    .bubble-label {
        font-size: 9px;
    }
    
    .bubble-content {
        font-size: 12px;
    }
    
    .center-text p {
        font-size: 12px;
        margin: 8px 0;
    }
    
    .card-text-overlay {
        bottom: 15%;
        width: 90%;
    }
    
    .card-text-overlay h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .card-text-overlay p {
        font-size: 10px;
        line-height: 1.5;
    }
    
    .business-card-text-overlay {
        bottom: 10%;
        width: 90%;
    }
    
    .business-card-text-overlay h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .business-card-text-overlay p {
        font-size: 10px;
        line-height: 1.5;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .final-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .business-card img {
        width: 80px;
        height: 80px;
    }
}

/* 1. 基础语言样式 - 在CSS中添加 */
/* 中文默认样式 */
html[lang="zh"] body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* 英文特殊字体 */
html[lang="en"] body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
}

/* 2. 针对英文调整字号 */
/* 主标题 - 中文73px，英文可以调整为65px */
html[lang="en"] .main-title {
    font-size: 50px;
    letter-spacing: 5px; /* 英文可以减少字间距 */
}

/* 副标题 - 中文21px，英文调整为19px */
html[lang="en"] .subtitle {
    font-size: 19px;
    letter-spacing: 2px;
    line-height: 1.8;
}

/* 章节标题 - 中文40px，英文调整为36px */
html[lang="en"] .section-title {
    font-size: 36px;
}

/* 卡片标题 - 中文26px，英文调整为24px */
html[lang="en"] .card-text-overlay h3 {
    font-size: 24px;
}

/* 卡片段落 - 中文16px，英文调整为15px */
html[lang="en"] .card-text-overlay p {
    font-size: 15px;
    line-height: 1.6; /* 英文行高可以稍小 */
}

/* 业务卡片标题 - 中文21px，英文调整为20px */
html[lang="en"] .business-card-text-overlay h3 {
    font-size: 20px;
}

/* 业务卡片段落 - 中文17px，英文调整为16px */
html[lang="en"] .business-card-text-overlay p {
    font-size: 16px;
    line-height: 1.6;
}

/* 合作伙伴文字 - 中文14px，英文调整为13px */
html[lang="en"] .partner-text {
    font-size: 13px;
    line-height: 1.3;
}

/* 3. 调整位置 - 针对英文调整元素位置 */
/* 卡片文字位置调整 */
html[lang="en"] .card-text-overlay {
    bottom: 20%; /* 中文是25%，英文可以稍高 */
}

/* 业务卡片文字位置调整 */
html[lang="en"] .business-card-text-overlay {
    top: 65%; /* 中文是70%，英文可以稍高 */
}

/* 左侧卡片文字位置调整 */
html[lang="en"] .business-grid .business-card:nth-child(1) .business-card-text-overlay,
html[lang="en"] .business-grid .business-card:nth-child(2) .business-card-text-overlay {
    top: 30%; /* 中文是35%，英文稍高 */
    width: 50%; /* 中文是45%，英文可以稍宽 */
}

/* 合作伙伴文字位置调整 */
html[lang="en"] .partner-text {
    left: calc(10px + 50px + 15px); /* 调整文字位置 */
    max-width: calc(100% - (10px + 50px + 15px + 15px));
}

/* 4. 响应式设计 - 针对不同屏幕尺寸的英文样式 */
@media (max-width: 1200px) {
    html[lang="en"] .main-title {
        font-size: 50px;
    }
    
    html[lang="en"] .subtitle {
        font-size: 16px;
    }
    
    html[lang="en"] .card-text-overlay h3 {
        font-size: 20px;
    }
    
    html[lang="en"] .card-text-overlay p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    html[lang="en"] .main-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    html[lang="en"] .subtitle {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    html[lang="en"] .section-title {
        font-size: 24px;
    }
    
    html[lang="en"] .business-card-text-overlay h3 {
        font-size: 14px;
    }
    
    html[lang="en"] .business-card-text-overlay p {
        font-size: 10px;
    }
    
    /* 在小屏幕上调整位置 */
    html[lang="en"] .card-text-overlay {
        bottom: 15%;
    }
    
    html[lang="en"] .business-card-text-overlay {
        top: 60%;
    }
}

/* 5. 气泡文字调整 */
html[lang="en"] .bubble-label {
    font-size: 22px; /* 中文24px，英文22px */
}

html[lang="en"] .bubble-content {
    font-size: 22px; /* 中文24px，英文22px */
}

/* 6. 中心文字调整 */
html[lang="en"] .center-text p {
    font-size: 18px; /* 中文20px，英文18px */
}

/* 7. 底部标题调整 */
html[lang="en"] .final-title {
    font-size: 40px; /* 中文46px，英文40px */
    letter-spacing: 3px;
}
