@charset "utf-8";
/* ==========================================================
   乐庭绝缘材料 — PbootCMS 模板样式
   仅依赖原生 CSS，PC 优先 + 基础自适应
   ========================================================== */
:root {
    --red: #df0615;
    --red-dark: #c10512;
    --text: #333;
    --text-2: #666;
    --text-3: #999;
    --line: #e5e5e5;
    --bg: #fff;
    --bg-soft: #f5f5f5;
    --foot: #3b3b3b;
    --foot-2: #333;
    --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; text-decoration: none; transition: color .25s, background .25s; }
a:hover { color: var(--red); }
img { border: 0; vertical-align: middle; max-width: 100%; }
li { list-style: none; }
input, textarea, button { font-family: inherit; font-size: 14px; outline: none; }
.clearfix::after { content: ""; display: block; clear: both; }

.wrap { width: 1200px; margin: 0 auto; }
.tc { text-align: center; }
.hide { display: none !important; }

/* ---------------- 头部 ---------------- */
.header { background: #fff; }
.header .wrap {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.header .logo { flex: 0 0 auto; }
.head-right { min-width: 0; }
.head-tel { white-space: nowrap; }
.header .logo a { display: block; }
.header .logo img { height: 52px; width: auto; display: block; }

.head-right { text-align: right; padding-top: 4px; }
.head-tel { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.head-tel a { color: var(--text-2); }
.head-tel a:hover { color: var(--red); }
.head-tel strong { color: var(--text); font-weight: 700; }
.head-tel .sep { color: #ccc; margin: 0 6px; }

.search-box { margin-top: 6px; display: flex; justify-content: flex-end; }
.search-box form { display: flex; }
.search-box input[type=text] {
    width: 200px; height: 32px; line-height: 32px;
    padding: 0 12px 0 30px;
    border: 1px solid #ddd; border-right: 0;
    color: var(--text-2); font-size: 13px;
    background: #fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM5OTkiIHN0cm9rZS13aWR0aD0iMiI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iNyIvPjxsaW5lIHgxPSIyMSIgeTE9IjIxIiB4Mj0iMTYuNjUiIHkyPSIxNi42NSIvPjwvc3ZnPg==") no-repeat 10px center;
}
.search-box input[type=text]:focus { border-color: #bbb; }
.search-box button {
    height: 32px; padding: 0 18px; border: 0; cursor: pointer;
    background: #555; color: #fff; font-size: 13px;
}
.search-box button:hover { background: var(--red); }

/* ---------------- 导航 ---------------- */
.nav { border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); background: #fff; }
.nav .wrap { display: flex; }
.nav > .wrap > ul { display: flex; }
.nav li { position: relative; }
.nav li > a {
    display: block; height: 58px; line-height: 58px;
    padding: 0 30px; font-size: 16px; color: var(--text);
    border-right: 1px solid #f0f0f0;
}
.nav li:first-child > a { border-left: 1px solid #f0f0f0; }
.nav li > a .arrow {
    display: inline-block; width: 0; height: 0; margin-left: 6px;
    border: 4px solid transparent; border-top-color: #999;
    vertical-align: middle; position: relative; top: 2px;
}
.nav li.on > a, .nav li:hover > a { color: var(--red); }
.nav li.on > a .arrow, .nav li:hover > a .arrow { border-top-color: var(--red); }

.nav .sub {
    position: absolute; left: 0; top: 100%; z-index: 60;
    min-width: 100%; white-space: nowrap;
    background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    border-top: 2px solid var(--red);
    display: none;
}
.nav li:hover .sub { display: block; }
.nav .sub a {
    display: block; height: 42px; line-height: 42px;
    padding: 0 22px; font-size: 14px; color: var(--text-2);
    border-bottom: 1px solid #f2f2f2;
}
.nav .sub a:hover { background: var(--red); color: #fff; }

.nav-toggle { display: none; }

/* ---------------- 首页大图 ---------------- */
.banner-home { height: 300px; background: #eee center center / cover no-repeat; position: relative; }
.banner-home .caption {
    position: absolute; left: 0; right: 0; bottom: 0; top: 0;
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.45) 100%);
    color: #fff; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.banner-home .caption h1 { font-size: 34px; font-weight: 400; letter-spacing: 2px; }
.banner-home .caption p { font-size: 15px; margin-top: 8px; opacity: .9; }

/* ---------------- 内页大图 ---------------- */
.banner { height: 300px; position: relative; background: #ddd center center / cover no-repeat; }
.banner .mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, .18) 100%);
    display: flex; flex-direction: column; justify-content: center;
}
.banner h1 { font-size: 32px; font-weight: 400; color: #222; letter-spacing: 1px; }
.banner p { margin-top: 10px; font-size: 14px; color: #555; max-width: 620px; line-height: 1.9; }

/* ---------------- 面包屑 ---------------- */
.crumb { background: var(--bg-soft); border-bottom: 1px solid #eee; }
.crumb .wrap { height: 46px; line-height: 46px; font-size: 13px; color: var(--text-3); }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--red); }

/* ---------------- 通用标题 ---------------- */
.sec-title {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px; margin-bottom: 26px;
    display: flex; align-items: flex-end; justify-content: space-between;
}
.sec-title h2 { font-size: 22px; font-weight: 700; color: #222; position: relative; padding-left: 14px; }
.sec-title h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 20px; background: var(--red);
}
.sec-title .more { font-size: 13px; color: var(--text-3); }
.sec-title .more:hover { color: var(--red); }

section.block { padding: 52px 0; }

/* ---------------- 产品卡片 ---------------- */
.plist { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.plist .item { width: 25%; padding: 0 10px; margin-bottom: 20px; }
.plist.col3 .item { width: 33.3333%; }

.pcard {
    border: 1px solid var(--line); background: #fff; height: 100%;
    transition: border-color .3s, box-shadow .3s;
}
.pcard:hover { border-color: var(--red); box-shadow: 0 6px 20px rgba(223, 6, 21, .1); }
.pcard .pic {
    height: 260px; display: flex; align-items: center; justify-content: center;
    padding: 24px; overflow: hidden;
}
.pcard .pic img { max-height: 100%; width: auto; max-width: 100%; transition: transform .4s; }
.pcard:hover .pic img { transform: scale(1.05); }
.pcard .txt { padding: 14px 16px; border-top: 1px solid #f2f2f2; }
.pcard .txt h3 {
    font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.6;
    height: 48px; overflow: hidden;
}
.plist.col3 .pcard .pic { height: 330px; }

/* ---------------- 新闻列表（首页卡片） ---------------- */
.nlist { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.nlist .item { width: 25%; padding: 0 10px; }
.ncard .pic { height: 190px; overflow: hidden; background: #f7f7f7; }
.ncard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ncard:hover .pic img { transform: scale(1.06); }
.ncard .txt { padding: 14px 0 0; }
.ncard .date { font-size: 12px; color: var(--text-3); }
.ncard h3 {
    font-size: 15px; font-weight: 700; color: var(--text); margin: 6px 0 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ncard p { font-size: 13px; color: var(--text-2); line-height: 1.8; height: 70px; overflow: hidden; }

/* ---------------- 关于我们（红底） ---------------- */
.about-block { background: var(--red) url("../images/about_bg.jpg") center center / cover no-repeat; color: #fff; }
.about-block .wrap { display: flex; align-items: center; padding: 60px 0; }
.about-block .txt { width: 52%; padding-right: 50px; }
.about-block .txt h2 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.about-block .about-text {
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
    overflow: hidden;
}
.about-block .txt p {
    font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, .92);
    margin-bottom: 12px; text-indent: 2em;
}
.about-block .txt .btn {
    display: inline-block; margin-top: 14px; padding: 9px 30px;
    background: #fff; color: var(--red); font-size: 14px;
}
.about-block .txt .btn:hover { background: rgba(255, 255, 255, .88); }
.about-block .pic { width: 48%; }
.about-block .pic img { width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

/* ---------------- 内页布局 ---------------- */
.main { padding: 40px 0 60px; }
.main .wrap { display: flex; align-items: flex-start; }

.side { width: 260px; flex: 0 0 260px; margin-right: 36px; }
.side .side-hd {
    background: var(--red); color: #fff; height: 52px; line-height: 52px;
    padding: 0 20px; font-size: 17px; font-weight: 700;
}
.side .side-bd { border: 1px solid var(--line); border-top: 0; }
.side .side-bd li { border-bottom: 1px solid #f0f0f0; }
.side .side-bd li:last-child { border-bottom: 0; }
.side .side-bd a {
    display: block; height: 46px; line-height: 46px; padding: 0 20px;
    font-size: 14px; color: var(--text-2);
}
.side .side-bd li.on a, .side .side-bd a:hover { background: #faf1f2; color: var(--red); }
.side .side-bd li.on a { font-weight: 700; }

.side-contact { margin-top: 24px; border: 1px solid var(--line); padding: 18px 20px; }
.side-contact h3 { font-size: 15px; margin-bottom: 10px; color: #222; }
.side-contact p { font-size: 13px; color: var(--text-2); line-height: 2; word-break: break-all; }

.content { flex: 1; min-width: 0; }

/* ---------------- 列表页 ---------------- */
.cate-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.cate-tabs a {
    padding: 0 22px; height: 44px; line-height: 44px;
    font-size: 14px; color: var(--text-2); border: 1px solid var(--line);
    border-right: 0; background: #fafafa;
}
.cate-tabs a:last-child { border-right: 1px solid var(--line); }
.cate-tabs a.on, .cate-tabs a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 新闻列表（内页） */
.news-rows .row {
    display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px dashed #e8e8e8;
}
.news-rows .row .pic { width: 210px; flex: 0 0 210px; height: 140px; overflow: hidden; background: #f5f5f5; }
.news-rows .row .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-rows .row:hover .pic img { transform: scale(1.05); }
.news-rows .row .txt { flex: 1; min-width: 0; }
.news-rows .row h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.news-rows .row h3 a:hover { color: var(--red); }
.news-rows .row .desc { font-size: 13px; color: var(--text-2); line-height: 1.9; height: 50px; overflow: hidden; }
.news-rows .row .meta { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.news-rows .row.noimg .pic { display: none; }

/* ---------------- 详情页 ---------------- */
.detail-hd { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.detail-hd h1 { font-size: 24px; font-weight: 700; color: #222; line-height: 1.5; }
.detail-hd .meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.detail-hd .meta span { margin-right: 22px; }

.article { font-size: 15px; line-height: 2.1; color: #333; }
.article p { margin-bottom: 14px; }
.article img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.article strong { color: #111; }
.article table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.article td, .article th { border: 1px solid #e0e0e0; padding: 8px 10px; font-size: 14px; }

.gallery { margin-bottom: 26px; text-align: center; }
.gallery .big { border: 1px solid var(--line); padding: 20px; }
.gallery .big img { max-height: 420px; width: auto; margin: 0 auto; }
.gallery .thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; justify-content: center; }
.gallery .thumbs img { width: 78px; height: 78px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }

.prop { border: 1px solid var(--line); margin: 24px 0; }
.prop .row { display: flex; border-bottom: 1px solid #eee; }
.prop .row:last-child { border-bottom: 0; }
.prop .row .k { width: 140px; background: #fafafa; padding: 12px 16px; font-size: 14px; color: var(--text-2); }
.prop .row .v { flex: 1; padding: 12px 16px; font-size: 14px; }

.pager-link { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--text-2); }
.pager-link p { margin-bottom: 8px; }
.pager-link a:hover { color: var(--red); }

/* ---------------- 分页 ---------------- */
.pages-nav { margin-top: 40px; text-align: center; }
.pages-nav a, .pages-nav span {
    display: inline-block; min-width: 36px; height: 36px; line-height: 34px;
    padding: 0 12px; margin: 0 3px 6px; font-size: 13px;
    border: 1px solid var(--line); color: var(--text-2); background: #fff;
}
.pages-nav a:hover { border-color: var(--red); color: var(--red); }
.pages-nav .page-num-current { background: var(--red); border-color: var(--red); color: #fff; }
.pages-nav .page-numbar a { margin: 0 2px; }

/* ---------------- 留言 ---------------- */
.msg-form { max-width: 760px; margin: 0 auto; }
.msg-form .fld { margin-bottom: 18px; }
.msg-form label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.msg-form input[type=text], .msg-form textarea {
    width: 100%; border: 1px solid #ddd; padding: 10px 14px; font-size: 14px; color: var(--text);
}
.msg-form input[type=text] { height: 42px; }
.msg-form textarea { height: 140px; resize: vertical; }
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--red); }
.msg-form .code-row { display: flex; gap: 12px; }
.msg-form .code-row input { flex: 1; }
.msg-form .code-row img { height: 42px; cursor: pointer; border: 1px solid #ddd; }
.msg-form .submit {
    display: inline-block; height: 44px; padding: 0 46px; border: 0; cursor: pointer;
    background: var(--red); color: #fff; font-size: 15px;
}
.msg-form .submit:hover { background: var(--red-dark); }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--foot); color: #b9b9b9; margin-top: 0; }
.footer .cols { display: flex; padding: 50px 0 40px; }
.footer .col { flex: 1; padding-right: 30px; }
.footer .col:first-child { flex: 0 0 200px; }
.footer .col h3 { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer .col li { font-size: 13px; line-height: 2.3; }
.footer .col li a { color: #b9b9b9; }
.footer .col li a:hover { color: #fff; }
.footer .col p { font-size: 13px; line-height: 2.3; }
.footer .copyright {
    border-top: 1px solid #4a4a4a; background: var(--foot-2);
    text-align: center; font-size: 13px; color: #8f8f8f; padding: 16px 0;
}
.footer .copyright a { color: #8f8f8f; }
.footer .copyright a:hover { color: #fff; }

/* ---------------- 返回顶部 ---------------- */
.to-top {
    position: fixed; right: 24px; bottom: 60px; width: 46px; height: 46px;
    background: rgba(0, 0, 0, .35); color: #fff; text-align: center; line-height: 46px;
    font-size: 20px; cursor: pointer; display: none; z-index: 90; border-radius: 2px;
}
.to-top:hover { background: var(--red); }

/* ---------------- 搜索页 ---------------- */
.search-tip { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.search-tip b { color: var(--red); }

/* ================= 自适应 ================= */
@media screen and (max-width: 1240px) {
    .wrap { width: auto; margin: 0 20px; }
}

@media screen and (max-width: 992px) {
    .header .wrap { height: auto; padding: 12px 0; flex-wrap: nowrap; gap: 10px; }
    .header .logo img { height: 38px; }
    .header .logo a { max-width: 55vw; }
    .head-tel { font-size: 11px; white-space: normal; line-height: 1.5; }
    .head-tel .en { display: none; }
    .head-tel .sep { display: none; }
    .head-tel strong { font-weight: 400; }
    .search-box { display: none; }
    .head-right { text-align: right; }
    .nav { border-top: 3px solid var(--red); }
    .nav .wrap { display: block; position: relative; min-height: 48px; }
    .nav.open .wrap { min-height: 0; }
    .nav > .wrap > ul { display: block; }
    .nav li > a { height: 46px; line-height: 46px; padding: 0 16px; font-size: 15px; border-right: 0; border-bottom: 1px solid #f2f2f2; }
    .nav .sub { position: static; display: block; box-shadow: none; border-top: 0; padding-left: 16px; }
    .nav .sub a { height: 38px; line-height: 38px; }
    .nav-toggle {
        display: block; position: absolute; right: 4px; top: 11px;
        width: 28px; height: 26px; cursor: pointer;
    }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        display: block; height: 2px; background: #333; content: "";
    }
    .nav-toggle span { position: relative; top: 12px; }
    .nav-toggle span::before { position: absolute; top: -8px; width: 28px; }
    .nav-toggle span::after { position: absolute; top: 8px; width: 28px; }
    .nav > .wrap > ul { display: none; padding-bottom: 6px; }
    .nav.open > .wrap > ul { display: block; }

    .banner-home, .banner { height: 180px; }
    .banner h1 { font-size: 20px; line-height: 1.5; }
    .banner p { font-size: 12px; max-width: 100%; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

    section.block { padding: 32px 0; }
    .plist, .plist.col3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
    .plist .item, .plist.col3 .item { width: auto; padding: 0; margin: 0; }
    .pcard .pic, .plist.col3 .pcard .pic { height: 170px; padding: 14px; }
    .pcard .txt { padding: 10px 12px; }
    .pcard .txt h3 { font-size: 13px; height: 42px; }
    .nlist { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; }
    .nlist .item { width: auto; padding: 0; }
    .ncard .pic { height: 180px; }
    .header .head-right { overflow: hidden; }
    .banner h1 { word-break: break-word; }
    .sec-title h2 { font-size: 18px; }
    .sec-title { margin-bottom: 18px; padding-bottom: 10px; }

    .about-block .wrap { display: block; padding: 36px 0; }
    .about-block .txt { width: 100%; padding-right: 0; }
    .about-block .pic { width: 100%; margin-top: 24px; }

    .main .wrap { display: block; }
    .side { width: 100%; flex: none; margin: 0 0 24px; }
    .side .side-bd { display: flex; flex-wrap: wrap; }
    .side .side-bd li { width: 50%; border-right: 1px solid #f0f0f0; }
    .side-contact { display: none; }

    .news-rows .row { display: block; }
    .news-rows .row .pic { width: 100%; height: 190px; margin-bottom: 12px; }

    .footer .cols { display: block; padding: 30px 0 10px; }
    .footer .col { padding: 0 0 20px; }
    .to-top { bottom: 24px; right: 16px; }
}
