/* ============================================================
   newhomeoage.css - 极简轻奢风格（全新设计）
   保留所有原有class，仅覆盖样式，不修改HTML结构
   配色：米白 #f8f5f0 | 暖灰 #e8e3dc | 茶褐 #b8a088 | 深灰 #2c2420
   ============================================================ */

/* ---------- 全局基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f5f1eb;
    color: #2c2420;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #7a6a5a;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #b8a088;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c_b {
    clear: both;
}

/* ---------- 容器 .m ---------- */
.m {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部栏 .top ---------- */
.top {
    background: #ffffff;
    color: #8a7a6a;
    font-size: 13px;
    padding: 12px 0;
    border-bottom: 1px solid #ece6df;
    letter-spacing: 0.5px;
}
.top .m {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.top .m::before {
    content: "—— 匠心制造 · 品质为本";
    margin-right: auto;
    color: #b8a088;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
}
.top .m::after {
    content: "📞 86 13888889999";
    color: #7a6a5a;
    font-size: 13px;
    font-weight: 400;
    padding: 2px 0;
}

/* ---------- 头部 .head ---------- */
.sign {
    display: none;
}

.head {
    display: flex;
    align-items: center;
    padding: 32px 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #ece6df;
    position: relative;
}
.head div {
    flex: 1;
}
.head h1 {
    font-size: 28px;
    font-weight: 300;
    color: #2c2420;
    letter-spacing: 6px;
    margin: 0;
    line-height: 1.3;
    margin-left: 48px;
}
.head h1 a {
    color: #2c2420;
}
.head h1 a:hover {
    color: #b8a088;
}
.head h4 {
    font-size: 15px;
    font-weight: 300;
    color: #b8a088;
    margin: 6px 0 0;
    letter-spacing: 3px;
}

/* ---------- 导航 .menu ---------- */
.menu {
    background: #ffffff;
    border-bottom: 1px solid #ece6df;
    margin-bottom: 8px;
    padding: 0 4px;
}
.menu ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
}
.menu li {
    margin: 0;
    padding: 0;
    position: relative;
}
.menu li a {
    display: block;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 400;
    color: #5a4a3a;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
}
.menu li a h2 {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    display: inline;
    color: inherit;
    letter-spacing: 2px;
}
.menu li a:hover {
    color: #2c2420;
    background: #f8f5f0;
}
.menu li.menu_on a,
.menu li.menu_on a h2 {
    color: #2c2420;
}
.menu li.menu_on a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #b8a088;
    border-radius: 1px;
}
.menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 1px;
    background: #d5c8bc;
    transition: transform 0.4s ease;
}
.menu li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* ---------- Banner ---------- */
.banner {
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 28px;
    background: #ece6df;
    position: relative;
}
.banner .swiper-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 4.5;
    min-height: 180px;
}
.banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner .swiper-pagination-bullet {
    background: rgba(44, 36, 32, 0.2);
    opacity: 1;
    width: 8px;
    height: 8px;
}
.banner .swiper-pagination-bullet-active {
    background: #b8a088;
    width: 24px;
    border-radius: 4px;
}
#slide_banner {
    overflow: hidden;
}
#slide_banner a img {
    width: 100%;
    height: auto;
}

/* ---------- 面包屑 .pos ---------- */
.pos {
    background: #ffffff;
    padding: 14px 0;
    margin: 0 0 24px;
    font-size: 13px;
    color: #8a7a6a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ece6df;
}
.pos .f_r {
    color: #b8a088;
    font-size: 12px;
    letter-spacing: 1px;
}
.pos #position a {
    color: #5a4a3a;
}
.pos #position a:hover {
    color: #b8a088;
}
.pos #position i {
    margin: 0 6px;
    color: #d5c8bc;
    font-style: normal;
}
.dsn {
    display: none;
}

