/* =========================================
   Global Variables & Reset
   ========================================= */
:root {
    --primary-color: #b22222;     /* 核心红 */
    --secondary-color: #8b0000;   /* 深红 */
    --accent-color: #d9534f;      /* 亮红/强调色 */
    --light-bg: #f8f9fa;          /* 浅灰背景 */
    --card-bg: #ffffff;           /* 卡片背景 */
    --text-color: #333333;        /* 正文色 */
    --border-color: #e1e4e8;      /* 边框色 */
    --radius: 8px;                /* 圆角 */
}

/* 页面容器 */
.tag-page-container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
}

/* =========================================
   1. Hero Section (顶部介绍)
   ========================================= */
.tag-hero-section {
    background: linear-gradient(180deg, #fffcfc 0%, #fff 100%);
    padding: 50px 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
    text-align: center;
    border-radius: var(--radius);
}

.tag-title {
    font-size: 30px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: capitalize;
    line-height: 1.2;
}

.tag-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
    display: inline-block;
    position: relative;
}

.tag-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

/* 简介内容框 */
.editor-content-intro {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(178, 34, 34, 0.05); /* 红色系阴影 */
    border-left: 4px solid var(--primary-color);
}

.editor-content-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}
/* 简介里的H4自动变成小标题样式 */
.editor-content-intro h4 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
    display: block;
}

/* =========================================
   2. Featured Products (中间产品)
   ========================================= */
.middle-product-section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-heading {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
}
.section-heading::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--secondary-color); margin: 15px auto 0;
}

.middle-product-section .grid-box {
    display: flex; flex-wrap: wrap; margin: 0 -15px;
}
.middle-product-section .column {
    width: 33.333%; padding: 0 15px; margin-bottom: 30px; box-sizing: border-box;
}
@media (max-width: 768px) { .middle-product-section .column { width: 100%; } }

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #fadbd8; /* 浅红边框 */
}
.product-card .img-box {
    display: block; width: 100%; height: 240px; overflow: hidden; margin-bottom: 15px; border-radius: 4px; position: relative;
}
.product-card .img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .img-box img { transform: scale(1.08); }

