/* 全局样式 — @revision 24 | 2026-04-19 | 导航 Logo max-width 双保险（Lighthouse CLS） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调（品牌识别色） */
    --primary-color: #F7941E;        /* 活力橙 - 主色 */
    --primary-hover: #D87E18;        /* 橙色 hover 状态 */
    
    /* 背景色 */
    --bg-light: #F5F5F5;             /* 浅灰底 - 页面背景 */
    --white: #FFFFFF;                /* 纯白 - 卡片背景 */
    
    /* 文本颜色 */
    --text-dark: #333333;            /* 深灰文本 - 正文内容 */
    --text-light: #666666;           /* 中灰辅助 - 次要文本 */
    
    /* 辅助色 */
    --border-color: #E0E0E0;         /* 亮灰分隔 - 分割线、边框 */
    --success-color: #52C41A;        /* 成功色 */
    --error-color: #FF4D4F;          /* 警示色 */
    
    /* 阴影 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* 全站主内容区水平内边距（随视口缩放，适配 320px～桌面） */
    --container-pad-x: clamp(14px, 3.2vw, 24px);
    /* 固定顶栏实际高度，由 js/nav-init.js ResizeObserver 写入，避免抽屉菜单 top 与内容区 margin 用死值错位 */
    --site-navbar-h: 80px;
    
    /* 兼容旧变量 */
    --secondary-color: #F7941E;      /* 保持兼容 */
    --accent-color: #F7941E;         /* 保持兼容 */
}

/* 始终用浅灰底填充视口，避免导航切换时闪白 */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    min-height: 100%;
}

/* 无刷新导航时仅禁用点击 */
html.nav-navigate-loading body {
    pointer-events: none;
    user-select: none;
}

/* 替换 body 内容时短暂隐藏，等新 DOM 布局完成后再显示 */
html.nav-replacing body {
    opacity: 0 !important;
    transition: none !important;
}

/* 导航遮罩：盖在新内容上，极短淡出露出页面 */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.04s ease-out;
    pointer-events: none;
}
.nav-overlay.nav-overlay-fade {
    opacity: 0;
}

/* 全局图片不撑破小屏，保持比例 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in;
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-pad-x);
    padding-right: var(--container-pad-x);
}

/* 导航栏 */
.nav-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-search-form input {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.nav-search-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-search-form button:hover {
    background: var(--primary-hover);
}

/* 语言切换组件 */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
}

@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 0.75rem;
        justify-content: center;
        width: 100%;
    }
}

/* 搜索页面样式 */
.search-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    margin-top: var(--site-navbar-h, 80px);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-hover);
}

.search-results-section {
    padding: 3rem 0;
    background: var(--white);
}

.search-summary {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
}

.search-section-group {
    margin-bottom: 3rem;
}

.search-section-group h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.search-result-item h3 {
    margin-bottom: 0.75rem;
}