/* ---------- 主内容头部 .main_head ---------- */
.main_head {
    border-bottom: 1px solid #ece6df;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 28px 36px 32px;
}
.main_head div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.main_head strong {
    font-size: 18px;
    font-weight: 300;
    color: #2c2420;
    letter-spacing: 4px;
    position: relative;
    margin-left: 4px;
}
.main_head strong::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 18px;
    background: #b8a088;
}
.main_head .f_r {
    margin-left: auto;
}
.main_head .f_r a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #b8a088;
    padding: 4px 12px;
    border: 1px solid #ece6df;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
        right: 33px;
    position: relative;
}
.main_head .f_r a:hover {
    color: #2c2420;
    border-color: #b8a088;
    background: #f8f5f0;
}
.main_head .f_r img {
    opacity: 0.4;
    transition: opacity 0.3s;
}
.main_head .f_r a:hover img {
    opacity: 1;
}

/* ---------- 主内容体 .main_body ---------- */
.main_body {
    background: #ffffff;
    padding: 28px 23px 32px;
    margin-bottom: 4px;
    min-height: 80px;
}
.main_body:last-of-type {
    margin-bottom: 20px;
}

/* ---------- 公司介绍模块 ---------- */
.main_body .pd10 {
    padding: 0;
}
.main_body .lh18 {
    line-height: 2;
}
.main_body .moban_px14 {
    font-size: 15px;
    color: #4a3a2a;
}
.main_body .moban_px14 img {
    float: left;
    margin: 0 32px 16px 0;
    border-radius: 4px;
    max-width: 260px;
    width: auto;
    height: auto;
    border: none;
    background: #f5f1eb;
    transition: opacity 0.4s ease;
}
.main_body .moban_px14 img:hover {
    opacity: 0.85;
}
.main_body .moban_px14 .t {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 32px;
    background: #2c2420;
    color: #f5f1eb;
    border-radius: 0;
    font-size: 13px;
    font-weight: 300;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}
.main_body .moban_px14 .t:hover {
    background: #b8a088;
    color: #ffffff;
    letter-spacing: 3px;
}
.main_body .moban_px14 .t::after {
    content: " →";
}

#position{
    margin-right: 16px;
}
/* ---------- 产品 & 新闻列表 ---------- */
.main_body ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px 24px;
    padding: 0;
}
.main_body ul li {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
    padding: 0 0 16px;
    border: none;
    border-bottom: 1px solid #f0ebe4;
    position: relative;
}
.main_body ul li:hover {
    border-bottom-color: #b8a088;
}
.main_body ul li a {
    display: block;
}
.main_body ul li a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    background: #f5f1eb;
    transition: opacity 0.5s ease;
}
.main_body ul li:hover a img {
    opacity: 0.85;
}
.main_body ul li h3,
.main_body ul li h4 {
    font-size: 15px;
    font-weight: 400;
    color: #2c2420;
    margin: 16px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
}
.main_body ul li p {
    font-size: 12px;
    color: #b8a088;
    margin: 0;
    letter-spacing: 1px;
}

/* ---------- 新闻列表 #elite ---------- */
#elite ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px 24px;
}
#elite ul li {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
    border-bottom: 1px solid #f0ebe4;
    padding: 0 0 16px;
    text-align: center;
}
#elite ul li:hover {
    border-bottom-color: #b8a088;
}
#elite ul li a {
    display: block;
}
#elite ul li a img {
    width: 100%;
    aspect-ratio: 10 / 9;
    object-fit: cover;
    border-radius: 0;
    background: #f5f1eb;
    transition: opacity 0.5s ease;
}
#elite ul li:hover a img {
    opacity: 0.85;
}
#elite ul li h3 {
    font-size: 15px;
    font-weight: 400;
    color: #2c2420;
    margin: 16px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
}
#elite ul li p {
    font-size: 12px;
    color: #b8a088;
    margin: 0;
    letter-spacing: 1px;
}

