/* ============================================================
 * 万信装饰 · 全站样式
 * 风格基调：白底 + 深炭灰 + 中国红 #d7000c（参照尚层装饰官网配色体系）
 * 字体：统一微软雅黑（Windows 原生，笔画实、小字号也清楚）
 *       不再依赖 Google Fonts 在线字体，国内打开更快、不会因加载失败退成宋体
 * ============================================================ */

:root {
  --red: #d7000c;            /* 主强调色（尚层红） */
  --red-rgb: 215, 0, 12;     /* 主色的 RGB，阴影/光晕统一引用，随风格切换 */
  --red-dark: #8e0009;       /* 红·深端（渐变用） */
  --ink: #1d1d1f;            /* 深炭灰（深色段/标题） */
  --ink-2: #2e2e2e;          /* 深灰（正文标题） */
  --gray: #959595;           /* 辅助灰 */
  --gray-light: #ccc;        /* 细线灰 */
  --paper: #ffffff;          /* 纸白 */
  --paper-warm: #f7f5f2;     /* 暖米白（交替段） */
  --serif: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 2px 8px rgba(29, 29, 31, 0.06);
  --shadow-2: 0 8px 24px rgba(29, 29, 31, 0.10);
  --shadow-3: 0 24px 48px rgba(29, 29, 31, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 移动端防横向滑动：手指左右滑不再把页面拉出右侧空白。
   overflow-x: clip 不会产生滚动容器，sticky 导航不受影响；旧浏览器回落 hidden（挂到视口，sticky 同样正常） */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar strong { color: #fff; font-weight: 500; }
.topbar .tb-phone b { color: var(--red); font-family: var(--serif); letter-spacing: 0.02em; }

/* ---------- 主导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-1); }
.header .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 4px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.logo-text { line-height: 1.2; }
.logo-text .cn { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: 0.12em; }
.logo-text .en { font-size: 10px; color: var(--gray); letter-spacing: 0.28em; text-transform: uppercase; }
/* 后台上传的图片标志（左侧图形 + 公司名；页脚深底提亮红标志） */
.logo { gap: 10px; }
.logo-img { width: auto; height: 36px; max-width: 150px; object-fit: contain; border-radius: 4px; flex: none; }
.footer .logo-img { filter: brightness(1.18) saturate(1.05); height: 32px; }
.footer .f-logo { gap: 10px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 18px;
  font-size: 15px; letter-spacing: 0.1em;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- 页面头图（内页 banner） ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 84px;
  background: linear-gradient(135deg, var(--ink) 0%, #35353a 60%, #4a3234 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
/* 铺图时的深色压字层（左深右浅，保证标题可读） */
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,16,20,0.86) 0%, rgba(16,16,20,0.62) 42%, rgba(16,16,20,0.28) 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(var(--red-rgb), 0.35);
  pointer-events: none;
}
.page-hero .ph-kicker {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: 0.4em; color: rgba(255,255,255,0.5);
  text-transform: uppercase; margin-bottom: 16px;
}
.page-hero h1 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: clamp(30px, 4.2vw, 44px); font-weight: 700;
  letter-spacing: 0.06em; line-height: 1.15;
}
.page-hero .ph-line {
  position: relative; z-index: 1;
  width: 56px; height: 3px; background: var(--red); margin-top: 24px;
}
.page-hero .ph-sub { position: relative; z-index: 1; margin-top: 18px; color: rgba(255,255,255,0.62); font-size: 15px; max-width: 640px; }

/* ---------- 通用段落结构 ---------- */
.section { padding: 88px 0; }
.section.warm { background: var(--paper-warm); }
.section.dark { background: var(--ink); color: rgba(255,255,255,0.82); }
.section-head { margin-bottom: 48px; }
.section-head .sh-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.35em; color: var(--red); text-transform: uppercase;
}
.section-head .sh-kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(25px, 3.2vw, 34px); font-weight: 700;
  color: var(--ink); letter-spacing: 0.06em; margin-top: 12px; line-height: 1.25;
}
.section.dark .section-head h2 { color: #fff; }
.section-head p.sh-sub { color: var(--gray); margin-top: 12px; max-width: 640px; }
.section.dark .section-head p.sh-sub { color: rgba(255,255,255,0.55); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; font-size: 15px; letter-spacing: 0.12em;
  border: 1px solid var(--red); cursor: pointer;
  transition: all 0.3s var(--ease);
  background: transparent; color: var(--red); font-family: var(--sans);
}
.btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn.solid { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border-color: transparent; }
.btn.solid:hover { filter: brightness(1.08); box-shadow: 0 10px 24px rgba(var(--red-rgb), 0.32); }
.btn.ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- 首页 Hero（多图轮播） ---------- */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 1;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, rgba(20,20,22,0.78) 0%, rgba(20,20,22,0.45) 55%, rgba(120,20,25,0.25) 100%);
}
.hero .container { position: relative; z-index: 3; color: #fff; }
.hero .h-kicker {
  font-size: 13px; letter-spacing: 0.5em; color: rgba(255,255,255,0.66);
  margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: 0.08em; line-height: 1.18;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .h-sub {
  margin-top: 22px; font-size: 17px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.8); font-weight: 300;
}
.hero .h-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .h-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.3em;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
}
.hero .h-scroll::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: drop 2s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 数字墙 ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 56px; padding-bottom: 56px; gap: 24px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(var(--red-rgb),0.7), transparent);
}
.stat .num {
  font-family: var(--serif); font-size: clamp(36px, 4.6vw, 52px); font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num i { font-style: normal; font-size: 20px; color: var(--red); margin-left: 4px; -webkit-text-fill-color: var(--red); }
.stat .label { margin-top: 10px; font-size: 13px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); }

