/* 
   ============================================
   版权所有 © 2026 墨迹语CMS 
   https://www.mojiyucms.com/
   ============================================ 
*/

/* 分站导航 - 符合baojie2风格（深色背景） */
.branches-nav {
    background: #333;
    padding: 15px 0;
    border-bottom: solid 1px #444;
}

.branches-nav .container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.branches-title {
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    margin-right: 15px;
    white-space: nowrap;
    line-height: 28px;
}

.branches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
}

.branches-list a {
    display: block;
    color: #fff;
    font-size: 14px;
    border-right: 1px solid #fff;
    padding: 0 15px;
    line-height: 14px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.branches-list a:hover {
    color: #f795a4;
}

.branches-list a:last-child {
    border-right: none;
}

/* PC端页脚链接 */
.footer-links-pc {
    margin-left: 20px;
}

.footer-links-pc a {
    color: #999;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

.footer-links-pc a:hover {
    color: #ff6b35;
}

/* 产品展示区域图片固定大小 */
.product .inner ul li .pro_img a {
    display: block;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 宽高比 */
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.product .inner ul li .pro_img a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持图片比例，裁剪多余部分 */
    object-position: center;
    /* 图片居中显示 */
}

/* 服务项目图片固定大小 */
.service_right .ser_img a {
    display: block;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 宽高比 */
    position: relative;
    overflow: hidden;
}

.service_right .ser_img a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 关于我们图片固定大小 */
.about .about_img {
    width: 100%;
    padding-bottom: 60%;
    /* 5:3 宽高比 */
    position: relative;
    overflow: hidden;
}

.about .about_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .branches-nav {
        padding: 10px 0;
    }

    .branches-nav .container {
        flex-direction: column;
    }

    .branches-title {
        margin-right: 0;
        margin-bottom: 8px;
        line-height: 20px;
    }

    .branches-list a {
        padding: 0 10px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .product .inner ul li .pro_img a {
        padding-bottom: 100%;
        /* 保持1:1比例 */
    }

    .service_right .ser_img a {
        padding-bottom: 75%;
        /* 保持4:3比例 */
    }

    .about .about_img {
        padding-bottom: 60%;
        /* 保持5:3比例 */
    }
}

/* ========================================
   文章内容样式（详情页）
   ======================================== */

/* 表格样式 */
.news_detail_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news_detail_content table th {
    background: linear-gradient(135deg, #f795a4 0%, #ff6b81 100%);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
}

.news_detail_content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.news_detail_content table tr:last-child td {
    border-bottom: none;
}

.news_detail_content table tr:nth-child(even) {
    background: #f9fafb;
}

/* 移动端表格适配 */
@media (max-width: 768px) {
    .news_detail_content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* pre 代码块样式 */
.news_detail_content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
}

.news_detail_content pre::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 20px 0 0 #fbbf24, 40px 0 0 #22c55e;
}

/* 行内代码 */
.news_detail_content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.news_detail_content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}