/* ---------- 友情链接 .link ---------- */
.link {
    background: #ffffff;
    padding: 20px 29px 24px;
    border-radius: 0;
    margin: 16px 0 24px;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
}
.link p {
    font-size: 14px;
    font-weight: 300;
    color: #2c2420;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ebe4;
    display: inline-block;
    letter-spacing: 3px;
}
.link p::before {
    content: "— ";
}
.friendlinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 32px;
}
.friendlinks ul li {
    font-size: 13px;
    color: #8a7a6a;
}
.friendlinks ul li a {
    color: #8a7a6a;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}
.friendlinks ul li a:hover {
    color: #b8a088;
}

/* ---------- 底部电话栏 ---------- */
.bottom-phone {
    background: #ffffff;
    padding: 20px 0;
    margin: 12px 0 22px;
    text-align: center;
    color: #2c2420;
    font-size: 15px;
    letter-spacing: 1px;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
}
.bottom-phone p {
    margin: 0;
}
.bottom-phone span {
    color: #b8a088;
    font-weight: 400;
    font-size: 19px;
    letter-spacing: 2px;
    margin: 0 4px;
}

/* ---------- 底部 .foot ---------- */
.foot {
    background: #2c2420;
    color: rgba(255, 255, 255, 0.5);
    padding: 32px 20px 28px;
    text-align: center;
    font-size: 13px;
    border-top: none;
    margin-top: 10px;
    border-radius: 0;
}
.foot a {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}
.foot a:hover {
    color: #d5c8bc;
}
.foot .m {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- 占位美化（内容为空时） ---------- */
.main_body:has(ul:empty)::after {
    content: "—— 内容更新中 ——";
    display: block;
    text-align: center;
    color: #b8a088;
    padding: 40px 0;
    font-size: 14px;
    letter-spacing: 4px;
}
#elite:has(ul:empty)::after {
    content: "—— 新闻动态即将呈现 ——";
    display: block;
    text-align: center;
    color: #b8a088;
    padding: 40px 0;
    font-size: 14px;
    letter-spacing: 4px;
}

/* ---------- 工具类 ---------- */
.text-clay {
    color: #b8a088;
}
.bg-clay {
    background: #b8a088;
}
.text-dark {
    color: #2c2420;
}
.border-soft {
    border-color: #f0ebe4;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 992px) {
    .head h1 {
        font-size: 22px;
        letter-spacing: 4px;
    }
    .head h4 {
        font-size: 13px;
        letter-spacing: 2px;
    }
    .main_body ul {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 24px 20px;
    }
    #elite ul {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px 20px;
    }
    .banner .swiper-container {
        aspect-ratio: 16 / 5.5;
        min-height: 150px;
    }
    .top .m::before {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .m {
        padding: 0 16px;
    }
    .head {
        flex-wrap: wrap;
        padding: 20px 0 16px;
    }
    .head h1 {
        font-size: 18px;
        letter-spacing: 3px;
    }
    .head h4 {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .menu ul {
        padding: 0;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .menu ul::-webkit-scrollbar {
        display: none;
    }
    .menu li a {
        padding: 12px 20px;
        font-size: 13px;
        white-space: nowrap;
    }
    .menu li a h2 {
        font-size: 13px;
        letter-spacing: 1px;
    }
    .banner .swiper-container {
        aspect-ratio: 16 / 7;
        min-height: 110px;
    }
    .main_head {
        padding: 16px 0 10px;
        margin-top: 20px;
    }
    .main_head strong {
        font-size: 16px;
        letter-spacing: 3px;
    }
    .main_head strong::before {
        left: -14px;
        height: 14px;
    }
    .main_body {
        padding: 20px 0 24px;
    }
    .main_body .moban_px14 img {
        float: none;
        margin: 0 0 16px 0;
        max-width: 100%;
    }
    .main_body ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px 16px;
    }
    #elite ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px 16px;
    }
    .pos {
        font-size: 12px;
        padding: 12px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .pos .f_r {
        font-size: 11px;
    }
    .foot {
        padding: 24px 14px 20px;
        font-size: 12px;
    }
    .link {
        padding: 16px 0 20px;
    }
    .friendlinks ul {
        gap: 4px 20px;
    }
    .bottom-phone {
        padding: 16px 0;
        font-size: 13px;
    }
    .bottom-phone span {
        font-size: 16px;
    }
    .top .m::before {
        font-size: 11px;
        letter-spacing: 1px;
    }
    .top .m::after {
        font-size: 12px;
    }
    .top .m {
        gap: 4px 16px;
    }
}

@media (max-width: 480px) {
    .head h1 {
        font-size: 15px;
        letter-spacing: 2px;
    }
    .head h4 {
        font-size: 11px;
    }
    .menu li a {
        padding: 10px 14px;
        font-size: 12px;
    }
    .menu li a h2 {
        font-size: 12px;
    }
    .main_body ul {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px 12px;
    }
    #elite ul {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px 12px;
    }
    .main_body .moban_px14 .t {
        padding: 6px 20px;
        font-size: 12px;
    }
    .bottom-phone {
        font-size: 12px;
        padding: 14px 0;
    }
    .bottom-phone span {
        font-size: 14px;
    }
    .top .m {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        text-align: center;
    }
    .top .m::before {
        margin-right: 0;
        text-align: center;
    }
    .top .m::after {
        text-align: center;
    }
}

/* ---------- 兼容旧内联样式 ---------- */
[bgcolor="#FAFAFA"] {
    background: #f8f5f0 !important;
}
[bgcolor="#FFFFFF"] {
    background: #ffffff !important;
}
[bgcolor="#F1F1F1"] {
    background: #f5f1eb !important;
}
[bgcolor="#FBFBFB"] {
    background: #f8f5f0 !important;
}
[bgcolor="#CCCCCC"] {
    border-color: #ece6df !important;
}
table[cellpadding="5"] td,
table[cellpadding="5"] th {
    padding: 10px 14px !important;
}

/* ---------- 通用图片适配 ---------- */
.content img,
.supcontent img,
.moban_px14 img {
    max-width: 100%;
    height: auto;
}

/* ---------- 滚动 & 选中 ---------- */
html {
    scroll-behavior: smooth;
}
::selection {
    background: #b8a088;
    color: #fff;
}

/* ---------- 按钮统一样式 ---------- */
.main_body .t,
.main_body .btn,
.main_body input[type="submit"] {
    display: inline-block;
    padding: 8px 28px;
    background: #2c2420;
    color: #f5f1eb;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}
.main_body .t:hover,
.main_body .btn:hover,
.main_body input[type="submit"]:hover {
    background: #b8a088;
    color: #ffffff;
    letter-spacing: 3px;
}



/* ============================================================
   新增内页 & 侧边栏样式（极简轻奢，与首页风格一致）
   适用：news, sell, introduce, contact, side_type
   基于新闻页完整HTML结构优化，不修改 HTML 结构，不新增 class
   ============================================================ */

/* ---------- 内页布局（#side, #split, #main） ---------- */
#side {
    float: left;
    width: 240px;
    margin-right: 20px;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44, 36, 32, 0.03);
}

