/* ========== 页面基础容器 ========== */
.inner-page.product-page {
    padding: 0;
}

.content-matrix {
    max-width: 1450px;
    margin: 0 auto 30px;
    padding: 10px 20px;
}

.content-matrix .container {
    max-width: 1450px;
    margin: 0 auto;
}

/* 顶部单独居中区域 (用于 Det1) */
.top-feature-section {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.main-content-column {
    margin-bottom: 40px;
}

/* 侧边栏列 - Flex布局实现等高对齐 */
.sidebar-content-column {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.sidebar-content-column > * {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* 编辑器模块卡片基础样式 */
.editor-module, .editor-module1, .info-column1, .editor-module-service, .editor-module-faq {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    height: 100%;
}

.editor-module-service, .editor-module-faq {
    padding: 25px;
}

/* ========== Hero Section 样式（新增/修改）========== */
.tag-hero-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    text-align: center;
    margin-bottom: 40px;
}

.tag-hero-section .tag-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.tag-hero-section .hero-section-p {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

/* Hero Section 内容容器样式 */
.tag-hero-section .editor-content-1 {
    max-width: 1450px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section 内部容器 */
.tag-hero-section .dc-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    text-align: center;
}

/* Hero Section 标题样式 */
.tag-hero-section .dc-container h4 {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Hero Section 段落样式 */
.tag-hero-section .dc-p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

/* 最后一个段落移除底部间距 */
.tag-hero-section .dc-p:last-child {
    margin-bottom: 0;
}

/* ========== Det1: 表格样式 ========== */
.dc-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.dc-table th, .dc-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.dc-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1e1a1a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.dc-table tr:last-child td {
    border-bottom: none;
}

.dc-table tr:nth-child(even) {
    background: #fff;
}

/* Det1 特殊背景样式 */
.info-column1 {
    background: linear-gradient(135deg, #44adaa 0%, #08403f 100%);
    color: #fff;
}
.info-column1 .dc-table th { background: rgba(255,255,255,0.2); }
.info-column1 .dc-table td {
    color: #1e1a1a;
    border-color: rgba(255,255,255,0.2);
}
.info-column1 .dc-table tr:nth-child(even) { background: rgba(255,255,255,0.1); }

/* ========== 通用内容块样式 ========== */
.dc-section {
    margin-bottom: 25px;
}

.dc-section h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    position: relative;
    display: inline-block;
}

.dc-section h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #764ba2;
}

.dc-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-li {
    padding: 12px 18px;
    margin-bottom: 12px;
    background: #fdfdfd;
    border-radius: 6px;
    border-left: 4px solid #11706e;
    transition: all 0.3s ease;
    line-height: 1.6;
    font-size: 15px;
}

.dc-li:hover {
    transform: translateX(5px);
    background: #f0f4ff;
}

.dc-strong, .dc-li strong {
    color: #667eea;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

/* ========== Related Tags 样式 - 胶囊标签风格 ========== */

.editor-module-moretag {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
}

/* Tags 容器标题（如果需要可以添加） */
.editor-module-moretag::before {
    content: 'Related Tags';
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.editor-module-moretag a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 第一个标签 */
.editor-module-moretag a:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* 第二个标签 */
.editor-module-moretag a:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: transparent;
}

/* 第三个标签 */
.editor-module-moretag a:nth-child(4) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: transparent;
}

/* 第四个标签 */
.editor-module-moretag a:nth-child(5) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border-color: transparent;
}

/* 悬停效果 */
.editor-module-moretag a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 激活/访问状态 */
.editor-module-moretag a:active {
    transform: translateY(-1px) scale(1.02);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .editor-module-moretag {
        padding: 20px;
        margin: 30px 0;
    }
    
    .editor-module-moretag a {
        font-size: 13px;
        padding: 8px 16px;
        margin: 0 8px 8px 0;
    }
    
    .editor-module-moretag::before {
        font-size: 16px;
        margin-bottom: 15px;
    }
}


/* ========== Det5: FAQ 手风琴样式（修复版）========== */
.editor-module-faq {
    max-height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* 自定义滚动条 */
.editor-module-faq::-webkit-scrollbar { width: 6px; }
.editor-module-faq::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.editor-module-faq::-webkit-scrollbar-thumb { background: #667eea; border-radius: 3px; }

/* FAQ 每一组问答 (ul) */
.editor-module-faq .dc-ul {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.editor-module-faq .dc-ul:last-child { margin-bottom: 0; }
.editor-module-faq .dc-ul:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* 问题项 (第一个li) */
.editor-module-faq .dc-ul li:first-child {
    padding: 16px 20px;
    background: #f9f9fc;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-right: 50px;
    user-select: none;
    transition: background 0.3s;
    font-size: 14px;
    margin-bottom: 0;
}

.editor-module-faq .dc-ul li:first-child:hover { background: #f0f2f5; }

/* 加号图标 */
.editor-module-faq .dc-ul li:first-child::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #667eea;
    transition: transform 0.3s;
}

/* 答案项 (第二个li) - 关键修复 */
.editor-module-faq .dc-ul li:nth-child(2) {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    padding: 0 20px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 0;
    display: block;
    /* 确保内部内容不会被隐藏 */
    visibility: visible;
    opacity: 1;
}

/* 激活状态 */
.editor-module-faq .dc-ul.faq-active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.editor-module-faq .dc-ul.faq-active li:first-child {
    background: #667eea;
    color: #fff;
}

.editor-module-faq .dc-ul.faq-active li:first-child::after {
    transform: translateY(-50%) rotate(45deg);
    color: #fff;
}

.editor-module-faq .dc-ul.faq-active li:nth-child(2) {
    padding: 16px 20px;
    /* 激活时不设置固定max-height，由JS控制 */
}


/* ========== 产品网格区域 ========== */
.product-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin-bottom: 0;
}

.product-section .container {
    max-width: 1450px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: 16px;
    color: #6c757d;
    margin-top: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e8e8e8;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.product-card .img-box {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card .img-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .img-box::before { opacity: 1; }

.product-card .img-box img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: all 0.5s ease;
    padding: 15px;
}

.product-card:hover .img-box img { transform: scale(1.1) rotate(2deg); }

.product-card .content {
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.product-card .content h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .content h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .content h5 a:hover { color: #667eea; }

.product-card .view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card .view-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { 
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .sidebar-content-column { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) { 
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .section-header h2 { font-size: 28px; }
    .content-matrix { padding: 20px 15px; }
    .editor-module, .editor-module1, .info-column1, .editor-module-service, .editor-module-faq { padding: 20px; }
    
    /* Hero Section 响应式 */
    .tag-hero-section {
        padding: 40px 20px;
    }
    .tag-hero-section .tag-title {
        font-size: 32px;
    }
    .tag-hero-section .dc-container {
        padding: 25px;
    }
    .tag-hero-section .dc-p {
        font-size: 15px;
    }
}
@media (max-width: 480px) { 
    .product-grid { grid-template-columns: 1fr; gap: 15px; }
    .product-card .img-box img { height: 200px; }
    .section-header h2 { font-size: 24px; }
    .product-section { padding: 40px 15px; }
    
    /* Hero Section 移动端 */
    .tag-hero-section .tag-title {
        font-size: 26px;
    }
    .tag-hero-section .hero-section-p {
        font-size: 14px;
    }
    .tag-hero-section .dc-container h4 {
        font-size: 22px;
    }
}
