/* 全局样式 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0077b6; /* 海蓝色 (Sea Blue) */
    --secondary-color: #00b4d8; /* 浅海蓝 */
    --accent-color: #ade8f4; /* 极浅蓝 */
    --dark-color: #03045e; /* 深海蓝 */
    --light-color: #f0f9ff; /* 极其浅蓝背景 */
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 1200;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
    position: absolute;
    left: 20px;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0 auto;
}

/* 确保移动端菜单仍然正常 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        transform: none;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 40px 0;
        margin: 0;
    }

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-caret {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    padding: 30px 0;
    margin: 0;
    list-style: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 255, 0.96) 100%);
    box-shadow: 0 16px 30px rgba(10, 52, 86, 0.12);
    z-index: 999;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s;
    will-change: transform, opacity;
    pointer-events: none;
    border-top: 1px solid rgba(0, 119, 182, 0.14);
    backdrop-filter: blur(10px);
}

.dropdown-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    text-decoration: none;
    color: #1b4766;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.dropdown-link:hover, .dropdown-link:focus {
    color: #0077b6;
    transform: translateY(-1px);
    outline: none;
}

.dropdown-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #86ddff 0%, #19a7e6 100%);
    transform: translateX(-50%);
    transition: width 0.22s ease;
}

.dropdown-link:hover::after,
.dropdown-link:focus::after {
    width: calc(100% - 14px);
}

/* 针对 IE11 的基础回退 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .dropdown-menu {
        transform: none !important;
        transition: opacity 0.25s ease !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-logo {
        position: static;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        display: none; /* 移动端仍然使用 display 切换 */
        transition: none;
        text-align: center;
        border-top: none;
    }

    .dropdown-menu.active {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .dropdown-link {
        display: block;
        min-height: 0;
        margin: 0 14px;
        padding: 14px 6px;
        width: auto;
        font-size: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(0, 119, 182, 0.1);
    }

    .dropdown-menu li:last-child .dropdown-link {
        border-bottom: none;
    }

    .dropdown-link::after {
        bottom: 8px;
    }
}

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