#split {
    display: none; /* 分隔线隐藏，用 margin 代替 */
}

#main {
    overflow: hidden; /* 触发 BFC，避免被浮动覆盖 */
    background: transparent;
}

/* ---------- 侧边栏头部 .side_head ---------- */
.side_head {
    background: #ffffff;
    border-bottom: 1px solid #ece6df;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side_head strong {
    font-weight: 400;
    color: #2c2420;
    position: relative;
    padding-left: 14px;
}

.side_head strong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 14px;
    background: #b8a088;
}

.side_head .f_r a {
    font-size: 12px;
    color: #b8a088;
    font-weight: 300;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.side_head .f_r a:hover {
    color: #2c2420;
}

/* ---------- 侧边栏内容 .side_body ---------- */
.side_body {
    background: #ffffff;
    padding: 6px 0;
}

.side_body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0ebe4;
}

.side_body ul:last-of-type {
    border-bottom: none;
}

.side_body ul li {
    border-bottom: 1px solid #f6f2ec;
    padding: 0;
    display: block; /* 确保显示 */
}

.side_body ul li a {
    display: block;
    padding: 12px 20px;
    color: #5a4a3a;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
}

.side_body ul li a:hover {
    background: #f8f5f0;
    color: #b8a088;
    padding-left: 28px;
}

