/* ============================================================
   企业官网CMS - 全局样式主题系统
   CSS变量驱动，后台可实时修改主题色
   ============================================================ */

/* 主题色变量（由PHP动态生成覆盖） */
:root {
    --color-primary:    #1a73e8;
    --color-secondary:  #ff6b35;
    --color-accent:     #00c9a7;
    --color-nav-bg:     #ffffff;
    --color-footer-bg:  #1a1a2e;
    --color-text:       #333333;
    --color-heading:    #111111;

    /* 派生色 */
    --color-primary-light:  rgba(26,115,232,0.1);
    --color-primary-dark:   #1557b0;
    --color-border:         #e8ecf0;
    --color-bg-light:       #f8f9ff;
    --color-bg-section:     #f4f6f9;
    --color-white:          #ffffff;
    --color-shadow:         rgba(0,0,0,0.08);
    --color-shadow-hover:   rgba(0,0,0,0.16);

    /* 间距 */
    --spacing-xs:   8px;
    --spacing-sm:   16px;
    --spacing-md:   24px;
    --spacing-lg:   48px;
    --spacing-xl:   80px;
    --spacing-xxl:  120px;

    /* 字体 */
    --font-primary:  'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-heading:  'Noto Serif SC', 'SimSun', serif;
    --font-mono:     'Courier New', monospace;

    /* 圆角 */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* 阴影 */
    --shadow-sm:  0 2px 8px var(--color-shadow);
    --shadow-md:  0 4px 20px var(--color-shadow);
    --shadow-lg:  0 8px 40px var(--color-shadow);
    --shadow-hover: 0 12px 40px var(--color-shadow-hover);

    /* 容器宽度 */
    --container-max: 1280px;
    --container-pad: 24px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.3;
    font-weight: 700;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; padding: 0; margin: 0; }

input, textarea, select, button {
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
}

/* ============================================================
   布局工具类
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-fluid { width: 100%; padding: 0 var(--container-pad); }

.section-pad { padding: var(--spacing-xl) 0; }
.section-pad-sm { padding: var(--spacing-lg) 0; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }

/* ============================================================
   Section标题样式
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header .en-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
    position: relative;
}

.section-header .en-label::before,
.section-header .en-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--color-primary);
    vertical-align: middle;
    margin: 0 8px;
}

.section-header h2 {
    font-size: clamp(26px, 3vw, 40px);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-nav-bg);
    transition: var(--transition);
    height: 70px;
}

.navbar.transparent {
    background: transparent;
}

.navbar.scrolled {
    background: var(--color-nav-bg);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar.transparent .nav-link,
.navbar.transparent .nav-logo-text {
    color: #fff;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.nav-logo img { height: 40px; width: auto; flex-shrink: 0; }

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    font-family: var(--font-heading);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 15px;
    color: var(--color-heading);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.nav-link .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-item:hover .arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.nav-dropdown a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* 导航右侧工具栏 */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-search-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: var(--color-bg-light);
    border-radius: 50%; cursor: pointer;
    color: var(--color-text); font-size: 16px;
    transition: var(--transition);
}

.nav-search-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-consult {
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-consult:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: 16px;
    color: var(--color-text);
    transition: var(--transition);
    font-size: 13px;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.lang-divider { color: #ccc; font-size: 12px; }

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端全屏菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-nav-bg);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-nav-item {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    color: var(--color-heading);
    font-weight: 500;
}

.mobile-nav-sub { padding-left: 16px; display: none; }
.mobile-nav-sub a { display: block; padding: 10px 0; color: #666; font-size: 14px; }

/* ============================================================
   内页页头（Page Header）
   ============================================================ */
.page-header {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    margin-top: 70px;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,0.55) 0%,
        rgba(var(--color-primary-rgb, 26,115,232),0.4) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.page-header-content h1 {
    font-size: clamp(28px, 4vw, 52px);
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.page-header-content .en-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: #fff; }

/* 底部波浪SVG */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 3;
}

.wave-bottom svg { display: block; width: 100%; height: 60px; }

/* ============================================================
   按钮组件
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,115,232,0.4);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-primary);
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ============================================================
   卡片组件
   ============================================================ */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body { padding: var(--spacing-md); }

.card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--spacing-md);
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: #999;
}

/* ============================================================
   全局搜索弹层
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
}

.search-input {
    flex: 1;
    border: none;
    font-size: 18px;
    color: var(--color-heading);
    background: transparent;
}

.search-input::placeholder { color: #bbb; }
.search-icon { color: #999; font-size: 20px; }
.search-close { color: #999; cursor: pointer; font-size: 20px; transition: var(--transition); }
.search-close:hover { color: var(--color-heading); }

.search-suggest {
    max-height: 400px;
    overflow-y: auto;
}

.suggest-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
}

.suggest-item:hover { background: var(--color-bg-light); }

.suggest-type {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.suggest-type.product { background: #e3f2fd; color: #1565c0; }
.suggest-type.news { background: #f3e5f5; color: #6a1b9a; }
.suggest-type.case { background: #e8f5e9; color: #2e7d32; }

.suggest-text { flex: 1; font-size: 15px; color: var(--color-heading); }
.suggest-text em { color: var(--color-primary); font-style: normal; font-weight: 600; }
.suggest-arrow { color: #ccc; font-size: 14px; }

.search-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover, .page-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.page-ellipsis { color: #999; line-height: 40px; }
.page-info { color: #999; font-size: 13px; margin-left: 8px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: var(--color-footer-bg);
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact-item .icon { color: var(--color-accent); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-icp a { color: rgba(255,255,255,0.4); margin: 0 8px; }
.footer-icp a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   悬浮聊天按钮
   ============================================================ */