/* ---------- 四大执行标准卡片 ---------- */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.std-card {
  background: var(--paper); padding: 40px 28px;
  border-top: 2px solid transparent;
  transition: all 0.35s var(--ease);
  position: relative;
}
.std-card:hover { border-top-color: var(--red); box-shadow: var(--shadow-2); transform: translateY(-4px); }
.std-card .idx {
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  color: rgba(29,29,31,0.08); line-height: 1;
  position: absolute; right: 24px; top: 28px;
}
.std-card:hover .idx { color: rgba(var(--red-rgb),0.12); }
.std-card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: 0.08em; }
.std-card h3 span { color: var(--red); margin-right: 8px; font-size: 14px; font-family: var(--sans); letter-spacing: 0.1em; }
.std-card p { margin-top: 14px; font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ---------- 装修细节说明（关于我们页） ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.detail-card {
  background: var(--paper); padding: 32px 32px 28px;
  border-top: 2px solid transparent; position: relative;
  transition: all 0.35s var(--ease);
}
.detail-card:hover { border-top-color: var(--red); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.dc-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--gray-light); }
.dc-num {
  font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.15;
  color: rgba(var(--red-rgb), 0.30); letter-spacing: 0.02em; flex: none;
}
.detail-card:hover .dc-num { color: rgba(var(--red-rgb), 0.5); }
.detail-card h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 0.04em; line-height: 1.55; }
.dc-block { margin-top: 18px; }
.dc-label {
  display: inline-block; font-size: 12px; color: var(--red);
  letter-spacing: 0.16em; margin-bottom: 9px;
}
.dc-label::before {
  content: ""; display: inline-block; width: 13px; height: 1px;
  background: var(--red); vertical-align: 3px; margin-right: 8px;
}
.dc-list { list-style: none; margin: 0; padding: 0; }
.dc-list li {
  position: relative; padding-left: 15px; list-style: none;
  font-size: 13.5px; color: var(--gray); line-height: 1.95;
}
.dc-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gray-light);
}
.dc-guard {
  margin-top: 20px; padding: 14px 18px;
  background: var(--paper-warm); border-left: 2px solid var(--red);
}
.dc-guard .dc-label { color: var(--ink); margin-bottom: 6px; }
.dc-guard .dc-label::before { background: var(--ink); }
.dc-guard p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-card { padding: 26px 22px 22px; }
  .detail-card h3 { font-size: 17px; }
  .dc-num { font-size: 22px; }
}

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  display: block; position: relative; overflow: hidden; cursor: pointer;
  background: var(--ink);
}
.case-card .cc-img {
  aspect-ratio: 4 / 3; overflow: hidden;
}
.case-card .cc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
}
.case-card:hover .cc-img img { transform: scale(1.06); filter: saturate(1.05); }
.case-card .cc-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,22,0.85) 0%, rgba(20,20,22,0.1) 45%, transparent 65%);
}
.case-card .cc-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff;
}
.case-card .cc-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em;
  color: #fff; background: var(--red); padding: 3px 10px; margin-bottom: 10px;
}
.case-card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.05em; }
.case-card .cc-meta { font-size: 13px; color: rgba(255,255,255,0.66); margin-top: 6px; letter-spacing: 0.06em; }
.case-card .cc-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transform: translateY(-6px);
  transition: all 0.35s var(--ease); font-size: 16px;
}
.case-card:hover .cc-arrow { opacity: 1; transform: translateY(0); }

/* ---------- 列表页通用（新闻/案例/品牌） ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar button {
  padding: 8px 22px; font-size: 14px; letter-spacing: 0.1em;
  border: 1px solid var(--gray-light); background: transparent; color: var(--ink-2);
  cursor: pointer; transition: all 0.25s; font-family: var(--sans);
}
.filter-bar button:hover { border-color: var(--red); color: var(--red); }
.filter-bar button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 案例分页 ---------- */
.case-pager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 48px;
}
.case-pager .cp-btn,
.case-pager .cp-num {
  min-width: 40px; height: 40px; padding: 0 15px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-light); background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-size: 13.5px; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.25s var(--ease); -webkit-appearance: none;
}
.case-pager .cp-btn:hover:not([disabled]),
.case-pager .cp-num:hover { border-color: var(--red); color: var(--red); }
.case-pager .cp-num.on {
  background: var(--red); border-color: var(--red); color: #fff; cursor: default;
}
.case-pager .cp-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.case-pager .cp-gap {
  color: var(--gray-light); font-size: 14px; padding: 0 2px; letter-spacing: 0.1em;
}
.case-pager .cp-info {
  margin-left: 12px; font-size: 12.5px; color: var(--gray); letter-spacing: 0.08em;
}
html[data-theme="t3"] .case-pager .cp-btn,
html[data-theme="t3"] .case-pager .cp-num { border-radius: 999px; }
@media (max-width: 640px) {
  .case-pager { gap: 6px; margin-top: 34px; }
  .case-pager .cp-btn, .case-pager .cp-num {
    min-width: 34px; height: 34px; padding: 0 10px; font-size: 12.5px; letter-spacing: 0.02em;
  }
  .case-pager .cp-info { width: 100%; text-align: center; margin: 6px 0 0; }
}

