/* ===================================
   BiTECH Automotive - Main Stylesheet
   Clean, Modern, Responsive Design
   =================================== */

/* --- Font Face --- */
@font-face {
    font-family: 'Source Han Sans CN';
    src: url('/fonts/SourceHanSansCN-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Source Han Sans CN';
    src: url('/fonts/SourceHanSansCN-Medium.otf') format('opentype');
    font-weight: 500; font-style: normal;
}
@font-face {
    font-family: 'Source Han Sans CN';
    src: url('/fonts/SourceHanSansCN-Medium.otf') format('opentype');
    font-weight: 600; font-style: normal;
}
@font-face {
    font-family: 'Source Han Sans CN';
    src: url('/fonts/SourceHanSansCN-Medium.otf') format('opentype');
    font-weight: 700; font-style: normal;
}

/* --- CSS Variables --- */
:root {
    --primary: #0a1f3f;
    --primary-light: #1a3a6b;
    --accent: #0066cc;
    --accent-light: #e8f2fb;
    --text: #2d2d2d;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-gray: #f5f6f8;
    --bg-dark: #0d1b2e;
    --border: #e8e8e8;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 36px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --nav-height: 76px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px; color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

body .container { max-width: 1700px !important; width: 98% !important; margin: 0 auto; padding: 0; }
body .container-fluid { max-width: 1800px !important; width: 98% !important; margin: 0 auto; padding: 0; }

/* --- Typography --- */
.section-title {
    text-align: center; margin-bottom: 60px;
}
.section-title h2 {
    font-size: clamp(26px, 2.8vw, 44px); font-weight: 700; color: var(--primary);
    margin: 0 0 16px 0; letter-spacing: 1px;
}
.section-title .divider {
    display: block; width: 60px; height: 3px;
    background: var(--accent); margin: 0 auto;
    border-radius: 2px;
}
.section-title p {
    color: var(--text-light); font-size: 19px; margin-top: 16px;
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-height); background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    border-radius: 0; margin: 0; padding: 0;
    display: flex; align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar .nav-menu a { color: #fff; }
.navbar .nav-menu a.active { color: #fff; background: rgba(255,255,255,0.15); }
.navbar .nav-menu a::after { background: #fff; }

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    border-bottom-color: rgba(0,0,0,0.06);
}
.navbar.scrolled .nav-menu a { color: var(--text); }
.navbar.scrolled .nav-menu a.active { color: var(--accent); background: var(--accent-light); }
.navbar.scrolled .nav-menu a::after { background: var(--accent); }

.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    width: 98%; max-width: 1700px; margin: 0 auto; padding: 0 20px 0 0 !important;
    padding-left: 0 !important;
}

.navbar-brand { display: flex; align-items: center; flex-shrink: 0; margin-left: 0; padding-left: 0; }
.navbar-brand img { height: 26px; width: auto; transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }


/* Language icon */
#langIcon { height: 14px; display: inline; margin-right: 4px; vertical-align: middle; }

.nav-menu {
    display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: block; padding: 10px 20px; font-size: 17px; font-weight: 500;
    color: var(--text); border-radius: 6px; white-space: nowrap;
    position: relative; z-index: 1;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-menu a:hover { color: var(--accent); background: transparent; text-decoration: none; }
.nav-menu a:hover::after { width: 60%; }

/* Active state */
.nav-menu a.active {
    color: var(--accent); background: var(--accent-light);
    font-weight: 600; text-decoration: none;
}
.nav-menu a.active::after { width: 70%; }

/* Underline animation */
.nav-menu a::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%;
    width: 0; height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

/* Hover background pill - smooth slide */
.nav-menu li::before {
    content: '';
    position: absolute; top: 4px; left: 0; right: 0; bottom: 4px;
    background: var(--accent-light);
    border-radius: 6px;
    opacity: 0; transform: scaleX(0.6);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}
.nav-menu li:hover::before {
    opacity: 1; transform: scaleX(1);
}

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; padding: 6px; flex-direction: column;
    justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; height: 2px; background: #fff;
    border-radius: 2px; transition: all 0.3s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Utility --- */
.section-padding { padding: 80px 0; }

.title-underline {
    display: block; width: 120px; height: auto;
    margin: 12px auto 0;
}

/* --- Hero / Banner --- */
.hero { margin-top: 0; position: relative; overflow: hidden; }
.hero-banner { position: relative; }
.hero-banner img { width: 100%; height: auto; max-height: 100vh; object-fit: cover; }
.hero-caption {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; width: 100%; padding: 0 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-caption h2 {
    font-size: clamp(28px, 3.5vw, 52px); font-weight: 700; color: #fff;
    margin: 0 0 16px; letter-spacing: 2px;
}
.hero-caption p {
    font-size: clamp(16px, 1.4vw, 21px); color: rgba(255,255,255,0.9); margin: 0 0 28px;
}

.btn-hero {
    display: inline-block; padding: 14px 40px;
    font-size: 16px; font-weight: 600; color: #fff;
    background: var(--accent); border: 2px solid var(--accent);
    border-radius: 50px; letter-spacing: 1px;
    transition: all var(--transition);
}
.btn-hero:hover {
    background: transparent; color: #fff;
    border-color: #fff; text-decoration: none;
}

.btn-outline {
    display: inline-block; padding: 12px 32px;
    font-size: 15px; font-weight: 600; color: var(--accent);
    background: transparent; border: 2px solid var(--accent);
    border-radius: 50px; letter-spacing: 0.5px;
    transition: all var(--transition);
}
.btn-outline:hover {
    background: var(--accent); color: #fff; text-decoration: none;
}

/* --- Page Header (sub pages) --- */
.page-header {
    margin-top: 0; position: relative;
}
.page-header img { width: 100%; height: auto; display: block; }

/* --- Breadcrumb --- */
.breadcrumb-wrap {
    position: absolute; bottom: 0; left: 0; right: 0;
    max-width: 100%; margin: 0 auto; padding: 14px 0;
    z-index: 2;
}
.breadcrumb-wrap a, .breadcrumb-wrap li { color: rgba(255,255,255,0.8); }
.breadcrumb-wrap a:hover { color: #fff; }
.breadcrumb-wrap li:not(:last-child)::after { color: rgba(255,255,255,0.5); }
.breadcrumb-wrap ul {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 8px;
    font-size: 14px; color: var(--text-muted);
}
.breadcrumb-wrap li:not(:last-child)::after { content: '/'; margin-left: 8px; color: #ccc; }
.breadcrumb-wrap a { color: var(--text-muted); }
.breadcrumb-wrap a:hover { color: var(--accent); }

/* --- Cards --- */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.card {
    background: var(--bg); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.card-img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.06); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin: 0 0 10px; }
.card-body p { color: var(--text-light); font-size: 14px; margin: 0; }

/* --- Image Hover Effect --- */
.img-hover {
    overflow: hidden; border-radius: var(--radius); display: block;
}
.img-hover img {
    width: 100%; transition: transform 0.5s ease;
}
.img-hover:hover img { transform: scale(1.08); }

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.product-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: pointer; box-shadow: var(--shadow);
    background: transparent;
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.product-item img { width: 100%; height: 340px; object-fit: contain; transition: transform 0.5s ease; padding: 0; }
.product-item:hover img { transform: scale(1.06); }

.product-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    padding: 20px 20px 16px;
}

.product-item .product-label {
    z-index: 2;
}
.product-label h4 {
    color: #fff; font-size: 18px; font-weight: 700; margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.product-label span {
    color: rgba(255,255,255,0.85); font-size: 13px;
}

.product-bottom-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px;
}
.product-labels-row {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px; margin-top: 12px; text-align: center;
}
.product-labels-row span {
    font-size: 18px; font-weight: 600; color: var(--primary);
}

/* --- Vision / Mission Cards --- */
.vision-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.vision-card {
    text-align: center; padding: 40px 28px;
    background: transparent; border-radius: var(--radius);
    box-shadow: none;
    transition: transform var(--transition);
}
.vision-card:hover {
    transform: translateY(-6px);
}
.vision-card img { width: 100%; height: auto; margin-bottom: 24px; border-radius: var(--radius); }
.vision-card h3 { font-size: 24px; font-weight: 700; color: var(--primary); margin: 0 0 12px; }
.vision-card p { color: var(--text-light); font-size: 17px; margin: 0; }

/* --- Vision Image Text Overlay --- */
.vision-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.vision-img-wrapper img {
    margin-bottom: 24px;
}
.vision-text-overlay {
    position: absolute;
    top: 33.33%;
    left: 33.33%;
}
.vision-card .vision-text-main {
    font-size: clamp(16px, 1.6vw, 28px);
    font-weight: 500;
    color: #fff;
    line-height: 1.8;
    white-space: pre-line;
    margin: 0;
    text-align: left;
}
html[lang="en"] .vision-card .vision-text-main {
    font-size: clamp(13px, 1.2vw, 20px);
    line-height: 1.6;
}

/* --- News / Article List --- */
.article-item {
    display: flex; gap: 24px; padding: 24px 0;
    border-bottom: 1px solid var(--border); align-items: flex-start;
    transition: background var(--transition); cursor: pointer; border-radius: var(--radius);
}
.article-item:hover { background: var(--bg-gray); padding-left: 12px; padding-right: 12px; }

.article-thumb {
    flex-shrink: 0; width: 280px; height: 180px; border-radius: var(--radius);
    overflow: hidden;
}
.article-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.article-item:hover .article-thumb img { transform: scale(1.08); }

.article-info { flex: 1; }
.article-info .date {
    font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 8px;
}
.article-info h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin: 0 0 10px; }
.article-info p { color: var(--text-light); font-size: 14px; margin: 0 0 12px; }

.btn-more {
    display: inline-block; color: var(--accent); font-size: 14px; font-weight: 600;
    padding: 0; border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.btn-more:hover { border-bottom-color: var(--accent); }

/* --- History Timeline --- */
.history-timeline {
    position: relative; width: 100%; padding-top: 35%;
    max-width: 100%; margin: 0 auto;
}
.history-curve-svg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 1;
    pointer-events: none;
}
.history-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}
.history-path.animated {
    animation: drawRise 2.5s ease-out forwards;
}
@keyframes drawRise {
    to { stroke-dashoffset: 0; }
}

.history-items {
    position: absolute; inset: 0; z-index: 2;
}
.history-item {
    position: absolute;
    width: 145px; cursor: pointer;
    transition: transform 0.3s ease;
}
.history-dot {
    position: absolute; left: 50%;
    width: 13px; height: 13px;
    background: #fff; border: 2.5px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}
.history-item:hover .history-dot {
    background: var(--accent); box-shadow: 0 0 0 6px rgba(0,102,204,0.2);
}

/* card ABOVE: pos anchor = dot on curve, card stretches upward */
.card-above .history-dot {
    top: 0;
}
.card-above .history-card {
    position: absolute; bottom: calc(100% + 24px); left: 0; right: 0;
}
.card-above .history-dot::after {
    content: ''; position: absolute; bottom: 100%; left: 50%;
    width: 2px; height: 22px; background: var(--accent);
    transform: translateX(-50%);
}

/* card BELOW: pos anchor = dot on curve, card stretches downward */
.card-below .history-dot {
    top: 0;
}
.card-below .history-card {
    position: absolute; top: 24px; left: 0; right: 0;
}
.card-below .history-dot::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    width: 2px; height: 22px; background: var(--accent);
    transform: translateX(-50%);
}

.history-item:hover {
    transform: scale(1.06); z-index: 5;
}

.history-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    padding: 10px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}
.history-year {
    font-size: 28px; font-weight: 800; color: var(--accent);
    line-height: 1.1; margin-bottom: 3px;
    display: block;
}
.history-card p {
    font-size: 13px; color: var(--text-light); line-height: 1.6;
    margin: 0;
}
.count-up { display: inline-block; }

@media (max-width: 768px) {
    .history-timeline { padding-top: 65%; }
    .history-item { width: 100px; }
    .history-year { font-size: 16px; }
    .history-card p { font-size: 10px; }
}

/* --- Cert Blocks --- */
.cert-section { }
.cert-block { margin-bottom: 48px; }
.cert-block-header { margin-bottom: 16px; }
.cert-block-header img { max-width: 100%; height: auto; display: block; margin: 0 auto; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.cert-block-header:hover img { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* --- Cert Block Overlay --- */
.cert-block-overlay .cert-block-header {
    position: relative; margin-bottom: 48px;
    width: 98%; max-width: 1800px; margin-left: auto; margin-right: auto;
}
.cert-block-overlay .cert-block-header img {
    width: 100%;
}
.cert-block-overlay .cert-list {
    position: absolute; top: 10%; left: 35%; right: 3%; bottom: 2%;
    display: grid; grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    gap: 3px 36px;
    align-content: start;
}
/* government block: 3 columns */
.cert-block-overlay.gov-block .cert-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px 20px;
}
.cert-block-overlay.gov-block .cert-list-item {
    font-size: clamp(11px, 1.1vw, 16px);
}
html[lang="en"] .cert-block-overlay.gov-block .cert-list-item {
    font-size: clamp(10px, 0.95vw, 14px);
}
.cert-block-overlay .cert-list-item {
    font-size: clamp(12px, 1.2vw, 17px); font-weight: 500;
}
.cert-subtitle {
    grid-column: 1 / -1; margin: 0 0 10px;
    font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; color: var(--primary);
}
.cert-block-overlay.gov-block .cert-subtitle {
    grid-column: 1 / -1;
}
/* second cert block: graphic on right, text on left; col-2 aligns with blocks 1/3 col-1 at 35% */
.cert-block-overlay.right-graphic .cert-list {
    left: 3.5%; right: 36.5%;
}

/* --- Core Product Grid --- */
.core-product-grid {
    display: flex; flex-direction: column;
    gap: 20px;
}
.core-product-grid.cols-3 { }
.core-product-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.core-product-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.core-product-item img {
    width: 100%; display: block;
}

.core-product-text {
    position: absolute; top: 0; left: 50%; right: 0; bottom: 0;
    background: rgba(255,255,255,0.92);
    padding: 30px 40px;
    overflow-y: auto;
}
/* left-aligned text variant */
.core-product-text.text-left {
    left: 0; right: 50%;
}
/* transparent background for 过程能力 */
.process-ability .core-product-text {
    background: transparent;
}
.core-product-text h3 {
    font-size: 24px; font-weight: 700; color: var(--primary);
    margin: 0 0 18px; line-height: 1.4;
}
.core-product-text p {
    font-size: 15px; color: var(--text-light); line-height: 2.2;
    margin: 0 0 10px;
}

/* --- Cert List --- */
.cert-list {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px 40px; max-width: 100%; margin: 0 auto;
}
.cert-list-item {
    font-size: 15px; color: var(--text); line-height: 2;
    display: flex; align-items: baseline;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
}
.cert-list-item:hover {
    transform: scale(1.06);
    color: #2466fc;
}
.cert-list-item i {
    display: inline-block; width: 8px; height: 8px;
    background: #2466fc; flex-shrink: 0;
    margin-right: 10px; margin-top: 8px;
}

.cert-desc {
    font-size: 15px; color: var(--text-light); line-height: 1.8;
    margin: 0 0 24px; text-align: center;
    max-width: 900px; margin-left: auto; margin-right: auto;
}

.cert-item span {
    display: block; margin-top: 10px;
    font-size: 13px; color: var(--text); font-weight: 500;
    text-align: center;
}

/* --- Certification Badges --- */
.cert-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cert-item {
    background: transparent; border: none; border-radius: var(--radius);
    padding: 16px; text-align: center; cursor: pointer;
    transition: all var(--transition);
}
.cert-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.cert-item img { max-height: 120px; margin: 0 auto; }

/* --- Partner Logos --- */
.partner-section { text-align: center; }
.partner-section h3 { font-size: 30px; font-weight: 600; color: var(--primary); margin: 50px 0 30px; }
.partner-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.partner-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
}
.partner-logo {
    width: 100%; padding-bottom: 75%; position: relative; border: none; background: transparent;
    border-radius: 0; cursor: pointer;
    transition: all var(--transition);
}
.partner-logo img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; opacity: 0.85;
}
.partner-logo:hover {
    transform: scale(1.2); z-index: 1;
}
.partner-logo:hover img { opacity: 1; }