.search-result-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-item h3 a:hover {
    color: var(--primary-color);
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-result-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.search-result-item mark {
    background: #fff3cd;
    color: var(--text-dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .search-box input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
    background: var(--text-dark);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: none;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-pad-x);
    padding-right: var(--container-pad-x);
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.logo span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-start;
    align-items: flex-end;
}

.nav-menu li {
    display: flex;
    align-items: flex-end;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:focus-visible {
    color: var(--primary-color);
    outline: 2px solid rgba(255, 213, 170, 0.9);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -1px; /* 确保与导航栏无缝连接 */
    padding-top: var(--site-navbar-h, 80px);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" 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;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* Hero轮播样式：勿用 z-index:-1，否则 <img> 会绘在 .hero-modern 背景渐变之下而不可见（旧版背景写在 section 上无此问题） */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.hero-carousel-slide__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* 仅供读屏：轮播当前张 polite 播报，视觉上隐藏 */
.hero-carousel-announcer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-indicator.active {
    background: var(--white);
    border-color: var(--white);
    width: 24px;
    border-radius: 6px;
}

.hero-carousel-indicator:focus-visible {
    outline: 2px solid rgba(255, 213, 170, 0.95);
    outline-offset: 3px;
}

.hero-modern[data-content-block="hero_image"] .hero-carousel:focus-visible {
    outline: 2px solid rgba(255, 213, 170, 0.95);
    outline-offset: 4px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-left: var(--container-pad-x);
    padding-right: var(--container-pad-x);
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--white);
}

/* 特性区域 */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* 首页最新新闻和产品预览 */
.latest-news,
.featured-products {
    padding: 5rem 0;
    background: var(--white);
}

.news-preview-grid,
.products-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 现代化产品网格 - 桌面端固定两列，避免第二项被挤到下一行 */
.featured-products-modern .products-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-preview-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-preview-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.news-preview-content {
    padding: 1.5rem;
}

.news-preview-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.news-preview-category.company {
    background: #e3f2fd;
    color: #1976d2;
}

.news-preview-category.industry {
    background: #f3e5f5;
    color: #7b1fa2;
}

.news-preview-content h3 {
    margin-bottom: 0.75rem;
}

.news-preview-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-preview-content h3 a:hover {
    color: var(--primary-color);
}

.news-preview-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-preview-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-preview-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-preview-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-preview-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.product-preview-content {
    padding: 1.5rem;
}

.product-preview-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.product-preview-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-preview-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.product-preview-link:hover {
    gap: 0.75rem;
    color: var(--primary-hover);
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* 产品筛选 */
.products-filter {
    padding: 2rem 0;
    background: var(--bg-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 2rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    border-color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 服务区域 */
.services {
    padding: 5rem 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.service-link {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.5rem;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 数据统计 */
/* 常见问题区域 */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s;
}

button.faq-question {
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    color: inherit;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background-color: #fff7ed;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.faq-toggle {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* 客户见证 */
.testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.author-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* 社交媒体分享按钮 */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.social-share-btn i {
    font-size: 1rem;
}

.social-share-btn span {
    display: inline-block;
}

.social-share-btn.facebook {
    background: #1877F2;
}

.social-share-btn.facebook:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.social-share-btn.twitter {
    background: #1DA1F2;
}

.social-share-btn.twitter:hover {
    background: #1A91DA;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3);
}

.social-share-btn.linkedin {
    background: #0077B5;
}

.social-share-btn.linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 181, 0.3);
}

.social-share-btn.whatsapp {
    background: #25D366;
}

.social-share-btn.whatsapp:hover {
    background: #22C55E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.social-share-btn.weibo {
    background: #E6162D;
}

.social-share-btn.weibo:hover {
    background: #D01428;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 22, 45, 0.3);
}

.social-share-btn.wechat {
    background: #09BB07;
}

.social-share-btn.wechat:hover {
    background: #08A806;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(9, 187, 7, 0.3);
}

.social-share-btn.copy {
    background: var(--text-light);
}

.social-share-btn.copy:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 102, 102, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .social-share-buttons {
        gap: 0.5rem;
    }
    
    .social-share-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .social-share-btn span {
        display: none; /* 移动端只显示图标 */
    }
    
    .social-share-btn i {
        font-size: 1.1rem;
    }
}

/* 分享按钮动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* 邮件订阅模态框 */
.subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.subscribe-modal-content {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.subscribe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.subscribe-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.subscribe-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.subscribe-modal-close:hover {
    color: var(--text-dark);
}

.subscribe-form .form-group {
    margin-bottom: 1.5rem;
}

.subscribe-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.subscribe-form label span {
    color: var(--error-color);
}

.subscribe-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 全局表单提示（联系表单、询盘等） */
.form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}
.form-message.success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}
.form-message.error {
    background: #fff2f0;
    color: var(--error-color);
    border: 1px solid #ffccc7;
}
.form-message.info {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.subscribe-form .form-message {
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.subscribe-form .form-message.success {
    background: #f0f9ff;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.subscribe-form .form-message.error {
    background: #fff1f0;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.subscribe-form .form-message.info {
    background: #f0f9ff;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.subscribe-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.subscribe-form .form-actions button {
    flex: 1;
}

@media (max-width: 768px) {
    .subscribe-modal-content {
        padding: 1.5rem;
    }
    
    .subscribe-form .form-actions {
        flex-direction: column;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 移动端菜单遮罩：顶栏之下点击关闭（与下拉横排菜单配合） */
.nav-drawer-backdrop {
    display: none;
}

/* ≤992px：顶栏下方全宽横排下拉（非侧滑抽屉） */
@media (max-width: 992px) {
    .nav-drawer-backdrop {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: var(--site-navbar-h, calc(4.25rem + env(safe-area-inset-top, 0px)));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(15, 15, 20, 0.48);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.32s ease, visibility 0.32s ease;
        pointer-events: none;
    }

    .nav-drawer-backdrop.is-visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-menu-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--site-navbar-h, calc(4.25rem + env(safe-area-inset-top, 0px)));
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.2rem 0.45rem;
        background: var(--white);
        width: 100%;
        max-width: 100%;
        padding: 0.55rem var(--container-pad-x) calc(0.65rem + env(safe-area-inset-bottom, 0px));
        margin: 0;
        list-style: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        text-align: center;
        box-sizing: border-box;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition:
            opacity 0.28s ease,
            transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
            visibility 0.28s ease;
    }

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

    .nav-menu > li {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 25px;
        max-width: 150px;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .nav-menu a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.75rem;
        margin: 0;
        border-radius: 8px;
        color: var(--text-dark);
        white-space: nowrap;
        font-size: 0.9rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        background: rgba(247, 148, 30, 0.1);
        outline: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary-color);
    }

    .nav-menu a.active {
        font-weight: 600;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu .nav-search-form {
        display: flex;
        width: auto;
        min-width: min(200px, 42vw);
        max-width: 240px;
        margin: 0;
        padding: 0;
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .nav-menu .nav-search-form input {
        flex: 1;
        min-width: 0;
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
        background: var(--bg-light);
        color: var(--text-dark);
        border: 1px solid var(--border-color);
    }

    .nav-menu .nav-search-form input::placeholder {
        color: var(--text-light);
    }

    .nav-menu .nav-search-form input:focus {
        background: var(--white);
        border-color: var(--primary-color);
    }

    .nav-menu .nav-search-form button {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
    }

    .nav-menu .lang-switcher {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin: 0;
        margin-top: 0;
        padding: 0 0.15rem;
        flex-wrap: nowrap;
        width: auto;
        max-width: none;
    }

    .lang-btn {
        color: var(--text-dark);
        min-height: 40px;
        padding: 0.35rem 0.6rem;
    }

    .lang-btn:hover {
        background: rgba(0, 0, 0, 0.06);
        color: var(--text-dark);
    }

    .lang-btn.active {
        color: var(--white);
    }

    .lang-separator {
        color: var(--text-light);
    }
}

@media (max-width: 992px) and (prefers-reduced-motion: reduce) {
    .nav-menu {
        transition: none;
    }

    .nav-drawer-backdrop {
        transition: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .services-grid,
    .testimonials-grid,
    .news-preview-grid,
    .products-preview-grid {
        grid-template-columns: 1fr;
    }

    /* 热门产品区桌面写了 .featured-products-modern .products-preview-grid 双列，特异性更高，窄屏须显式单列 */
    .featured-products-modern .products-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featured-products-modern {
        padding: 4rem 0;
    }

    /* 真机常见宽度 <500px 时 auto-fit+minmax(250px) 会落成单列；与窄视口浏览器两列不一致，故小屏固定两列 */
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 0.875rem;
    }

    .footer-content > .footer-section {
        min-width: 0;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
        word-break: break-word;
    }

    .footer-section p {
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .footer-section ul li {
        margin-bottom: 0.35rem;
    }

    .footer .newsletter-subscribe .btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        gap: 1.25rem 0.65rem;
    }

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

/* 回到顶部（叠在统一咨询按钮上方） */
.back-to-top-btn {
    position: fixed;
    right: max(30px, env(safe-area-inset-right));
    bottom: calc(max(30px, env(safe-area-inset-bottom)) + 70px);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(247, 148, 30, 0.15);
    z-index: 9997;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
        background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--white);
    color: var(--primary-hover);
    box-shadow: 0 4px 18px rgba(247, 148, 30, 0.25), 0 0 0 1px rgba(247, 148, 30, 0.25);
}

.back-to-top-btn:focus {
    outline: none;
}

.back-to-top-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top-btn {
        transition: none;
    }

    .back-to-top-btn.is-visible {
        transform: none;
    }
}

/* ==================== 在线客服聊天窗口样式 ==================== */

.chat-widget-button {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(247, 148, 30, 0.4), 0 0 0 0 rgba(247, 148, 30, 0.1);
    z-index: 9998;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
}

/* 气泡提示 */
.chat-widget-button .chat-widget-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}
.chat-widget-button .chat-widget-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}
.chat-widget-button:hover .chat-widget-tooltip,
.chat-widget-button .chat-widget-tooltip.chat-widget-tooltip-autoshow {
    opacity: 1;
    visibility: visible;
}

/* 未读消息角标 */
.chat-widget-button .chat-widget-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}

.chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(247, 148, 30, 0.5), 0 0 0 4px rgba(247, 148, 30, 0.1);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.chat-widget-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 420px;
    min-height: 560px;
    height: 88vh;
    max-height: calc(100vh - 40px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(247, 148, 30, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(247, 148, 30, 0.1);
}

.chat-widget-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-widget-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 14px 18px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(247, 148, 30, 0.2);
}

.chat-widget-header-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

.chat-status.online::before {
    content: '●';
    color: #52C41A;
    margin-right: 6px;
    font-size: 10px;
    animation: pulse 2s infinite;
}

.chat-status.offline::before {
    content: '●';
    color: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
    font-size: 10px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-widget-close:hover {
    opacity: 1;
}

.chat-widget-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px;
    background: var(--bg-light);
    -webkit-overflow-scrolling: touch;
}
.chat-widget-body::-webkit-scrollbar {
    width: 6px;
}
.chat-widget-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}
.chat-widget-body::-webkit-scrollbar-thumb {
    background: rgba(247, 148, 30, 0.4);
    border-radius: 3px;
}
.chat-widget-body::-webkit-scrollbar-thumb:hover {
    background: rgba(247, 148, 30, 0.6);
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.chat-welcome i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.chat-welcome p {
    font-size: 14px;
    margin: 0;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.visitor {
    justify-content: flex-end;
}

.chat-message.admin {
    justify-content: flex-start;
}

.chat-message-content {
    max-width: 75%;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-message.visitor .chat-message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 2px 8px rgba(247, 148, 30, 0.25);
    border: none;
}

.chat-message.admin .chat-message-content {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.chat-message-name {
    font-weight: 600;
}

.chat-message-time {
    margin-left: 8px;
}

.chat-message-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-widget-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.chat-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: var(--white);
    color: var(--text-dark);
}

.chat-input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.1);
}

#chat-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(247, 148, 30, 0.3);
}