.news-list { display: grid; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid rgba(29,29,31,0.08);
  cursor: pointer; transition: background 0.25s;
}
.news-item:hover { background: linear-gradient(90deg, rgba(var(--red-rgb),0.03), transparent 60%); }
.news-item .ni-img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-warm); }
.news-item .ni-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-item:hover .ni-img img { transform: scale(1.05); }
.news-item h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 0.03em; line-height: 1.5; }
.news-item:hover h3 { color: var(--red); }
.news-item .ni-sum {
  font-size: 14px; color: var(--gray); margin-top: 8px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .ni-meta { font-size: 12px; color: var(--red); letter-spacing: 0.15em; margin-bottom: 10px; }
.news-item .ni-date {
  font-family: var(--serif); font-size: 15px; color: var(--gray);
  text-align: right; white-space: nowrap; line-height: 1.6;
}
.news-item .ni-date b { display: block; font-size: 26px; color: var(--ink); font-weight: 700; }

/* 详情 */
.detail-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; letter-spacing: 0.1em; cursor: pointer; margin-bottom: 28px; }
.detail-back:hover { color: var(--red); }
.detail-title { font-family: var(--serif); font-size: clamp(23px, 3vw, 32px); color: var(--ink); line-height: 1.4; letter-spacing: 0.04em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-light); font-size: 13px; color: var(--gray); letter-spacing: 0.12em; }
.detail-meta b { color: var(--red); font-weight: 500; }
.detail-cover { margin-bottom: 36px; }
.detail-body p { margin-bottom: 18px; font-size: 16px; line-height: 2; color: #3a3a3c; text-align: justify; }
.detail-body p:first-of-type::first-letter { color: var(--red); font-family: var(--serif); }

/* ---------- 品牌墙 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-cell {
  background: var(--paper); border: 1px solid rgba(29,29,31,0.08);
  padding: 40px 20px; text-align: center;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.brand-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--red-rgb),0.04), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.brand-cell:hover { border-color: var(--red); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.brand-cell:hover::before { opacity: 1; }
.brand-cell .b-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: 0.1em; position: relative; }
.brand-cell:hover .b-name { color: var(--red); }
.brand-cell .b-cat { margin-top: 8px; font-size: 12px; letter-spacing: 0.25em; color: var(--gray); position: relative; }
.brand-note { margin-top: 40px; text-align: center; color: var(--gray); font-size: 14px; letter-spacing: 0.08em; }

/* ---------- 工艺/深色段 ---------- */
.craft-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.craft-img { position: relative; }
.craft-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.craft-img::after {
  content: ""; position: absolute; left: -16px; bottom: -16px; right: 40px; top: 40px;
  border: 1px solid rgba(var(--red-rgb),0.4); pointer-events: none;
}
.craft-list li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px;
}
.craft-list li b { color: var(--red); font-family: var(--serif); white-space: nowrap; }

/* ---------- 留言表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; letter-spacing: 0.15em; color: var(--ink-2); margin-bottom: 8px; }
.field label i { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--gray-light); background: var(--paper);
  color: var(--ink); outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb),0.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-tip { margin-top: 16px; font-size: 13px; color: var(--gray); }

/* 表单验证码（留言 / 会员注册 / 会员登录） */
.wx-cap {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--gray-light);
  border-radius: 6px; background: var(--paper-warm); max-width: 100%;
  transition: opacity .2s;
}
.wx-cap.is-loading { opacity: .55; }
.wx-cap-q {
  font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em; white-space: nowrap; min-width: 76px; text-align: center;
  user-select: none;
}
.wx-cap-input {
  width: 92px; padding: 7px 8px; font-size: 14px; text-align: center;
  border: 1px solid #d8d8d8; border-radius: 4px; background: #fff; color: var(--ink);
}
.wx-cap-input:focus { outline: none; border-color: var(--red); }
.wx-cap-refresh {
  width: 30px; height: 30px; flex: none; cursor: pointer;
  border: 1px solid var(--gray-light); border-radius: 4px; background: #fff;
  color: var(--gray); font-size: 15px; line-height: 1;
}
.wx-cap-refresh:hover { border-color: var(--red); color: var(--red); }
.wx-cap-tip { margin-top: 6px; font-size: 12px; color: var(--gray); }
/* 会员面板里的验证码占满一行 */
.mem-form .wx-cap { width: 100%; justify-content: space-between; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-cell {
  background: var(--paper); border: 1px solid rgba(29,29,31,0.08);
  padding: 36px 32px; display: flex; gap: 20px; align-items: flex-start;
  transition: all 0.3s var(--ease);
}
.contact-cell:hover { border-color: rgba(var(--red-rgb),0.4); box-shadow: var(--shadow-1); }
.contact-cell .ic {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--red-rgb),0.08), rgba(var(--red-rgb),0.14));
  color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-cell h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); letter-spacing: 0.08em; }
