/* ==================== STYLE.CSS ==================== */

:root {
    --ECS-blue: #0066cc;
    --ECS-blue-dark: #004d99;
    --ECS-dark: #222;
    --text-color: #333;
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: var(--ECS-blue);
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}
.center-row {
    justify-content: center;
}

/* ==================== 页面主体样式 ==================== */
.hero-banner {
    position: relative;
    height: 750px;
    overflow: hidden;
}
.banner-cover,
.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-cover { z-index: 2; cursor: pointer; }
.banner-video { z-index: 1; display: none; }

.about-intro {
    padding: 80px 0 50px;
    text-align: center;
}
.about-intro .container { max-width: 900px; padding: 0 60px; }
.about-intro .product-grid { max-width: 1200px; padding: 0 20px; margin: 50px auto 0; }
.about-intro h2 { font-size: 32px; font-weight: 500; color: #222; margin-bottom: 20px; padding: 0 5%; }
.about-intro p { max-width: 750px; margin: 0 auto 30px; font-size: 15px; line-height: 1.8; color: #555; text-align: justify; padding: 0 8%; }

.product-item {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    padding: 15px; height: 100%; border-radius: 8px; transition: 0.3s;
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); background: #fff; }
.product-item img { width: 100%; margin-bottom: 15px; border-radius: 4px; }
.product-item h4 { font-size: 15px; font-weight: 500; color: #333; text-align: center; }
.product-btn { display: block; max-width: 220px; margin: 30px auto; padding: 12px 0; background: var(--ECS-blue); color: #fff; font-size: 15px; text-align: center; border-radius: 4px; }
.product-btn:hover { background: var(--ECS-blue-dark); }

.section-hero-full {
    position: relative; width: 100%; height:550px; overflow: hidden;
}

.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-content {
    position: absolute; top: 50%; left: 10%; transform: translateY(-50%); z-index: 1; max-width:300px; padding: 20px;
}
.hero-content h4 { font-size: 20px; font-weight: 400; margin-bottom: 12px; color: var(--text-color); }
.hero-content h2 { font-size: 36px; font-weight: 300; line-height: 1.3; margin-bottom: 20px; color: var(--ECS-dark); }

.hero-content p { font-size: 20px; line-height: 1.7; color: var(--text-color); }

.section-worth-knowing {
    padding: 60px 0; background: #f9f9f9; text-align: center;
}
.section-worth-knowing h4 { font-size: 18px; font-weight: 400; margin-bottom: 12px; color: var(--text-color); }
.section-worth-knowing h2 { font-size: 32px; font-weight: 300; color: var(--ECS-dark); margin-bottom: 20px; }
.worth-btn {
    display: inline-block; padding: 8px 20px; background: var(--ECS-blue); color: #fff; font-size: 13px; border-radius: 2px;
}
.worth-btn:hover { background: var(--ECS-blue-dark); }

.section-career {
    position: relative; width: 100%; margin: 80px 0; padding-bottom: 50px; background: #f8f8f8;
}
.career-hero { position: relative; width: 100%; min-height: 900px; }
.career-bg-img { position: absolute; left: 0; top: 0; width: 100%; height: 900px; object-fit: cover; z-index: 1; }
.career-top-text {
    position: absolute; z-index: 2; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; width: 100%;
}
.career-top-text .left { flex: 1; text-align: center; padding-right: 10%; }
.career-top-text .right { flex: 1; text-align: center; padding-left: -15%; }
.career-top-text .left h2,
.career-top-text .right span {
  font-size: clamp(16px, 4vw, 22px); /* 自动缩放：最小20px，最大38px */
  font-weight: normal;
  margin: 8px 0;
  color: #575555;
  white-space: nowrap;
}
.career-row {
    display: flex; justify-content: center; gap: 24px; position: absolute; z-index: 3; max-width: 1200px; top: 77%; left: 50%; transform: translateX(-50%); width: 100%; padding: 0 20px; flex-wrap: nowrap;
}
.career-col {
    flex: 1; min-width: 0; max-width: 360px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.career-box { height: 100%; display: flex; flex-direction: column; }
.career-box img { width: 100%; height: 200px; object-fit: cover; }
.career-box h4 { font-size: 16px; font-weight: bold; margin: 20px; color: var(--ECS-dark); text-transform: uppercase; }
.career-box p { flex: 1; font-size: 14px; margin: 0 20px 20px; color: #666; }
.career-box a { margin: 0 20px 25px; padding: 8px 15px; background: var(--ECS-blue); color: #fff; border-radius: 2px; }
.apply-btn { text-align: center; margin-top: 300px; }

.section-locations { padding: 80px 0; background: #fff; }
.locations-container { display: flex; align-items: center; gap: 60px; padding: 0 20px; }
.locations-text { flex: 1; max-width: 400px; }
.locations-text h3 { font-size: 18px; font-weight: 400; color: #555; margin-bottom: 10px; }
.locations-text h2 { font-size: 36px; font-weight: 300; color: #333; margin-bottom: 25px; }
.locations-text p { font-size: 15px; line-height: 1.7; color: #666; margin-bottom: 30px; }
.locations-map { flex: 2; }

/* ==================== 多语言 ==================== */
[lang] { display: none !important; }
html.lang-zh [lang=zh],
html.lang-en [lang=en] { display: block !important; }
html.lang-zh a[lang=zh],
html.lang-en a[lang=en] { display: inline-block !important; }

/* ==================== 响应式 ==================== */
@media (min-width: 768px) {
    .career-hero { min-height: 900px; }
    .career-bg-img { height: 900px; }
    .career-top-text { flex-direction: row; }
    .career-row { flex-direction: row; }
    .career-col { max-width: 360px; min-width: 240px; }
    .apply-btn { margin-top: 300px; }
}
@media (max-width: 767px) {
    .col-4 { flex: 0 0 100%; max-width: 100%; }
    .hero-banner { height: 320px; }
    .section-hero-full { height: auto; flex-direction: column; }
    .hero-content { position: relative; transform: none; padding: 30px 20px; }
    .hero-content h4 {        font-size: 16px !important;     }
    .hero-content h2 {        font-size: 24px !important;       line-height: 1.4 !important;    }
    .hero-content p {        font-size: 15px !important;          max-width:200px;    }
    .about-intro .container { padding: 0 20px; }

}
/* 小屏幕：标题强制一行显示 */

     .about-intro h2 {    white-space: nowrap !important;          font-size: 22px !important;        padding: 0 10px !important;  }
    .career-hero { min-height: auto; }
    .career-bg-img { height: 240px; position: relative; }
    .career-top-text { position: relative; flex-direction: column;padding-top: 150px !important;  }
    .career-top-text .left h2,
    .career-top-text .right span {        font-size: 18px !important;    line-height: 1.4 !important;    white-space: normal !important;  } 
  
    .career-row { position: relative; flex-direction: column; align-items: center;margin-top: -130px }
    .career-col { width: 100%; max-width: 320px; }
    .apply-btn { margin-top: 20px; }
    .locations-container { flex-direction: column; gap: 30px; }
    .locations-text { max-width: 100%; text-align: center; }
