/*
Theme Name: CHXTECH Astra Child
Theme URI: https://chxtech.com
Description: CHXTECH 官网 - 专业半导体测试设备企业官网，参考标谱半导体风格
Author: CHXTECH
Author URI: https://chxtech.com
Template: astra
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chxtech
Tags: 半导体, 测试设备, 企业官网, 科技蓝
*/

/**
 * CHXTECH 官网样式 - 专业版（参考标谱半导体官网）
 * 
 * 设计风格：
 * - 深色科技感头部
 * - 大图轮播展示
 * - 数据可视化展示公司实力
 * - 简洁专业的产品展示
 * - 强调技术实力和行业地位
 * 
 * 主色调：
 * - 主色：科技蓝 #0066CC
 * - 深色：深蓝 #003366
 * - 强调色：橙色 #FF6600
 * - 背景：白色/浅灰
 */

/* ============================================
   第一部分：CSS变量定义
   ============================================ */

:root {
    /* 主色调 */
    --chx-primary: #0066CC;
    --chx-primary-dark: #003366;
    --chx-primary-light: #3399FF;
    
    /* 强调色 */
    --chx-accent: #FF6600;
    --chx-accent-dark: #CC5200;
    
    /* 中性色 */
    --chx-dark: #1a1a1a;
    --chx-gray-dark: #333333;
    --chx-gray: #666666;
    --chx-gray-light: #999999;
    --chx-border: #e8e8e8;
    --chx-bg-light: #f5f7fa;
    --chx-bg-white: #ffffff;
    
    /* 功能色 */
    --chx-success: #28a745;
    --chx-info: #17a2b8;
    --chx-warning: #ffc107;
    --chx-danger: #dc3545;
    
    /* 字体 */
    --chx-font-primary: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    --chx-font-heading: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    
    /* 间距 */
    --chx-space-xs: 0.5rem;
    --chx-space-sm: 1rem;
    --chx-space-md: 2rem;
    --chx-space-lg: 4rem;
    --chx-space-xl: 6rem;
    
    /* 容器宽度 */
    --chx-container: 1200px;
    --chx-container-wide: 1400px;
    
    /* 过渡 */
    --chx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --chx-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   第二部分：全局样式重置 + Astra 兼容
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--chx-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--chx-gray-dark);
    background-color: var(--chx-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Astra 主题兼容修复 - 确保布局正确
   ============================================ */

/* 强制容器样式 */
.ast-container,
.chx-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    display: block !important;
}

@media (min-width: 1200px) {
    .ast-container,
    .chx-container {
        max-width: 1400px !important;
    }
}

/* 确保 section 正确显示 */
section {
    display: block;
    width: 100%;
}

/* 强制 Grid 布局 - 防止被覆盖 */
.chx-stats-grid,
.chx-about-grid,
.chx-products-grid,
.chx-services-grid,
.chx-cases-grid {
    display: grid !important;
}

.chx-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

.chx-about-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
}

.chx-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

.chx-services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

.chx-cases-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

/* 响应式 Grid */
@media (max-width: 1200px) {
    .chx-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .chx-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .chx-about-grid {
        grid-template-columns: 1fr !important;
    }
    .chx-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .chx-services-grid,
    .chx-cases-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .chx-stats-grid,
    .chx-products-grid {
        grid-template-columns: 1fr !important;
    }
}

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