.contact-cell p { margin-top: 8px; font-size: 15px; color: #555; line-height: 1.8; }
.map-box {
  margin-top: 20px; height: 340px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #efece7, #e3dfd8);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: var(--gray); font-size: 14px; letter-spacing: 0.1em;
}
.map-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(29,29,31,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.map-box b { font-family: var(--serif); font-size: 20px; color: var(--ink); position: relative; }

/* ---------- 首页新闻：头条 + 紧凑列表 ---------- */
.home-news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hn-feature { cursor: pointer; }
.hn-feature .hnf-img {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink);
}
.hn-feature .hnf-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.94);
}
.hn-feature:hover .hnf-img img { transform: scale(1.05); filter: saturate(1.05); }
.hn-feature .hnf-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
}
.hn-feature .hnf-date { font-size: 12px; letter-spacing: 0.15em; color: var(--gray); }
.hn-feature h3 {
  font-family: var(--serif); font-size: 24px; color: var(--ink);
  line-height: 1.45; letter-spacing: 0.03em; margin-top: 12px;
  transition: color 0.25s;
}
.hn-feature:hover h3 { color: var(--red); }
.hn-feature .hnf-sum {
  margin-top: 12px; font-size: 14px; color: var(--gray); line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hn-list { border-top: 2px solid var(--ink); }
.hn-list li {
  display: flex; align-items: center; gap: 20px;
  padding: 21px 4px; border-bottom: 1px solid rgba(29, 29, 31, 0.09);
  cursor: pointer; transition: background 0.25s, padding 0.25s var(--ease);
}
.hn-list li:hover { background: linear-gradient(90deg, rgba(var(--red-rgb), 0.04), transparent 70%); padding-left: 12px; }
.hn-list .hnl-date {
  flex: none; text-align: center; line-height: 1.15;
  padding-right: 20px; border-right: 1px solid rgba(29, 29, 31, 0.1);
}
.hn-list .hnl-date b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); transition: color 0.25s; }
.hn-list li:hover .hnl-date b { color: var(--red); }
.hn-list .hnl-date i { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.1em; color: var(--gray); }
.hn-list .hnl-txt { flex: 1; min-width: 0; }
.hn-list .hnl-txt h4 {
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.02em; line-height: 1.5; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: color 0.25s;
}
.hn-list li:hover .hnl-txt h4 { color: var(--red); }
.hn-list .hnl-cat { font-size: 11px; letter-spacing: 0.18em; color: var(--gray); }
.hn-list .hnl-arrow {
  flex: none; color: var(--gray-light); font-size: 15px;
  transform: translateX(-6px); opacity: 0; transition: all 0.3s var(--ease);
}
.hn-list li:hover .hnl-arrow { opacity: 1; transform: none; color: var(--red); }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 55%, #e8442e 100%);
  color: #fff; padding: 64px 0;
}
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 0.1em; line-height: 1.4; }
.cta-band p { margin-top: 8px; color: rgba(255,255,255,0.78); letter-spacing: 0.08em; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { font-family: var(--serif); color: #fff; font-size: 16px; letter-spacing: 0.15em; margin-bottom: 20px; }
.footer p, .footer li { font-size: 13px; line-height: 2.1; letter-spacing: 0.05em; }
.footer a:hover { color: var(--red); }
.footer .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer .f-slogan { font-family: var(--serif); color: rgba(255,255,255,0.45); font-size: 14px; letter-spacing: 0.2em; margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; font-size: 12px; letter-spacing: 0.1em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
/* 页脚备案号（工信部，点开进入备案查询系统） */
.footer-bottom .f-icp { margin-left: 14px; }
.footer-bottom .f-icp a {
  color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px; transition: color 0.2s, border-color 0.2s;
}
.footer-bottom .f-icp a:hover { color: #fff; border-color: var(--red); }
@media (max-width: 760px) { .footer-bottom .f-icp { display: block; margin: 6px 0 0; } }

/* ---------- 友情链接（页脚底部，后台可管理） ---------- */
.flinks {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px; font-size: 12px; line-height: 2;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.flinks .flinks-t { color: rgba(255,255,255,0.6); margin-right: 8px; }
.flinks a { color: rgba(255,255,255,0.55); text-decoration: none; margin-right: 14px; white-space: nowrap; transition: color 0.25s; }
.flinks a:hover { color: var(--red); }

/* ---------- 会员中心 ---------- */
.mem-box { max-width: 860px; }
.mem-card {
  background: #fff; box-shadow: var(--shadow-1); padding: 40px 44px;
}
.mem-auth { display: flex; justify-content: center; }
.mem-auth .mem-card { width: 100%; max-width: 460px; }
.mem-tabs { display: flex; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--gray-light); }
.mem-tabs button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 16px; letter-spacing: 0.15em; color: var(--gray);
  padding: 10px 18px 14px; border-bottom: 2px solid transparent; transition: all .25s;
}
.mem-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.mem-form input {
  width: 100%; padding: 13px 14px; margin-bottom: 14px;
  border: 1px solid var(--gray-light); font-size: 14px; font-family: var(--sans);
}
.mem-form input:focus { outline: none; border-color: var(--ink); }
.mem-err { color: var(--red); font-size: 13px; min-height: 20px; margin: 0 0 10px; }
.mem-tip { color: var(--gray); font-size: 12.5px; line-height: 1.8; margin-top: 14px; }
.mem-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--gray-light); }
.mem-head h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.doc-item {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  border: 1px solid var(--gray-light); padding: 20px 22px; transition: border-color .25s;
}
.doc-item:not(.locked):hover { border-color: var(--ink); }
.doc-item.locked { background: #fafaf9; }
.doc-item h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-item p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 4px; }
.doc-date { font-size: 12px; color: var(--gray); letter-spacing: 0.08em; }
.doc-tag {
  font-size: 11px; padding: 2px 10px; letter-spacing: 0.1em; font-weight: 400;
  border: 1px solid var(--red); color: var(--red); white-space: nowrap;
}
.doc-tag.lv-vip { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc-lock-tip { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 620px) {
  .mem-card { padding: 26px 20px; }
  .doc-item { flex-direction: column; align-items: stretch; }
  .doc-item .btn { justify-content: center; }
}

/* ---------- 后台：违禁词标签 ---------- */
.ban-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ban-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f4f3f1; border: 1px solid var(--gray-light);
  padding: 6px 8px 6px 14px; font-size: 13px; letter-spacing: 0.05em;
}
.ban-tag button {
  background: none; border: none; cursor: pointer; color: var(--gray);
  font-size: 16px; line-height: 1; padding: 2px 6px;
}
.ban-tag button:hover { color: var(--red); }

/* 导航栏目编辑行 */
.nav-edit-row { display: flex; gap: 10px; align-items: center; }
.nav-edit-row .nav-move { padding: 6px 10px; }

/* 图集可视化编辑器 */
.gal-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.gal-bar select { padding: 7px 10px; border: 1px solid var(--gray-light); border-radius: 4px; font-size: 13px; }
.gal-list {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px dashed var(--gray-light); border-radius: 6px;
  padding: 12px; min-height: 64px; transition: border-color 0.2s, background 0.2s;
}
.gal-list.dragging { border-color: var(--red); background: rgba(var(--red-rgb),0.04); }
.gal-list:empty::before {
  content: "暂无图片：点上方按钮添加，或把图片文件直接拖到这里";
  color: var(--gray); font-size: 13px; text-align: center; padding: 16px 0; display: block;
}
.gal-row { display: flex; gap: 8px; align-items: center; }
.gal-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; background: #f3f3f3; flex: none; }
.gal-src { flex: 1; min-width: 140px; }
.gal-label { width: 150px; flex: none; }
.gal-hint { font-size: 12px; color: var(--gray); line-height: 1.9; margin-top: 10px; }
@media (max-width: 768px) {
  .gal-row { flex-wrap: wrap; }
  .gal-src { min-width: 100%; order: 2; }
  .gal-thumb { order: 1; }
  .gal-label { flex: 1; width: auto; order: 3; }
  .gal-row .mini-btn { order: 4; }
}

/* ---------- 前台可视化编辑（管理员） ---------- */
#vx-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 950;
  display: flex; gap: 8px;
}
#vx-bar button {
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  padding: 10px 18px; font-size: 13px; letter-spacing: 0.1em;
  border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,0.25); font-family: var(--sans);
}
#vx-bar #vx-save { background: var(--red); }
#vx-bar #vx-exit { background: #777; }
.vx-editing {
  outline: 2px dashed rgba(var(--red-rgb),0.55) !important; outline-offset: 3px;
  cursor: text; min-height: 1em;
}
.vx-editing:focus { outline: 2px solid var(--red) !important; background: rgba(var(--red-rgb),0.04); }
.vx-editing-img { outline: 2px dashed rgba(var(--red-rgb),0.55) !important; outline-offset: 3px; cursor: pointer; }
@media (hover: none) { #vx-bar button { min-height: 44px; } }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 32px; font-size: 14px; letter-spacing: 0.1em;
  box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; z-index: 999;
  transition: all 0.4s var(--ease); border-left: 3px solid var(--red);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 后台 ---------- */
.admin-body { background: #f0efed; min-height: 100vh; }
.admin-nav {
  background: var(--ink); color: #fff; padding: 10px 24px;
  display: flex; align-items: center; gap: 4px 6px; min-height: 60px; flex-wrap: wrap;
}
.admin-nav .an-logo { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; margin-right: 16px; }
.admin-nav button, .admin-nav a {
  background: none; border: none; color: rgba(255,255,255,0.65); font-size: 14px;
  padding: 8px 12px; cursor: pointer; letter-spacing: 0.08em; font-family: var(--sans);
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.admin-nav button.on, .admin-nav button:hover, .admin-nav a:hover { color: #fff; }
.admin-nav button.on { box-shadow: inset 0 -2px 0 var(--red); }
.admin-nav .an-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
@media (max-width: 860px) {
  .admin-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding: 0 16px; }
  .admin-nav .an-logo { flex: 0 0 auto; }
  .admin-nav .an-right { flex: 0 0 auto; }
}
.admin-wrap { max-width: 1080px; margin: 32px auto; padding: 0 24px; }
.admin-card { background: #fff; box-shadow: var(--shadow-1); padding: 28px; margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 20px; letter-spacing: 0.06em; display: flex; justify-content: space-between; align-items: center; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--paper-warm); font-weight: 500; letter-spacing: 0.08em; color: var(--ink-2); font-size: 13px; }
.admin-table td { padding: 12px; border-bottom: 1px solid rgba(29,29,31,0.06); color: #444; }
.admin-table tr:hover td { background: rgba(var(--red-rgb),0.02); }
.admin-table .ops button { background: none; border: 1px solid var(--gray-light); padding: 5px 14px; font-size: 12px; cursor: pointer; margin-right: 6px; transition: 0.2s; font-family: var(--sans); }
.admin-table .ops button:hover { border-color: var(--red); color: var(--red); }
.admin-table .ops button.danger:hover { border-color: var(--red); background: var(--red); color: #fff; }
.mini-btn {
  display: inline-block; padding: 9px 22px; font-size: 13px; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  border: none; cursor: pointer; font-family: var(--sans); transition: filter 0.2s;
}
.mini-btn:hover { filter: brightness(1.1); }
.mini-btn.plain { background: #fff; color: var(--ink-2); border: 1px solid var(--gray-light); }
.mini-btn.plain:hover { border-color: var(--red); color: var(--red); }
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, #33333a 100%);
  padding: 24px 18px;   /* 手机窄屏不撑出横向滚动 */
}
.admin-login .box {
  background: #fff; padding: 48px 44px; width: 100%; max-width: 400px; box-shadow: var(--shadow-3);
}
@media (max-width: 400px) { .admin-login .box { padding: 36px 24px; } }
.admin-login .box h2 { font-family: var(--serif); text-align: center; font-size: 24px; letter-spacing: 0.12em; color: var(--ink); }
.admin-login .box .sub { text-align: center; color: var(--gray); font-size: 12px; letter-spacing: 0.2em; margin: 8px 0 32px; }
.admin-login .box input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--gray-light); margin-bottom: 16px;
  font-size: 15px; outline: none;
}
.admin-login .box input:focus { border-color: var(--red); }
.admin-login .box .btn { width: 100%; justify-content: center; }
.login-err { color: var(--red); font-size: 12px; text-align: center; min-height: 18px; margin-bottom: 8px; letter-spacing: 0.1em; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav {
    /* 绝对定位锚在 sticky header 正下方：无论页面滚动到哪，菜单都紧贴头部，不再出现脱节空隙 */
    position: absolute; top: 100%; right: 0; left: 0; z-index: 99;
    background: #fff; flex-direction: column; gap: 0;
    box-shadow: var(--shadow-2);
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
  }
  .nav.open { max-height: 560px; overflow-y: auto; border-top: 1px solid rgba(29,29,31,0.08); }
  .nav a { padding: 16px 28px; border-bottom: 1px solid rgba(29,29,31,0.05); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  /* 汉堡按钮点击后变 ✕ */
  .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); }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat + .stat::before { display: none; }
  .standards { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .craft-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item .ni-date { text-align: left; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .page-hero { padding: 64px 0 52px; }
  .page-hero h1 { font-size: 32px; }
  .standards, .case-grid, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat .num { font-size: 38px; }
  .hero { min-height: 72vh; min-height: 72svh; }
  .topbar .tb-welcome { display: none; }
  .detail-title { font-size: 24px; }
  .home-news { grid-template-columns: 1fr; gap: 32px; }
  .hn-feature h3 { font-size: 20px; }
  /* 手机端完整显示新闻：图片保留，摘要放开行数限制 */
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-item .ni-img { aspect-ratio: 16/9; }
  .news-item .ni-sum { -webkit-line-clamp: unset; display: block; overflow: visible; }
  .news-item .ni-date { text-align: left; order: -1; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
 * 客服悬浮栏（贴边竖条 dock 式，后台“客服设置”可配置）
 * ============================================================ */
.wx-srv-dock {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px 0 0 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}
.dock-item {
  position: relative; width: 58px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s;
}
.dock-item + .dock-item { border-top: 1px solid #f1ede7; }
.dock-item svg { width: 21px; height: 21px; display: block; }
.dock-item:hover { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
/* 悬停提示气泡（向左滑出） */
.di-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: #fff; font-size: 12px; letter-spacing: 0.05em;
  padding: 8px 13px; border-radius: 6px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.28s var(--ease);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.di-tip::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--ink);
}
.dock-item:hover .di-tip { opacity: 1; visibility: visible; transform: translateY(-50%); }
/* 微信呼吸红点 */
.dock-item[data-act="wechat"]::before {
  content: ""; position: absolute; top: 11px; right: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: srvDot 2s ease-out infinite;
}
@keyframes srvDot {
  0% { box-shadow: 0 0 0 0 rgba(var(--red-rgb), 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(var(--red-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--red-rgb), 0); }
}
/* 回顶部（滚动后滑入） */
.dock-top { opacity: 0; visibility: hidden; transform: translateX(100%); pointer-events: none; transition: all 0.35s var(--ease); }
.dock-top.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* 微信二维码弹窗 */
.srv-modal {
  position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
}
.srv-modal.show { opacity: 1; visibility: visible; }
.srv-modal-card {
  background: #fff; border-radius: 16px; padding: 30px 36px 26px;
  position: relative; text-align: center; max-width: 320px;
  transform: translateY(16px); transition: transform 0.3s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.srv-modal.show .srv-modal-card { transform: none; }
.srv-modal-card h4 { font-family: var(--serif); font-size: 19px; margin: 0 0 16px; letter-spacing: 2px; }
.srv-modal-card .srv-close { position: absolute; top: 12px; right: 16px; color: var(--gray); font-size: 22px; cursor: pointer; }
.srv-qr { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--gray-light); border-radius: 8px; }
.srv-wxid { font-size: 14px; margin: 10px 0 4px; color: var(--ink); }
.srv-wxid b { color: var(--red); cursor: pointer; font-size: 16px; letter-spacing: 0.5px; }
.srv-wxid b:hover { text-decoration: underline; }
.srv-modal-tip { font-size: 12px; color: var(--gray); margin: 6px 0 0; }

@media (max-width: 640px) {
  .dock-item { width: 48px; height: 48px; }
  .dock-item svg { width: 18px; height: 18px; }
}

/* ---------- 案例详情实景图集（全宽竖排 · 一张接一张） ---------- */
.dg-title {
  margin: 44px 0 24px; font-family: var(--serif); font-size: 22px;
  letter-spacing: 0.06em; color: var(--ink);
  padding-top: 36px; border-top: 1px solid var(--gray-light);
}
.detail-gallery { display: flex; flex-direction: column; gap: 30px; }
.dg-item {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--paper-warm); cursor: zoom-in; margin: 0;
}
.dg-item img {
  width: 100%; max-height: 620px; object-fit: cover; display: block;
  transition: filter 0.5s var(--ease), transform 0.8s var(--ease);
  filter: saturate(0.96);
}
.dg-item:hover img { filter: saturate(1.06); transform: scale(1.015); }
/* 左下角空间备注（客厅 / 厨房…） */
.dg-label {
  position: absolute; left: 0; bottom: 0;
  padding: 30px 34px 14px 20px;
  background: linear-gradient(90deg, rgba(20,20,22,0.82) 0%, rgba(20,20,22,0.55) 65%, rgba(20,20,22,0) 100%);
  color: #fff; font-family: var(--serif);
  font-size: 16px; letter-spacing: 0.14em; line-height: 1;
}
.dg-label::before {
  content: ""; display: inline-block; width: 20px; height: 2px;
  background: var(--red); vertical-align: middle; margin-right: 12px;
}

/* ---------- 实景图集灯箱（点击放大） ---------- */
.wx-lb {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(15, 15, 17, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wx-lb.show { opacity: 1; visibility: visible; }
.wx-lb img {
  max-width: 88vw; max-height: 84vh;
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.96); transition: transform 0.3s var(--ease);
  object-fit: contain;
}
.wx-lb.show img { transform: scale(1); }
.wx-lb-close {
  position: absolute; top: 22px; right: 30px;
  color: rgba(255,255,255,0.75); font-size: 34px; line-height: 1;
  cursor: pointer; transition: color 0.2s, transform 0.2s;
}
.wx-lb-close:hover { color: #fff; transform: rotate(90deg); }
.wx-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: #fff;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
  user-select: none;
}
.wx-lb-nav:hover { background: var(--red); border-color: var(--red); }
.wx-lb-prev { left: 26px; }
.wx-lb-next { right: 26px; }
.wx-lb-count {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65); font-size: 13px; letter-spacing: 0.2em;
  font-family: var(--serif);
}
@media (max-width: 640px) {
  .wx-lb-nav { width: 40px; height: 40px; }
  .wx-lb-prev { left: 8px; } .wx-lb-next { right: 8px; }
}
.dg-item { cursor: zoom-in; }

/* ============================================================
 * 三端自适应增强：平板（769–1024）/ 手机（≤620）/ 横屏
 * ============================================================ */

/* 全局图片与长内容防溢出 */
img { max-width: 100%; }
.detail-body, .ni-sum, .srv-welcome { overflow-wrap: break-word; word-break: break-word; }

/* ---------- 平板竖屏 768–1024 ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 32px; }
  .page-hero { padding: 80px 0 60px; }
  .case-grid { gap: 20px; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .craft-wrap { gap: 44px; }
  .home-news { gap: 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 28px; }
  .form-grid { gap: 16px; }
  /* 客服 dock 稍收窄，避免压住内容 */
  .dock-item { width: 52px; height: 52px; }
}

/* ---------- 平板/小屏（≤768）：汉堡导航顶部对齐当前 header ---------- */
@media (max-width: 768px) {
  .topbar { font-size: 12px; }
  .section { padding: 64px 0; }
  .hero .h-sub { font-size: 15px; letter-spacing: 0.1em; }
  .hero .h-kicker { letter-spacing: 0.35em; font-size: 12px; }
  .detail-wrap { padding: 0; }
  .dg-item img { max-height: 460px; width: 100%; object-fit: cover; }
  .dg-cap { font-size: 13px; padding: 9px 14px; }
  .btn { min-height: 44px; }   /* 触控目标 ≥44px */
  .nav a { min-height: 48px; display: flex; align-items: center; }
}

/* ---------- 手机 ≤620 强化 ---------- */
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  body { padding-bottom: 52px; }   /* 给底部客服栏留位 */
  .hero { min-height: 68vh; min-height: 68svh; }
  .hero .h-sub { margin-top: 14px; font-size: 14px; }
  .hero .h-kicker { margin-bottom: 14px; }
  .stats { padding: 44px 0; }
  .stats .container { gap: 28px 0; }
  .std-card { padding: 30px 22px; }
  .section { padding: 52px 0; }
  .page-hero { padding: 56px 0 44px; }
  .footer { padding-top: 44px; }
  .footer-grid { gap: 30px; }
  /* 图集竖排：图片满宽、备注角标不遮挡 */
  .detail-gallery { gap: 18px; }
  .dg-item img { max-height: 340px; }
  .dg-cap { position: static; background: none; color: var(--ink); padding: 8px 2px 0; }
  .dg-cap::before { display: none; }
  /* 客服 dock：手机端移到底部横排，竖排易挡内容 */
  .wx-srv-dock {
    top: auto; bottom: 0; right: 0; left: 0;
    transform: none; flex-direction: row; justify-content: center;
    border-radius: 14px 14px 0 0; width: 100%;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  }
  .dock-item { width: 25%; max-width: 96px; height: 52px; }
  .dock-item + .dock-item { border-top: none; border-left: 1px solid #f1ede7; }
  .di-tip { display: none; }   /* 手机端无悬停，隐藏气泡 */
  .dock-item[data-act="wechat"]::before { top: 8px; right: 50%; margin-right: -14px; }
  /* 灯箱在手机端避开底部 dock */
  .wx-lb img { max-width: 92vw; max-height: 70vh; }
  .wx-lb-count { bottom: 68px; }
}

/* ---------- 手机横屏 / 矮屏 ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 130vh; }
  .wx-srv-dock { top: 50%; bottom: auto; flex-direction: column; width: auto; }
  .dock-item { width: 48px; height: 44px; }
}

/* ---------- 触屏设备：去掉悬停位移的粘滞 ---------- */
@media (hover: none) {
  .case-card:hover .cc-img img, .dg-item:hover img { transform: none; }
  .std-card:hover, .srv-fab:hover { transform: none; }
}

/* ---------- 视频专区 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  display: block; position: relative; overflow: hidden; cursor: pointer;
  background: var(--ink);
}
.video-card .vc-img {
  aspect-ratio: 16 / 9; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #232326 0%, #3a2a2c 100%);
  display: flex; align-items: center; justify-content: center;
}
.video-card .vc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
}
.video-card:hover .vc-img img { transform: scale(1.06); filter: saturate(1.05); }
/* 播放键（无封面时的占位 + 有封面时的悬浮角标） */
.video-card .vc-play {
  position: absolute; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(var(--red-rgb), 0.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease);
}
.video-card .vc-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card:hover .vc-play { transform: scale(1.1); }
/* 悬浮信息层 */
.video-card .vc-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff;
  background: linear-gradient(to top, rgba(20,20,22,0.88) 0%, rgba(20,20,22,0.15) 70%, transparent 100%);
}
.video-card h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em; }
.video-card .cc-meta { font-size: 13px; color: rgba(255,255,255,0.66); margin-top: 6px; letter-spacing: 0.06em; }
/* 详情页播放器：16:9 自适应（手机端不跑版） */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0e0e10; margin-bottom: 32px; overflow: hidden;
}
.video-embed iframe, .video-embed video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-link-box {
  aspect-ratio: auto; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.video-link-tip { color: rgba(255,255,255,0.6); letter-spacing: 0.15em; font-size: 14px; }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-card h3 { font-size: 17px; }
}

/* ---------- 后台管理窄屏 ---------- */
@media (max-width: 768px) {
  .admin-tabs { flex-wrap: wrap; gap: 6px; }
  .admin-tabs button { padding: 9px 13px; font-size: 13px; }
  .admin-card { padding: 18px 14px; }
  .admin-table { min-width: 620px; }   /* 配合卡片横向滚动 */
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- 后台：网站文本分组 / 品牌 logo ---------- */
.text-group {
  border: 1px solid var(--gray-light); border-radius: 10px;
  padding: 18px 18px 6px; margin-bottom: 18px; scroll-margin-top: 120px;
}
.text-group h4 {
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  letter-spacing: 0.1em; margin: 0 0 14px; padding-left: 10px;
  border-left: 3px solid var(--red); line-height: 1.2;
}
.brand-cell .b-logo { width: 72px; height: 40px; object-fit: contain; margin-top: 8px; display: block; }

/* ============================================================
 * 网站风格（后台「设置 → 网站风格」一键切换，全站含内页同步生效）
 *   t1 经典红   —— 白底 + 中国红，稳重（默认，即上面的基础样式）
 *   t2 墨金     —— 深墨导航 + 香槟金，商务奢华
 *   t3 木白     —— 暖米底 + 墨绿，自然生活感
 * 只覆盖设计变量与少量构件，不改 HTML 结构，切换不会丢内容
 * ============================================================ */

/* ---------- 效果 2 · 墨金 ---------- */
html[data-theme="t2"] {
  --red: #b3894e;
  --red-dark: #8a6535;
  --red-rgb: 179, 137, 78;
  --ink: #121316;
  --ink-2: #2b2d32;
  --gray: #8b8880;
  --gray-light: #ded7c9;
  --paper-warm: #f6f2e9;
  --shadow-1: 0 2px 10px rgba(18, 19, 22, 0.07);
  --shadow-2: 0 10px 30px rgba(18, 19, 22, 0.12);
  --shadow-3: 0 26px 56px rgba(18, 19, 22, 0.20);
}
html[data-theme="t2"] .topbar { background: #0b0c0f; }
html[data-theme="t2"] .topbar .tb-phone b { color: #e0c48d; }
html[data-theme="t2"] .header {
  background: #16171b; border-bottom-color: rgba(224, 196, 141, 0.22);
}
html[data-theme="t2"] .header.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
html[data-theme="t2"] .nav a { color: rgba(255, 255, 255, 0.76); }
html[data-theme="t2"] .nav a:hover,
html[data-theme="t2"] .nav a.active { color: #e0c48d; }
html[data-theme="t2"] .nav a::after { background: #e0c48d; }
html[data-theme="t2"] .nav-toggle span { background: #fff; }
html[data-theme="t2"] .logo-text .cn { color: #fff; }
html[data-theme="t2"] .logo-text .en { color: rgba(255, 255, 255, 0.42); }
html[data-theme="t2"] .logo-img { filter: brightness(1.14) saturate(1.05); }
/* 构件：直角 + 金色细边，硬朗克制 */
html[data-theme="t2"] .case-card,
html[data-theme="t2"] .std-card,
html[data-theme="t2"] .brand-cell,
html[data-theme="t2"] .news-item,
html[data-theme="t2"] .contact-cell,
html[data-theme="t2"] .admin-card { border-radius: 0; }
html[data-theme="t2"] .std-card,
html[data-theme="t2"] .brand-cell,
html[data-theme="t2"] .contact-cell { border-color: rgba(179, 137, 78, 0.28); }
html[data-theme="t2"] .btn { border-radius: 0; letter-spacing: 0.18em; }
html[data-theme="t2"] .btn.solid {
  background: #16171b; color: #e6cd9a; border-color: #b3894e;
}
html[data-theme="t2"] .btn.solid:hover {
  background: #b3894e; color: #fff; box-shadow: 0 12px 28px rgba(179, 137, 78, 0.34);
}
html[data-theme="t2"] .section-head .sh-kicker { letter-spacing: 0.4em; }
html[data-theme="t2"] .stats { background: #0b0c0f; }
html[data-theme="t2"] .field input,
html[data-theme="t2"] .field textarea,
html[data-theme="t2"] .field select { border-radius: 0; background: #fbfaf7; }
html[data-theme="t2"] .wx-cap { border-radius: 0; background: #f6f2e9; }
html[data-theme="t2"] .wx-cap-input,
html[data-theme="t2"] .wx-cap-refresh { border-radius: 0; }
html[data-theme="t2"] .footer { background: #0b0c0f; }

/* ---------- 效果 3 · 木白 ---------- */
html[data-theme="t3"] {
  --red: #2f6b57;
  --red-dark: #1f4c3d;
  --red-rgb: 47, 107, 87;
  --ink: #23282a;
  --ink-2: #343b3d;
  --gray: #8d9995;
  --gray-light: #dbe3de;
  --paper: #ffffff;
  --paper-warm: #f3f0e8;
  --shadow-1: 0 3px 14px rgba(35, 40, 42, 0.07);
  --shadow-2: 0 14px 36px rgba(35, 40, 42, 0.10);
  --shadow-3: 0 30px 64px rgba(35, 40, 42, 0.14);
}
html[data-theme="t3"] body { background: #faf8f3; }
html[data-theme="t3"] .topbar { background: #2f6b57; }
html[data-theme="t3"] .topbar strong,
html[data-theme="t3"] .topbar .tb-phone b { color: #fff; }
html[data-theme="t3"] .header {
  background: rgba(252, 251, 247, 0.94); border-bottom-color: rgba(47, 107, 87, 0.14);
}
/* 导航改为胶囊高亮，下划线收起 */
html[data-theme="t3"] .nav a { border-radius: 999px; transition: background 0.25s, color 0.25s; }
html[data-theme="t3"] .nav a::after { display: none; }
html[data-theme="t3"] .nav a:hover,
html[data-theme="t3"] .nav a.active { background: rgba(47, 107, 87, 0.10); }
html[data-theme="t3"] .section { padding: 104px 0; }
html[data-theme="t3"] .section.warm { background: #f2efe7; }
/* 构件：大圆角 + 柔和浮起 */
html[data-theme="t3"] .btn { border-radius: 999px; padding: 14px 34px; }
html[data-theme="t3"] .btn.solid { background: #2f6b57; border-color: #2f6b57; }
html[data-theme="t3"] .btn.solid:hover { background: #275a49; box-shadow: 0 12px 26px rgba(47, 107, 87, 0.28); }
html[data-theme="t3"] .case-card,
html[data-theme="t3"] .news-item,
html[data-theme="t3"] .contact-cell { border-radius: 16px; overflow: hidden; }
html[data-theme="t3"] .std-card,
html[data-theme="t3"] .brand-cell { border-radius: 18px; background: #fff; box-shadow: var(--shadow-1); }
html[data-theme="t3"] .std-card:hover,
html[data-theme="t3"] .brand-cell:hover { box-shadow: var(--shadow-2); }
html[data-theme="t3"] .field input,
html[data-theme="t3"] .field textarea,
html[data-theme="t3"] .field select { border-radius: 12px; background: #fff; }
html[data-theme="t3"] .wx-cap { border-radius: 999px; background: #fff; }
html[data-theme="t3"] .wx-cap-input { border-radius: 999px; }
html[data-theme="t3"] .wx-cap-refresh { border-radius: 999px; }
html[data-theme="t3"] .section-head h2 { letter-spacing: 0.03em; }
html[data-theme="t3"] .stats { background: #2f6b57; }
html[data-theme="t3"] .footer { background: #26302e; }

@media (max-width: 768px) {
  html[data-theme="t2"] .nav.open { background: #16171b; border-top-color: rgba(224, 196, 141, 0.2); }
  html[data-theme="t3"] .nav.open { background: #fcfbf7; }
  html[data-theme="t3"] .section { padding: 68px 0; }
}