/* 语言切换器 */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 2px 5px;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-divider {
    color: var(--border-color);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 20px;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主页英雄区域 */
.hero {
    min-height: 100vh;
    padding-top: 80px; /* 确保不被固定导航栏遮挡 */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-color);
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 机器人动画 */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-robot-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.robot-container {
    position: relative;
    width: 300px;
    height: 400px;
}

.robot-body {
    position: relative;
    width: 120px;
    height: 200px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.robot-head {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.robot-eye {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.robot-arm {
    position: absolute;
    width: 15px;
    height: 80px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border-radius: 8px;
    top: 20px;
}

.robot-arm-left {
    left: -20px;
    transform-origin: top center;
    animation: wave 3s ease-in-out infinite;
}

.robot-arm-right {
    right: -20px;
    transform-origin: top center;
    animation: wave 3s ease-in-out infinite reverse;
}

.robot-base {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
}

.welding-spark {
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: spark 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes spark {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* 通用区域样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 产品中心 */
.products {
    padding: 100px 0;
    background: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon {
    font-size: 4rem;
    color: white;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* 将规格和按钮整体推向底部，确保间距一致 */
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item i {
    color: var(--primary-color);
    width: 16px;
}

.product-actions {
    display: flex;
    gap: 15px;
}

/* 解决方案 */
.solutions {
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dual-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .dual-cards-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card .btn {
    margin-top: auto;
    align-self: center;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.solution-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    text-align: left;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.solution-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* 具身智能模块 */
.embodied-section {
    padding: 100px 0;
    background-color: #fff;
}

.embodied-container {
    max-width: 1440px; /* 1920分辨率下的基准宽度 */
    margin: 0 auto;
    padding: 0 40px;
}

.embodied-content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px; /* 左右间距 80px */
}

.embodied-content-wrapper.row-reverse {
    flex-direction: row-reverse;
}

.training-section {
    background-color: var(--light-color); /* 为不同板块增加一点背景色区分 */
}

.embodied-text-area {
    flex: 0 0 60%; /* 左侧占比 60% */
}

.embodied-image-area {
    flex: 0 0 40%; /* 右侧占比 40% */
}

.embodied-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
}

.embodied-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.embodied-rich-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    /* 截断逻辑：展示约 180-220 汉字，此处用 line-clamp 模拟 */
    display: -webkit-box;
    -webkit-line-clamp: 7; /* 根据字体大小和行高，约 7 行对应 200 字左右 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.read-more-btn::after {
    content: '\f061'; /* FontAwesome 右箭头 */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 4, 94, 0.4);
}

.read-more-btn:hover::after {
    transform: translateX(5px);
}

.embodied-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: block;
    object-fit: cover;
}

/* 响应式：≤ 768px 自动切换为上下堆叠 */
@media (max-width: 768px) {
    .embodied-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .embodied-text-area,
    .embodied-image-area {
        flex: 0 0 100%;
        width: 100%;
    }

    .embodied-title {
        font-size: 2rem;
    }
    
    .embodied-container {
        padding: 0 20px;
    }
}

/* 博客/行业动态 */
.blog {
    padding: 100px 0;
    background: #fff;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    height: 110px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.blog-image {
    width: 160px;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.blog-date {
    display: none;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-card-excerpt {
    display: none;
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-top: auto;
}

.blog-more:hover {
    gap: 12px;
    color: var(--dark-color);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .blog-card {
        flex-direction: column;
        height: auto;
    }

    .blog-image {
        width: 100%;
        height: 250px;
    }

    .blog-content {
        padding: 25px;
    }
}

.blog-footer {
    text-align: center;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--light-color);
}

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

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e7ebf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #9aa3af;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-placeholder {
    width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    max-width: 100%;
    display: block;
    box-shadow: var(--shadow);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e7ebf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: #9aa3af;
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 微信客服区域 */
.contact-wechat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    height: 100%;
    /* background-color: var(--light-color); 如果需要卡片效果可以取消注释，目前保持页面主色调（白色/透明） */
}

.wechat-qr-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 32px; /* 图片下方留白 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow); /* 增加轻微阴影提升质感 */
}

.wechat-qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

/* 错误提示样式 */
.wechat-qr-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.wechat-qr-error i {
    font-size: 24px;
    color: #ff6b6b; /* 错误提示色 */
    margin-bottom: 10px;
}

.wechat-qr-error span {
    line-height: 1.5;
}

.wechat-hint {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-wechat {
        padding: 40px 0;
    }
    
    .wechat-qr-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* 表单样式 */
.contact-form {
    padding-top: 40px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-single-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-single-line a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-single-line a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-single-line {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .products-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .robot-container {
        width: 250px;
        height: 350px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .contact-content {
        gap: 30px;
    }
}

/* 二级页面通用样式 */
.page-content {
    min-height: 80vh;
    padding-bottom: 80px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 产品详情页样式 */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.main-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image i {
    font-size: 10rem;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.image-thumbnails {
    display: flex;
    gap: 15px;
}

.thumb {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb i {
    color: var(--text-light);
}

.thumb.active {
    border-color: var(--primary-color);
}

.product-main-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-features-list {
    margin-bottom: 40px;
}

.product-features-list h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-features-list ul {
    list-style: none;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.product-features-list i {
    color: #28a745;
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* 产品选项卡 */
.product-tabs {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.tab-header {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.specs-table th, .specs-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.specs-table th {
    background: var(--light-color);
    font-weight: 700;
    width: 30%;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* 博客详情页样式 */
.blog-article {
    max-width: 900px;
    margin: 0 auto 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.article-featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 40px 0 20px;
}

.article-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}





@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }


}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动时的导航栏效果 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0);
}

/* 表单验证样式 */
.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
}

.form-input.success,
.form-textarea.success {
    border-color: #28a745;
}

/* 加载状态 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* 智能焊接机器人模块 */
.ei-section {
    padding: 100px 0;
    background-color: var(--light-color);
    overflow: hidden;
}

.ei-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.ei-header {
    margin-bottom: 50px;
    text-align: left;
}

.ei-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.ei-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.ei-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* 左侧内容区域 (60%) */
.ei-content-box {
    flex: 0 0 calc(60% - 40px);
    opacity: 0;
    transform: translateX(-30px);
}

.ei-text-wrapper {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    transition: height 0.3s ease;
}

.ei-text-excerpt {
    display: block;
}

.ei-text-full {
    transition: opacity 0.3s ease;
}

.ei-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.ei-read-more:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* 右侧图片区域 (40%) */
.ei-image-box {
    flex: 0 0 calc(40% - 40px);
    opacity: 0;
    transform: translateX(30px);
}

.ei-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #eee; /* 占位图背景 */
}

.ei-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ei-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.ei-image-container:hover .ei-image {
    transform: scale(1.05);
}

.ei-image-container:hover .ei-image-overlay {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 入场动画类 */
.ei-animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 600ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 响应式调整 */
@media (max-width: 1440px) {
    .ei-container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .ei-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .ei-content-box, .ei-image-box {
        flex: 0 0 100%;
        transform: translateY(20px);
    }
    
    .ei-header {
        text-align: center;
    }
    
    .ei-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .ei-animate-in {
        transform: translateY(0) !important;
    }
}

/* IE11 降级处理 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .ei-content-box, .ei-image-box {
        opacity: 1;
        transform: none;
    }
    .ei-image-container:hover .ei-image {
        transform: none;
    }
}

/* Product Section Styles - Added for Responsiveness */
.product-section {
    padding: 80px 0;
    width: 100%;
}

.white-bg {
    background-color: #ffffff;
}

.gray-bg {
    background-color: #f9f9f9;
}

.category-title {
    font-size: 2.5rem;
    border-left: 6px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 50px;
}

.product-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.product-text-area {
    flex: 0 0 60%;
}

.product-text-area h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.product-rich-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.product-image-area {
    flex: 0 0 40%;
}

.product-image-area img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-content-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 40px 0;
    }

    .category-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .product-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-text-area,
    .product-image-area {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* ==========================================
   Cross-Browser And Multi-Device Compatibility
   ========================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar {
    padding-top: env(safe-area-inset-top);
}

.nav-menu {
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 768px) {
    .nav-menu {
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .navbar,
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }
}

.page-content {
    min-height: 100svh;
}

.breadcrumb,
.contact-text p,
.article-body,
.product-description,
.solution-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-meta {
    flex-wrap: wrap;
    row-gap: 8px;
}

.specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.specs-table th,
.specs-table td {
    white-space: nowrap;
}

.case-card {
    height: auto !important;
    min-height: 0;
}

.case-card-image {
    height: auto !important;
    aspect-ratio: 4 / 3;
}

.case-card-content {
    height: auto !important;
}

@media (max-width: 1024px) {
    .hero-container,
    .product-detail-grid,
    .contact-content,
    .about-content {
        gap: 32px;
    }

    .embodied-content-wrapper,
    .embodied-content-wrapper.row-reverse {
        flex-direction: column !important;
        gap: 32px;
    }

    .embodied-text-area,
    .embodied-image-area {
        flex: 1 1 auto;
    }

    .main-image i {
        font-size: clamp(5rem, 18vw, 8rem);
    }

    .product-gallery {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.35rem);
        line-height: 1.25;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        min-width: 84px;
    }

    .video-grid,
    .case-study-grid,
    .products-grid,
    .solutions-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .video-item-wrapper,
    .case-card,
    .product-card,
    .solution-card,
    .blog-card {
        min-width: 0;
    }

    .cert-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .cert-image,
    .cert-text {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    [style*="grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));"] {
        grid-template-columns: 1fr !important;
    }

    [style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
    }

    [style*="max-width: 60%"],
    [style*="max-width: 40%"] {
        max-width: 100% !important;
    }

    [style*="flex: 0 0 60%"],
    [style*="flex: 0 0 40%"] {
        flex: 1 1 100% !important;
    }

    .article-meta {
        justify-content: flex-start;
        gap: 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .solution-card:hover,
    .blog-card:hover,
    .case-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-robot-img {
        animation: none !important;
    }
}

/* Home Hero Redesign */
.hero {
    min-height: min(100svh, 940px);
    padding: clamp(96px, 12vw, 148px) 0 clamp(52px, 7vw, 84px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 212, 255, 0.30) 0%, rgba(0, 212, 255, 0) 48%),
        radial-gradient(circle at 86% 14%, rgba(26, 88, 180, 0.34) 0%, rgba(26, 88, 180, 0) 44%),
        linear-gradient(135deg, #031023 0%, #062349 46%, #0a4e84 100%);
    color: #eaf8ff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(132, 215, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 215, 255, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(circle at 50% 35%, black 28%, transparent 82%);
    mask-image: radial-gradient(circle at 50% 35%, black 28%, transparent 82%);
    opacity: 0.9;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: -14%;
    right: -14%;
    bottom: -230px;
    height: 430px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.38) 0%, rgba(0, 180, 216, 0) 70%);
    filter: blur(44px);
    pointer-events: none;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(150, 230, 255, 0.4);
    background: rgba(8, 35, 63, 0.6);
    color: #c6efff;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4ee0ff;
    box-shadow: 0 0 14px rgba(78, 224, 255, 0.95);
}

.hero-title {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 5.1vw, 4.35rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #f8fdff;
    text-wrap: balance;
}

.highlight {
    display: block;
    margin-top: 10px;
    color: #96ebff;
    text-shadow: 0 0 22px rgba(129, 224, 255, 0.4);
}

.hero-description {
    max-width: 58ch;
    margin-bottom: 30px;
    color: rgba(233, 248, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.17rem);
    line-height: 1.68;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero .btn.btn-primary {
    border: 1px solid rgba(137, 227, 255, 0.5);
    background: linear-gradient(135deg, #7de8ff 0%, #3bc5ff 100%);
    color: #07223f;
    box-shadow: 0 14px 24px rgba(8, 112, 168, 0.35);
}

.hero .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(8, 112, 168, 0.42);
}

.hero-btn-secondary {
    border: 1px solid rgba(163, 226, 255, 0.42);
    background: rgba(7, 33, 63, 0.55);
    color: #dbf6ff;
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
    color: #031c35;
    background: rgba(164, 231, 255, 0.9);
}

.hero-stats {
    max-width: 740px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero .stat-item {
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(137, 219, 255, 0.26);
    background: rgba(5, 25, 48, 0.54);
    box-shadow: inset 0 0 0 1px rgba(103, 191, 234, 0.07);
    backdrop-filter: blur(8px);
    text-align: left;
}

.hero .stat-number {
    display: block;
    margin-bottom: 5px;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: #8de8ff;
    line-height: 1.05;
}

.hero .stat-label {
    font-size: 0.82rem;
    color: rgba(230, 248, 255, 0.82);
    letter-spacing: 0.02em;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-shell {
    position: relative;
    width: min(560px, 100%);
}

.hero-image-shell::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 30px;
    border: 1px solid rgba(142, 227, 255, 0.25);
    pointer-events: none;
}

.hero-image-shell::after {
    content: '';
    position: absolute;
    inset: 14% 8% auto;
    height: 48%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 178, 255, 0.26) 0%, rgba(0, 178, 255, 0) 70%);
    filter: blur(26px);
    pointer-events: none;
}

.hero-robot-img {
    width: 100%;
    max-width: none;
    border-radius: 24px;
    border: 1px solid rgba(146, 227, 255, 0.3);
    box-shadow:
        0 26px 46px rgba(2, 8, 20, 0.42),
        0 0 0 1px rgba(123, 214, 255, 0.16);
    animation: heroFloat 7s ease-in-out infinite;
}

.hero-float-card {
    position: absolute;
    min-width: 176px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 228, 255, 0.42);
    background: rgba(6, 30, 57, 0.8);
    box-shadow: 0 12px 24px rgba(0, 12, 28, 0.35);
    backdrop-filter: blur(10px);
}

.hero-float-label {
    display: block;
    margin-bottom: 6px;
    color: #8fdfff;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-float-card strong {
    color: #f1fbff;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-float-top {
    top: 20px;
    left: -26px;
    animation: heroPulse 5s ease-in-out infinite;
}

.hero-float-bottom {
    right: -18px;
    bottom: 22px;
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes heroPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 34px;
    }

    .hero-image-shell {
        width: min(520px, 100%);
    }

    .hero-float-top {
        left: -8px;
    }

    .hero-float-bottom {
        right: -6px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 110px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-stats {
        max-width: 100%;
    }

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

    .hero-image-shell {
        margin: 0 auto;
    }

    .hero-float-top {
        left: 12px;
        top: 12px;
    }

    .hero-float-bottom {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 92px 0 44px;
    }

    .hero-kicker {
        font-size: 0.66rem;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: clamp(1.95rem, 8.6vw, 2.8rem);
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero .btn,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero .stat-item {
        padding: 11px 12px;
    }

    .hero-float-card {
        min-width: 136px;
        padding: 9px 10px;
    }

    .hero-float-card strong {
        font-size: 0.82rem;
    }

    .hero-float-label {
        font-size: 0.58rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: grid;
        gap: 10px;
    }

    .hero-float-top,
    .hero-float-bottom {
        position: static;
        animation: none;
    }

    .hero-float-card {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-robot-img,
    .hero-float-top,
    .hero-float-bottom {
        animation: none !important;
    }
}

/* ============================== */
/* Tesla 风格化界面覆盖（中文站） */
/* ============================== */
:root {
  --primary-color: #171a20;
  --secondary-color: #3e6ae1;
  --accent-color: #f4f4f4;
  --dark-color: #111111;
  --light-color: #ffffff;
  --text-color: #171a20;
  --text-light: #5c5e62;
  --border-color: #e6e6e6;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 18px 40px rgba(0,0,0,0.14);
  --border-radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  background: #fff;
}

.navbar {
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(14px);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1440px;
  height: 64px;
}

.nav-logo {
  color: #111;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-logo i { display: none; }

.nav-menu { gap: 10px; }

.nav-link {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-link::after { display: none; }

.nav-link:hover,
.nav-link.active {
  background: rgba(23,26,32,0.08);
  color: #111;
}

.dropdown-menu {
  top: 64px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
}

.dropdown-link {
  color: #222;
  font-weight: 500;
}

.hero {
  min-height: 100vh;
  padding-top: 96px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 46%);
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  color: #5f6368;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 8px;
}

.hero-title .highlight {
  display: block;
  color: #111;
  font-weight: 700;
}

.hero-description {
  color: #5c5e62;
  max-width: 560px;
  font-size: 17px;
}

.hero-buttons { margin-top: 28px; }

.btn {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #171a20;
  border-color: #171a20;
  color: #fff;
}

.btn-primary:hover { background: #0f1115; }

.hero-image-shell {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-robot-img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
}

.hero-stats {
  margin-top: 28px;
  display: flex;
  gap: 26px;
}

.stat-item {
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px 18px;
}

.stat-number {
  font-size: 24px;
  font-weight: 600;
}

.embodied-section {
  min-height: 84vh;
  display: flex;
  align-items: center;
  border-top: 1px solid #efefef;
  background: #fff !important;
}

.embodied-section:nth-of-type(even) {
  background: #f8f8f8 !important;
}

.embodied-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 32px;
}

.embodied-content-wrapper {
  gap: 32px;
  align-items: center;
}

.embodied-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  color: #171a20;
  margin-bottom: 16px;
}

.embodied-rich-text p {
  color: #5c5e62;
  font-size: 17px;
  line-height: 1.8;
}

.read-more-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  border-radius: 999px;
  padding: 10px 20px;
  background: #171a20;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.read-more-btn:hover { background: #0f1115; }

.embodied-image-area {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.embodied-img {
  width: 100%;
  height: min(58vh, 540px);
  object-fit: cover;
}

.footer,
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.82);
}

.footer a,
.site-footer a { color: rgba(255,255,255,0.92); }

@media (max-width: 1024px) {
  .hero-container,
  .embodied-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-robot-img,
  .embodied-img { height: 48vh; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .nav-logo { left: 16px; }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.16;
  }

  .hero-description,
  .embodied-rich-text p { font-size: 15px; }

  .embodied-section { min-height: auto; }
}

/* ======================================= */
/* Tesla 风格二期精修（仅首页 tesla-home） */
/* ======================================= */
body.tesla-home {
  background: #000;
}

body.tesla-home .navbar {
  background: rgba(255,255,255,0.50);
}

body.tesla-home .hero,
body.tesla-home .embodied-section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  border-top: 0;
  overflow: hidden;
}

body.tesla-home {
  scroll-snap-type: y proximity;
}

body.tesla-home .hero-container {
  max-width: 100%;
  min-height: 100vh;
  padding: 0;
  display: block;
  position: relative;
}

body.tesla-home .hero-image {
  position: absolute;
  inset: 0;
}

body.tesla-home .hero-image-shell {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

body.tesla-home .hero-image-shell::after,
body.tesla-home .embodied-image-area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.34) 76%, rgba(0,0,0,0.5) 100%);
}

body.tesla-home .hero-robot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tesla-home .hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 14vh 20px 16vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #fff;
}

body.tesla-home .hero-kicker,
body.tesla-home .hero-description,
body.tesla-home .stat-label,
body.tesla-home .stat-number {
  color: rgba(255,255,255,0.92);
}

body.tesla-home .hero-title,
body.tesla-home .hero-title .highlight {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

body.tesla-home .hero-stats {
  display: none;
}

body.tesla-home .hero-buttons {
  margin-top: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

body.tesla-home .btn {
  min-width: 190px;
  height: 42px;
  padding: 10px 22px;
  font-size: 14px;
}

body.tesla-home .btn-primary {
  background: rgba(23,26,32,0.88);
  border-color: rgba(23,26,32,0.88);
}

body.tesla-home .btn-secondary-tesla {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #171a20;
  font-weight: 600;
}

body.tesla-home .btn-secondary-tesla:hover {
  background: rgba(255,255,255,0.9);
}

body.tesla-home .embodied-container {
  max-width: 100%;
  height: 100%;
  padding: 0;
}

body.tesla-home .embodied-content-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-direction: column !important;
}

body.tesla-home .embodied-image-area {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}

body.tesla-home .embodied-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tesla-home .embodied-text-area {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 13vh 20px 14vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.tesla-home .embodied-title {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

body.tesla-home .embodied-rich-text p {
  color: rgba(255,255,255,0.94);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  max-width: 820px;
}

body.tesla-home .read-more-btn {
  margin-top: auto;
  min-width: 190px;
  background: rgba(23,26,32,0.9);
  color: #fff;
}

body.tesla-home .read-more-btn:hover {
  background: #0f1115;
}

body.tesla-home .footer {
  background: #0f1115;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  body.tesla-home,
  body.tesla-home .hero,
  body.tesla-home .embodied-section {
    scroll-snap-type: none;
  }

  body.tesla-home .hero-content,
  body.tesla-home .embodied-text-area {
    padding-top: 12vh;
    padding-bottom: 10vh;
  }

  body.tesla-home .hero-title,
  body.tesla-home .embodied-title {
    font-size: clamp(28px, 9vw, 36px);
  }

  body.tesla-home .hero-description,
  body.tesla-home .embodied-rich-text p {
    font-size: 14px;
    line-height: 1.65;
  }

  body.tesla-home .btn,
  body.tesla-home .read-more-btn,
  body.tesla-home .btn-secondary-tesla {
    min-width: 160px;
    height: 40px;
  }
}

/* 首页深色模块改为浅灰（老板反馈） */
body.tesla-home {
  background: #f2f3f5;
}

body.tesla-home .hero-image-shell::after,
body.tesla-home .embodied-image-area::after {
  background: linear-gradient(180deg, rgba(245,246,248,0.06) 0%, rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.3) 100%);
}

body.tesla-home .btn-primary,
body.tesla-home .read-more-btn {
  background: rgba(238,240,243,0.9);
  border-color: rgba(238,240,243,0.9);
  color: #171a20;
}

body.tesla-home .btn-primary:hover,
body.tesla-home .read-more-btn:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.96);
  color: #111;
}

body.tesla-home .btn-secondary-tesla {
  background: rgba(255,255,255,0.7);
}

body.tesla-home .footer {
  background: #eceef1;
  border-top: 1px solid #dde1e6;
}

body.tesla-home .footer,
body.tesla-home .footer a,
body.tesla-home .footer-single-line span {
  color: #2f3338;
}

/* 首页最上方 Hero 背景改为偏灰（去深蓝） */
body.tesla-home .hero {
  background: #e8ebef !important;
}

body.tesla-home .hero-image-shell::after {
  background: linear-gradient(180deg, rgba(232,235,239,0.32) 0%, rgba(122,128,136,0.24) 62%, rgba(64,70,78,0.28) 100%) !important;
}

body.tesla-home .hero-robot-img {
  filter: grayscale(34%) saturate(45%) brightness(1.03) contrast(0.96);
}

body.tesla-home .hero-content {
  color: #1f2329;
}

body.tesla-home .hero-kicker,
body.tesla-home .hero-title,
body.tesla-home .hero-title .highlight,
body.tesla-home .hero-description {
  color: #1f2329;
  text-shadow: none;
}

/* 首页顶部首屏强制去蓝：灰色覆盖（防缓存/层叠差异） */
body.tesla-home .hero-image-shell {
  position: absolute;
  inset: 0;
  background: #e8ebef;
}

body.tesla-home .hero-image-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #e8ebef;
  opacity: 0.86;
  z-index: 1;
  pointer-events: none;
}

body.tesla-home .hero-image-shell::after {
  z-index: 2;
  background: linear-gradient(180deg, rgba(232,235,239,0.18) 0%, rgba(90,95,102,0.18) 72%, rgba(62,68,75,0.22) 100%) !important;
}

body.tesla-home .hero-robot-img {
  position: relative;
  z-index: 0;
  filter: grayscale(58%) saturate(20%) hue-rotate(-10deg) brightness(1.02) contrast(0.92) !important;
}

/* 首页板块之间增加留白（老板要求） */
body.tesla-home {
  background: #f3f4f6;
}

body.tesla-home .hero,
body.tesla-home .embodied-section {
  margin: 10px 14px;
  min-height: calc(100vh - 20px);
  border-radius: 18px;
  overflow: hidden;
}

body.tesla-home .hero {
  margin-top: 84px; /* 给固定导航留空间 */
  min-height: calc(100vh - 94px);
}

body.tesla-home .embodied-section {
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

@media (max-width: 768px) {
  body.tesla-home .hero,
  body.tesla-home .embodied-section {
    margin: 8px 8px;
    border-radius: 14px;
    min-height: calc(100vh - 16px);
  }

  body.tesla-home .hero {
    margin-top: 76px;
    min-height: calc(100vh - 84px);
  }
}

/* 修复：首页首屏背景图被旧样式 max-width:600 限制成竖条 */
body.tesla-home .hero-image {
  display: block;
}

body.tesla-home .hero-image-shell {
  width: 100%;
  height: 100%;
}

body.tesla-home .hero-robot-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  object-fit: cover;
  object-position: center center;
}

/* 强制：首页首屏背景图以 background 方式整板块铺满 */
body.tesla-home .hero {
  position: relative;
  background-image: url('images/cover.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.tesla-home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232,235,239,0.26) 0%, rgba(94,100,108,0.2) 65%, rgba(62,68,75,0.22) 100%);
  z-index: 1;
}

body.tesla-home .hero-image {
  display: none !important;
}

body.tesla-home .hero-content {
  position: relative;
  z-index: 2;
}

/* 修复导航栏“产品中心”与其他菜单文字不对齐 */
body.tesla-home .nav-menu {
  display: flex;
  align-items: center;
}

body.tesla-home .nav-item {
  display: flex;
  align-items: center;
}

body.tesla-home .nav-link,
body.tesla-home .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  line-height: 1;
}

body.tesla-home .dropdown-toggle {
  gap: 6px;
}

body.tesla-home .dropdown-caret {
  margin-top: 0;
  transform: rotate(45deg) translateY(-1px);
}

/* 首页首屏加深蒙版 + 主题词改白色（老板反馈） */
body.tesla-home .hero::before {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 24, 0.42) 0%,
    rgba(10, 14, 24, 0.48) 52%,
    rgba(10, 14, 24, 0.56) 100%
  ) !important;
}

body.tesla-home .hero .hero-kicker,
body.tesla-home .hero .hero-title,
body.tesla-home .hero .hero-title .highlight,
body.tesla-home .hero .hero-description {
  color: #ffffff !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34) !important;
}

/* 全站导航对齐修复（非首页页面也生效） */
.nav-menu {
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  line-height: 1;
}

.dropdown-toggle {
  gap: 6px;
}

.dropdown-caret {
  margin-top: 0;
}


/* 全站语言切换按钮（右上角） */
.site-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 14px;
  position: relative;
  z-index: 1002;
}

