/* ============================================
   武汉耘和智能机械有限公司 - 企业官网样式表
   响应式自适应 PC + 移动端
   ============================================ */

/* ============================================
   第一部分：CSS 变量与基础重置
   ============================================ */
:root {
    --primary: #1a5fb4;
    --primary-dark: #104a8e;
    --primary-light: #e8f0fe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1280px;
    --header-height: 72px;
    --header-height-mobile: 60px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   第二部分：工具类与通用组件
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    gap: 8px;
}

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

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

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

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

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

.btn-white:hover {
    background: transparent;
    color: #fff;
}

/* ============================================
   第三部分：头部导航（修复版 - 强制一行）
   ============================================ */
/* ---- Logo 图片样式（调大） ---- */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 60px;          /* 从 40px 调大到 50px */
    width: auto;
    max-width: 220px;      /* 限制最大宽度 */
    display: block;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .logo-img {
        height: 44px;
        max-width: 200px;
    }
}

@media (max-width: 1024px) {
    .logo-img {
        height: 40px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 38px;      /* 手机端也调大 */
        max-width: 160px;
    }
}
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 14px 0;
    transition: box-shadow 0.3s ease;
}

.header .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap; /* 关键：强制不换行 */
    min-height: 56px;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---- 导航栏 - 强制一行 ---- */
.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px 14px;
    flex: 1 1 auto;
    flex-wrap: nowrap; /* 关键：链接内部也不换行 */
    padding: 0 6px;
    overflow: visible;
}

.nav-link {
    padding: 8px 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

/* ---- 头部联系方式 ---- */
.header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: 4px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--primary);
}

.header-phone svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ---- 移动端菜单按钮 ---- */
.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- 移动端下拉菜单 ---- */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px 24px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

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

/* ============================================
   响应式：导航适配
   ============================================ */