a:hover {
    color: var(--chx-primary-dark);
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--chx-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--chx-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ============================================
   第三部分：顶部信息栏（深色背景）
   ============================================ */

.chx-top-bar {
    background: linear-gradient(135deg, var(--chx-primary-dark) 0%, var(--chx-primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.chx-top-bar .ast-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chx-top-bar-left {
    display: flex;
    gap: 2rem;
}

.chx-top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chx-top-bar-left i {
    color: var(--chx-accent);
}

.chx-top-bar-right {
    display: flex;
    gap: 1rem;
}

.chx-top-bar-right a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: var(--chx-transition);
}

.chx-top-bar-right a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ============================================
   第四部分：主导航（金色背景，匹配Logo，sticky）
   ============================================ */

/* ============================================
   导航栏服务热线（菜单项样式）
   ============================================ */
.chx-nav-phone-item {
    list-style: none;
}

.chx-nav-phone-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 15px;
    white-space: nowrap;
}

.chx-nav-phone-item a i {
    font-size: 13px;
}

.chx-nav-phone-item a:hover {
    color: #000;
}

/* 金色服务热线 - 首页左侧 */
.chx-phone-gold {
    margin-right: 60px !important;
}

.chx-phone-gold a {
    color: #B8860B !important;
    font-weight: 700;
}

.chx-phone-gold a i {
    color: #B8860B !important;
}

.chx-phone-gold a:hover {
    color: #D4AF37 !important;
}

@media (max-width: 1200px) {
    .chx-nav-phone-item a {
        padding: 0 10px;
        font-size: 13px;
    }
    .chx-phone-gold {
        margin-right: 40px !important;
    }
}

@media (max-width: 992px) {
    .chx-nav-phone-item {
        display: none;
    }
}

.main-header {
    background: linear-gradient(135deg, #C9981F 0%, #D4AF37 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .ast-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.chx-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2a2a;
}

.chx-logo-text span {
    color: #1a1a1a;
}

/* 导航菜单 */
.ast-primary-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.ast-primary-menu > li {
    position: relative;
}

.ast-primary-menu > li > a {
    display: block;
    padding: 0 1.5rem;
    color: #2a2a2a;
    font-weight: 600;
    font-size: 1rem;
    line-height: 80px;
    position: relative;
    transition: var(--chx-transition);
}

.ast-primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #1a1a1a;
    transition: var(--chx-transition);
}

.ast-primary-menu > li > a:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
}

.ast-primary-menu > li > a:hover::after {
    width: 60%;
}

/* 当前菜单项 */
.ast-primary-menu > li.current-menu-item > a,
.ast-primary-menu > li.current-menu-ancestor > a {
    color: #000000;
    font-weight: 700;
}

.ast-primary-menu > li.current-menu-item > a::after,
.ast-primary-menu > li.current-menu-ancestor > a::after {
    width: 60%;
}

/* 下拉菜单 */
.ast-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--chx-transition);
    z-index: 999;
    border-top: 3px solid #C9981F;
}

.ast-primary-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ast-primary-menu .sub-menu li {
    list-style: none;
    border-bottom: 1px solid var(--chx-border);
}

.ast-primary-menu .sub-menu li:last-child {
    border-bottom: none;
}

.ast-primary-menu .sub-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--chx-gray-dark);
    font-size: 0.95rem;
    transition: var(--chx-transition);
}

.ast-primary-menu .sub-menu li a:hover {
    background-color: var(--chx-bg-light);
    color: var(--chx-primary);
    padding-left: 2rem;
}

/* 头部CTA按钮 */
.chx-header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chx-header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chx-header-phone span {
    font-size: 0.75rem;
    color: #4a4a4a;
}

.chx-header-phone strong {
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 700;
}

.chx-btn-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #D4AF37;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--chx-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chx-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #FFD700;
}

/* ============================================
   第五部分：首页英雄区域（全屏大图轮播）
   ============================================ */

.chx-hero-section {
    position: relative;
    height: 85vh;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
}

.chx-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.chx-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.chx-slide.active {
    opacity: 1;
    visibility: visible;
}

.chx-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 102, 204, 0.7) 100%);
}

.chx-slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    text-align: center;
}

.chx-slide-content .ast-container {
    max-width: 900px;
}

.chx-slide-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--chx-accent);
}

.chx-slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chx-slide-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.chx-slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 按钮样式 */
.chx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--chx-transition);
}

.chx-btn-primary {
    background: linear-gradient(135deg, var(--chx-accent) 0%, var(--chx-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.chx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
    color: #fff;
}

.chx-btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

/* 轮播导航 */
.chx-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 20;
    pointer-events: none;
}

.chx-slider-prev,
.chx-slider-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--chx-transition);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chx-slider-prev:hover,
.chx-slider-next:hover {
    background-color: var(--chx-accent);
    border-color: var(--chx-accent);
}

/* 轮播指示器 */
.chx-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.chx-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--chx-transition);
}

.chx-dot.active {
    background-color: var(--chx-accent);
    transform: scale(1.2);
}