#chat-send-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 148, 30, 0.4);
}

#chat-send-btn:active {
    transform: scale(0.95);
}

.chat-quick-replies {
    margin-top: 10px;
    min-height: 36px;
    max-height: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.chat-quick-replies-label {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.chat-quick-replies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 72px;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-quick-reply {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--primary-color);
    background: rgba(247, 148, 30, 0.08);
    border: 1px solid rgba(247, 148, 30, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-quick-reply:hover {
    background: rgba(247, 148, 30, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

.chat-quick-reply:active {
    transform: scale(0.98);
}

.chat-visitor-info {
    margin-top: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(247, 148, 30, 0.05), rgba(216, 126, 24, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(247, 148, 30, 0.2);
}

.chat-visitor-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-visitor-info-header i {
    color: var(--primary-color);
    font-size: 18px;
}

.chat-visitor-info-header p {
    font-size: 13px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.chat-visitor-info-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-visitor-info input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.chat-visitor-info input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-visitor-info-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(247, 148, 30, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-color);
    border: 1px solid rgba(247, 148, 30, 0.2);
}

.chat-visitor-info-hint i {
    font-size: 14px;
}

.chat-visitor-info input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.15);
    background: var(--white);
}

/* 聊天通知 */
.chat-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(247, 148, 30, 0.4);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 统一咨询（智能助理 → 转人工客服） ==================== */

.help-hub-widget-button {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(247, 148, 30, 0.4), 0 0 0 0 rgba(247, 148, 30, 0.1);
    z-index: 9998;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
}

.help-hub-widget-button .help-hub-widget-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.help-hub-widget-button .help-hub-widget-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

.help-hub-widget-button:hover .help-hub-widget-tooltip,
.help-hub-widget-button .help-hub-widget-tooltip.help-hub-widget-tooltip-autoshow {
    opacity: 1;
    visibility: visible;
}

.help-hub-widget-button .help-hub-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}

.help-hub-widget-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(247, 148, 30, 0.5), 0 0 0 4px rgba(247, 148, 30, 0.1);
}

.help-hub-window {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
    width: 420px;
    min-height: 520px;
    height: 88vh;
    max-height: calc(100vh - 40px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(26, 111, 196, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(110%) scale(0.92);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    overflow: hidden;
    border: 1px solid rgba(26, 111, 196, 0.12);
}

.help-hub-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.help-hub-header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a6fc4, #0d4f8b);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.help-hub-header-main h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
}

.help-hub-subtitle {
    margin: 0;
    font-size: 12px;
    opacity: 0.92;
    line-height: 1.45;
    max-width: 300px;
}

.help-hub-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
}

.help-hub-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.help-hub-toolbar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.btn-help-hub-transfer,
.btn-help-hub-back {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
}

.btn-help-hub-transfer {
    background: #fff;
    color: #1a6fc4;
    border: 1px solid #1a6fc4;
}

.btn-help-hub-transfer:hover {
    background: #eef5fc;
}

.btn-help-hub-back {
    background: #eef4fb;
    color: #0d4f8b;
    border: 1px solid #c5d9f0;
}

.btn-help-hub-back:hover {
    background: #e2ebf7;
}

.btn-help-hub-transfer:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.help-hub-handoff-strip {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #fff8e6;
    border-bottom: 1px solid #ffe0a3;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

.help-hub-handoff-msg {
    margin: 0 0 8px;
}

.btn-help-hub-force-human {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-light);
    font-family: inherit;
}

.btn-help-hub-force-human:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.help-hub-panes {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-hub-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-window--embed {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    transition: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.chat-widget-window--embed .chat-widget-body {
    flex: 1;
    min-height: 0;
}

.trade-ai--hub-embed {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    transition: none !important;
    display: flex;
    flex-direction: column;
}

.trade-ai--hub-embed .trade-ai-widget-header {
    display: none !important;
}

.trade-ai--hub-embed .trade-ai-widget-body {
    flex: 1;
    min-height: 0;
}

.trade-ai--hub-embed .trade-ai-widget-footer {
    flex-shrink: 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .help-hub-window {
        width: calc(100vw - 40px);
        max-width: calc(100vw - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px);
        height: calc(100vh - 100px);
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        left: auto;
    }

    .help-hub-widget-button {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .help-hub-subtitle {
        max-width: none;
    }
}

/* ==================== AI 外贸业务员（独立模式遗留样式，统一咨询下由 help-hub 承载） ==================== */

.trade-ai-widget-button {
    position: fixed;
    bottom: calc(max(30px, env(safe-area-inset-bottom)) + 72px);
    right: max(30px, env(safe-area-inset-right));
    left: auto;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a6fc4, #0d4f8b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 79, 139, 0.35);
    z-index: 9997;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 22px;
}

.trade-ai-widget-button .trade-ai-widget-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.trade-ai-widget-button .trade-ai-widget-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

.trade-ai-widget-button:hover .trade-ai-widget-tooltip,
.trade-ai-widget-button .trade-ai-widget-tooltip.trade-ai-widget-tooltip-autoshow {
    opacity: 1;
    visibility: visible;
}

.trade-ai-widget-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(13, 79, 139, 0.45);
}

.trade-ai-widget-window {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    right: max(30px, env(safe-area-inset-right));
    left: auto;
    width: 420px;
    min-height: 520px;
    height: 85vh;
    max-height: calc(100vh - 40px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(26, 111, 196, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 9997;
    transform: translateY(100%) scale(0.85);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(26, 111, 196, 0.12);
}

.trade-ai-widget-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.trade-ai-widget-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a6fc4, #0d4f8b);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-ai-widget-header-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.trade-ai-status {
    font-size: 12px;
    opacity: 0.92;
    margin-top: 4px;
    display: block;
}

.trade-ai-widget-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.85;
}

.trade-ai-widget-close:hover {
    opacity: 1;
}

.trade-ai-widget-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px;
    background: var(--bg-light);
    -webkit-overflow-scrolling: touch;
}

.trade-ai-welcome {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-light);
}

.trade-ai-welcome i {
    font-size: 44px;
    color: #1a6fc4;
    margin-bottom: 14px;
    display: block;
}

.trade-ai-welcome p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.trade-ai-welcome-main {
    font-weight: 500;
}

.trade-ai-empty-hint {
    margin-top: 10px !important;
    font-size: 12px !important;
    color: var(--text-light) !important;
    line-height: 1.5 !important;
}

.trade-ai-suggested-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.trade-ai-suggested-title-row .trade-ai-suggested-title {
    margin: 0;
}

.trade-ai-suggestion-refresh {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-color, #1a6fc4);
    cursor: pointer;
    min-height: 36px;
}

.trade-ai-suggestion-refresh:hover {
    border-color: #1a6fc4;
    background: rgba(26, 111, 196, 0.06);
}

.trade-ai-suggestion-refresh:focus-visible {
    outline: 2px solid #1a6fc4;
    outline-offset: 2px;
}

.trade-ai-empty-state {
    padding-bottom: 8px;
}

.trade-ai-suggested-wrap {
    margin-top: 18px;
    text-align: left;
    max-width: 100%;
}

.trade-ai-suggested-title {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 8px;
    font-weight: 500;
}

.trade-ai-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.trade-ai-suggestion-chip {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 44px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .trade-ai-suggestion-chip {
        min-height: 0;
        padding: 8px 12px;
    }
}

.trade-ai-suggestion-chip:hover {
    border-color: #1a6fc4;
    background: rgba(26, 111, 196, 0.06);
}

.trade-ai-message {
    margin-bottom: 14px;
    display: flex;
}

.trade-ai-message.user {
    justify-content: flex-end;
}

.trade-ai-message.assistant {
    justify-content: flex-start;
}

.trade-ai-message-content {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.trade-ai-message.user .trade-ai-message-content {
    background: linear-gradient(135deg, #1a6fc4, #0d4f8b);
    color: #fff;
}

.trade-ai-message.assistant .trade-ai-message-content {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.trade-ai-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
    opacity: 0.85;
}

.trade-ai-message-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.trade-ai-message-sources {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 11px;
    color: var(--text-light);
}

.trade-ai-message-sources strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-weight: 600;
}

.trade-ai-source-link {
    display: inline-block;
    margin: 2px 6px 2px 0;
    color: #1a6fc4;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.trade-ai-source-link:hover {
    text-decoration: underline;
}

.trade-ai-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.trade-ai-cta-link {
    font-size: 12px;
    color: #1a6fc4;
    text-decoration: none;
    background: #f0f6fc;
    border: 1px solid #d0e3f7;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.trade-ai-cta-link:hover {
    background: #e2eef9;
}

.trade-ai-error-banner {
    display: none;
    font-size: 12px;
    line-height: 1.45;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    word-break: break-word;
}

.trade-ai-feedback-row {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 8px;
    font-size: 12px;
    color: var(--text-dark);
}

.trade-ai-fb-label {
    margin-right: 4px;
}

.trade-ai-fb-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
}

.trade-ai-fb-btn:hover {
    border-color: #1a6fc4;
    background: #f0f6fc;
}

.trade-ai-fb-thanks {
    color: var(--success-color);
    font-size: 12px;
}

.trade-ai-lead-wrap {
    margin: 6px 0 10px;
    font-size: 12px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 6px 8px;
    background: #fafbfc;
}

.trade-ai-lead-wrap summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

.trade-ai-lead-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.trade-ai-lead-fields input,
.trade-ai-lead-fields textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.trade-ai-lead-submit {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    background: #1a6fc4;
    color: #fff;
    cursor: pointer;
    align-self: flex-start;
}

.trade-ai-lead-status {
    margin: 0;
    font-size: 12px;
    color: var(--success-color);
    min-height: 0;
}

.trade-ai-msg-fold {
    margin: 0;
}

.trade-ai-msg-fold summary {
    cursor: pointer;
    font-size: 12px;
    color: #1a6fc4;
    margin-bottom: 6px;
}

.trade-ai-msg-fold[open] summary {
    margin-bottom: 8px;
}

.trade-ai-widget-window {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.trade-ai-widget-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: 10px 14px 12px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.trade-ai-disclaimer {
    font-size: 11px;
    color: var(--text-light);
    margin: 0 0 8px;
    line-height: 1.4;
}

.trade-ai-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.trade-ai-input-row input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 22px;
    font-size: 14px;
    outline: none;
}

.trade-ai-input-row input:focus {
    border-color: #1a6fc4;
    box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.12);
}

.trade-ai-send-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6fc4, #0d4f8b);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.trade-ai-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.trade-ai-send-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.trade-ai-clear-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px;
    font-size: 12px;
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.trade-ai-clear-btn:hover {
    color: #1a6fc4;
}

/* 移动端适配：外贸业务员窗口（与客服同角） */
@media (max-width: 768px) {
    .trade-ai-widget-window {
        width: calc(100vw - 40px);
        max-width: calc(100vw - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px);
        height: calc(100vh - 100px);
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        left: max(20px, env(safe-area-inset-left));
    }

    .trade-ai-widget-button {
        bottom: calc(max(20px, env(safe-area-inset-bottom)) + 66px);
        right: max(20px, env(safe-area-inset-right));
        left: auto;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

/* 移动端适配：聊天窗口与按钮，兼顾刘海屏安全区 */
@media (max-width: 768px) {
    .chat-widget-window {
        width: calc(100vw - 40px);
        max-width: calc(100vw - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px);
        height: calc(100vh - 100px);
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        left: max(20px, env(safe-area-inset-left));
    }

    .chat-widget-button {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
        width: 56px;
        height: 56px;
    }

    .back-to-top-btn {
        right: max(20px, env(safe-area-inset-right));
        bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px);
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ========== 现代化首页样式 v1.4.8 ========== */

/* Hero区域 - 现代化设计 */
.hero-modern {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c1810 0%, #3d2415 50%, #4a2a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -1px;
    padding-top: var(--site-navbar-h, 80px);
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(247, 148, 30, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 148, 30, 0.1) 0%, transparent 50%);
    z-index: 0;
}

/* 遮罩加深：亮色背景图时也能保证白字可读，同时保持画面通透 */
.hero-modern .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
}

/* 有背景图时遮罩略加深（由 .hero-modern.has-hero-image 控制，见 page-content-loader.js） */
.hero-modern.has-hero-image .hero-overlay {
    background: rgba(0, 0, 0, 0.52);
}

/* 背景图加载中：整段首屏保持可绘（文案/渐变），仅隐藏轮播层，利于 LCP 与首帧可读性 */
.hero-modern.hero-image-loading {
    opacity: 1;
}
.hero-modern.hero-image-loading .hero-carousel,
.hero-modern.hero-image-loading .hero-carousel-indicators {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.hero-modern.hero-image-loaded .hero-carousel,
.hero-modern.hero-image-loaded .hero-carousel-indicators {
    opacity: 1;
    transition: opacity 0.28s ease-out;
}
.hero-modern.hero-image-loaded {
    transition: opacity 0.25s ease-out;
}

.hero-content-modern {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff5e6;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-title-modern {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-title-modern .title-line {
    display: block;
}

.hero-title-modern .title-line.highlight {
    background: linear-gradient(135deg, #ffb84d 0%, var(--primary-color) 50%, #ffd699 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.hero-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffb84d;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-modern,
.btn-outline-modern {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(247, 148, 30, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(247, 148, 30, 0.4);
}

.btn-outline-modern {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-primary-modern:focus-visible,
.btn-outline-modern:focus-visible {
    outline: 2px solid rgba(255, 213, 170, 0.95);
    outline-offset: 3px;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator-modern {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.scroll-indicator-modern i {
    font-size: 1.2rem;
}

/* 应用场景区域 */
.scenarios-section {
    padding: 6rem 0;
    background: var(--white);
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(247, 148, 30, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.scenario-card {
    display: block;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.scenario-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffb84d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.4s ease;
}

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

.scenario-card:nth-child(1) .scenario-image { background: linear-gradient(135deg, var(--primary-color) 0%, #ffb84d 100%); }
.scenario-card:nth-child(2) .scenario-image { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%); }
.scenario-card:nth-child(3) .scenario-image { background: linear-gradient(135deg, #ffb84d 0%, #ffd700 100%); }
.scenario-card:nth-child(4) .scenario-image { background: linear-gradient(135deg, var(--primary-color) 0%, #ff9500 100%); }
.scenario-card:nth-child(5) .scenario-image { background: linear-gradient(135deg, #ff9500 0%, var(--primary-color) 100%); }
.scenario-card:nth-child(6) .scenario-image { background: linear-gradient(135deg, var(--primary-hover) 0%, #ffb84d 100%); }

/* 应用场景归档页：侧边栏 + 主内容布局 */
.scenarios-archive-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.scenarios-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scenarios-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.scenarios-filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.scenarios-filter-tab {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.scenarios-filter-tab:hover {
    background: rgba(247, 148, 30, 0.08);
    color: var(--primary-color);
}

.scenarios-filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    font-weight: 500;
}

.scenarios-main {
    min-width: 0;
}

@media (max-width: 992px) {
    .scenarios-archive-layout {
        grid-template-columns: 1fr;
    }

    .scenarios-sidebar {
        position: static;
    }

    .scenarios-filter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .scenarios-filter-tab {
        width: auto;
    }
}

/* 成功案例归档页：侧边栏 + 主内容布局（复用场景样式） */
.cases-archive-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.cases-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cases-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cases-filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cases-filter-tab {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cases-filter-tab:hover {
    background: rgba(247, 148, 30, 0.08);
    color: var(--primary-color);
}

.cases-filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    font-weight: 500;
}

.cases-main {
    min-width: 0;
}

@media (max-width: 992px) {
    .cases-archive-layout {
        grid-template-columns: 1fr;
    }

    .cases-sidebar {
        position: static;
    }

    .cases-filter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cases-filter-tab {
        width: auto;
    }
}

/* 新闻归档页：侧边栏 + 主内容布局（与 cases/scenarios 一致） */
.news-archive-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.news-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.news-filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-filter-tab {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.news-filter-tab:hover {
    background: rgba(247, 148, 30, 0.08);
    color: var(--primary-color);
}

.news-filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    font-weight: 500;
}

.news-main {
    min-width: 0;
}

@media (max-width: 992px) {
    .news-archive-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .news-filter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .news-filter-tab {
        width: auto;
    }
}

/* 归档页应用场景网格（超过6个时循环渐变） */
.scenarios-archive-grid .scenario-card:nth-child(6n+1) .scenario-image { background: linear-gradient(135deg, var(--primary-color) 0%, #ffb84d 100%); }
.scenarios-archive-grid .scenario-card:nth-child(6n+2) .scenario-image { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%); }
.scenarios-archive-grid .scenario-card:nth-child(6n+3) .scenario-image { background: linear-gradient(135deg, #ffb84d 0%, #ffd700 100%); }
.scenarios-archive-grid .scenario-card:nth-child(6n+4) .scenario-image { background: linear-gradient(135deg, var(--primary-color) 0%, #ff9500 100%); }
.scenarios-archive-grid .scenario-card:nth-child(6n+5) .scenario-image { background: linear-gradient(135deg, #ff9500 0%, var(--primary-color) 100%); }
.scenarios-archive-grid .scenario-card:nth-child(6n+6) .scenario-image { background: linear-gradient(135deg, var(--primary-hover) 0%, #ffb84d 100%); }

.scenario-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.scenario-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.scenario-card:hover .scenario-overlay {
    opacity: 0;
}

.scenario-content {
    padding: 1.5rem 1.75rem;
}

.scenario-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.scenario-content .scenario-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scenario-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.25s ease;
}

.scenario-card:hover .scenario-link {
    gap: 0.6rem;
}

.scenario-link i {
    font-size: 0.85em;
    transition: transform 0.25s ease;
}

.scenario-card:hover .scenario-link i {
    transform: translateX(3px);
}

/* 产品优势区域 */
.advantages-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, var(--white) 100%);
}

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

.advantage-card-modern {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advantage-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(247, 148, 30, 0.1) 0%, rgba(247, 148, 30, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.advantage-icon-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.advantage-card-modern:hover .advantage-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.advantage-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.advantage-card-modern p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 解决方案展示 */
.solutions-section {
    padding: 6rem 0;
    background: var(--white);
}

.solutions-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.solution-item-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-item-modern.reverse {
    direction: rtl;
}

.solution-item-modern.reverse > * {
    direction: ltr;
}

.solution-image-modern {
    height: 400px;
    min-height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffb84d 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 有图片时：铺满显示，带轻微 hover 缩放 */
.solution-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.4s ease;
}

.solution-item-modern:hover .solution-image-modern img {
    transform: scale(1.05);
}

.solution-image-modern .solution-icon-large {
    position: relative;
    z-index: 1;
}

.solution-image-modern .solution-icon-fallback {
    display: none;
    background: inherit;
}

.solution-item-modern:nth-child(2) .solution-image-modern {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.solution-item-modern:nth-child(3) .solution-image-modern {
    background: linear-gradient(135deg, #ffb84d 0%, #ffd700 100%);
}

.solution-icon-large {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* 有图片时叠加极淡底边阴影，增强层次感 */
.solution-image-modern:has(img)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.06) 100%);
    z-index: 1;
    pointer-events: none;
}

.solution-content-modern h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.solution-content-modern > p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.solution-features {
    list-style: none;
    margin-bottom: 2rem;
}

.solution-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
}

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

/* 热门产品区域 - 现代化 */
.featured-products-modern {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
}

.section-footer-modern {
    text-align: center;
    margin-top: 3rem;
}

/* 浅色背景区域的「查看更多」按钮 - 与主色系匹配 */
.btn-view-more {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 30, 0.3);
}

/* 客户案例区域 - 现代化 */
.cases-section-modern {
    padding: 6rem 0;
    background: var(--white);
}

.cases-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

@media (min-width: 1200px) {
    .cases-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* CTA区域 */
.cta-section-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2c1810 0%, #3d2415 50%, #4a2a1a 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(247, 148, 30, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(247, 148, 30, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.cta-content-modern {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content-modern h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content-modern p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ区域 - 现代化 */
.faq-section-modern {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content-modern {
        animation: none;
    }

    .hero-modern.hero-image-loaded {
        transition: none;
    }

    .hero-modern.hero-image-loading .hero-carousel,
    .hero-modern.hero-image-loading .hero-carousel-indicators,
    .hero-modern.hero-image-loaded .hero-carousel,
    .hero-modern.hero-image-loaded .hero-carousel-indicators {
        transition: none;
    }

    .hero-carousel-slide {
        transition: none;
    }

    .scroll-indicator-modern {
        animation: none;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        transition: none;
    }

    .btn-primary-modern:hover,
    .btn-outline-modern:hover {
        transform: none;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .solution-item-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solution-item-modern.reverse {
        direction: ltr;
    }

    .hero-modern {
        min-height: 90vh;
        padding-top: 70px;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-modern,
    .btn-outline-modern {
        width: 100%;
        justify-content: center;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-image-modern {
        height: 300px;
    }
    
    .solution-icon-large {
        font-size: 4rem;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* 产品预览卡片 - 现代化 */
.product-preview-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.product-preview-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-preview-image-modern {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-preview-card-modern:hover .product-preview-image-modern img {
    transform: scale(1.05);
}

.product-preview-image-placeholder-modern {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.product-preview-content-modern {
    padding: 2rem;
}

.product-preview-content-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.product-preview-content-modern p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-preview-link-modern {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.product-preview-link-modern:hover {
    gap: 0.75rem;
}

/* 案例卡片 - 现代化 */
.case-card-modern {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.case-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(247, 148, 30, 0.2);
}

.case-image-modern {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

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

.case-card-modern:hover .case-image-modern img {
    transform: scale(1.06);
}

.case-image-placeholder-modern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.25;
}

.case-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.case-card-modern:hover .case-overlay-modern {
    opacity: 1;
}

.case-link-modern {
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-link-modern:hover {
    transform: scale(1.08);
    background: var(--primary-color);
    color: var(--white);
}

.case-content-modern {
    padding: 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-category-modern {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(247, 148, 30, 0.12);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.case-content-modern h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.case-content-modern h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.case-content-modern h3 a:hover {
    color: var(--primary-color);
}

.case-content-modern p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.case-meta-modern i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.case-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.25s ease;
}

.case-view-link:hover {
    gap: 0.6rem;
}

.case-view-link i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.case-view-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .scenario-content,
    .advantage-card-modern {
        padding: 1.5rem;
    }
    
    .product-preview-content-modern,
    .case-content-modern {
        padding: 1.5rem;
    }

    .product-preview-image-modern {
        height: 200px;
    }

    .product-preview-content-modern h3 {
        font-size: 1.2rem;
        line-height: 1.35;
    }
}

/* 横屏矮视口：避免 Hero 占满导致下方内容需大量滚动 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-modern {
        min-height: auto;
        padding-top: calc(4rem + env(safe-area-inset-top, 0px));
        padding-bottom: 2rem;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
}

/* 平板竖屏等中间宽度：首页现代化标题随屏宽平滑缩放 */
@media (min-width: 481px) and (max-width: 992px) {
    .hero-title-modern {
        font-size: clamp(2rem, 5vw, 2.85rem);
    }

    .section-title-modern {
        font-size: clamp(1.65rem, 4vw, 2.1rem);
    }
}