.site-lang-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
}

.site-lang-btn.active {
  color: #111827;
  font-weight: 700;
}

.site-lang-sep {
  color: #9ca3af;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .site-lang-switcher {
    margin-left: auto;
    margin-right: 10px;
  }
}

/* 全站导航居中一致性修复（与首页一致） */
.nav-container {
  justify-content: space-between;
}

.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  margin: 0;
  z-index: 1;
}

.site-lang-switcher {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

@media (max-width: 768px) {
  .site-lang-switcher {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 10px;
  }
}

/* 兼容性增强（跨浏览器/多设备） */
img, video {
  max-width: 100%;
  height: auto;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 20px;
  }
  .nav-link,
  .dropdown-toggle {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 14px;
  }
}


/* 语言切换防闪烁：先隐藏，翻译应用后显示 */
html.lang-pending body { visibility: hidden; }
html.lang-ready body { visibility: visible; }

/* 移动端导航修复：默认隐藏菜单，仅点击汉堡按钮展开 */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
  }

  .nav-logo {
    position: static;
    left: auto;
  }

  .hamburger {
    display: flex;
    z-index: 1003;
  }

  .nav-menu {
    position: fixed !important;
    left: -100% !important;
    right: auto !important;
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 14px 0 24px;
    margin: 0;
    transition: left 0.3s ease;
    z-index: 1001;
  }

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

  .nav-item {
    width: 100%;
    display: block;
  }

  .nav-link,
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
  }

  .dropdown-menu {
    position: static !important;
    width: 100% !important;
    left: auto;
    right: auto;
    top: auto;
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto;
  }

  .dropdown-menu.active {
    display: block !important;
  }

  .dropdown-link {
    display: block;
    margin: 0 14px;
    padding: 12px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
  }

  .dropdown-menu li:last-child .dropdown-link {
    border-bottom: none;
  }
}