.side_body ul li.f_b a {
    font-weight: 400;
    color: #2c2420;
    background: #e7e1d8;
}

.side_body ul li.f_b a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-right: 1px solid #b8a088;
    border-bottom: 1px solid #b8a088;
    transform: translateY(-50%) rotate(-45deg);
    opacity: 0.4;
}

/* 分类隐藏/展开（更多功能） */
.side_body ul li:nth-child(n+6) {
    display: none; /* 默认隐藏第6个及以后的 li */
}

.side_body ul.ul-active li {
    display: block !important; /* 展开时全部显示 */
}

.side_body ul i {
    display: block;
    padding: 12px 20px;
    font-style: normal;
    color: #b8a088;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid #f0ebe4;
    transition: background 0.3s ease;
    letter-spacing: 2px;
}

.side_body ul i:hover {
    background: #f8f5f0;
    color: #2c2420;
}

.side_body ul i::before {
    content: '+ ';
    font-weight: 300;
}

.side_body ul.ul-active i::before {
    content: '− ';
}

/* ---------- 新闻列表（.main_body.newbody ul） ---------- */
.main_body.newbody ul {
    display: block !important; /* 覆盖原有的 grid */
    padding: 0;
}

.main_body.newbody ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0ebe4;
    padding: 14px 0;
    margin: 0;
    text-align: left;
    background: none;
    border-radius: 0;
    transition: none;
}

.main_body.newbody ul li a {
    display: inline;
    color: #2c2420;
    font-size: 15px;
    flex: 1;
}

.main_body.newbody ul li a h4 {
    display: inline;
    font-weight: 400;
    font-size: 15px;
    margin: 0;
    color: #2c2420;
    transition: color 0.3s ease;
}

.main_body.newbody ul li a:hover h4 {
    color: #b8a088;
}

.main_body.newbody ul li span {
    color: #b8a088;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: 20px;
}

/* ---------- 新闻详情页 ---------- */
.datetime {
    font-size: 13px;
    color: #8a7a6a;
    padding: 8px 0 16px;
    border-bottom: 1px solid #f0ebe4;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    letter-spacing: 0.5px;
}

.datetime a {
    color: #b8a088;
    transition: color 0.3s ease;
}

.datetime a:hover {
    color: #2c2420;
}

.content {
    font-size: 15px;
    line-height: 2;
    color: #4a3a2a;
    padding: 10px 0;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.content p {
    margin-bottom: 16px;
}

.content h1, .content h2, .content h3 {
    font-weight: 300;
    color: #2c2420;
    margin: 24px 0 16px;
    letter-spacing: 2px;
}

.content a {
    color: #b8a088;
    border-bottom: 1px dotted #ece6df;
}

.content a:hover {
    color: #2c2420;
    border-bottom-color: #b8a088;
}

/* ---------- 分页 .pages ---------- */
.pages {
    text-align: center;
    padding: 24px 0 10px;
    font-size: 14px;
    clear: both;
}

.pages a, .pages strong, .pages span {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 3px;
    border: 1px solid #ece6df;
    border-radius: 30px;
    background: #ffffff;
    color: #5a4a3a;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 1px;
    min-width: 36px;
}

.pages a:hover {
    background: #b8a088;
    color: #ffffff;
    border-color: #b8a088;
}

.pages strong {
    background: #2c2420;
    color: #ffffff;
    border-color: #2c2420;
    font-weight: 400;
}

.pages span {
    background: transparent;
    border-color: transparent;
    color: #8a7a6a;
}

/* ---------- 产品详情页 ---------- */
.main_body_top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 20px 0 10px;
}

