/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --blue: #1c4e80;
    --blue-2: #2f6fa8;
    --orange: #e8622a;
    --bg: #f4f6f8;
    --text: #333;
    --muted: #777;
    --line: #e6eaee;
}
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > footer.footer { margin-top: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.wrap { width: 1100px; max-width: 94%; margin: 0 auto; }

/* ============ 顶部条 ============ */
.topbar { background: #163a5e; color: #cfe0ef; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-hotline b { color: #ffd36b; font-size: 15px; margin-left: 6px; }

/* ============ 头部 / 导航 ============ */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo a { display: flex; align-items: center; line-height: 1.25; }
.logo a.logo-text { flex-direction: column; align-items: flex-start; }
.logo-mark { font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: 2px; }
.logo-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.site-logo { display: block; width: 240px; max-width: 100%; height: auto; object-fit: contain; }
.nav ul { display: flex; }
.nav ul li { position: relative; }
.nav ul li a {
    display: block; padding: 28px 22px; color: var(--text); font-size: 15px; font-weight: 600;
}
.nav ul li a:hover, .nav ul li.active a { color: var(--blue); background: #f0f5fa; }
.nav ul li.active a { border-bottom: 3px solid var(--orange); }
.nav-toggle { display: none; font-size: 26px; background: none; border: none; color: var(--blue); cursor: pointer; }

/* ============ 轮播 ============ */
.banner { background: #fff; padding: 18px 0; }
.slider { position: relative; width: 100%; aspect-ratio: 960 / 380; overflow: hidden; border-radius: 6px; background: #dde5ec; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
/* 整张轮播图（含标题文字）都可点击，避免点了标题区域没反应 */
.slide-link { display: block; width: 100%; height: 100%; }
.slide-caption {
    position: absolute; left: 6%; bottom: 18%; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.slide-caption h2 { font-size: 30px; letter-spacing: 3px; }
.slide-caption p { font-size: 14px; opacity: .9; margin-top: 6px; }
.slider-dots { position: absolute; right: 4%; bottom: 12px; display: flex; gap: 8px; z-index: 3; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.slider-dots span.active { background: var(--orange); }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border: none; border-radius: 50%; background: rgba(0,0,0,.35);
    color: #fff; font-size: 20px; cursor: pointer;
}
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* ============ 首页三栏 ============ */
.home-main { padding: 26px 0 10px; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 2px solid var(--blue);
    font-size: 17px; font-weight: 700; color: var(--blue);
}
.panel-title a { font-size: 12px; font-weight: 400; }
.panel-body { padding: 16px; }
.intro-img { float: left; width: 46%; margin: 0 12px 10px 0; border-radius: 4px; }
.intro-text { color: #444; text-align: justify; }

.news-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list .date { float: right; color: var(--muted); font-size: 12px; margin-left: 10px; }

.contact-box p { padding: 4px 0; display: flex; align-items: baseline; gap: 6px; }
.contact-box .label { color: var(--blue); font-weight: 600; flex: none; width: 4em; }
.contact-box .big-phone { color: var(--orange); font-size: 20px; font-weight: 800; }

/* ============ 首页产品分类区块 ============ */
.home-products { padding: 10px 0 30px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cat-block { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cat-block .panel-title { border-bottom: 2px solid var(--blue-2); }
.prod-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.prod-item { text-align: center; min-width: 0; }
.prod-item .thumb {
    height: 130px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    background: #fff; min-width: 0; position: relative;
}
.prod-item .thumb a {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 8px; box-sizing: border-box;
}
.prod-item .thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; transition: transform .3s; }
.prod-item:hover .thumb img { transform: scale(1.06); }
.prod-item .name { display: block; margin-top: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 无图占位块（产品列表 / 详情图册） */
.noimg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #f4f6f9; color: #aab6c2; font-size: 13px; letter-spacing: 2px;
    border-radius: 4px;
}
.pd-main .noimg, .pd-thumb .noimg { font-size: 12px; letter-spacing: 1px; }

/* ============ 内页标题条 ============ */
.page-banner { background: linear-gradient(120deg, var(--blue), var(--blue-2)); color: #fff; padding: 34px 0; }
.page-banner h1 { font-size: 26px; letter-spacing: 2px; }
.breadcrumb { margin-top: 6px; font-size: 13px; opacity: .85; }
.breadcrumb a { color: #dbe9f5; }

/* ============ 内页布局 ============ */
.page { padding: 26px 0 40px; }
.page-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.side-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.side-panel .side-title { background: var(--blue); color: #fff; padding: 12px 16px; font-weight: 700; }
.side-panel ul li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.side-panel ul li a:hover, .side-panel ul li a.active { background: #f0f5fa; color: var(--blue); border-left: 3px solid var(--orange); }
.side-contact { padding: 16px; }
.side-contact p { font-size: 13px; padding: 4px 0; }

.content-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }

/* 产品网格（列表页） */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid .prod-item { min-width: 0; }
.product-grid .prod-item .thumb { height: 180px; }
.product-grid .name { font-size: 15px; font-weight: 600; margin-top: 10px; }
.product-grid .desc { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 34px; }

/* 新闻列表 */
.news-list-page li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-info h3 { font-size: 16px; }
.news-info .meta { color: var(--muted); font-size: 12px; margin: 6px 0; }
.news-info .summary { color: #555; font-size: 13px; }

/* 详情 */
.detail-title { text-align: center; font-size: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-meta { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 20px; }
.detail-body { text-align: justify; font-size: 15px; margin-top: 16px; line-height: 1.8; }
.detail-body p { margin: 10px 0; }
.detail-body img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 4px; }
.detail-body h3 { font-size: 17px; margin: 18px 0 8px; }
.detail-body h4 { font-size: 15px; margin: 14px 0 6px; }
.detail-body ul, .detail-body ol { margin: 10px 0; padding-left: 24px; }
.detail-body li { margin: 4px 0; }
.detail-body blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--blue-2); background: var(--bg); color: var(--muted); }
.detail-body a { color: var(--blue); }
.detail-body table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.detail-body table th, .detail-body table td { border: 1px solid var(--line); padding: 8px 10px; }
.detail-body hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ============ 产品详情（图册 + 标题 + 简介） ============ */
.pd-gallery { max-width: 620px; margin: 0 auto; }
.pd-main {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 380px; background: #fff;
    border: 1px solid var(--line); border-radius: 6px; padding: 10px; box-sizing: border-box;
}
.pd-main img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.pd-main .noimg { width: 100%; height: 100%; }
.pd-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #5a6b57; font-size: 26px; line-height: 1;
    cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.18); z-index: 2;
}
.pd-arrow:hover { background: #f2f5f0; color: var(--blue); }
.pd-prev { left: -44px; }
.pd-next { right: -44px; }

.pd-thumbs { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.pd-thumb-list { display: flex; gap: 10px; overflow: hidden; }
.pd-thumb {
    width: 74px; height: 74px; flex: none; border: 1px solid var(--line); border-radius: 4px;
    background: #fafbfc; overflow: hidden; cursor: pointer; padding: 5px; box-sizing: border-box;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb.active { border: 2px solid #e23b3b; padding: 4px; }
.pd-thumb-arrow {
    width: 28px; height: 28px; border: none; background: transparent; color: #5a6b57;
    font-size: 22px; line-height: 1; cursor: pointer;
}
.pd-thumb-arrow:hover { color: var(--blue); }

.pd-name { text-align: center; font-size: 22px; color: var(--text); margin: 26px 0 18px; }

.pd-section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: var(--text);
    padding-bottom: 12px; border-bottom: 1px solid #7fc4d6;
}
.pd-list-icon {
    width: 18px; height: 14px; flex: none; position: relative;
}
.pd-list-icon::before, .pd-list-icon::after, .pd-list-icon span {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.pd-list-icon::before { top: 0; }
.pd-list-icon::after { bottom: 0; }
.pd-list-icon span { top: 6px; }

.pd-summary { color: var(--orange); font-size: 14px; margin: 16px 0 4px; }

.pd-pager { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pd-pager p { margin: 8px 0; }
.pd-pager a { color: var(--blue); }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    display: inline-block; min-width: 36px; height: 36px; line-height: 34px; text-align: center;
    border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; background: #fff;
}
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ 联系我们 ============ */
.contact-hero {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    background: linear-gradient(120deg, var(--blue), var(--blue-2));
    color: #fff; border-radius: 8px; padding: 28px 30px; margin-bottom: 22px;
}
.contact-hero h2 { font-size: 22px; letter-spacing: 1px; margin-bottom: 8px; }
.contact-hero p { font-size: 13px; opacity: .92; }
.ch-right { text-align: right; flex: none; }
.ch-label { font-size: 13px; opacity: .9; }
.ch-phone { font-size: 30px; font-weight: 800; color: #ffd36b; letter-spacing: 1px; margin: 4px 0; }
.ch-sub { font-size: 12px; opacity: .9; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.c-card-title {
    font-size: 16px; font-weight: 700; color: var(--blue);
    padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--blue);
}
.c-row { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.c-row:last-child { border-bottom: none; }
.c-label { flex: none; width: 78px; color: var(--muted); }
.c-value { color: var(--text); word-break: break-all; }
.c-strong { color: var(--orange); font-weight: 700; font-size: 16px; }
.c-img { margin-top: 16px; border-radius: 6px; width: 100%; height: 190px; object-fit: cover; }

.contact-note {
    margin-top: 22px; background: #fff7f2; border: 1px solid #f6d9c8; color: #a84a1e;
    border-radius: 8px; padding: 14px 18px; font-size: 13px; line-height: 1.8;
}

.btn {
    display: inline-block; background: var(--blue); color: #fff; border: none; cursor: pointer;
    padding: 11px 30px; border-radius: 4px; font-size: 15px;
}
.btn:hover { background: var(--blue-2); color: #fff; }
.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.flash-success { background: #e8f5ec; color: #2a8a4a; border: 1px solid #c6e9d2; }
.flash-error { background: #fdeceb; color: #c9443c; border: 1px solid #f6cfcc; }

/* 关于页面文字 */
.about-body h3 { color: var(--blue); margin: 18px 0 10px; }
.about-body p { margin: 10px 0; text-align: justify; }

/* ============ 企业荣誉 ============ */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.honor-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 10px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.honor-item:hover { box-shadow: 0 10px 24px rgba(16,42,67,.12); transform: translateY(-2px); border-color: #d6e3f2; }
.honor-thumb { position: relative; width: 100%; padding-top: 133.33%; background: #f7f9fb; border-radius: 4px; overflow: hidden; }
.honor-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.honor-caption { margin-top: 10px; font-size: 13px; line-height: 1.6; text-align: center; color: #41566b; }
.honor-empty { padding: 60px 20px; text-align: center; color: #8a9aa9; font-size: 14px; background: #fff; border: 1px dashed #dbe3ea; border-radius: 8px; }
/* 点击查看大图 */
.honor-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(8,22,36,.88); cursor: zoom-out; }
.honor-lightbox[hidden] { display: none; }
.honor-lightbox img { max-width: 92vw; max-height: 92vh; background: #fff; padding: 6px; border-radius: 4px; box-shadow: 0 18px 60px rgba(0,0,0,.45); }

/* ============ 页脚 ============ */
.footer { background: #163a5e; color: #cfe0ef; margin-top: 30px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 30px; padding: 34px 0; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-col p { font-size: 13px; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; column-gap: 18px; row-gap: 6px; }

/* 统计代码（首页页脚版权行内，紧接着备案号显示，内容来自后台“站点设置 → 统计代码”） */
.site-stat { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #cfe0ef; line-height: 1.6; }
.site-stat img { max-width: 100%; height: auto; vertical-align: middle; }
.site-stat a { color: #cfe0ef; }
.site-stat a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .wrap { width: 94%; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 78px; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.12); }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; }
    .nav ul li a { padding: 14px 20px; }
    .nav-toggle { display: block; }
    .home-grid, .page-layout, .footer-inner, .contact-grid { grid-template-columns: 1fr; }
    .contact-hero { flex-direction: column; align-items: flex-start; }
    .ch-right { text-align: left; }
    .cat-grid, .product-grid { grid-template-columns: 1fr; }
    .prod-list { grid-template-columns: repeat(2, 1fr); }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-main { height: 280px; padding: 8px; }
    .pd-prev { left: -34px; }
    .pd-next { right: -34px; }
    .site-logo { width: 180px !important; max-width: 55vw; height: auto; }
    .slide-caption h2 { font-size: 20px; }
}

@media (max-width: 560px) {
    .honor-grid { grid-template-columns: 1fr; }
}
