@charset "utf-8";
/* ============================================================
   东莞市新鑫造纸机械有限公司 · 官网样式
   主色：品牌蓝 #213483 / 顶栏 #343742 / 页脚 #2c2c2c
   ============================================================ */

:root {
  --blue: #213483;
  --blue-dark: #182a6b;
  --blue-deep: #101c4c;
  --blue-light: #eef2fc;
  --red: #a93e3e;
  --dark: #343742;
  --dark2: #2c2c2c;
  --text: #333;
  --text-2: #555;
  --muted: #888;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(20, 30, 70, .08);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--white);
  color: var(--text);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, dl, dd { margin: 0; }
b, strong { font-weight: 700; }
em { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.clear { clear: both; }
.clearfix::after { content: ""; display: block; clear: both; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------- 顶部条 ---------- */
.header-top { background: var(--dark); color: #fff; font-size: 13px; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.header-top .welcome { color: #d9dbe3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.header-top .top-links { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.header-top .top-links a { color: #fff; }
.header-top .top-links a:hover { color: #9fb4ff; }
.header-top .hotline { font-weight: 700; letter-spacing: .5px; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; position: relative; z-index: 60; box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 124px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; height: 124px; }
.logo img { height: 100%; width: auto; display: block; }
.logo .logo-text { line-height: 1.25; }
.logo .logo-text strong { display: block; font-size: 22px; color: var(--blue); letter-spacing: 1px; }
.logo .logo-text span { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.main-nav { flex: 1 1 auto; }
.main-nav > ul { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 0 15px; line-height: 124px; font-size: 16px; color: #222; white-space: nowrap;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 28px; height: 3px;
  background: var(--blue); transform: scaleX(0); transition: transform .25s;
}
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: var(--blue); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.active > a::after { transform: scaleX(1); }

.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; padding: 8px 0;
  box-shadow: 0 8px 24px rgba(10, 20, 60, .14); border-top: 2px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s; z-index: 80;
}
.sub-menu.cols { width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.main-nav li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 7px 18px; font-size: 14px; color: #444; }
.sub-menu a:hover { background: var(--blue-light); color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 0; background: var(--blue); border-radius: 3px;
  color: #fff; font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------- 搜索带 ---------- */
.search-band { background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.search-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.search-band .kw { font-size: 14px; color: #e6ebff; }
.search-band .kw b { color: #fff; font-weight: 400; margin-right: 10px; }
.search-band .kw a { margin-right: 14px; color: #dfe6ff; }
.search-band .kw a:hover { color: #fff; text-decoration: underline; }
.search-form { display: flex; align-items: center; background: #fff; border-radius: 3px; overflow: hidden; width: 300px; }
.search-form input { flex: 1; border: 0; height: 38px; padding: 0 14px; font-size: 14px; outline: none; color: var(--text); }
.search-form button { width: 62px; height: 38px; border: 0; background: #ffb400; color: #3b2c00; font-size: 14px; cursor: pointer; }
.search-form button:hover { background: #ffc233; }

/* ---------- 首页轮播 ---------- */
.hero { position: relative; overflow: hidden; background: #101c4c; }
.hero .slides { position: relative; height: 480px; }
.hero .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-position: center center;
  background-size: cover; background-repeat: no-repeat;
}
.hero .slide.on { opacity: 1; }
.hero .slide a { display: block; width: 100%; height: 100%; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; border-radius: 2px;
}
.hero-dots button.on { background: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 54px 0; }
.section.grey { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { font-size: 28px; color: #1b1b1b; font-weight: 700; letter-spacing: 1px; position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--blue); }
.section-head h2 span { display: block; font-size: 12px; color: #a3a8b8; letter-spacing: 2px; font-weight: 400; text-transform: uppercase; margin-top: 4px; }
.section-head .more { font-size: 14px; color: var(--muted); }
.section-head .more:hover { color: var(--blue); }

/* ---------- 合作伙伴 ---------- */
.partners { background: #fff; padding: 34px 0; border-bottom: 1px solid var(--line); }
.partners h3 { text-align: center; font-size: 18px; color: #444; font-weight: 400; letter-spacing: 2px; margin-bottom: 22px; }
.partners ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.partners li { height: 111px; display: flex; align-items: center; justify-content: center; border: 1px solid #c1c1c1; background: #fff; }
.partners li:hover { border-color: var(--blue); }
.partners img { max-height: 95px; max-width: 100%; width: auto; object-fit: contain; transition: .25s; }
.partners li:hover img { opacity: .85; }
.partner-text { font-size: 16px; color: #9aa0ad; letter-spacing: 2px; }

/* ---------- 产品区 ---------- */
.product-wrap { display: flex; gap: 26px; align-items: flex-start; }
.product-side { flex: 0 0 236px; border: 1px solid var(--line); background: #fff; }
.product-side .side-head {
  background: var(--blue); color: #fff; padding: 16px 18px; font-size: 18px; font-weight: 700; letter-spacing: 1px;
}
.product-side .side-head span { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2px; opacity: .75; margin-top: 2px; }
.product-side ul li { border-bottom: 1px dashed #eceff5; }
.product-side ul li:last-child { border-bottom: 0; }
.product-side ul li a { display: block; padding: 10px 18px; font-size: 14px; color: #444; position: relative; padding-left: 28px; }
.product-side ul li a::before {
  content: "›"; position: absolute; left: 14px; color: #b9c0d4; font-size: 16px; line-height: 1.4;
}
.product-side ul li a:hover, .product-side ul li.on a { background: var(--blue-light); color: var(--blue); }
.product-side .side-contact { background: var(--blue-light); padding: 16px 18px; }
.product-side .side-contact span { display: block; font-size: 12px; color: #7b8194; }
.product-side .side-contact p { font-size: 20px; font-weight: 700; color: var(--red); letter-spacing: .5px; }

.product-main { flex: 1 1 auto; min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { border: 1px solid var(--line); background: #fff; padding: 14px; transition: .25s; }
.product-card:hover { box-shadow: var(--shadow); border-color: #c9d3ee; transform: translateY(-2px); }
.product-card .thumb { display: flex; align-items: center; justify-content: center; height: 178px; overflow: hidden; }
.product-card .thumb img { max-height: 100%; max-width: 100%; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card h4 { margin-top: 12px; font-size: 15px; font-weight: 400; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-card h4 a { color: #333; }
.product-card:hover h4 a { color: var(--blue); }
.product-card p { margin-top: 6px; font-size: 12px; color: #999; text-align: center; height: 20px; overflow: hidden; }

/* ---------- 关于 / 优势 / 公司 ---------- */
.about-banner img, .full-img { display: block; height: auto; }
.about-banner img { width: 100%; }
.advantages .full-img { max-width: 1200px; width: 100%; margin: 0 auto 34px; }
.advantages { background: #f4f5f7; padding-bottom: 46px; text-align: center; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.adv-item { text-align: center; padding: 0 6px; }
.adv-item .num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 16px; margin-bottom: 12px;
}
.adv-item p { font-size: 14px; color: #333; line-height: 1.9; }
.adv-item h4 { font-size: 16px; margin-bottom: 8px; color: #1b1b1b; }

.company-band {
  background: url("../../uploads/20190612/2fee4fad20deff736f4fe555bcbf637e.jpg") center center / cover no-repeat;
  padding: 60px 0;
}
.company-band .inner { display: flex; justify-content: flex-end; }
.company-band .box { width: 58%; max-width: 640px; background: rgba(255, 255, 255, .9); padding: 30px 34px; border-left: 4px solid var(--blue); }
.company-band h3 { font-size: 22px; color: #1b1b1b; margin-bottom: 12px; }
.company-band p { font-size: 14px; line-height: 2; color: #333; }
.company-band .tel { margin-top: 16px; font-size: 24px; color: var(--red); font-weight: 700; }
.company-band .btn {
  display: inline-block; margin-top: 18px; padding: 9px 26px; background: var(--blue); color: #fff; border-radius: 2px;
}
.company-band .btn:hover { background: var(--blue-dark); color: #fff; }

/* ---------- 新闻区 ---------- */
.news-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-box { border: 1px solid var(--line); background: #fff; }
.news-box .box-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.news-box .box-head h3 { font-size: 18px; font-weight: 700; color: #1b1b1b; }
.news-box .box-head a { font-size: 13px; color: #999; }
.news-box .box-head a:hover { color: var(--blue); }
.news-list { padding: 8px 18px 14px; }
.news-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eee; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: #444; }
.news-list a:hover { color: var(--blue); }
.news-list span { flex: 0 0 auto; font-size: 12px; color: #aaa; }

.featured-news { display: block; padding: 14px 18px; border-bottom: 1px dashed #eee; }
.featured-news .fn-body { display: flex; gap: 14px; }
.featured-news img { width: 118px; height: 84px; object-fit: cover; flex: 0 0 auto; }
.featured-news h4 { font-size: 15px; color: #222; margin-bottom: 6px; }
.featured-news p { font-size: 12px; color: #8b8b8b; line-height: 1.7; max-height: 42px; overflow: hidden; }

.faq-list { padding: 12px 18px 16px; }
.faq-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.faq-list h5 { font-size: 14px; font-weight: 400; color: #333; margin-bottom: 4px; }
.faq-list p { font-size: 12px; color: #999; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 友情链接 / 页脚 ---------- */
.flink { border: 1px solid var(--line); margin: 34px auto; padding: 14px 18px; font-size: 13px; color: #777; }
.flink a { margin: 0 10px; color: #666; }
.flink a:hover { color: var(--blue); }

.site-footer { background: var(--dark2); color: #c7c9cd; padding: 44px 0 0; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: 36px; padding-bottom: 34px; }
.site-footer h3 { font-size: 17px; color: #fff; margin-bottom: 16px; font-weight: 700; letter-spacing: 1px; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 2; color: #b3b6bb; }
.site-footer a { color: #b3b6bb; }
.site-footer a:hover { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer-nav li a::before { content: "› "; color: #6c7078; }
.footer-qr { text-align: center; }
.footer-qr img { width: 112px; height: 112px; background: #fff; padding: 4px; display: inline-block; }
.footer-qr span { display: block; font-size: 12px; color: #8f939a; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid #3a3b3e; padding: 16px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 13px; color: #8b8e95; flex-wrap: wrap;
}
.footer-bottom a { color: #8b8e95; }
.footer-bottom a:hover { color: #ddd; }

/* ---------- 浮动工具条 ---------- */
.float-bar { position: fixed; right: 16px; bottom: 100px; z-index: 90; width: 58px; display: flex; flex-direction: column; gap: 4px; }
.float-bar a, .float-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; border: 0;
  background: rgba(33, 52, 131, .92); color: #fff; font-size: 12px; cursor: pointer; border-radius: 3px; position: relative;
  line-height: 1.2; text-align: center; padding: 4px;
}
.float-bar a:hover, .float-bar button:hover { background: var(--blue); color: #fff; }
.float-bar .icon { font-size: 18px; line-height: 1; margin-bottom: 2px; }
.float-bar .qr-pop {
  position: absolute; right: 64px; top: 0; background: #fff; border: 1px solid var(--line); padding: 8px;
  display: none; box-shadow: var(--shadow);
}
.float-bar .qr-pop img { width: 110px; height: 110px; display: block; }
.float-bar .qr:hover .qr-pop { display: block; }

/* ---------- 内部页面 ---------- */
.page-banner {
  height: 400px; background-position: center center; background-size: cover; background-repeat: no-repeat;
  background-color: var(--blue-dark); display: flex; align-items: center;
}
.page-banner .inner { width: 100%; }
.page-banner h1 { color: #fff; font-size: 30px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.page-banner p { color: #d5dcff; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }

.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; color: #888; }
.crumbs .container { padding: 12px 16px; }
.crumbs a { color: #666; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { margin: 0 6px; color: #bbb; }

.layout-main { padding: 34px 0 54px; }
.layout-flex { display: flex; gap: 28px; align-items: flex-start; }
.layout-side { flex: 0 0 250px; }
.layout-body { flex: 1 1 auto; min-width: 0; }

.panel { background: #fff; border: 1px solid var(--line); }
.panel-head { border-left: 4px solid var(--blue); padding: 10px 16px; background: #fafbfd; }
.panel-head h2 { font-size: 17px; font-weight: 700; color: #1b1b1b; }
.panel-body { padding: 22px; }

.article-content { font-size: 15px; line-height: 2; color: #333; word-break: break-word; }
.article-content p { margin-bottom: 14px; }
.article-content img { max-width: 100%; height: auto; }
.article-content h2, .article-content h3 { margin: 20px 0 12px; color: #1b1b1b; }
.article-content table { max-width: 100%; border-collapse: collapse; }
.article-content td, .article-content th { border: 1px solid #ddd; padding: 8px; word-break: break-word; }
.article-content a { color: var(--blue); text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 22px; list-style: disc; margin-bottom: 14px; }
.article-content ol { list-style: decimal; }

/* 分类页 */
.cat-list .cat-item { border-bottom: 1px dashed #eee; }
.cat-list .cat-item:last-child { border-bottom: 0; }
.cat-list .cat-item a { display: block; padding: 11px 16px; font-size: 14px; color: #444; padding-left: 30px; position: relative; }
.cat-list .cat-item a::before { content: "›"; position: absolute; left: 14px; color: #b9c0d4; }
.cat-list .cat-item a:hover, .cat-list .cat-item.on a { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.side-tel { background: var(--blue); color: #fff; padding: 18px; margin-top: 18px; text-align: center; }
.side-tel span { font-size: 13px; opacity: .8; display: block; }
.side-tel p { font-size: 21px; font-weight: 700; margin-top: 4px; }

.page-title { font-size: 22px; color: #1b1b1b; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.page-title span { font-size: 12px; color: #aaa; font-weight: 400; margin-left: 8px; letter-spacing: 1px; text-transform: uppercase; }

/* 产品详情 */
.product-detail { display: flex; gap: 30px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.product-detail .gallery { flex: 0 0 330px; text-align: center; }
.product-detail .gallery .main-img { border: 1px solid #eee; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.product-detail .gallery img { max-width: 100%; max-height: 320px; }
.product-detail .gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.product-detail .gallery .thumbs img { width: 62px; height: 62px; object-fit: cover; border: 1px solid #ddd; cursor: pointer; }
.product-detail .gallery .thumbs img.on { border-color: var(--blue); }
.product-detail .info { flex: 1 1 auto; min-width: 0; }
.product-detail .info h1 { font-size: 24px; color: #1b1b1b; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.product-detail .summary { margin: 16px 0; font-size: 14px; color: #555; line-height: 2; }
.product-detail .summary b { color: var(--blue); }
.product-detail .meta { font-size: 13px; color: #999; }
.product-detail .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 2px; border: 0; cursor: pointer; font-size: 14px; line-height: 1.4; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--blue-light); }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 14px; color: #666; flex-wrap: wrap; }
.prev-next a { color: #555; }
.prev-next a:hover { color: var(--blue); }

.tabs { margin-top: 26px; border: 1px solid var(--line); background: #fff; }
.tabs .tab-head { display: flex; border-bottom: 1px solid var(--line); }
.tabs .tab-head span { padding: 12px 26px; font-size: 15px; color: var(--blue); border-bottom: 2px solid var(--blue); font-weight: 700; }

/* 新闻列表 */
.news-rows { border: 1px solid var(--line); background: #fff; }
.news-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px dashed #eee; }
.news-rows li:last-child { border-bottom: 0; }
.news-rows a { font-size: 15px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-rows a:hover { color: var(--blue); }
.news-rows span { font-size: 13px; color: #aaa; flex: 0 0 auto; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; text-align: center; }
.article-head h1 { font-size: 24px; color: #1b1b1b; line-height: 1.5; }
.article-meta { margin-top: 10px; font-size: 13px; color: #999; display: flex; justify-content: center; gap: 20px; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: block; min-width: 36px; text-align: center; padding: 7px 10px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; color: #555;
}
.pagination li a:hover { border-color: var(--blue); color: var(--blue); }
.pagination li.active span { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 搜索结果 */
.search-summary { background: #fff; border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 20px; font-size: 14px; color: #666; }
.search-summary b { color: var(--red); }

/* 网站地图 */
.map-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.map-box { border: 1px solid var(--line); background: #fff; }
.map-box h3 { padding: 14px 18px; background: #fafbfd; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--blue); border-left: 4px solid var(--blue); }
.map-box .links { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.map-box .links a { font-size: 13px; color: #666; }
.map-box .links a:hover { color: var(--blue); }
.map-box .links a .dt { color: #aaa; margin-left: 4px; font-size: 12px; }

/* 404 */
.notfound { text-align: center; padding: 70px 20px; }
.notfound .code { font-size: 90px; color: var(--blue); font-weight: 700; line-height: 1; letter-spacing: 4px; }
.notfound h1 { font-size: 22px; margin: 16px 0 8px; color: #333; }
.notfound p { color: #888; margin-bottom: 24px; }

/* 移动端快捷条 */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); }
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; font-size: 12px; color: #444; }
.mobile-bar .icon { font-size: 18px; line-height: 1.1; color: var(--blue); }
.mobile-bar a.on .icon, .mobile-bar a.on { color: var(--blue); }

/* 抽屉 */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 340px; background: #fff; z-index: 120;
  transform: translateX(-102%); transition: transform .3s; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer.on { transform: translateX(0); }
.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 110; opacity: 0; visibility: hidden; transition: .3s; }
.drawer-mask.on { opacity: 1; visibility: visible; }
.drawer-head { background: var(--blue); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.drawer-head strong { font-size: 16px; }
.drawer-head button { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.drawer-nav > li { border-bottom: 1px solid #f0f1f4; }
.drawer-nav > li > a { display: block; padding: 13px 18px; font-size: 15px; color: #333; }
.drawer-nav .sub { display: none; padding: 4px 0 10px; background: #fafbfd; }
.drawer-nav .sub.on { display: block; }
.drawer-nav .sub a { display: block; padding: 8px 18px 8px 34px; font-size: 13px; color: #666; }
.drawer-nav .expand {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0f1f4;
  padding: 13px 18px; font-size: 15px; color: #333; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1220px) {
  .container { max-width: 100%; }
}

@media (max-width: 1080px) {
  .hero .slides { height: 380px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header .container { min-height: 72px; }
  .logo img { height: 58px; }
  .hero .slides { height: 300px; }
  .search-band .container { flex-direction: column; align-items: stretch; padding: 14px 16px; gap: 10px; }
  .search-form { width: 100%; }
  .search-band .kw { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.9; word-break: break-all; }
  .product-wrap, .layout-flex { flex-direction: column; }
  .product-side, .layout-side { flex: none; width: 100%; }
  .product-side ul, .layout-side .cat-list { max-height: 236px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .layout-side .side-tel { display: none; }
  .news-wrap { grid-template-columns: minmax(0, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-band .inner { justify-content: center; }
  .company-band .box { width: 100%; }
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .float-bar { display: none; }
  .mobile-bar { display: flex; padding-bottom: env(safe-area-inset-bottom); }
  body { padding-bottom: 56px; }
  .product-detail { flex-direction: column; padding: 18px; }
  .product-detail .gallery { flex: none; width: 100%; }
  .page-banner { height: 260px; }
  .page-banner h1 { font-size: 22px; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 22px; }
}

@media (max-width: 640px) {
  .header-top .welcome { display: none; }
  .header-top .container { justify-content: center; height: auto; padding: 7px 16px; }
  .header-top .top-links { gap: 12px; flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 4px; }
  .header-top { font-size: 12px; }
  .hero .slides { height: 190px; }
  .logo img { height: 46px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 8px; }
  .product-card .thumb { height: 130px; }
  .product-card h4 { font-size: 13px; }
  .product-card p { display: none; }
  .partners ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners li { height: 66px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-qr { display: none; }
  .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .company-band { padding: 28px 0; }
  .company-band .box { padding: 20px; }
  .company-band .tel { font-size: 20px; }
  .layout-main { padding: 18px 0 34px; }
  .article-content { font-size: 14px; }
  .product-detail .info h1 { font-size: 20px; }
  .news-rows li { padding: 12px 14px; }
  .news-rows a { font-size: 14px; white-space: normal; }
  .footer-bottom { flex-direction: column; align-items: flex-start; font-size: 12px; }
}