/* --- Join Us Cards --- */
.join-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.join-card {
    display: block; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; cursor: pointer; color: inherit; text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}
.join-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-hover);
}
.join-card-img { width: 100%; height: 240px; object-fit: cover; }
.join-card-body { padding: 20px 24px; display: flex; align-items: center; gap: 12px; }
.join-icon { height: 28px; width: auto; flex-shrink: 0; }
.arrow img { height: 16px; width: auto; }

/* --- Contact Info --- */
.contact-section .about-grid { align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon { height: 32px; width: auto; flex-shrink: 0; }
.contact-item span { font-size: 19px; color: var(--text); line-height: 1.6; }
.join-card-body h3 { font-size: 19px; font-weight: 600; color: var(--primary); margin: 0; flex: 1; }
.join-card-body .arrow { font-size: 20px; color: var(--text-muted); transition: transform var(--transition); }
.join-card:hover .join-card-body .arrow { transform: translateX(4px); }

/* --- Career Development --- */
.career-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.career-card {
    background: var(--bg); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.career-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-hover);
}
.career-card img { width: 100%; height: 320px; object-fit: cover; }

/* --- Sustainability --- */
.sustain-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.sustain-item {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
}
.sustain-item:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-hover);
}
.sustain-item img { width: 100%; height: auto; }

