
/* =========================================
   Infinity Machinery Blog - Visual System
   ========================================= */

/* --- 1. 基础排版与字体 (Typography) --- */
.editor_txt {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    max-width: 100%;
}

.editor_txt h3 {
    color: #004080; /* Infinity Corporate Blue */
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 15px;
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
}

.editor_txt h3:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2196f3; /* Accent Blue */
}

.editor_txt h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.editor_txt p {
    margin-bottom: 20px;
    color: #555;
}

/* --- 2. 顶部 Hero 区域 (Hero Section) --- */
.hero-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #d7e1ec 100%);
    padding: 45px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 6px solid #004080;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-section h3 {
    margin-top: 0 !important;
    border-bottom: none !important;
    color: #004080;
}

/* --- 3. 响应式数据表格 (Data Tables) --- */
.table-wrapper {
    overflow-x: auto;
    margin: 35px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}

.editor_table_wrap {
    width: 100%;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* 保证移动端可横向滚动 */
}

.responsive-table th {
    background: #004080;
    color: #fff;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.responsive-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

.responsive-table tr:hover td {
    background-color: #f1f8ff; /* 鼠标滑过高亮 */
    color: #000;
    transition: background-color 0.3s ease;
}

/* --- 4. 流程步骤图 (Process Flow) --- */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    counter-reset: step-counter;
}

.process-step {
    flex: 1 1 200px;
    background: #fff;
    border: 1px solid #e1e4e8;
    padding: 30px 20px 20px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.process-step:hover {
    transform: translateY(-5px); /* 上浮动效 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 3px solid #004080;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #004080;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,64,128,0.2);
}

.process-step h4 {
    margin-top: 10px;
}

/* --- 5. 对比卡片与数据统计 (Grid Layouts) --- */
.comparison-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.comparison-card, .stat-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-card:hover, .stat-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #2196f3;
}

.card-title {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 15px;
    font-weight: bold;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #004080;
    line-height: 1.2;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- 6. 信息/警告/清单框 (Content Boxes) --- */
.info-box, .warning-box, .checklist, .success-box {
    padding: 25px;
    margin: 30px 0;
    border-radius: 6px;
    position: relative;
}

.info-box {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
}

.warning-box {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
}

.success-box {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.checklist {
    background: #f8f9fa;
    border-left: 5px solid #2c3e50;
}

.checklist h4 { margin-top: 0; }

.checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
}

.checklist li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- 7. 底部 CTA 按钮 (Call to Action) --- */
.cta-section {
    background: #004080; /* Corporate Blue Background */
    background: linear-gradient(135deg, #004080 0%, #002b55 100%);
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 8px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0,64,128,0.2);
}

.cta-section h3 {
    color: #fff !important;
    border-bottom: none !important;
    margin-top: 0;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
}

/* 邮件按钮样式 */
.cta-btn-email {
    background: #fff;
    color: #004080;
    border: 2px solid #fff;
}

.cta-btn-email:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* WhatsApp 按钮样式 */
.cta-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}

.cta-btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* --- 8. 移动端适配 (Responsive) --- */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }
    .process-step {
        flex: 1 1 100%;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .responsive-table {
        font-size: 0.85rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}
/* 1. 强制 CTA 区域内的段落文字为白色 */
.cta-section p {
    color: #ffffff !important;  /* !important 确保覆盖掉全局的黑色字体 */
    opacity: 0.9;               /* 稍微一点点透明度，增加质感 */
    font-size: 1.1rem;          /* 字体稍微调大一点，更清晰 */
    margin-bottom: 30px;        /* 保证文字和按钮之间有间距 */
    max-width: 800px;           /* 限制文字宽度，防止在大屏幕上太长 */
    margin-left: auto;          /* 配合 max-width 实现水平居中 */
    margin-right: auto;
}

/* 2. (可选) 优化标题下方的装饰线 */
/* 图片里标题左下角有个小蓝条，在深色背景下可能不太协调，建议在这个区域隐藏它 */
.cta-section h3:after {
    display: none; 
}

/* 3. 确保标题也是白色 */
.cta-section h3 {
    color: #ffffff !important;
    border-bottom: none !important; /* 去掉原本的底部边框线 */
}