.chat-float {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,115,232,0.4);
    transition: var(--transition);
    position: relative;
    border: none;
}

.chat-btn:hover { transform: scale(1.1); }

.chat-btn .pulse {
    position: absolute;
    top: -3px; right: -3px;
    width: 14px; height: 14px;
    background: var(--color-secondary);
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

.chat-bubble {
    background: #fff;
    border-radius: 12px 12px 2px 12px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-heading);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px; height: 44px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    font-size: 18px;
    z-index: 800;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   响应式断点
   ============================================================ */

/* XL: ≥1440px */
@media (min-width: 1440px) {
    :root { --container-pad: 40px; }
}

/* LG: 1024-1439px - 已是默认样式 */

/* MD: 768-1023px（平板）*/
@media (max-width: 1023px) {
    :root {
        --spacing-xl: 60px;
        --spacing-xxl: 80px;
    }

    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* SM: 576-767px（大手机）*/
@media (max-width: 767px) {
    :root {
        --spacing-xl: 48px;
        --spacing-lg: 32px;
        --container-pad: 16px;
    }

    /* 导航：站点名单行省略，工具栏减负避免挤压成竖排字 */
    .nav-logo-text {
        font-size: 16px;
        max-width: min(52vw, 220px);
    }
    .btn-consult { display: none; }
    .lang-switch { display: none; }

    /* 产品中心等：禁止整页横向拖拽溢出 */
    .product-layout,
    .product-main,
    .product-sidebar,
    #productGrid {
        min-width: 0;
        max-width: 100%;
    }
    section.product-page,
    section.section-pad:has(.product-layout) {
        overflow-x: hidden;
    }
    .product-page .product-main {
        touch-action: pan-y;
    }

    /* 悬浮客服 bottom:76px + 按钮高约 56px → 顶约距底 132px，回顶钮整体上移 */
    .back-to-top { bottom: 148px; }

    .page-header { height: 240px; }
    .page-header-content h1 { font-size: 26px; }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* XS: 375-575px（普通手机）*/
@media (max-width: 575px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 24px;
    }

    .btn { padding: 11px 24px; font-size: 14px; }
    .btn-lg { padding: 13px 28px; font-size: 15px; }

    .chat-float { right: 16px; bottom: 70px; }
    /* 小屏客服贴底 16px，回顶再抬高一档 */
    .back-to-top { right: 16px; bottom: 96px; }

    .search-overlay { padding-top: 20px; }
    .search-box { border-radius: var(--radius-md); margin: 0 16px; }

    .grid-4 { grid-template-columns: 1fr; }
}

/* XXS: <375px（小屏手机）*/
@media (max-width: 374px) {
    :root { --container-pad: 12px; }
    .navbar-inner { padding: 0 12px; }
    .nav-logo-text { font-size: 17px; }
}

/* 手机端关闭视差效果（性能优化）*/
@media (max-width: 767px) {
    .parallax-bg { background-attachment: scroll !important; }
}

.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-layout.reverse { direction:rtl; }
.about-layout.reverse > * { direction:ltr; }
.about-image img { width:100%; border-radius:12px; }
@media(max-width:768px) { .about-layout { grid-template-columns:1fr; gap:30px; } }

.logos-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scrollLogos 20s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.logo-item { flex-shrink: 0; }
.logo-item img { height: 50px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(30%); opacity: .75; transition: .3s; }
.logo-item img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scrollLogos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ========== 团队卡片（全局，about页和首页共用） ========== */
.team-card { background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm,0 2px 12px rgba(0,0,0,.08)); transition:.3s; border:1px solid var(--color-border,#e8eaed); text-align:center; }
.team-card:hover { transform:translateY(-6px); box-shadow:0 8px 32px rgba(0,0,0,.12); }
.team-avatar { aspect-ratio:1; overflow:hidden; }
.team-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.team-card:hover .team-avatar img { transform:scale(1.05); }
.team-info { padding:20px; }
.team-name { font-size:17px; font-weight:700; margin-bottom:4px; }
.team-position { font-size:13px; color:var(--color-primary,#1a73e8); margin-bottom:8px; font-weight:600; }
.team-bio { font-size:13px; color:#666; line-height:1.6; }

/* ========== 荣誉资质（全局） ========== */
.honors-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
.honor-item { text-align:center; cursor:pointer; transition:.3s; }
.honor-item:hover { transform:translateY(-4px); }
.honor-item img { width:100%; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.08); border:1px solid var(--color-border,#e8eaed); aspect-ratio:3/4; object-fit:cover; }
.honor-name { font-size:12px; margin-top:8px; color:#666; line-height:1.4; }
.honor-year { font-size:11px; color:#999; }

/* ========== 产品卡片网格（产品中心列表 + 详情页相关产品，全局） ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 200px;
  align-items: stretch;
}
/* 详情页「相关产品」一行多列，与列表页列数区分 */
.related-section .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.prod-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border, #e8eaed);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.prod-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-light, #f8f9ff);
  flex-shrink: 0;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.prod-cat {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.prod-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-model { font-size: 12px; color: #999; margin-bottom: 8px; }
.prod-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.prod-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border, #e8eaed);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.prod-link {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ========== 产品详情「相关产品」标题与响应式 ========== */
.related-section { margin-top: 20px; }
.related-title {
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border, #e8eaed);
}
@media (max-width: 1023px) {
  .honors-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .related-section .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .honors-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { gap: 12px; }
  .related-section .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .related-section .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