.pro_images {
    flex: 0 0 300px;
    max-width: 100%;
    background: #f8f5f0;
    padding: 8px;
    border-radius: 4px;
}

.pro_images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.main_right {
    flex: 1;
    min-width: 200px;
}

.main_right li {
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe4;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    color: #4a3a2a;
}

.main_right li span:first-child {
    width: 100px;
    color: #8a7a6a;
    font-weight: 300;
    flex-shrink: 0;
}

.main_right li strong {
    font-weight: 400;
    color: #2c2420;
}

.main_right li .f_red {
    color: #d9534f;
}

.main_right li span:last-child {
    flex: 1;
}

/* 产品列表 .pro_lists */
.pro_lists {
    padding: 10px 0;
}

.pro_lists ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px 20px;
    padding: 0;
}

.pro_lists ul li {
    text-align: center;
    background: #ffffff;
    border: 1px solid #f0ebe4;
    padding: 16px 10px 20px;
    transition: all 0.4s ease;
    border-radius: 0;
    list-style: none;
}

.pro_lists ul li:hover {
    border-color: #b8a088;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 36, 32, 0.06);
}

.pro_lists ul li a img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    background: #f8f5f0;
    transition: opacity 0.4s ease;
}

.pro_lists ul li a:hover img {
    opacity: 0.85;
}

.pro_lists ul li a h4 {
    margin: 12px 0 4px;
    font-weight: 400;
    font-size: 14px;
    color: #2c2420;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.pro_lists ul li a:hover h4 {
    color: #b8a088;
}

.pro_lists ul li p {
    font-size: 12px;
    color: #b8a088;
    margin: 0;
    letter-spacing: 1px;
}

/* ---------- 介绍页内容图片优化 ---------- */
.main_body .moban_px14 img {
    float: left;
    margin: 0 32px 16px 0;
    border-radius: 4px;
    max-width: 260px;
    height: auto;
    background: #f5f1eb;
}

.main_body .moban_px14:after {
    content: '';
    display: table;
    clear: both;
}

/* ---------- 联系页（contact）占位 ---------- */
#pos_show + .main_head + .main_body .moban_px14 {
    min-height: 120px;
    padding: 10px 0;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 992px) {
    #side {
        width: 200px;
        margin-right: 16px;
    }

    .pro_images {
        flex: 0 0 240px;
    }

    .pro_lists ul {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px 16px;
    }
}

@media (max-width: 768px) {
    #side {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }

    #main {
        margin-left: 0 !important;
        float: none;
        width: 100%;
    }

    .main_body_top {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
    }

    .pro_images {
        flex: 0 0 100%;
    }

    .main_right li span:first-child {
        width: 80px;
    }

    .main_body.newbody ul li {
        flex-wrap: wrap;
        padding: 12px 0;
    }
    
    .main_body.newbody ul li span {
        margin-left: 0;
        font-size: 12px;
    }

    .datetime {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .content {
        font-size: 14px;
    }

    .pro_lists ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px 12px;
    }

    .main_body .moban_px14 img {
        float: none;
        margin: 0 0 16px 0;
        max-width: 100%;
    }

    .side_body ul li:nth-child(n+6) {
        display: none;
    }

    .side_body ul.ul-active li {
        display: block !important;
    }
}

@media (max-width: 480px) {
    #side {
        margin-bottom: 16px;
    }

    .side_head {
        padding: 12px 16px;
        font-size: 14px;
    }

    .side_body ul li a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .side_body ul i {
        padding: 10px 16px;
        font-size: 12px;
    }

    .pro_lists ul {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px 10px;
    }

    .main_right li {
        font-size: 13px;
        padding: 6px 0;
    }

    .main_right li span:first-child {
        width: 70px;
    }

    .pages a, .pages strong, .pages span {
        padding: 4px 12px;
        font-size: 12px;
        min-width: 30px;
    }
}