@media (max-width: 1200px) {
    .nav {
        gap: 2px 10px;
    }
    .nav-link {
        font-size: 14px;
        padding: 8px 2px;
    }
    .header-phone {
        font-size: 13px;
    }
    .header-phone svg {
        width: 14px;
        height: 14px;
    }
    .header-contact {
        gap: 10px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .nav {
        gap: 2px 8px;
    }
    .nav-link {
        font-size: 13px;
        padding: 6px 2px;
    }
    .header-phone {
        font-size: 12px;
    }
    .header-phone svg {
        width: 13px;
        height: 13px;
    }
    .header-contact {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    .header-contact {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .header .container {
        padding: 0 16px;
    }
    .header {
        padding: 10px 0;
    }
    .logo-text {
        font-size: 0.9rem;
    }
    .logo-text span {
        font-size: 0.6rem;
    }
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .header-inner {
        min-height: 50px;
    }
}
/* ============================================
   第四部分：首页 Banner（满屏首屏 - 最终修复版）
   ============================================ */

.banner {
    position: relative;
    /* 关键：扣除header高度，确保banner+header=首屏 */
    height: calc(100vh - 72px);
    min-height: 520px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: var(--bg-dark);
    padding: 0;
    box-sizing: border-box;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 32px 24px 80px; /* 底部留出空间给箭头 */
    height: 100%;
    box-sizing: border-box;
}

/* 上半部分：标题+描述+按钮 - 垂直居中 */
.banner-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.banner-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.banner-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.banner-title span {
    color: var(--accent);
}

.banner-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    line-height: 1.8;
    max-width: 700px;
}

.banner-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 下半部分：统计数据 - 固定在内容区底部 */
.banner-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

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

.banner-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.banner-stat-num span {
    color: var(--accent);
}

.banner-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* 滚动指示器 - 固定在banner最底部 */
.banner-scroll {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.banner-scroll:hover {
    opacity: 1;
}

.banner-scroll svg {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.5);
}

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

/* ============================================
   Banner 移动端适配 - 修复版
   ============================================ */
@media (max-width: 768px) {
    .banner {
        height: calc(100vh - 60px);
        min-height: 480px;
        max-height: none;
    }
    
    .banner-content {
        padding: 16px 16px 70px;
        /* 关键：使用 justify-content: space-between 让内容上下分布 */
        justify-content: space-between;
    }
    
    /* 上半部分：标题+描述+按钮 - 垂直居中 */
    .banner-top {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* 关键：垂直居中 */
        width: 100%;
        padding: 20px 0;
    }
    
    .banner-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .banner-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.7;
        max-width: 100%;
    }
    
    .banner-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }
    
    .banner-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    
    .banner-btns .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* 下半部分：统计数据 - 固定在底部 */
    .banner-stats {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 8px;
        flex-wrap: wrap;
        flex-shrink: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    
    .banner-stat-num {
        font-size: 1.6rem;
    }
    
    .banner-stat-label {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    /* 滚动指示器 */
    .banner-scroll {
        bottom: 12px;
    }
    
    .banner-scroll svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 420px) {
    .banner {
        min-height: 440px;
    }
    
    .banner-content {
        padding: 12px 12px 60px;
    }
    
    .banner-top {
        padding: 10px 0;
    }
    
    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .banner-desc {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .banner-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 12px;
    }
    
    .banner-btns {
        gap: 10px;
    }
    
    .banner-btns .btn {
        max-width: 220px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .banner-stats {
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 6px;
    }
    
    .banner-stat {
        flex: 1;
        min-width: 60px;
    }
    
    .banner-stat-num {
        font-size: 1.4rem;
    }
    
    .banner-stat-label {
        font-size: 0.7rem;
        margin-top: 2px;
    }
    
    .banner-scroll {
        bottom: 10px;
    }
    
    .banner-scroll svg {
        width: 22px;
        height: 22px;
    }
}

@supports (padding: max(0px)) {
    .banner-scroll {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   第五部分：产品展示（修复版 - 移动端2列3行）
   ============================================ */
.products-section {
    background: var(--bg-light);
}

/* ---- 分类导航 - 紧凑 ---- */
.product-cats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-cat-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.product-cat-btn:hover,
.product-cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* ---- 产品网格 ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.product-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card-body {
    padding: 24px;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

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

.product-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-card-link:hover {
    gap: 8px;
}

/* ---- 移动端产品区域美化（2列3行） ---- */
@media (max-width: 768px) {
    .product-cats {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .product-cat-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* 关键：手机端改为 2 列 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* 手机端最多显示3行（2列×3行=6个产品） */
    .product-grid .product-card:nth-child(n+7) {
        display: none;
    }
    
    .product-card-img {
        height: 150px;
    }
    
    .product-card-body {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .product-card-desc {
        font-size: 0.75rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }
    
    .product-card-link {
        font-size: 0.8rem;
    }
    
    .product-card-link svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card-img {
        height: 130px;
    }
    
    .product-card-body {
        padding: 10px;
    }
    
    .product-card-title {
        font-size: 0.8rem;
    }
    
    .product-card-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }
}

/* ============================================
   第六部分：关于我们
   ============================================ */
.about-section {
    background: #fff;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-sub {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #fff;
}

.about-img-sub img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.about-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* ============================================
   第七部分：优势亮点
   ============================================ */
.features-section {
    background: var(--bg-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.features-section .section-title h2,
.features-section .section-title p {
    color: #fff;
}

.features-section .section-title h2::after {
    background: var(--accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(26, 95, 180, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ============================================
   第八部分：客户案例
   ============================================ */
.cases-section {
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.case-card-img {
    height: 220px;
    overflow: hidden;
}

.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.case-card-body {
    padding: 24px;
}

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

.case-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.case-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   第九部分：新闻动态
   ============================================ */
.news-section {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-card-body {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-date svg {
    width: 14px;
    height: 14px;
}

.news-card-category {
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title:hover {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   第十部分：联系我们 CTA
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   第十一部分：页脚（修复版 - 紧凑横排布局）
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    /* 调整比例：品牌区稍小，给导航和分类更多空间 */
    grid-template-columns: 1.8fr 1fr 1.3fr 1.5fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.footer-brand .logo-text span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* ---- 快速导航 - 横排2列 ---- */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: block;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ---- 产品分类 - PC端2列（解决换行问题）---- */
.footer-nav-products .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.footer-nav-products .footer-links a {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.footer-contact-item div {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-contact-item div strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---- 平板端适配 ---- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-brand p {
        max-width: 500px;
    }
    
    /* 平板端产品分类保持2列 */
    .footer-nav-products .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- 移动端页脚适配 ---- */
@media (max-width: 768px) {
    .footer {
        padding-top: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-title {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    /* 快速导航：一行4个 */
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 2px 0;
        text-align: center;
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
        padding: 6px 4px;
    }
    
    .footer-links a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 4px;
    }
    
    /* 产品分类：一行3个 */
    .footer-nav-products .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .footer-nav-products .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-contact-item {
        margin-bottom: 10px;
    }
    
    .footer-contact-item div {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 12px 0;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-nav-products .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   第十二部分：子页面通用样式
   资讯/案例/产品 列表页+详情页 共用
   ============================================ */

/* ---- 子页面 Banner（修复版 - 无空白间隙） ---- */
.sub-banner {
    margin-top: 0 !important;
    padding: 0 !important;
    min-height: 200px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 用伪元素向上延伸背景，覆盖导航与banner之间的空隙 */
.sub-banner::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--header-height, 72px));
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
    z-index: 0;
    pointer-events: none;
}

/* 装饰背景图也向上延伸 */
.sub-banner .sub-banner-bg {
    position: absolute;
    top: calc(-1 * var(--header-height, 72px));
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='80' cy='40' r='3' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='40' cy='80' r='2' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.sub-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 24px;
}

.sub-banner-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    line-height: 1.2;
}

.sub-banner-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.sub-banner-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='80' cy='40' r='3' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='40' cy='80' r='2' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.6;
}

.sub-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sub-banner-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    line-height: 1.2;
}

.sub-banner-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .sub-banner {
        margin-top: var(--header-height-mobile);
        padding: 40px 0;
    }
    .sub-banner-title {
        font-size: 1.8rem;
    }
}

/* ========== 面包屑修复 ========== */

.breadcrumb {
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

/* 关键：清除 DedeCMS position 输出的 ul/li 默认样式 */
.breadcrumb-inner ul,
.breadcrumb-inner li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}

.breadcrumb-inner ul {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 隐藏 DedeCMS 默认的分隔符（>），用 / 代替 */
.breadcrumb-inner li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 在每个 li 前面插入 / 分隔符（除了第一个） */
.breadcrumb-inner li + li::before {
    content: '/';
    color: #ccc;
    margin-right: 8px;
}

/* 链接样式 */
.breadcrumb-inner a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-inner a:hover {
    color: #0066cc;
}

/* 当前页（无链接的文字） */
.breadcrumb-inner li:last-child {
    color: #999;
}

/* ---- 双栏布局 ---- */
.sub-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0 60px;
}

.sub-main {
    flex: 1;
    min-width: 0;
}

.sub-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ---- 侧栏组件 ---- */
.sub-widget {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}

.sub-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    border-bottom: 2px solid var(--primary);
    color: var(--text);
    margin: 0;
}

/* ---- 侧栏留言表单 ---- */
.sub-form {
    padding: 20px;
}

.sub-form-group {
    margin-bottom: 14px;
}

.sub-form-group input,
.sub-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sub-form-group input:focus,
.sub-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

.sub-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.sub-form-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sub-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---- 侧栏最新更新 ---- */
.sub-latest-list {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
}

.sub-latest-item {
    border-bottom: 1px dashed var(--border);
}

.sub-latest-item:last-child {
    border-bottom: none;
}

.sub-latest-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
    gap: 12px;
}

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

.sub-latest-text {
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sub-latest-date {
    font-size: 0.8rem;
    color: var(--text-lighter);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================
   第十三部分：资讯详情页
   ============================================ */
.sub-news-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sub-news-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.sub-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.sub-news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-news-meta svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.sub-news-img {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.sub-news-img img {
    width: 100%;
    height: auto;
    display: block;
}

.sub-news-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.sub-news-content p {
    margin-bottom: 16px;
}

.sub-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.sub-prenext {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sub-related {
    margin-top: 60px;
}

.sub-related-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

/* ============================================
   第十四部分：产品列表页
   ============================================ */
.product-list-section {
    background: var(--bg-light);
    padding: 40px 0 80px;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ============================================
   第十五部分：产品详情页
   ============================================ */
.product-detail-section {
    padding: 40px 0 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

/* ---- 产品详情页 - 图片画廊 ---- */
.product-detail-gallery {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.product-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-detail-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-detail-tag {
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.product-detail-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.product-detail-specs {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.product-detail-specs h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-specs td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.product-detail-specs td:first-child {
    color: var(--text-light);
    width: 40%;
}

.product-detail-specs td:last-child {
    color: var(--text);
    font-weight: 500;
}

.product-detail-tabs {
    margin-top: 40px;
}

.product-detail-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.product-detail-tab-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
}

.product-detail-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.product-detail-tab-content {
    display: none;
}

.product-detail-tab-content.active {
    display: block;
}

.product-detail-tab-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============================================
   第十六部分：新闻列表页
   ============================================ */
.news-list-section {
    background: var(--bg-light);
    padding: 40px 0 80px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* ============================================
   第十七部分：案例列表页
   ============================================ */
.cases-list-section {
    background: var(--bg-light);
    padding: 40px 0 80px;
}

.cases-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* ============================================
   第十八部分：案例详情页
   ============================================ */
.case-detail-section {
    padding: 40px 0 80px;
}

.case-detail-main {
    max-width: 900px;
    margin: 0 auto;
}

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

.case-detail-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.case-detail-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-detail-tag {
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.case-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.case-detail-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.case-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.case-detail-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.case-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);
}

.case-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.case-detail-gallery img {
    border-radius: var(--radius);
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ============================================
   第十九部分：关于我们页
   ============================================ */
.about-page-section {
    padding: 40px 0 80px;
}

.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-page-images {
    position: relative;
}

.about-page-images img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-page-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.about-value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.about-value-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-value-card-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.about-value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   第二十部分：联系我们页
   ============================================ */
.contact-section {
    padding: 40px 0 80px;
}

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

.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-info-item-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-info-item-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group label span {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

.form-control::placeholder {
    color: var(--text-lighter);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   第二十一部分：分页与返回顶部
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* 移动端隐藏返回顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
}
        /* ============================================================
               分页样式优化 (Pagination)
               适配 DedeCMS {dede:pagelist} 生成的结构
               兼容 PC / 平板 / 手机
               ============================================================ */

        /* ----- 容器：弹性居中，自动换行 ----- */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px 6px;
            margin-top: 40px;
            padding: 20px 0 10px;
            font-size: 14px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            user-select: none;
        }

        /* ----- 所有分页项：统一按钮风格 ----- */
        .pagination a,
        .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 16px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #ffffff;
            color: #334155;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
            line-height: 1;
            white-space: nowrap;
        }

        /* ----- 悬停效果 ----- */
        .pagination a:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        }

        /* ----- 当前页（高亮） ----- */
        .pagination a.active,
        .pagination .thisclass,
        .pagination .current {
            background: #2563eb;
            border-color: #2563eb;
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
            pointer-events: none;
            cursor: default;
        }

        .pagination a.active:hover,
        .pagination .thisclass:hover,
        .pagination .current:hover {
            background: #1d4ed8;
            border-color: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
        }

        /* ----- 上一页 / 下一页（带箭头感） ----- */
        .pagination a.prev,
        .pagination a.next {
            padding: 0 18px;
            background: #f8fafc;
            border-color: #e2e8f0;
            font-weight: 500;
        }

        .pagination a.prev:hover,
        .pagination a.next:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
        }

        /* ----- 首页 / 末页 ----- */
        .pagination a.index,
        .pagination a.end {
            padding: 0 14px;
            font-weight: 450;
        }

        /* ----- 信息文本（如 “2页11条”） ----- */
        .pagination .pageinfo,
        .pagination .info,
        .pagination .page-info {
            min-width: auto;
            padding: 0 12px 0 8px;
            border: none;
            background: transparent;
            color: #94a3b8;
            font-size: 13px;
            font-weight: 400;
            cursor: default;
            box-shadow: none;
            pointer-events: none;
        }

        /* ----- 省略号（...） ----- */
        .pagination .pagebreak,
        .pagination .dot {
            min-width: 32px;
            padding: 0 4px;
            border: none;
            background: transparent;
            color: #94a3b8;
            font-weight: 400;
            cursor: default;
            box-shadow: none;
            pointer-events: none;
        }

        /* ----- 禁用状态（不可点击） ----- */
        .pagination a.disabled,
        .pagination .disabled {
            opacity: 0.45;
            pointer-events: none;
            cursor: not-allowed;
            background: #f8fafc;
            border-color: #e2e8f0;
            color: #94a3b8;
        }

        /* ============================================================
                   响应式适配
                   ============================================================ */

        /* 平板 */
        @media (max-width: 768px) {
            .pagination {
                gap: 6px 5px;
                margin-top: 32px;
                padding: 16px 0 8px;
                font-size: 13px;
            }

            .pagination a,
            .pagination span {
                min-width: 36px;
                height: 36px;
                padding: 0 12px;
                font-size: 13px;
                border-radius: 6px;
            }

            .pagination a.prev,
            .pagination a.next {
                padding: 0 14px;
            }

            .pagination .pageinfo,
            .pagination .info {
                font-size: 12px;
                padding: 0 8px 0 4px;
            }
        }

        /* 手机 */
        @media (max-width: 480px) {
            .pagination {
                gap: 5px 4px;
                margin-top: 24px;
                padding: 12px 0 6px;
                font-size: 12px;
            }

            .pagination a,
            .pagination span {
                min-width: 32px;
                height: 32px;
                padding: 0 8px;
                font-size: 12px;
                border-radius: 4px;
            }

            .pagination a.prev,
            .pagination a.next {
                padding: 0 10px;
                font-size: 12px;
            }

            .pagination a.index,
            .pagination a.end {
                padding: 0 8px;
                font-size: 12px;
            }

            .pagination .pageinfo,
            .pagination .info {
                font-size: 11px;
                padding: 0 4px;
            }

            /* 极窄屏幕：隐藏首页/末页文字，保留图标或缩写 */
            .pagination a.index span,
            .pagination a.end span {
                display: none;
            }
            .pagination a.index::before {
                content: "«";
            }
            .pagination a.end::before {
                content: "»";
            }
            .pagination a.index,
            .pagination a.end {
                min-width: 32px;
                padding: 0 4px;
                font-size: 16px;
            }
        }

        /* 超小屏（< 360px）进一步压缩 */
        @media (max-width: 360px) {
            .pagination a,
            .pagination span {
                min-width: 28px;
                height: 28px;
                padding: 0 6px;
                font-size: 11px;
                border-radius: 4px;
            }
            .pagination a.prev,
            .pagination a.next {
                padding: 0 8px;
                font-size: 11px;
            }
            .pagination .pageinfo,
            .pagination .info {
                font-size: 10px;
                padding: 0 2px;
            }
        }

        /* ============================================================
                   额外：如果分页包含 <ul><li> 结构（兼容）
                   ============================================================ */
        .pagination ul {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: inherit;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .pagination ul li {
            display: inline-flex;
            margin: 0;
            padding: 0;
        }

        .pagination ul li a,
        .pagination ul li span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 16px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #ffffff;
            color: #334155;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
            line-height: 1;
            white-space: nowrap;
        }

        .pagination ul li a:hover {
            background: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        }

        .pagination ul li .thisclass,
        .pagination ul li .current,
        .pagination ul li a.active {
            background: #2563eb;
            border-color: #2563eb;
            color: #ffffff;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
            pointer-events: none;
            cursor: default;
        }

        .pagination ul li .pageinfo,
        .pagination ul li .info {
            min-width: auto;
            padding: 0 12px 0 8px;
            border: none;
            background: transparent;
            color: #94a3b8;
            font-size: 13px;
            font-weight: 400;
            cursor: default;
            box-shadow: none;
            pointer-events: none;
        }

        /* ul 结构下的响应式继承上面的规则 */
        @media (max-width: 768px) {
            .pagination ul li a,
            .pagination ul li span {
                min-width: 36px;
                height: 36px;
                padding: 0 12px;
                font-size: 13px;
                border-radius: 6px;
            }
        }
        @media (max-width: 480px) {
            .pagination ul li a,
            .pagination ul li span {
                min-width: 32px;
                height: 32px;
                padding: 0 8px;
                font-size: 12px;
                border-radius: 4px;
            }
        }
/* 清除分页容器内所有列表样式 */
.pagination,

.pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pagination {
    margin-top: 40px !important;   /* 恢复与正文的间距 */
    padding: 20px 0 10px !important;
}
.pagination ul,
.pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 如果圆点出现在 span 或 a 标签前，可能是伪元素造成，一并重置 */
.pagination *::before,
.pagination *::after {
    content: none !important;
}      
/* ============================================
   第二十二部分：动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   第二十三部分：响应式适配
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img-sub {
        display: none;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-page-grid {
        grid-template-columns: 1fr;
    }
    .sub-layout {
        flex-direction: column;
    }
    .sub-sidebar {
        width: 100%;
    }
    .sub-banner {
        padding: 60px 0 40px;
    }
    .sub-banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    /* 导航在平板端缩小间距，但保持显示 */
    .nav {
        gap: 4px 14px;
    }
    .nav-link {
        font-size: 14px;
        padding: 8px 3px;
    }
    .header-phone {
        font-size: 13px;
    }
    .header-phone svg {
        width: 15px;
        height: 15px;
    }
    .header-contact {
        gap: 14px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }
    .section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .section-title p {
        font-size: 0.95rem;
    }
    .nav {
        display: none !important;
    }
    .header-contact {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .header .container {
        padding: 0 16px;
    }
    .header {
        padding: 12px 0;
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .banner {
        min-height: 500px;
        max-height: none;
        height: auto;
        padding: 120px 0 60px;
    }
    .banner-title {
        font-size: 2rem;
    }
    .banner-desc {
        font-size: 1rem;
    }
    .banner-stats {
        gap: 24px;
        margin-top: 40px;
        padding-top: 30px;
    }
    .banner-stat-num {
        font-size: 1.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .product-detail-gallery img {
        height: 280px;
    }
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    .case-detail-img img {
        height: 250px;
    }
    .case-detail-gallery {
        grid-template-columns: 1fr;
    }
    .about-values {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .product-detail-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .product-detail-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .container {
        padding: 0 16px;
    }
    .banner-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
    }
    .sub-banner {
        padding: 50px 0 30px;
    }
    .sub-banner-title {
        font-size: 1.6rem;
    }
    .sub-banner-desc {
        font-size: 0.9rem;
    }
    .sub-news-header h1 {
        font-size: 1.4rem;
    }
    .sub-news-meta {
        gap: 12px;
        font-size: 0.8rem;
    }
    .sub-breadcrumb {
        padding: 12px 0;
        font-size: 0.8rem;
    }
    .sub-layout {
        padding: 24px 0 40px;
    }
}

/* ============================================
   第二十四部分：打印样式
   ============================================ */
@media print {
    .header, .footer, .back-to-top, .mobile-menu-btn, .banner-scroll {
        display: none !important;
    }
    body {
        padding-top: 0;
    }
}
/* ---- 验证码样式 ---- */
.sub-form-captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sub-captcha-input {
    flex: 1;
    min-width: 0;
}

.sub-captcha-img {
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.sub-captcha-img:hover {
    opacity: 0.8;
}
/* ---- 产品详情页 Tab 内容区 ---- */
.product-detail-tab-content .no-data {
    color: var(--text-lighter);
    text-align: center;
    padding: 40px 0;
    font-size: 0.95rem;
}

.product-detail-tab-content .editor-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.product-detail-tab-content .editor-content p {
    margin-bottom: 16px;
}

.product-detail-tab-content .editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}

.product-detail-tab-content .editor-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.product-detail-tab-content .editor-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

/* ---- 技术参数内容区 ---- */
.specs-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.specs-content table {
    width: 100%;
    border-collapse: collapse;
}

.specs-content table td,
.specs-content table th {
    padding: 10px 16px;
    border: 1px solid var(--border);
}

.specs-content table th {
    background: var(--bg-light);
    font-weight: 600;
    text-align: left;
}
/* ============================================
   产品详情页补充样式
   ============================================ */

/* ---- 技术参数区块 ---- */
.product-detail-block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.product-detail-block-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    border-bottom: 2px solid var(--primary);
    color: var(--text);
    margin: 0;
}

.product-detail-block-content {
    padding: 24px;
}

/* 技术参数内容样式 - 适配后台多行文本/表格 */
.product-detail-specs-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

.product-detail-specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.product-detail-specs-content table tr:nth-child(even) {
    background: var(--bg-light);
}

.product-detail-specs-content table td,
.product-detail-specs-content table th {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.product-detail-specs-content table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    width: 30%;
}

.product-detail-specs-content table td {
    color: var(--text);
}

/* 纯文本参数格式（无表格时） */
.product-detail-specs-content p {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.product-detail-specs-content p:last-child {
    border-bottom: none;
}

/* ---- Tab 切换 ---- */
.product-detail-tabs {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.product-detail-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    background: var(--bg-light);
}

.product-detail-tab-btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    font-family: inherit;
}

.product-detail-tab-btn:hover {
    color: var(--primary);
    background: rgba(26, 95, 180, 0.05);
}

.product-detail-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.product-detail-tab-content {
    display: none;
    padding: 32px 24px;
    animation: fadeIn 0.3s ease;
}

.product-detail-tab-content.active {
    display: block;
}

/* ===== 产品视频自适应修复 ===== */
.product-detail-tab-content[data-tab="video"] {
    padding: 0 !important;           /* 移除默认内边距，视频自身可带圆角 */
    overflow: visible !important;    /* 确保不裁剪视频 */
    height: auto !important;
    max-height: none !important;
}

.product-detail-tab-content[data-tab="video"] .product-video-wrapper {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;               /* 仅用于圆角裁剪，不会裁掉视频内容 */
}

.product-detail-tab-content[data-tab="video"] video {
    width: 100% !important;
    height: auto !important;
    display: block;
    vertical-align: bottom;
}

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

/* 编辑器内容样式 */
.editor-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.editor-content p {
    margin-bottom: 16px;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}

.editor-content ul,
.editor-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.editor-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.editor-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.editor-content h2,
.editor-content h3,
.editor-content h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    color: var(--text);
}

.editor-content h2 { font-size: 1.4rem; }
.editor-content h3 { font-size: 1.2rem; }
.editor-content h4 { font-size: 1.1rem; }

.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.editor-content table td,
.editor-content table th {
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.editor-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* ---- 相关产品区块 ---- */
.product-related-section {
    margin-top: 60px;
}

.product-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .product-detail-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-detail-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .product-detail-tab-content {
        padding: 20px 16px;
    }
    
    .product-detail-block-title {
        padding: 14px 16px;
        font-size: 1.1rem;
    }
    
    .product-detail-block-content {
        padding: 16px;
    }
    
    .product-detail-specs-content table td,
    .product-detail-specs-content table th {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}
/* ============================================
   产品详情页 - 内容区域精修样式
   ============================================ */

/* ---- 基础排版 ---- */
.product-detail-tab-content .editor-content {
    font-size: 1.05rem;
    line-height: 2;
    color: #334155;
    letter-spacing: 0.02em;
}

/* ---- 段落 ---- */
.product-detail-tab-content .editor-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

/* 首段特殊处理 - 引言效果 */
.product-detail-tab-content .editor-content p:first-child {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.9;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5em;
}

/* ---- 标题层级 ---- */
.product-detail-tab-content .editor-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2em 0 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.product-detail-tab-content .editor-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.product-detail-tab-content .editor-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.8em 0 0.7em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-tab-content .editor-content h3::before {
    content: '';
    width: 6px;
    height: 22px;
    background: var(--primary);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---- 有序列表（带序号） ---- */
.product-detail-tab-content .editor-content ol {
    padding-left: 0;
    margin: 1.5em 0;
    list-style: none;
    counter-reset: item;
}

.product-detail-tab-content .editor-content ol li {
    position: relative;
    padding: 16px 16px 16px 56px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.product-detail-tab-content .editor-content ol li:hover {
    background: #f0f7ff;
    border-color: #bfdbfe;
    transform: translateX(4px);
}

.product-detail-tab-content .editor-content ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 95, 180, 0.25);
}

/* ---- 无序列表 ---- */
.product-detail-tab-content .editor-content ul {
    padding-left: 0;
    margin: 1.5em 0;
    list-style: none;
}

.product-detail-tab-content .editor-content ul li {
    position: relative;
    padding: 10px 0 10px 28px;
    margin-bottom: 6px;
    color: #475569;
}

.product-detail-tab-content .editor-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* ---- 强调文字 ---- */
.product-detail-tab-content .editor-content strong,
.product-detail-tab-content .editor-content b {
    color: #0f172a;
    font-weight: 600;
}

/* ---- 图片 ---- */
.product-detail-tab-content .editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---- 表格 ---- */
.product-detail-tab-content .editor-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-detail-tab-content .editor-content table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.95rem;
}

.product-detail-tab-content .editor-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
}

.product-detail-tab-content .editor-content table tr:nth-child(even) {
    background: #f8fafc;
}

.product-detail-tab-content .editor-content table tr:last-child td {
    border-bottom: none;
}

/* ---- 引用块 ---- */
.product-detail-tab-content .editor-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 0 8px 8px 0;
    color: #713f12;
    font-style: italic;
}

/* ---- 分割线 ---- */
.product-detail-tab-content .editor-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 2em 0;
}

/* ---- 技术参数区块特殊处理 ---- */
.product-detail-specs-content {
    font-size: 1rem;
    line-height: 1.9;
}

.product-detail-specs-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-detail-specs-content table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    padding: 14px 20px;
    text-align: left;
    width: 28%;
    font-size: 0.95rem;
}

.product-detail-specs-content table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.product-detail-specs-content table tr:nth-child(even) td {
    background: #f8fafc;
}

.product-detail-specs-content table tr:last-child td {
    border-bottom: none;
}

/* 纯文本参数 */
.product-detail-specs-content p {
    padding: 10px 0;
    margin-bottom: 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-detail-specs-content p::before {
    content: '▸';
    color: var(--primary);
    font-size: 0.8rem;
}

.product-detail-specs-content p:last-child {
    border-bottom: none;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .product-detail-tab-content .editor-content {
        font-size: 1rem;
        line-height: 1.85;
    }
    
    .product-detail-tab-content .editor-content p:first-child {
        font-size: 1.05rem;
        padding: 16px;
    }
    
    .product-detail-tab-content .editor-content ol li {
        padding: 14px 14px 14px 48px;
    }
    
    .product-detail-tab-content .editor-content ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        left: 14px;
    }
    
    .product-detail-tab-content .editor-content h2 {
        font-size: 1.2rem;
    }
    
    .product-detail-specs-content table th,
    .product-detail-specs-content table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
/* ========== Banner区域 ========== */
.news-banner {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 1;
}

/* 可选：添加装饰性背景图案 */
.news-banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.news-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.news-banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.news-banner-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-banner {
        height: 200px;
    }
    .news-banner-title {
        font-size: 28px;
    }
    .news-banner-desc {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* ========== 子栏目TAB切换 ========== */
.news-tabs-section {
    padding: 30px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.news-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-tab-item:hover {
    color: #0066cc;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.news-tab-item.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

/* 响应式 */
@media (max-width: 768px) {
    .news-tabs {
        gap: 8px;
    }
    .news-tab-item {
        padding: 8px 20px;
        font-size: 14px;
    }
}
/* 产品网格显示控制 */
.product-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-grid.active {
    display: grid;
}

@media (max-width: 768px) {
    .product-grid.active {
        grid-template-columns: 1fr;
    }
}
/* TAB 内容区域默认隐藏 */
.product-tab-content {
    display: none;
}
.product-tab-content.active {
    display: block;
}

/* TAB 按钮激活状态（已有 .active 样式的话可忽略） */
.product-cat-btn.active {
    /* 保持您现有的 active 样式即可 */
}
/* ============================================
   新增：侧栏产品推荐模块（图文排版）
   ============================================ */
.sub-widget-products .sub-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.sub-product-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.sub-product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.sub-product-link {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.sub-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

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

.sub-product-item:hover .sub-product-img img {
    transform: scale(1.05);
}

.sub-product-info {
    padding: 10px 12px 12px;
}

.sub-product-name {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    transition: color 0.2s;
}

.sub-product-item:hover .sub-product-name {
    color: var(--primary);
}

/* 移动端适配：小屏幕一行1个 */
@media (max-width: 768px) {
    .sub-widget-products .sub-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }
    .sub-product-info {
        padding: 8px 10px 10px;
    }
    .sub-product-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sub-widget-products .sub-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }
}


/* ============================================
   优化：上下篇导航 - 美化版
   ============================================ */
.sub-prenext-beauty {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    margin-top: 40px;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}

.sub-prenext-item {
    flex: 1;
    min-width: 0;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-prenext-item.sub-prenext-next {
    text-align: right;
    align-items: flex-end;
}

.sub-prenext-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-prenext-title {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    transition: color 0.2s;
    word-break: break-all;
    display: inline-block;
    position: relative;
    padding: 4px 0;
}

.sub-prenext-item:not(.sub-prenext-next) .sub-prenext-title {
    padding-left: 0;
}

.sub-prenext-item.sub-prenext-next .sub-prenext-title {
    padding-right: 0;
}

.sub-prenext-title:hover {
    color: var(--primary);
}

.sub-prenext-title.sub-prenext-none {
    color: var(--text-lighter);
    font-weight: 400;
}

.sub-prenext-title.sub-prenext-none:hover {
    color: var(--text-lighter);
    cursor: default;
}

/* 有内容时添加箭头装饰 */
.sub-prenext-item:not(.sub-prenext-next) .sub-prenext-title:not(.sub-prenext-none)::before {
    content: '← ';
    color: var(--primary);
    font-weight: 300;
}

.sub-prenext-item.sub-prenext-next .sub-prenext-title:not(.sub-prenext-none)::after {
    content: ' →';
    color: var(--primary);
    font-weight: 300;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .sub-prenext-beauty {
        flex-direction: column;
        gap: 12px;
    }
    .sub-prenext-item {
        max-width: 100%;
        flex: 1 1 auto;
    }
    .sub-prenext-item.sub-prenext-next {
        text-align: left;
        align-items: flex-start;
    }
    .sub-prenext-item.sub-prenext-next .sub-prenext-title:not(.sub-prenext-none)::after {
        content: ' →';
    }
    .sub-prenext-item:not(.sub-prenext-next) .sub-prenext-title:not(.sub-prenext-none)::before {
        content: '← ';
    }
}
/* 上下篇美化 - 隐藏默认前缀 */
.sub-prenext-beauty .sub-prenext-title {
    font-size: 0;  /* 隐藏所有文字节点（包括"上篇："） */
}
.sub-prenext-beauty .sub-prenext-title a {
    font-size: 0.95rem;  /* 恢复链接文字大小 */
    color: var(--text, #333);
    text-decoration: none;
    display: inline-block;
}
.sub-prenext-beauty .sub-prenext-title a:hover {
    color: var(--primary, #0056b3);
}
/* 当没有上一篇/下一篇时，标签输出为空，用伪元素显示"没有了" */
.sub-prenext-beauty .sub-prenext-title:empty::before {
    content: '没有了';
    font-size: 0.95rem;
    color: var(--text-lighter, #999);
    font-weight: 400;
}
/* 调整布局（与之前一致） */
.sub-prenext-beauty {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    margin-top: 40px;
    border-top: 2px solid var(--border, #e5e5e5);
    flex-wrap: wrap;
}
.sub-prenext-item {
    flex: 1;
    min-width: 0;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sub-prenext-item.sub-prenext-next {
    text-align: right;
    align-items: flex-end;
}
.sub-prenext-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-lighter, #999);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* 箭头装饰 */
.sub-prenext-prev .sub-prenext-title a::before {
    content: '← ';
    color: var(--primary, #0056b3);
}
.sub-prenext-next .sub-prenext-title a::after {
    content: ' →';
    color: var(--primary, #0056b3);
}
/* 移动端适配 */
@media (max-width: 640px) {
    .sub-prenext-beauty {
        flex-direction: column;
        gap: 12px;
    }
    .sub-prenext-item {
        max-width: 100%;
        text-align: left !important;
        align-items: flex-start !important;
    }
    .sub-prenext-prev .sub-prenext-title a::before,
    .sub-prenext-next .sub-prenext-title a::after {
        content: ''; /* 移动端可去掉箭头，或者保留 */
    }
}
/* 友情链接 - 低调不醒目 */
.friendlink-section {
    padding: 14px 0;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}

.friendlink-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 12px;
    color: #b0b8c4;
    line-height: 1.6;
}

.friendlink-label {
    color: #a0a8b4;
    white-space: nowrap;
    margin-right: 4px;
}

.friendlink-content a {
    color: #b0b8c4;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.friendlink-content a:hover {
    color: #7a8a9a;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .friendlink-section {
        padding: 12px 0;
    }
    
    .friendlink-content {
        font-size: 11px;
        gap: 4px 14px;
    }
}
/* ============================================
   第二十五部分：移动端底部固定导航（最终版）
   ============================================ */

/* 
 * 设计原则：
 * 1. PC端（>= 769px）：完全隐藏移动端导航
 * 2. 移动端（<= 768px）：显示导航，首页首屏隐藏，滚动后显示
 * 3. 使用 CSS transform 实现平滑动画
 */

/* ---- 基础样式（默认隐藏，所有页面生效）---- */
.mobile-bottom-nav {
    display: none;
}

/* ---- 移动端样式 ---- */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        height: 56px;
        align-items: center;
        justify-content: space-around;
        background: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
        transform: translateY(0);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* 首页首屏隐藏（由JS控制添加/移除 .hide-nav 类） */
    body.hide-nav .mobile-bottom-nav {
        transform: translateY(100%);
    }
    
    /* 导航项 */
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        font-size: 11px;
        color: #6b7280;
        text-decoration: none;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .mobile-nav-item.active,
    .mobile-nav-item:active {
        color: var(--primary, #1a5fb4);
    }
    
    /* 最后一个（联系我们）高亮 */
    .mobile-bottom-nav > a:last-child {
        color: var(--primary, #1a5fb4);
    }
    
    /* 返回顶部按钮位置调整 */
    .back-to-top {
        bottom: 76px;
    }
    
    /* 页脚底部留白，防止内容被导航遮挡 */
    footer {
        padding-bottom: 56px;
    }
}

/* ---- 超小屏适配 ---- */
@media (max-width: 360px) {
    .mobile-bottom-nav {
        height: 52px;
    }
    
    .mobile-nav-item {
        font-size: 10px;
        gap: 2px;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    footer {
        padding-bottom: 52px;
    }
    
    .back-to-top {
        bottom: 70px;
    }
}
/* ===== 文章TAG标签 ===== */
.sub-news-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #0066cc;
}

.sub-news-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.sub-news-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-news-tag-item:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

/* ===== 右侧标签云 ===== */
.sub-widget-tags {
    padding: 0;
}

.sub-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.sub-tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sub-tag-cloud-item:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

/* 热门标签放大 */
.sub-tag-cloud-item.hot {
    font-size: 1rem;
    padding: 8px 18px;
    background: #e8f0fe;
    color: #0066cc;
    border-color: #cce0ff;
}

.sub-tag-cloud-item.hot:hover {
    background: #0066cc;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sub-news-tags {
        padding: 16px;
        gap: 8px;
    }
    
    .sub-news-tag-item {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .sub-tag-cloud {
        gap: 6px;
        padding: 12px;
    }
    
    .sub-tag-cloud-item {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
/* 产品视频区域 */
.product-video-wrapper {
    width: 100%;
}

.product-video-wrapper video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 机器图集/客户案例 图片网格（如果字段内容是图片列表） */
.product-detail-tab-content .editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Tab 导航栏横向滚动（Tab 多了之后防止换行） */
.product-detail-tab-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-detail-tab-nav::-webkit-scrollbar {
    display: none;
}
/* ============================================
   基础移动端适配
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

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

/* ============================================
   容器响应式
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   两栏布局：桌面端左右，移动端上下
   ============================================ */
.sub-layout {
    display: flex;
    gap: 30px;
}

.sub-main {
    flex: 1;
    min-width: 0; /* 防止 flex 子项溢出 */
}

.sub-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ============================================
   产品详情网格
   ============================================ */
.product-detail-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-gallery {
    flex: 0 0 45%;
    max-width: 500px;
}

.product-detail-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-detail-info {
    flex: 1;
    min-width: 0;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-detail-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 0.85rem;
}

.product-detail-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ============================================
   Tab 导航
   ============================================ */
.product-detail-tabs {
    margin: 40px 0;
}

.product-detail-tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
    overflow-x: auto; /* 允许横向滚动 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 0;
}

.product-detail-tab-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-detail-tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b7280;
    white-space: nowrap; /* 防止文字换行 */
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-detail-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.product-detail-tab-content {
    display: none;
    padding: 24px 0;
}

.product-detail-tab-content.active {
    display: block;
}

/* ============================================
   技术参数表格
   ============================================ */
.product-detail-specs-content table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-specs-content td,
.product-detail-specs-content th {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
}

/* ============================================
   相关产品网格
   ============================================ */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-card-img {
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card-body {
    padding: 16px;
}

.product-card-title {
    margin-bottom: 12px;
    font-size: 1rem;
}

.product-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.product-card-link {
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

/* ============================================
   侧栏表单
   ============================================ */
.sub-widget {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.sub-widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.sub-form-group {
    margin-bottom: 16px;
}

.sub-form-group input,
.sub-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.sub-form-group input:focus,
.sub-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.sub-form-captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sub-captcha-input {
    flex: 1;
}

.sub-captcha-img {
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
}

.sub-form-submit {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.sub-form-submit:hover {
    background: #1d4ed8;
}

.sub-latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-latest-item {
    border-bottom: 1px solid #e5e7eb;
}

.sub-latest-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

.sub-latest-link:hover {
    color: #2563eb;
}

.sub-latest-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.sub-latest-date {
    color: #9ca3af;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-height: 48px; /* 触摸友好最小高度 */
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* ============================================
   视频容器
   ============================================ */
.product-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.product-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   面包屑
   ============================================ */
.breadcrumb {
    background: #f3f4f6;
    padding: 12px 0;
}

.breadcrumb-inner {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ============================================
   Banner 区域
   ============================================ */
.sub-banner {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.sub-banner-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.sub-banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   内容区块
   ============================================ */
.product-detail-block {
    margin: 32px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
}

.product-detail-block-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

/* ============================================
   编辑器内容区域
   ============================================ */
.editor-content {
    line-height: 1.8;
    color: #374151;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.editor-content p {
    margin-bottom: 16px;
}

/* ============================================
   相关产品标题
   ============================================ */
.product-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.product-related-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ============================================
   响应式断点：平板 (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .sub-layout {
        gap: 20px;
    }
    
    .sub-sidebar {
        width: 280px;
    }
    
    .product-detail-grid {
        gap: 24px;
    }
    
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   响应式断点：手机横屏/小平板 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* 两栏变单栏，侧栏移到底部 */
    .sub-layout {
        flex-direction: column;
    }
    
    .sub-sidebar {
        width: 100%;
        order: 2; /* 侧栏移到底部 */
    }
    
    .sub-main {
        order: 1;
    }
    
    /* 产品详情上下堆叠 */
    .product-detail-grid {
        flex-direction: column;
        gap: 24px;
    }
    
    .product-detail-gallery {
        flex: none;
        max-width: 100%;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    /* 相关产品两列 */
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Banner 缩小 */
    .sub-banner {
        padding: 40px 0;
    }
    
    .sub-banner-title {
        font-size: 1.8rem;
    }
    
    .sub-banner-desc {
        font-size: 1rem;
    }
    
    /* Tab 按钮内边距减小 */
    .product-detail-tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   响应式断点：手机竖屏 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* 产品信息区 */
    .product-detail-info h1 {
        font-size: 1.3rem;
    }
    
    .product-detail-meta {
        gap: 6px;
    }
    
    .product-detail-tag {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    /* 按钮全宽堆叠 */
    .product-detail-info .btn {
        width: 100%;
    }
    
    /* 相关产品单列 */
    .product-list-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-img {
        height: 200px !important;
    }
    
    /* Tab 导航优化 */
    .product-detail-tab-nav {
        gap: 4px;
    }
    
    .product-detail-tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* 技术参数表格横向滚动 */
    .product-detail-specs-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-detail-specs-content table {
        min-width: 500px;
    }
    
    /* 表单优化 */
    .sub-form-captcha {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sub-captcha-img {
        width: 120px;
        align-self: flex-start;
    }
    
    /* 资讯列表日期隐藏 */
    .sub-latest-date {
        display: none;
    }
    
    /* 区块间距减小 */
    .product-detail-block {
        padding: 16px;
        margin: 20px 0;
    }
    
    .product-related-section {
        margin-top: 32px;
    }
    
    /* 侧栏小部件 */
    .sub-widget {
        padding: 16px;
    }
}

/* ============================================
   触摸设备优化
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn, 
    .product-detail-tab-btn,
    .sub-form-submit,
    .product-card-link {
        min-height: 44px; /* Apple HIG 推荐最小触摸区域 */
    }
    
    .sub-latest-link {
        padding: 14px 0;
    }
    
    input, 
    textarea, 
    select {
        font-size: 16px !important; /* 防止 iOS 缩放 */
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .sub-sidebar,
    .product-detail-tabs,
    .product-related-section,
    .sub-banner,
    .breadcrumb {
        display: none;
    }
    
    .sub-layout {
        display: block;
    }
    
    .product-detail-tab-content {
        display: block !important;
    }
}
/* ============================================
   产品详情页移动端终极修复（仅 .product-detail-section）
   ============================================ */
@media screen and (max-width: 768px) {
  /* 1. 容器与布局调整 */
  .product-detail-section .sub-layout {
    flex-direction: column !important;
    gap: 0;
  }
  .product-detail-section .sub-main {
    order: 1;
    width: 100%;
  }
  .product-detail-section .sub-sidebar {
    order: 2;
    width: 100% !important;
    margin-top: 32px;
  }

  /* 2. 产品图片：强制完整显示，不裁剪 */
  .product-detail-section .product-detail-grid {
    flex-direction: column !important;
    gap: 20px;
  }
  .product-detail-section .product-detail-gallery {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    margin: 0 !important;
    padding: 0 !important;
  }
  .product-detail-section .product-detail-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;  /* 完整显示 */
    max-height: none !important;
    border-radius: 12px;
  }

  /* 3. 产品标题与标签 */
  .product-detail-section .product-detail-info h1 {
    font-size: 1.4rem !important;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .product-detail-section .product-detail-meta {
    gap: 6px;
    margin-bottom: 14px;
  }
  .product-detail-section .product-detail-tag {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  /* 4. 按钮全宽 */
  .product-detail-section .product-detail-info .btn {
    width: 100%;
    margin-bottom: 8px;
    min-height: 46px;
    font-size: 0.95rem;
    justify-content: center;
  }
  .product-detail-section .product-detail-info div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 5. 技术参数表格：可横向滚动 */
  .product-detail-section .product-detail-specs-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .product-detail-section .product-detail-specs-content table {
    min-width: 480px;
    font-size: 0.85rem;
  }
  .product-detail-section .product-detail-specs-content table th,
  .product-detail-section .product-detail-specs-content table td {
    white-space: nowrap;
    padding: 10px 12px;
  }

  /* 6. Tab 导航：横向滚动 */
  .product-detail-section .product-detail-tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid #e5e7eb;
    background: #fafbfc;
  }
  .product-detail-section .product-detail-tab-nav::-webkit-scrollbar {
    display: none;
  }
  .product-detail-section .product-detail-tab-btn {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-height: 44px;
  }

  /* 7. Tab 内容区 */
  .product-detail-section .product-detail-tab-content {
    padding: 20px 16px !important;
  }
  .product-detail-section .editor-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* 8. 视频容器 */
  .product-detail-section .product-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
  }
  .product-detail-section .product-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 9. 客户案例图片 */
  .product-detail-section .product-detail-tab-content[data-tab="cus"] img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* 10. 相关产品：两列网格 */
  .product-detail-section .product-list-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .product-detail-section .product-card-img {
    height: 140px !important;
  }
  .product-detail-section .product-card-body {
    padding: 10px 12px;
  }
  .product-detail-section .product-card-title {
    font-size: 0.85rem !important;
  }
  .product-detail-section .product-card-link {
    font-size: 0.8rem;
  }

  /* 11. 侧栏表单 */
  .product-detail-section .sub-form-group input,
  .product-detail-section .sub-form-group textarea {
    padding: 12px 14px;
    font-size: 16px !important; /* 防止iOS缩放 */
  }
  .product-detail-section .sub-form-submit {
    min-height: 46px;
  }
  .product-detail-section .sub-captcha-img {
    height: 44px;
  }

  /* 12. 最新资讯列表日期隐藏（节省空间） */
  .product-detail-section .sub-latest-date {
    display: none;
  }
  .product-detail-section .sub-latest-text {
    font-size: 0.85rem;
  }
}

/* 小屏手机进一步优化 */
@media screen and (max-width: 480px) {
  .product-detail-section .product-detail-gallery {
    aspect-ratio: 3 / 2;
  }
  .product-detail-section .product-detail-info h1 {
    font-size: 1.25rem !important;
  }
  .product-detail-section .product-detail-tab-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .product-detail-section .product-list-grid {
    grid-template-columns: 1fr !important; /* 单列 */
  }
  /* 单列时改为横卡布局（左图右文） */
  .product-detail-section .product-card {
    display: flex;
    flex-direction: row;
  }
  .product-detail-section .product-card-img {
    width: 120px;
    min-width: 120px;
    height: auto !important;
    aspect-ratio: 3/4;
  }
  .product-detail-section .product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .product-detail-section .sub-captcha-img {
    height: 38px;
  }
}
/* ============================================
   首页核心产品模块 - 手机端强制2列排版
   仅作用于 ≤768px，PC端保持3列不变
   ============================================ */
@media screen and (max-width: 768px) {
    /* 产品网格容器 */
    .products-section .product-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* 确保只显示前6个产品（2列×3行） */
    .product-grid .product-card:nth-child(n+7) {
        display: none !important;
    }

    /* 卡片内边距微调（可选，让2列更美观） */
    .product-card-body {
        padding: 12px;
    }
    .product-card-title {
        font-size: 0.9rem;
    }
}

/* 若希望在更小屏幕（例如 ≤420px）继续保持2列，可再加一段 */
@media screen and (max-width: 420px) {
    .products-section .product-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}