/* ============================================================
   百净环保 · 默认模板（环保绿主题）
   响应式断点：1024 / 768 / 520
   ============================================================ */
:root {
  --pri: #0a8f4e;
  --pri2: #06693a;
  --pri-l: #e6f4ec;
  --green: var(--pri);
  --green-d: var(--pri2);
  --green-dd: #054a29;
  --green-l: var(--pri-l);
  --green-l2: #cfe9db;
  --green-hi: #7ee2b1;
  --ink: #17251d;
  --ink-2: #4d5f55;
  --ink-3: #8a998f;
  --bg: #ffffff;
  --bg-gray: #f4f8f5;
  --line: #e5ece7;
  --footer-bg: #0c1f16;
  --sh-c: 6, 105, 58;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(var(--sh-c), .08);
  --shadow-h: 0 16px 40px rgba(var(--sh-c), .16);
  --tr: all .3s cubic-bezier(.4, 0, .2, 1);
}
/* ---- 前台主题配色（后台「站点配置-前台外观」切换） ---- */
html[data-theme="blue"]    { --green:#2563eb; --green-d:#1d4ed8; --green-dd:#1e3a8a; --green-l:#e8effd; --green-l2:#c8d9f8; --green-hi:#93c5fd; --bg-gray:#f3f7fc; --line:#e2e9f2; --footer-bg:#0c1428; --sh-c:29,78,216; }
html[data-theme="purple"]  { --green:#7c3aed; --green-d:#6d28d9; --green-dd:#4c1d95; --green-l:#f2ecfd; --green-l2:#ddd0f8; --green-hi:#c4b5fd; --bg-gray:#f7f5fb; --line:#eae5f2; --footer-bg:#170e26; --sh-c:109,40,217; }
html[data-theme="orange"]  { --green:#ea580c; --green-d:#c2410c; --green-dd:#7c2d12; --green-l:#fdf0e6; --green-l2:#f8d9c2; --green-hi:#fdba74; --bg-gray:#fbf7f3; --line:#f2e9e2; --footer-bg:#26120a; --sh-c:194,65,12; }
html[data-theme="teal"]    { --green:#0d9488; --green-d:#0f766e; --green-dd:#134e4a; --green-l:#e5f5f3; --green-l2:#c4e8e3; --green-hi:#5eead4; --bg-gray:#f3f8f7; --line:#e2ecea; --footer-bg:#08211f; --sh-c:15,118,110; }
html[data-theme="crimson"] { --green:#dc2626; --green-d:#b91c1c; --green-dd:#7f1d1d; --green-l:#fdeaea; --green-l2:#f8caca; --green-hi:#fca5a5; --bg-gray:#fbf5f5; --line:#f2e5e5; --footer-bg:#260d0d; --sh-c:185,28,28; }
html[data-theme="wine"]    { --green:#9f1239; --green-d:#881337; --green-dd:#4c0519; --green-l:#fdeef2; --green-l2:#f5ccd8; --green-hi:#fda4af; --bg-gray:#fbf5f6; --line:#f0e2e5; --footer-bg:#26060f; --sh-c:136,19,55; }
html[data-theme="navy"]   { --green:#0e3a65; --green-d:#0b2d50; --green-dd:#072038; --green-l:#e7eef6; --green-l2:#cad4dd; --green-hi:#6b96c4; --bg-gray:#f2f5f9; --line:#e1e8f0; --footer-bg:#061827; --sh-c:14,58,101; }
html[data-theme="rose"]    { --green:#e11d48; --green-d:#be123c; --green-dd:#6b0828; --green-l:#fdecef; --green-l2:#f8cdd5; --green-hi:#fda4af; --bg-gray:#fbf5f6; --line:#f2e3e6; --footer-bg:#270911; --sh-c:190,18,60; }
html[data-theme="slate"]   { --green:#475569; --green-d:#334155; --green-dd:#1e293b; --green-l:#eef1f5; --green-l2:#d5dbe3; --green-hi:#94a3b8; --bg-gray:#f6f7f9; --line:#e3e6ea; --footer-bg:#10151c; --sh-c:51,65,85; }
/* 主题切换时同步修复按钮/渐变背景 */
html[data-theme] .btn { background: var(--green); border-color: var(--green); }
html[data-theme] .btn:hover { background: var(--green-d); border-color: var(--green-d); }
html[data-theme] .btn.ghost { background: transparent; color: var(--green); }
html[data-theme] .btn.ghost:hover { background: var(--green); color: #fff; }
/* hero/banner 内按钮：白底深主题色 / 深主题底白字，保证在任何banner图上清晰 */
html[data-theme] .btn.light { background: #fff; color: var(--green-d); border-color: #fff; }
html[data-theme] .btn.light:hover { background: #f0f7f2; color: var(--green-dd); }
html[data-theme] .btn.ghost-l { background: var(--green-d); color: #fff; border: 2px solid #fff; }
html[data-theme] .btn.ghost-l:hover { background: var(--green-dd); border-color: #fff; }
html[data-theme] .cta-band { background: linear-gradient(100deg, var(--green-dd), var(--green)); }
html[data-theme] .hero { background: linear-gradient(135deg, var(--green-dd), var(--green)); }
html[data-theme] .page-hero { background: linear-gradient(120deg, var(--green-dd), var(--green-d)); }
html[data-theme] .about-card { background: linear-gradient(150deg, var(--green-d), var(--green-dd)); }
html[data-theme] .side-contact { background: linear-gradient(150deg, var(--green-d), var(--green-dd)); }
/* side-contact 内按钮不受主题覆盖：保持白底/透明底白字，与绿色背景形成对比 */
html[data-theme] .side-contact .btn { background: #fff; color: var(--green-d); border-color: #fff; }
html[data-theme] .side-contact .btn:hover { background: rgba(255,255,255,.92); }
html[data-theme] .side-contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
html[data-theme] .side-contact .btn.ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--tr); }
ul { list-style: none; }
em { font-style: normal; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------------- 顶部条 ---------------- */
.topbar { background: var(--green-dd); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; flex-wrap: wrap; }
.tb-right { display: flex; gap: 18px; align-items: center; }
.tb-item .ico { font-style: normal; color: var(--green-hi); }
.topbar a:hover { color: #fff; }

/* ---------------- 导航 ---------------- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: var(--tr); }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(var(--sh-c),.1); }
/* 导航栏底部主题色渐变装饰线（所有页面统一，与主题联动） */
.navbar::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-hi), var(--green)); opacity: 0; transition: opacity .3s; }
.navbar.scrolled::after { opacity: 1; }
/* 首页无Banner时：导航栏显示渐变装饰线作为边界 */
.navbar.no-banner::after { opacity: 1; }
.navbar.no-banner { box-shadow: 0 4px 20px rgba(var(--sh-c),.12); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--green-d)); color: #fff; font-size: 24px; font-weight: 700; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand-text { font-size: 22px; font-weight: 700; color: var(--green-d); letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.2; justify-content: center; }
.brand-text small { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a:hover { color: var(--green); background: var(--green-l); }
.nav a.active { color: var(--green); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-phone { display: flex; flex-direction: column; line-height: 1.25; text-align: left; flex-shrink: 0; }
.nav-phone b { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.nav-phone span { font-size: 19px; font-weight: 700; color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: var(--tr); }
/* 站内搜索 */
.nav-search-btn { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; border-radius: 8px; display: flex; align-items: center; transition: var(--tr); }
.nav-search-btn:hover { color: var(--green); background: var(--green-l); }
.nav-search-bar { max-height: 0; overflow: hidden; background: #fff; border-bottom: 1px solid transparent; transition: max-height .3s ease, border-color .3s; }
.nav-search-bar.open { max-height: 90px; border-color: var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.ns-form { display: flex; gap: 10px; padding: 16px 0; }
.ns-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px; font-size: 14px; outline: none; transition: var(--tr); }
.ns-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,143,78,.08); }
.ns-form button { background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 0 26px; font-size: 14px; cursor: pointer; transition: var(--tr); }
.ns-form button:hover { background: var(--green-d); }

/* ---------------- Hero 轮播 ---------------- */
.hero { position: relative; height: min(560px, 72vh); overflow: hidden; background: linear-gradient(135deg, var(--green-dd), var(--green)); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--sh-c),.72) 20%, rgba(var(--sh-c),.25) 70%); }
.hero-cap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; gap: 18px; }
.hero-cap h2 { font-size: clamp(28px, 4.5vw, 46px); letter-spacing: 2px; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero-cap p { font-size: clamp(15px, 2vw, 19px); opacity: .92; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots i { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--tr); }
.hero-dots i.on { background: #fff; width: 40px; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 26px; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; border: 1px solid var(--green); cursor: pointer; transition: var(--tr); }
.btn:hover { background: var(--green-d); border-color: var(--green-d); transform: translateY(-2px); box-shadow: var(--shadow-h); }
.btn.light { background: #fff; color: var(--green-d); border-color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.btn.light:hover { background: #f0f7f2; color: var(--green-dd); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn.ghost-l { background: var(--green-d); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.btn.ghost-l:hover { background: var(--green-dd); border-color: #fff; }
.btn.block { width: 100%; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 76px 0; }
.sec-gray { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-tag { font-size: 12px; letter-spacing: 4px; color: var(--green); font-weight: 600; }
.sec-title { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; color: var(--ink); }
.sec-head p { color: var(--ink-3); font-size: 14px; }
.sec-more { text-align: center; margin-top: 40px; }

/* ---------------- 关于我们 ---------------- */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about-p { color: var(--ink-2); margin: 14px 0 22px; }
.about-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.about-feats li { background: var(--green-l); border-radius: var(--radius); padding: 14px 10px; text-align: center; transition: var(--tr); }
.about-feats li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-feats b { display: block; color: var(--green-d); font-size: 15px; }
.about-feats span { font-size: 12px; color: var(--ink-3); }
.about-card { background: linear-gradient(150deg, var(--green-d), var(--green-dd)); color: #fff; border-radius: 20px; padding: 34px 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-h); }
.about-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.ac-badge { display: inline-block; background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 14px; }
.about-card p { opacity: .95; margin-bottom: 22px; }
.ac-contact b { display: block; font-size: 13px; opacity: .8; font-weight: 400; }
.ac-contact a { font-size: 26px; font-weight: 700; letter-spacing: 1px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.card-img { height: 190px; background: linear-gradient(135deg, var(--green-l), var(--green-l2)); display: flex; align-items: center; justify-content: center; color: var(--green); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.card-body p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.card-more { font-size: 13px; color: var(--green); font-weight: 600; }

/* ---------------- 新闻列表 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
/* 首页新闻双列（index.php 中 .news-list 不带 .page-list） */
.section .news-list:not(.page-list) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-item { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 1.8vw, 16px) clamp(12px, 2vw, 20px); transition: var(--tr); min-width: 0; }
.news-item:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date { text-align: center; background: var(--green-l); border-radius: 10px; padding: 8px 12px; line-height: 1.3; flex-shrink: 0; }
.news-date b { display: block; font-size: 22px; color: var(--green-d); }
.news-date span { font-size: 12px; color: var(--ink-3); }
.news-thumb { width: clamp(80px, 12vw, 130px); aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background: var(--green-l); flex-shrink: 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb .news-date { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 0; padding: 0; }
.news-thumb .news-date b { font-size: 26px; }
.news-info { flex: 1; min-width: 0; }
.news-info h3 { font-size: 16.5px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item:hover .news-info h3 { color: var(--green-d); }
.news-info p { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; display: inline-flex; gap: 8px; }
.news-meta i { font-style: normal; opacity: .5; }
.news-arrow { color: var(--green); font-size: 18px; flex-shrink: 0; transition: var(--tr); }
.news-item:hover .news-arrow { transform: translateX(4px); }
.empty-tip { color: var(--ink-3); text-align: center; padding: 30px 0; }

/* ---------------- 筛选/搜索 ---------------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tabs a { padding: 7px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cat-tabs a.active, .cat-tabs a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { border: 0; outline: 0; padding: 9px 18px; width: 210px; font-size: 14px; }
.search-form button { border: 0; background: var(--green); color: #fff; padding: 0 20px; cursor: pointer; transition: var(--tr); }
.search-form button:hover { background: var(--green-d); }

/* ---------------- 页头 ---------------- */
.page-hero { background: linear-gradient(120deg, var(--green-dd), var(--green-d)); color: #fff; padding: 54px 0; }
.page-hero.slim { padding: 40px 0; }
.page-hero h1 { font-size: clamp(22px, 3vw, 30px); letter-spacing: 1px; }
.crumb { margin-top: 8px; font-size: 13px; opacity: .85; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb i { font-style: normal; opacity: .5; }
.crumb a:hover { color: var(--green-hi); }

/* ---------------- 详情页 ---------------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; min-width: 0; }
.detail-wrap > * { min-width: 0; }  /* 关键：允许 grid item 缩小到比内容 intrinsic min-width 更小 */
.detail-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; min-width: 0; overflow: hidden; }
.detail-meta { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 22px; }
.detail-content { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
.detail-content h2, .detail-content h3 { color: var(--ink); margin: 26px 0 12px; font-size: 19px; }
.detail-content p { margin-bottom: 14px; }
.detail-content ul, .detail-content ol { margin: 0 0 14px 22px; list-style: disc; }
.detail-content li { margin-bottom: 6px; }
.detail-content img { border-radius: 10px; margin: 10px 0; max-width: 100%; height: auto; }
.detail-content video, .detail-content iframe { max-width: 100%; height: auto; }
.detail-content a { color: var(--green); text-decoration: underline; }
.detail-content table { max-width: 100%; overflow-x: auto; display: block; border-collapse: collapse; }
.detail-content pre { max-width: 100%; overflow-x: auto; background: var(--bg-gray); border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-family: Consolas, Monaco, monospace; font-size: 13.5px; line-height: 1.6; }
.detail-content code { max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
.detail-content blockquote { border-left: 4px solid var(--green); padding: 12px 18px; margin: 14px 0; background: var(--green-l); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.detail-content figure { max-width: 100%; margin: 14px 0; }
.detail-content figcaption { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.detail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }
.dn-item { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; padding: 12px 16px; background: var(--bg-gray); border-radius: 10px; min-width: 0; }
.dn-item b { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.dn-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
a.dn-item:hover { background: var(--green-l); }
a.dn-item:hover span { color: var(--green-d); }
.dn-item.right { text-align: right; }
.dn-item.none { opacity: .6; }
.detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; min-width: 0; overflow: hidden; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; overflow: hidden; }
.side-card h3 { font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { font-size: 14px; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--green-d); }
.side-contact { background: linear-gradient(150deg, var(--green-d), var(--green-dd)); color: #fff; border: 0; }
.side-contact h3 { color: #fff; border-color: rgba(255,255,255,.2); }
.side-phone { display: block; font-size: 24px; font-weight: 700; margin: 6px 0; }
.side-contact p { opacity: .85; font-size: 13px; margin-bottom: 16px; }
.side-contact .btn { background: #fff; color: var(--green-d); border-color: #fff; margin-bottom: 10px; }
.side-contact .btn:last-child { margin-bottom: 0; }
.side-contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.side-contact .btn:hover { opacity: .9; }

/* 联系我们页联系卡片 */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.cc-item { background: var(--bg-gray); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.cc-item b { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.cc-item a, .cc-item span { color: var(--green-d); font-weight: 600; }

/* 关于我们丰富内容样式 */
.detail-content .about-highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 24px 0; }
.detail-content .ah-item { background: var(--green-l); border-radius: 12px; padding: 20px; border-top: 3px solid var(--green); }
.detail-content .ah-item h3 { margin: 0 0 8px; color: var(--green-d); font-size: 16px; }
.detail-content .ah-item p { margin: 0; font-size: 14px; color: var(--ink-2); }
.detail-content .about-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.detail-content .about-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); }
.detail-content .about-steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 36px; height: 36px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.detail-content .about-steps li b { color: var(--ink); }
.detail-content .about-cert { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.detail-content .about-cert li { padding: 10px 16px; background: var(--bg-gray); border-radius: 8px; border-left: 3px solid var(--green); font-size: 14px; color: var(--ink-2); }
.detail-content .about-slogan { text-align: center; font-size: 20px; font-weight: 700; color: var(--green-d); padding: 22px; margin-top: 20px; background: linear-gradient(135deg, var(--green-l), var(--green-l2)); border-radius: 14px; }

/* 联系我们页丰富内容样式 */
.detail-content .contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 24px 0; }
.detail-content .contact-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; text-align: center; transition: var(--tr); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.detail-content .contact-item:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(var(--sh-c),.1); transform: translateY(-2px); }
.detail-content .ci-icon { font-size: 32px; margin-bottom: 10px; }
.detail-content .ci-icon:empty, .detail-content .ci-icon:has(> br:only-child) { display: none; }
.detail-content .contact-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
.detail-content .ci-value { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--green-d); }
.detail-content .ci-value a { color: var(--green-d); text-decoration: none; }
.detail-content .ci-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.detail-content .ci-note:empty { display: none; }

/* ---------------- 留言页 ---------------- */
.msg-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.msg-list-col { min-width: 0; }
.sec-head.left { text-align: left; margin-bottom: 20px; }
.msg-tip { color: var(--ink-2); margin: 10px 0 22px; }
.msg-contacts li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.msg-contacts b { color: var(--ink-3); font-weight: 400; flex-shrink: 0; width: 72px; }
.msg-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.msg-form-title { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.msg-form-sub { font-size: 13px; color: var(--ink-3); line-height: 1.7; margin-bottom: 18px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.form-row em { color: #d54941; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none; transition: var(--tr); resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--sh-c),.12); }
.hp-field { position: absolute; left: -9999px; height: 0; opacity: 0; }
.msg-public { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 2px 0 16px; cursor: pointer; user-select: none; }
.msg-public input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--green); flex-shrink: 0; }
.form-msg { margin-top: 12px; text-align: center; font-size: 13.5px; min-height: 20px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #d54941; }
/* 客户留言墙 */
.msg-wall.v2 { display: flex; flex-direction: column; gap: 16px; }
.msg-card.v2 { padding: 18px 22px; }
.mc-user { display: inline-flex; align-items: center; gap: 10px; }
.mc-phone { font-style: normal; font-size: 12.5px; color: var(--ink-3); background: var(--bg-gray); border-radius: 6px; padding: 2px 8px; letter-spacing: .5px; }
.mc-content { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.mc-reply { margin-top: 14px; padding: 14px 16px; background: var(--green-l); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; }
.mc-reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mc-reply-head time { font-size: 12px; color: var(--ink-3); }
.mc-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--green-d), var(--green)); border-radius: 6px; padding: 2px 10px; }
.mc-reply p { font-size: 13.5px; color: var(--ink); line-height: 1.8; }
.msg-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 14px; background: #fff; }
.msg-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.msg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: var(--tr); }
.msg-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.msg-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.msg-card-head b { font-size: 15px; color: var(--green-d); }
.msg-card-head time { font-size: 12px; color: var(--ink-3); }
.msg-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------------- CTA ---------------- */
.cta-band { background: linear-gradient(100deg, var(--green-dd), var(--green)); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 24px; letter-spacing: 1px; }
.cta-inner p { opacity: .85; font-size: 14px; }
.cta-phone { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: 1px; }
.cta-phone:hover { opacity: .85; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.72); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr 0.8fr; gap: 34px; padding: 54px 0 34px; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.f-col a, .f-col p { display: block; margin-bottom: 9px; opacity: .9; }
.f-col a:hover { color: var(--green-hi); opacity: 1; }
.brand-text.light { color: #fff; font-size: 17px; margin-bottom: 12px; }
.f-desc { line-height: 1.8; opacity: .75; }
.f-btn { display: block; text-align: center; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 0; margin-bottom: 10px; }
.f-btn.ghost { border-style: dashed; }
.f-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.f-qrcode { }
.f-qr { width: 100px; height: 100px; border-radius: 10px; background: #fff; padding: 6px; }
.f-links { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12.5px; opacity: .75; line-height: 2; }
.f-links a { display: inline; margin: 0; }
.f-links a:hover { color: var(--green-hi); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12.5px; }
.f-bottom .container { display: flex; justify-content: center; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.f-bottom a:hover { color: var(--green-hi); }
/* 公安备案：支持粘贴的 <img>图标+<a>链接 代码，强制图标与文字同一行 */
.f-bottom .ga-beian { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.4; }
.f-bottom .ga-beian a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: inherit; }
.f-bottom .ga-beian a:hover { color: var(--green-hi); }
.f-bottom .ga-beian img { display: inline-block !important; width: 14px; height: 14px; margin: 0; vertical-align: middle; object-fit: contain; }

/* ---------------- 浮动侧栏 ---------------- */
.float-side { position: fixed; right: 18px; bottom: 80px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.fs-item { width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: var(--shadow-h); opacity: 0; transform: translateY(10px); transition: var(--tr); }
.fs-item.show { opacity: 1; transform: none; }
.fs-item:hover { background: var(--green-d); transform: translateY(-3px); }
#backTop { background: var(--ink-2); display: none; }
#backTop.show { display: flex; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2); }
.pagination span.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pagination span.disabled { opacity: .45; }
.pagination a:hover { border-color: var(--green); color: var(--green); }

/* ---------------- 滚动动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .f-qrcode { grid-column: 1 / -1; text-align: center; }
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .nav-search-btn { padding: 6px; }
}
/* 中等窗口：首页新闻提前切单列，避免 PC 缩小时双列溢出 */
@media (max-width: 960px) {
  .section .news-list:not(.page-list) { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar .tb-item:first-child { display: none; }
  .nav { display: none; position: fixed; top: 0; right: -280px; width: 260px; height: 100dvh; max-height: 100vh; background: #fff; flex-direction: column; padding: 90px 24px 24px; gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .35s cubic-bezier(.4,0,.2,1); z-index: 120; margin-left: 0; }
  .nav.open { display: flex; right: 0; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; margin-left: auto; flex-shrink: 0; position: relative; z-index: 130; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-phone { display: none; }
  .nav-search-btn { display: none; }
  .nav-inner { height: 62px; gap: 12px; }
  .brand-text { font-size: 18px; letter-spacing: 0; }
  .brand-text small { font-size: 11px; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .brand { gap: 8px; min-width: 0; }
  .split, .msg-wrap { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 52px 0; }
  .hero { height: 420px; }
  .about-feats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-feats b { font-size: 13px; }
  /* 首页新闻改为单列（与通用列表页保持一致） */
  .section .news-list:not(.page-list) { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .f-qrcode { grid-column: auto; text-align: left; }
  .news-list { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; padding: 14px 16px; }
  .news-thumb { width: 100%; height: 150px; }
  .news-info h3 { white-space: normal; overflow: hidden; text-overflow: none; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; }
  .news-arrow { display: none; }
  .detail-main { padding: 22px 18px; }
  .detail-nav { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .msg-form { padding: 20px; position: static; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-form input { width: 100%; flex: 1; }
  .hero { height: 360px; }
  .float-side { right: 12px; bottom: 60px; }
}