/* ============================================================
   修复：新闻列表数量少时的布局 & 分页样式美化
   兼容条数多少都好看，分页组件精致统一
   ============================================================ */

/* ---------- 新闻列表容器（数量少时保持美观） ---------- */
.main_body.newbody {
    min-height:576px; /* 保证即使只有1条内容也不显得空旷 */
}

.main_body.newbody ul {
    display: block !important;
    padding: 0;
    margin: 0;
}

.main_body.newbody ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0ebe4;
    padding: 14px 0;
    margin: 0;
    text-align: left;
    background: none;
    border-radius: 0;
    transition: none;
}

/* 当列表只有1-2条时，仍然保持舒适间距 */
.main_body.newbody ul:only-child li:last-child {
    border-bottom: 1px solid #f0ebe4;
}

/* 没有任何新闻时的占位提示（由原系统生成） */
.main_body.newbody:empty::after,
.main_body.newbody ul:empty::after {
    content: '—— 暂无新闻，敬请期待 ——';
    display: block;
    text-align: center;
    color: #b8a088;
    padding: 60px 0;
    font-size: 15px;
    letter-spacing: 4px;
    font-weight: 300;
}

/* ---------- 分页区域整体美化 ---------- */
.pages {
    text-align: center;
    padding: 28px 0 12px;
    font-size: 14px;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    border-top: 1px solid #f0ebe4;
    margin-top: 16px;
}

/* 页码信息标签（第X页/共X页） */
.pages label {
    display: inline-block;
    padding: 5px 16px;
    background: #f8f5f0;
    border-radius: 30px;
    color: #5a4a3a;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    border: 1px solid #ece6df;
    margin-right: 4px;
}

.pages label em,
.pages label span {
    font-style: normal;
    font-weight: 400;
    color: #2c2420;
}

/* 分页链接按钮 */
.pages a {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid #ece6df;
    border-radius: 30px;
    background: #ffffff;
    color: #5a4a3a;
    font-size: 13px;
    font-weight: 300;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    min-width: 34px;
    text-decoration: none;
}

.pages a:hover {
    background: #b8a088;
    color: #ffffff;
    border-color: #b8a088;
    text-decoration: none;
}

/* 当前页高亮（.pages strong 由系统生成） */
.pages strong {
    display: inline-block;
    padding: 5px 16px;
    background: #2c2420;
    color: #ffffff;
    border: 1px solid #2c2420;
    border-radius: 30px;
    font-weight: 400;
    font-size: 13px;
    min-width: 34px;
}

/* 省略号或间隔符 */
.pages span {
    display: inline-block;
    padding: 5px 6px;
    color: #b8a088;
    font-size: 13px;
}

/* 隐藏系统自带的 hidden input */
.pages input[type="hidden"] {
    display: none !important;
}