.product-title {
    font-size: 16px; line-height: 1.4; font-weight: 700; margin: 0; text-align: center;
}
.product-title a { color: #333; text-decoration: none; transition: color 0.3s; }
.product-title a:hover { color: var(--primary-color); }

/* =========================================
   3. Content Matrix (核心布局)
   ========================================= */
.content-matrix {
    display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start;
}
.main-content-column {
    flex: 1; min-width: 0; /* 防止内容溢出 */
}
.sidebar-content-column {
    width: 360px; flex-shrink: 0;
}
@media (max-width: 991px) {
    .content-matrix { flex-direction: column; }
    .sidebar-content-column { width: 100%; }
}

/* =========================================
   4. Editor Module Styling (左侧编辑器通用样式)
   自动美化导入的 HTML
   ========================================= */
.editor-module {
    background: #fff;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* 右上角背景图标 */
.module-icon {
    position: absolute; top: -5px; right: 20px; font-size: 5rem; color: rgba(178, 34, 34, 0.03); pointer-events: none; z-index: 0;
}

/* --- 自动美化 H4 标题 --- */
.editor-module h4, 
.spz-h4 {
    position: relative;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    z-index: 1;
}
.editor-module h4::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 50px; height: 3px; background: var(--secondary-color);
}

/* --- 自动美化 P 段落 --- */
.editor-module p,
.spz-p {
    margin-bottom: 15px; color: #555; line-height: 1.7; font-size: 1rem; position: relative; z-index: 1;
}

/* --- 自动美化 UL 列表 (带对号) --- */
.editor-module ul,
.spz-ul {
    list-style: none; padding: 0; margin: 20px 0; position: relative; z-index: 1;
}
.editor-module ul li,
.spz-li {
    position: relative; padding-left: 28px; margin-bottom: 12px; line-height: 1.6; color: #444;
}

.editor-module ul li strong { color: #333; }

/* --- 自动美化 Table 表格 --- */
.editor-module table,
.spz-table {
    width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; background: #fff; border: 1px solid #eee; position: relative; z-index: 1;
}
.editor-module table tr { border-bottom: 1px solid #eee; }
.editor-module table tr:nth-child(odd) { background-color: #fafbfc; }
.editor-module table td { padding: 14px 18px; color: #555; vertical-align: middle; }
/* 假设第一列是 Label */
.editor-module table td:first-child,
.spz-td-label {
    width: 35%; font-weight: 700; color: var(--primary-color); border-right: 1px solid #eee;
}

/* =========================================
   5. Sidebar Cards (右侧侧边栏)
   ========================================= */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.card-header {
    background: #fdfdfd;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    display: flex; align-items: center;
}
.card-header i { margin-right: 10px; color: var(--accent-color); font-size: 1.2rem; }

.card-body { padding: 25px; font-size: 0.95rem; color: #666; }

/* --- Logistics 特有样式 (Det 6) --- */
.logistics-card .card-body ul { list-style: none; padding: 0; }
.logistics-card .card-body li {
    position: relative; padding-left: 28px; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 10px;
}
.logistics-card .card-body li:last-child { border-bottom: none; }
.logistics-card .card-body li::before {
    content: '\f1b3'; /* Cube/Box Icon */
    font-family: 'FontAwesome'; position: absolute; left: 0; top: 1px; color: #666;
}
.logistics-card .card-body strong { color: var(--primary-color); display: block; margin-bottom: 4px; }

/* --- FAQ 特有样式 (Det 5) --- */
.faq-body ul { list-style: none; padding: 0; }
.faq-body li { margin-bottom: 18px; }
/* 问题标题 (通过 Excel 里的 <strong>Q:..</strong> 控制，这里针对 li 下的 strong) */
.faq-body li strong { 
    display: block; 
    color: #333; 
    font-weight: 700; 
    margin-bottom: 8px; 
    position: relative; 
    padding-left: 30px; 
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1.4;
}
.faq-body li strong:hover { color: var(--primary-color); }
.faq-body li strong::before {
    content: 'Q'; 
    position: absolute; left: 0; top: -2px; 
    background: rgba(178, 34, 34, 0.1); 
    color: var(--primary-color); 
    width: 22px; height: 22px; 
    text-align: center; line-height: 22px; 
    border-radius: 50%; 
    font-size: 12px; font-weight: 800;
}
/* 答案 (Excel 里通常是 <p> 或 文本) */
.faq-body li p, .faq-body li div {
    padding-left: 30px; margin: 0; color: #666; font-size: 0.9rem; line-height: 1.5;
}

/* --- Contact CTA Card --- */
.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff; text-align: center; padding: 40px 25px; border: none;
}
.contact-icon { font-size: 45px; margin-bottom: 20px; color: rgba(255,255,255,0.9); }
.contact-card h4 { color: #fff !important; font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.contact-card p { color: rgba(255,255,255,0.8); margin-bottom: 25px; }
.btn-sidebar-cta {
    display: inline-block; background: #fff; color: var(--primary-color); padding: 12px 35px; border-radius: 50px; font-weight: 700; text-decoration: none; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s;
}
.btn-sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); color: var(--secondary-color); }

/* =========================================
   6. Related Tags (底部标签云)
   ========================================= */
.bottom-related-tags {
    margin: 60px 0; padding: 40px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
}
.tag-cloud.full-width .spz-link-ul {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0;
}
.tag-cloud.full-width .spz-link-li { margin: 0; padding: 0; border: none; }
.tag-cloud.full-width .spz-link-li::before { display: none; } /* 去掉通用LI的对号 */

.spz-link {
    display: block; padding: 10px 22px; background-color: #f8f9fa; border: 1px solid #e1e4e8; border-radius: 4px; color: #555; font-size: 14px; text-decoration: none; transition: all 0.3s ease;
}
.spz-link:hover {
    background-color: var(--primary-color); color: #fff !important; border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 12px rgba(178, 34, 34, 0.2);
}

/* =========================================
   7. Company Profile (红色大标题)
   ========================================= */
.full-company-show {
    margin-top: 70px; padding: 60px 30px; background-color: #fffbfc; border-top: 1px solid #fae3e3; text-align: center;
}
.company-red-title {
    color: var(--primary-color) !important;
    font-size: 2rem; font-weight: 800; margin: 0 0 40px 0; padding-bottom: 20px; position: relative; text-transform: uppercase;
}
.company-red-title::after {
    content: ''; display: block; width: 80px; height: 4px; background-color: var(--primary-color); margin: 20px auto 0;
}
.company-text-content {
    max-width: 1000px; margin: 0 auto; color: #555 !important; font-size: 1.05rem !important; line-height: 1.9 !important; text-align: justify;
}
.company-text-content p { margin-bottom: 25px; text-indent: 0; }

/* =========================================
   8. Inquiry Form
   ========================================= */
.bottom-form-section { margin-top: 60px; margin-bottom: 60px; }
.seo_public_from input[type="text"], 
.seo_public_from textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; transition: border-color 0.3s;
}
.seo_public_from input[type="text"]:focus, 
.seo_public_from textarea:focus { border-color: var(--primary-color); outline: none; }
.seo_public_from input[type="submit"] {
    background: var(--primary-color); color: #fff; padding: 15px 40px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase; transition: background 0.3s;
}
.seo_public_from input[type="submit"]:hover { background: var(--secondary-color); }



/* =========================================
   纯红色系现代化列表卡片 - 对勾图标修正版
   ========================================= */

/* 通用列表容器 */
.editor-module .spz-ul,
.editor-module ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 单个列表项卡片 */
.editor-module .spz-li,
.editor-module ul li {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 20px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.editor-module .spz-li:hover,
.editor-module ul li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


/* 文本样式 */
.editor-module .spz-li p,
.editor-module ul li p,
.editor-module .spz-li span,
.editor-module ul li span {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

/* 标题样式增强（保持原风格） */
.editor-module h4,
.spz-h4 {
    position: relative;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    z-index: 1;
}
.editor-module h4::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 50px; height: 3px; background: var(--secondary-color);
}

/* 特别处理：Structure 模块中的段落描述 */
.editor-module .structure-description {
    margin-top: 15px;
    padding-left: 32px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
.editor-module .structure-description strong {
    color: var(--primary-color);
    font-weight: 600;
}


.editor-module .spz-li p,
.editor-module ul li p {
    font-size: 14px;
    line-height: 1.7;
}

.editor-module .spz-li,
.editor-module ul li {
    font-size: 14px;
}

/* 统一增强 editor-module 列表项的可读性和布局稳定性 */
.editor-module ul li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    line-height: 1.7;
    padding: 16px 20px; /* 保持原有内边距 */
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.editor-module ul li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 左侧标签：固定最小宽度，允许换行 */
.editor-module ul li strong {
    flex-shrink: 0;
    min-width: 130px;
    font-weight: 700;
    color: #333;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

/* 右侧描述：自适应填充 */
.editor-module ul li p {
    flex: 1;
    margin: 0;
    line-height: 1.7;
    color: #555;
}

a.footinfo {
    font-size: 16px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 450px;
}

@media (max-width: 991px){
.content-matrix {
    display: inline;
}
}