/* 移动端导航最终修复：菜单仅占顶部区域，不全屏 */
@media (max-width: 768px) {
  .nav-menu {
    top: 70px;
    height: auto !important;
    max-height: min(62vh, 520px);
    border-radius: 0 0 14px 14px;
    padding: 10px 0 14px;
    overflow-y: auto;
  }

  .dropdown-menu {
    max-height: 40vh;
    overflow-y: auto;
  }
}

/* 移动端产品中心改为非下拉：直接展示4个可点击链接 */
@media (max-width: 768px) {
  .nav-item.dropdown > .dropdown-toggle {
    pointer-events: none;
    cursor: default;
    opacity: 0.85;
  }

  .nav-item.dropdown > .dropdown-toggle .dropdown-caret {
    display: none;
  }

  .nav-item.dropdown > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border-top: none !important;
    z-index: auto !important;
  }
}

/* 终极修复：移动端产品中心改为独立直链（不走下拉、不绑交互） */
.nav-item-mobile-product { display: none; }

@media (max-width: 768px) {
  .nav-item.dropdown > .dropdown-menu { display: none !important; }

  .nav-item-mobile-product {
    display: block;
    width: 100%;
  }

  .mobile-product-link {
    display: block;
    margin: 0 14px;
    padding: 12px 6px;
    text-align: center;
    color: #1b4766;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
    pointer-events: auto !important;
    position: relative;
    z-index: 1010;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  }

  .nav-item-mobile-product:last-of-type .mobile-product-link {
    border-bottom: none;
  }
}