.chx-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   第六部分：公司数据展示（数据可视化）
   ============================================ */

.chx-stats-section {
    background: linear-gradient(135deg, var(--chx-primary-dark) 0%, var(--chx-primary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.chx-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
}

.chx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.chx-stat-item {
    text-align: center;
    color: #fff;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.chx-stat-item:last-child {
    border-right: none;
}

.chx-stat-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--chx-accent);
    transition: var(--chx-transition);
}

.chx-stat-item:hover .chx-stat-icon {
    background-color: var(--chx-accent);
    color: #fff;
    transform: translateY(-5px);
}

.chx-stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.chx-stat-number span {
    color: var(--chx-accent);
}

.chx-stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   第七部分：公司简介
   ============================================ */

.chx-about-section {
    padding: var(--chx-space-xl) 0;
    background-color: var(--chx-bg-white);
}

.chx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chx-about-content {
    padding-right: 2rem;
}

.chx-section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--chx-accent);
    margin-bottom: 1rem;
}

.chx-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--chx-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.chx-about-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--chx-gray);
    margin-bottom: 2rem;
}

.chx-about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chx-about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.chx-about-feature i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--chx-primary) 0%, var(--chx-primary-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.chx-about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--chx-dark);
}

.chx-about-feature p {
    font-size: 0.9rem;
    color: var(--chx-gray);
    margin: 0;
}

.chx-about-image {
    position: relative;
}

.chx-about-image-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.chx-about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.chx-about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--chx-primary) 0%, var(--chx-primary-dark) 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.chx-about-image-badge .number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.chx-about-image-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   第八部分：产品展示
   ============================================ */

.chx-products-section {
    padding: var(--chx-space-xl) 0;
    background-color: var(--chx-bg-light);
}

.chx-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.chx-section-header .chx-section-subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 30px;
}

.chx-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.chx-product-card {
    background-color: var(--chx-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--chx-transition);
    position: relative;
}

.chx-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chx-product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--chx-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chx-product-card:hover .chx-product-image img {
    transform: scale(1.1);
}

.chx-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 51, 102, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--chx-transition);
}

.chx-product-card:hover .chx-product-overlay {
    opacity: 1;
}

.chx-product-overlay a {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chx-primary);
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: var(--chx-transition);
}

.chx-product-card:hover .chx-product-overlay a {
    transform: translateY(0);
}

.chx-product-overlay a:hover {
    background-color: var(--chx-accent);
    color: #fff;
}

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

.chx-product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--chx-accent);
    margin-bottom: 0.5rem;
}

.chx-product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--chx-dark);
}

.chx-product-title a {
    color: inherit;
}

.chx-product-title a:hover {
    color: var(--chx-primary);
}

.chx-product-excerpt {
    font-size: 0.95rem;
    color: var(--chx-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.chx-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--chx-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.chx-product-link i {
    transition: var(--chx-transition);
}

/* ============================================
   第九部分：解决方案/服务
   ============================================ */

.chx-services-section {
    padding: var(--chx-space-xl) 0;
    background-color: var(--chx-bg-white);
}

.chx-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.chx-service-card {
    background-color: var(--chx-bg-white);
    border: 1px solid var(--chx-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--chx-transition);
    position: relative;
    overflow: hidden;
}

.chx-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--chx-primary) 0%, var(--chx-primary-light) 100%);
    transform: scaleX(0);
    transition: var(--chx-transition);
}

.chx-service-card:hover {
    border-color: var(--chx-primary);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
    transform: translateY(-5px);
}

.chx-service-card:hover::before {
    transform: scaleX(1);
}

.chx-service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--chx-primary);
    transition: var(--chx-transition);
}

.chx-service-card:hover .chx-service-icon {
    background: linear-gradient(135deg, var(--chx-primary) 0%, var(--chx-primary-light) 100%);
    color: #fff;
    transform: rotateY(360deg);
}

.chx-service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--chx-dark);
}