/* 页码跳转输入框 */
.pages input.pages_inp,
.pages input[type="text"].pages_inp {
    display: inline-block;
    width: 52px;
    height: 34px;
    padding: 0 4px;
    text-align: center;
    border: 1px solid #ece6df;
    border-radius: 30px;
    background: #ffffff;
    color: #2c2420;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.pages input.pages_inp:focus,
.pages input[type="text"].pages_inp:focus {
    border-color: #b8a088;
    box-shadow: 0 0 0 3px rgba(184, 160, 136, 0.15);
}

/* GO 按钮 */
.pages input.pages_btn,
.pages input[type="button"].pages_btn {
    display: inline-block;
    height: 34px;
    padding: 0 18px;
    border: none;
    border-radius: 30px;
    background: #b8a088;
    color: #ffffff;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 34px;
}

.pages input.pages_btn:hover,
.pages input[type="button"].pages_btn:hover {
    background: #2c2420;
    letter-spacing: 3px;
}

/* cite 占位（系统生成，隐藏） */
.pages cite {
    display: none;
}

/* ---------- 分页在移动端适配 ---------- */
@media (max-width: 768px) {
    .pages {
        gap: 5px 6px;
        padding: 20px 0 10px;
        font-size: 13px;
    }

    .pages label {
        padding: 4px 12px;
        font-size: 12px;
        width: 100%;
        margin-bottom: 4px;
        border-radius: 20px;
    }

    .pages a {
        padding: 4px 12px;
        font-size: 12px;
        min-width: 30px;
        border-radius: 20px;
    }

    .pages strong {
        padding: 4px 12px;
        font-size: 12px;
        min-width: 30px;
        border-radius: 20px;
    }

    .pages input.pages_inp,
    .pages input[type="text"].pages_inp {
        width: 44px;
        height: 30px;
        font-size: 13px;
        border-radius: 20px;
    }

    .pages input.pages_btn,
    .pages input[type="button"].pages_btn {
        height: 30px;
        padding: 0 14px;
        font-size: 12px;
        line-height: 30px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .pages {
        gap: 4px 4px;
        padding: 16px 0 8px;
    }

    .pages label {
        font-size: 11px;
        padding: 3px 10px;
        width: 100%;
    }

    .pages a {
        padding: 3px 10px;
        font-size: 11px;
        min-width: 26px;
    }

    .pages strong {
        padding: 3px 10px;
        font-size: 11px;
        min-width: 26px;
    }

    .pages input.pages_inp,
    .pages input[type="text"].pages_inp {
        width: 38px;
        height: 26px;
        font-size: 12px;
        border-radius: 16px;
    }

    .pages input.pages_btn,
    .pages input[type="button"].pages_btn {
        height: 26px;
        padding: 0 12px;
        font-size: 11px;
        line-height: 26px;
        border-radius: 16px;
    }
}

/* ============================================================
   修复侧边栏展开溢出问题（清除浮动，保留 float 布局）
   不修改 HTML，不新增 class，只针对包含 #side 的 .m
   ============================================================ */

/* 方案一：使用 :has() 精准选择包含 #side 的父容器，清除浮动 */
@supports (selector(:has(*))) {
    .m:has(#side) {
        display: flow-root;  /* 完美清除浮动，不影响子元素布局 */
        /* 兼容旧浏览器降级：overflow: hidden; 也可，但 flow-root 更干净 */
    }
}

/* 方案二：对于不支持 :has() 的浏览器，全局给 .m 加 overflow:hidden 会有副作用（影响首页），
   但我们可以利用已有的类组合来规避，例如 .m:not(.top) 等，但为了简单，这里建议升级浏览器，
   或者我们使用更保守的方式：直接在所有 .m 上加 overflow:hidden，但首页的 banner 等可能会被裁剪，
   因此不推荐。这里我们仅用 flow-root 方案，并提示不支持时会有轻微溢出。 */

/* ---------- 恢复原有浮动相关样式（确保不被干扰） ---------- */
#side {
    float: left;
    width: 240px;
    margin-right: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(44, 36, 32, 0.03);
}

#main {
    overflow: hidden; /* 触发 BFC，使主内容自动适应剩余宽度，不会围绕浮动 */
    background: transparent;
}

#split {
    display: none; /* 隐藏分割线 */
}

/* ---------- 修正侧边栏展开时父容器高度 ---------- */
.m:has(#side) {
    display: flow-root;
}

/* ---------- 针对不支持 :has() 的浏览器，提供一个保守的 overflow:hidden 降级 ---------- */
@supports not (selector(:has(*))) {
    /* 由于无法精准选择，我们在这里不做额外操作，保持原样，但会提示用户 */
    /* 若用户反馈，可以建议升级浏览器，或手动给该 .m 加上一个类（但与你要求冲突） */
}