/* --- Rich Text Content --- */
.content-block {
    max-width: 100%; margin: 60px auto; padding: 0;
}
.content-text {
    font-size: 17px; color: var(--text); line-height: 2;
}
.content-text h3 { font-size: 24px; color: var(--primary); margin: 32px 0 16px; }

/* --- About / Company Intro --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: start;
}
.about-image img {
    width: 100%; border-radius: var(--radius);
}
.about-content h3 {
    font-size: 30px; font-weight: 700; color: var(--primary);
    margin: 0 0 16px;
}
.about-content p {
    color: var(--text-light); font-size: 18px; line-height: 1.9;
    margin: 0 0 12px;
}
.about-stats {
    display: flex; gap: 40px; margin: 24px 0;
}
.stat-item { text-align: center; }
.stat-number {
    display: block; font-size: 40px; font-weight: 700; color: var(--accent);
    line-height: 1.2;
}
.stat-label {
    display: block; font-size: 15px; color: var(--text-muted); margin-top: 4px;
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--bg); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.news-card-img {
    overflow: hidden; height: 200px;
}
.news-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-card-body { padding: 20px 24px; }
.news-date {
    font-size: 14px; color: var(--accent); font-weight: 600;
}
.news-card-body h3 {
    font-size: 20px; font-weight: 600; color: var(--primary);
    margin: 8px 0; line-height: 1.5;
}
.news-card-body p {
    color: var(--text-light); font-size: 16px; margin: 0; line-height: 1.6;
}
.news-more {
    display: inline-block; margin-top: 12px;
    font-size: 16px; font-weight: 600; color: var(--accent);
    transition: all var(--transition);
}
.news-card:hover .news-more { letter-spacing: 1px; }

/* --- Media Grid --- */
.media-grid {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.media-main {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: pointer;
}
.media-main img { width: 100%; height: 400px; object-fit: cover; }
.media-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: background var(--transition);
}
.media-main:hover .media-overlay { background: rgba(0,0,0,0.5); }
.media-overlay h4 {
    color: #fff; font-size: 20px; font-weight: 600;
    margin-top: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.play-icon, .play-icon-small {
    color: rgba(255,255,255,0.9);
    transition: transform var(--transition), color var(--transition);
}
.media-main:hover .play-icon,
.media-thumb:hover .play-icon-small {
    transform: scale(1.15); color: #fff;
}
.media-side { display: flex; flex-direction: column; gap: 20px; }
.media-thumb {
    position: relative; overflow: hidden; border-radius: var(--radius);
    flex: 1; cursor: pointer;
}
.media-thumb img { width: 100%; height: 190px; object-fit: cover; }
.media-thumb .play-icon-small {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0; text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}
.cta-section h2 { font-size: 40px; font-weight: 700; margin: 0 0 12px; }
.cta-section p { font-size: 20px; color: rgba(255,255,255,0.8); margin: 0 0 28px; }
.cta-section .btn-hero { background: #fff; color: var(--primary); border-color: #fff; }
.cta-section .btn-hero:hover { background: transparent; color: #fff; }

/* --- Footer --- */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 5% 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; max-width: 100%; margin: 0 auto; padding: 0;
}
.footer h4 {
    color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 20px;
    letter-spacing: 0.5px;
}
.footer a { color: rgba(255,255,255,0.6); font-size: 15px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-logo img { height: 44px; margin-bottom: 16px; }
.footer-qr img { width: 120px; margin-top: 8px; border-radius: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px; padding-top: 20px;
    text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
    max-width: 100%; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
.footer-bottom a { display: inline; color: rgba(255,255,255,0.4); }
/* ===== Footer QR 中英文布局（只改这里）===== */

/* 默认：中文上下 */
.footer-qr {
    display: flex;
    flex-direction: column;   /* 上下 */
    align-items: flex-start;
}
/* 英文：左右 */
html[lang="en"] .footer-qr {
    flex-direction: row;      /* 左右 */
    align-items: center;
    gap: 12px;
}
/* ===== 英文 Footer QR 字体分层（强制生效）===== */

/* 英文模式：左右布局 */
html[lang="en"] .footer-qr {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 段落整体 */
html[lang="en"] .footer-qr p {
    margin: 0;
    font-size: 0;   /* 关键：干掉默认字体大小 */
    line-height: 1.4;
    color: #fff;
}

/* 第一行：D-U-N-S® NUMBER */
html[lang="en"] .footer-qr p br {
    display: none; /* 隐藏 br，我们用块级模拟 */
}

html[lang="en"] .footer-qr p {
    margin-bottom: -20px;
    margin-left: -15px;
    display: flex;
    flex-direction: column;
}

/* 强制第一行大字 */
html[lang="en"] .footer-qr p::before {
    content: "D-U-N-S\00AE\00A0\00A0\00A0NUMBER";
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

/* 强制第二行小字 */
html[lang="en"] .footer-qr p::after {
    content: "42-130-6096";
    font-size: 28px;
    font-weight: 400;
    opacity: 0.9;
}
/* --- Scroll Animation (WOW.js) --- */
.wow { visibility: hidden; }

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

/* --- Responsive --- */

/* Override Bootstrap's fixed container widths */
@media (min-width: 1200px) {
    body .container { width: 98% !important; max-width: 1700px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body .container { width: 98% !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    body .container { width: 98% !important; }
}

/* 1400px+ large laptop */
@media (max-width: 1400px) {
    .cert-block-overlay .cert-list {
        left: 30%; right: 3%; gap: 2px 24px;
    }
    .cert-block-overlay.gov-block .cert-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .cert-block-overlay.right-graphic .cert-list {
        left: 3%; right: 30%;
    }
    .cert-block-overlay .cert-list-item { font-size: 12px; }
    .product-item img { height: 260px; }
}

/* 1024px tablet landscape */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-labels-row { grid-template-columns: repeat(3, 1fr); }
    .product-bottom-row { grid-template-columns: repeat(2, 1fr); }
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; height: 200px; }
    .sustain-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: 1fr; }
    .media-main img { height: 280px; }
    .media-side { flex-direction: row; }
    .media-thumb img { height: 140px; }
    .partner-grid-5col { grid-template-columns: repeat(3, 1fr); }

    /* Cert overlays collapse */
    .cert-block-overlay .cert-list,
    .cert-block-overlay.gov-block .cert-list,
    .cert-block-overlay.right-graphic .cert-list {
        position: static; grid-template-columns: 1fr 1fr;
        gap: 2px 20px; padding: 20px;
    }
    .cert-block-overlay .cert-list-item { font-size: 13px; }

    .product-item img { height: 220px; }
    .vision-text-overlay { top: 25%; left: 25%; }
    .core-product-text { padding: 20px 24px; }
    .core-product-text h3 { font-size: 20px; }
    .core-product-text p { font-size: 14px; }
}

/* 768px tablet portrait / mobile */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .section-padding { padding: 48px 0; }

    .nav-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: rgba(255,255,255,0.99);
        flex-direction: column; gap: 0;
        box-shadow: 0 12px 30px rgba(0,0,0,0.1); padding: 8px 0;
        border-radius: 0 0 12px 12px;
    }
    .nav-menu.open {
        display: flex;
        animation: slideDown 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .nav-menu a { padding: 14px 24px; border-radius: 0; }
    .nav-menu a::after { display: none; }
    .nav-menu li::before { display: none; }
    .nav-menu a.active {
        background: var(--accent-light);
        border-left: 3px solid var(--accent);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-16px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-banner img { height: auto; max-height: 60vh; }
    .page-header img { height: auto; max-height: 50vh; }

    .card-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-labels-row { grid-template-columns: repeat(2, 1fr); }
    .product-bottom-row { grid-template-columns: 1fr 1fr; }
    .product-item img { height: 180px; }
    .vision-grid { grid-template-columns: 1fr; }
    .join-grid { grid-template-columns: 1fr; }
    .career-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .article-item { padding: 16px 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card-img { height: 180px; }
    .media-grid { grid-template-columns: 1fr; }
    .media-side { flex-direction: column; }
    .partner-grid-5col { grid-template-columns: repeat(2, 1fr); }
    .partner-logo { padding-bottom: 60%; }

    .navbar-brand img { height: 22px; }
    .cta-section { padding: 60px 0; }
}

/* 480px small phone */
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-labels-row { grid-template-columns: repeat(2, 1fr); }
    .product-labels-row span { font-size: 14px; }
    .product-bottom-row { grid-template-columns: 1fr; }
    .product-item img { height: 140px; }
    .partner-logo { padding-bottom: 50%; }
    .partner-grid-5col { gap: 4px; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-item img { max-height: 90px; }
    .cert-list { grid-template-columns: 1fr; }
    .core-product-text { padding: 16px 20px; }
    .core-product-text h3 { font-size: 18px; }
    .core-product-text p { font-size: 13px; }
    .about-content h3 { font-size: 22px; }
    .stat-number { font-size: 30px; }
    .vision-text-overlay { top: 20%; left: 20%; }
    .join-card-img { height: 180px; }
    .career-card img { height: 200px; }
}