.chx-service-desc {
    font-size: 1rem;
    color: var(--chx-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.chx-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--chx-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.chx-service-link:hover {
    color: var(--chx-accent);
}

/* ============================================
   第十部分：成功案例
   ============================================ */

.chx-cases-section {
    padding: var(--chx-space-xl) 0;
    background-color: var(--chx-bg-light);
}

.chx-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.chx-case-card {
    background-color: var(--chx-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--chx-transition);
}

.chx-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.chx-case-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.chx-case-card:hover .chx-case-image img {
    transform: scale(1.1);
}

.chx-case-content {
    padding: 2rem;
}

.chx-case-client {
    font-size: 0.85rem;
    color: var(--chx-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.chx-case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--chx-dark);
}

.chx-case-desc {
    font-size: 0.95rem;
    color: var(--chx-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.chx-case-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--chx-bg-light);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--chx-primary);
    font-weight: 600;
}

.chx-case-result i {
    color: var(--chx-accent);
}

/* ============================================
   第十一部分：合作伙伴
   ============================================ */

.chx-partners-section {
    padding: var(--chx-space-lg) 0;
    background-color: var(--chx-bg-white);
    border-top: 1px solid var(--chx-border);
    border-bottom: 1px solid var(--chx-border);
}

.chx-partners-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.chx-partner-logo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--chx-transition);
}

.chx-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.chx-partner-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

/* ============================================
   第十二部分：CTA区域
   ============================================ */

.chx-cta-section {
    background: linear-gradient(135deg, var(--chx-primary-dark) 0%, var(--chx-primary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.chx-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.chx-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.chx-cta-text {
    color: #fff;
}

.chx-cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.chx-cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

.chx-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.chx-cta-buttons .chx-btn {
    padding: 1rem 2.5rem;
}

.chx-cta-buttons .chx-btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
}

.chx-cta-buttons .chx-btn-outline:hover {
    background-color: #fff;
    color: var(--chx-primary);
}

/* ============================================
   第十三部分：页脚
   ============================================ */

.site-footer {
    background-color: var(--chx-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--chx-accent) 0%, var(--chx-accent-dark) 100%);
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--chx-transition);
}

.footer-widget ul li a::before {
    content: '›';
    color: var(--chx-accent);
    font-weight: bold;
}

.footer-widget ul li a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chx-accent);
    flex-shrink: 0;
}

.footer-contact-item div strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--chx-transition);
}

.footer-social a:hover {
    background-color: var(--chx-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ============================================
   第十四部分：响应式设计
   ============================================ */

@media (max-width: 1200px) {
    .chx-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chx-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .chx-top-bar {
        display: none;
    }
    
    .chx-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .chx-about-content {
        padding-right: 0;
    }
    
    .chx-about-image {
        order: -1;
    }
    
    .chx-about-image-badge {
        left: auto;
        right: -20px;
    }
    
    .chx-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chx-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chx-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .chx-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .chx-cta-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .chx-slide-title {
        font-size: 2rem;
    }
    
    .chx-slide-desc {
        font-size: 1rem;
    }
    
    .chx-slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chx-products-grid,
    .chx-services-grid,
    .chx-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .chx-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chx-about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .chx-hero-section {
        min-height: 500px;
        height: auto;
    }
    
    .chx-slide-content {
        padding: 0 1rem;
    }
    
    .chx-slide-title {
        font-size: 1.75rem;
    }
    
    .chx-section-title {
        font-size: 1.75rem;
    }
    
    .chx-stat-number {
        font-size: 2rem;
    }
    
    .chx-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .chx-cta-buttons .chx-btn {
        width: 100%;
    }
}

/* ============================================
   第十五部分：工具类
   ============================================ */

.container {
    max-width: var(--chx-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide {
    max-width: var(--chx-container-wide);
}

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

.mt-1 { margin-top: var(--chx-space-xs); }
.mt-2 { margin-top: var(--chx-space-sm); }
.mt-3 { margin-top: var(--chx-space-md); }
.mt-4 { margin-top: var(--chx-space-lg); }
.mt-5 { margin-top: var(--chx-space-xl); }

.mb-1 { margin-bottom: var(--chx-space-xs); }
.mb-2 { margin-bottom: var(--chx-space-sm); }
.mb-3 { margin-bottom: var(--chx-space-md); }
.mb-4 { margin-bottom: var(--chx-space-lg); }
.mb-5 { margin-bottom: var(--chx-space-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* 加载动画 */
.chx-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
