/* ==========================================================================
   deco-site 官网样式 —— 全端自适应（手机 / iPad / PC）
   断点：>1024 PC  |  769-1024 iPad  |  481-768 大屏手机  |  ≤480 小屏手机
   ========================================================================== */

:root {
  --brand: #2f6fed;
  --brand-dark: #1f5bd0;
  --navy: #1f3b73;
  --txt: #333;
  --radius: 8px;
  --wrap: 1200px;
  --gap: 16px;
  --header-h: 72px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--txt);
  background: #fff;
  overflow-x: hidden;               /* 防横向溢出 */
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 头部 ===== */
.site-header {
  position: sticky; top: 0; z-index: 130;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.header-inner {
  display: flex; align-items: center;
  height: var(--header-h); gap: 24px;
}
.logo {
  flex-shrink: 0;
  font-size: 24px; font-weight: 800;
  color: var(--navy); letter-spacing: 1px; white-space: nowrap;
}
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px; font-size: 15px; color: #444;
  border-radius: 4px; transition: .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.on { color: #fff; background: var(--brand); }
.header-phone { color: var(--brand); font-weight: 700; font-size: 17px; white-space: nowrap; }

/* 汉堡按钮（仅移动端/平板显示） */
.nav-toggle {
  display: none;
  /* header 建立了层叠上下文，抽屉 z-index:120 会盖住静态元素，
     这里必须抬到抽屉之上，保证按钮始终可点击 */
  position: relative; z-index: 140;
  width: 44px; height: 44px; flex: 0 0 44px;
  margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; border-radius: 8px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 抽屉遮罩（仅移动端/平板生效） */
.nav-mask {
  display: none;
  position: fixed; inset: 0; z-index: 110;
  background: rgba(15, 25, 45, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
body.nav-open .nav-mask { opacity: 1; visibility: visible; }

.nav-cta { display: none; }   /* 抽屉内电话按钮，仅移动端显示 */

/* ===== Banner ===== */
.banner { position: relative; height: 480px; overflow: hidden; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-txt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: 10%; padding-right: 6%; color: #fff;
}
.banner-txt h2 {
  font-size: clamp(24px, 4.4vw, 44px);
  margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.banner-txt p {
  font-size: clamp(14px, 1.7vw, 18px);
  opacity: .92; text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.banner-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; }
.banner-dots span {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); margin: 0 5px; cursor: pointer;
}
.banner-dots span.on { background: #fff; }

/* ===== 通用区块 ===== */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section.gray { background: #f6f8fb; }
.sec-title {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--navy); margin-bottom: clamp(24px, 4vw, 40px); position: relative;
}
.sec-title::after {
  content: ""; display: block; width: 48px; height: 4px;
  background: var(--brand); margin: 12px auto 0; border-radius: 2px;
}

/* ===== 服务 ===== */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(47, 111, 237, .18); }
.service-card img { width: 100%; height: 150px; object-fit: cover; }
.service-info { padding: 14px; }
.service-info h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.service-info p { font-size: 12px; color: #888; line-height: 1.6; }

/* ===== 数据墙 ===== */
.stats-band { background: linear-gradient(135deg, #1f3b73, #2f6fed); padding: clamp(32px, 5vw, 48px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; row-gap: 26px; }
.stat .num { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat .num span { font-size: .5em; }
.stat .label { color: rgba(255, 255, 255, .85); font-size: 13px; margin-top: 6px; }

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .07); transition: .25s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
.case-card img { width: 100%; height: 220px; object-fit: cover; }
.case-info { padding: 14px 16px; }
.case-info h3 { font-size: 16px; margin-bottom: 4px; }
.case-info p { color: #999; font-size: 13px; }
.more-link { text-align: center; margin-top: 32px; }
.more-link a { color: var(--brand); font-size: 15px; }

/* ===== 品质保障 ===== */
.quality-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.quality-card {
  background: #fff; padding: 24px 18px; border-radius: var(--radius);
  text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.quality-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.quality-card p { font-size: 12.5px; color: #777; line-height: 1.7; }

/* ===== 新闻 ===== */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06); transition: .25s;
}
.news-card:hover { transform: translateY(-5px); }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-info { padding: 14px; }
.news-info h3 { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.news-info .summary { font-size: 12px; color: #888; line-height: 1.6; }
.news-info .date { color: #bbb; font-size: 12px; margin-top: 8px; }

/* ===== 内页 banner ===== */
.page-banner {
  background: linear-gradient(135deg, #1f3b73, #2f6fed);
  color: #fff; padding: clamp(32px, 5vw, 56px) 0;
}
.page-banner h1 { font-size: clamp(22px, 3.6vw, 32px); margin-bottom: 8px; }
.page-banner p { opacity: .85; font-size: clamp(13px, 1.6vw, 14px); }

/* 面包屑（置于内页 banner 内，与 JSON-LD BreadcrumbList 对应） */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1.6; margin-bottom: 10px;
  color: rgba(255, 255, 255, .78);
}
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { color: rgba(255, 255, 255, .45); }
.breadcrumb .cur { color: #fff; font-weight: 600; }

/* ===== 常见问题（FAQ）：原生 details，无 JS 依赖 ===== */
.faq-section { background: #f6f8fb; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid #e6ecf5; border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item[open] { border-color: #cfe0fb; box-shadow: 0 4px 16px rgba(47, 111, 237, .08); }
.faq-item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; min-width: 0; }
.faq-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px; background: var(--brand); border-radius: 2px;
  transition: transform .25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a {
  padding: 0 18px 18px 18px; font-size: 14.5px; line-height: 1.9; color: #55617a;
  border-top: 1px solid #f0f4fa; padding-top: 14px; margin-top: 0;
}
@media (max-width: 480px) {
  .faq-item summary { padding: 14px 14px; font-size: 15px; }
  .faq-a { padding: 12px 14px 16px; font-size: 14px; }
}

/* ===== 答案型内容页（报价 / 问答）：结论前置 + 事实表，便于 AI 抽取 ===== */
.answer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.answer-main { min-width: 0; }
.answer-lead {
  background: #eef4ff; border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 30px;
}
.answer-lead-tag {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
  margin-bottom: 10px; letter-spacing: .5px;
}
.answer-lead p { font-size: 15.5px; line-height: 1.85; color: #22315a; }
.answer-h2 { font-size: clamp(17px, 2.4vw, 20px); color: var(--navy); margin: 0 0 14px; }
.answer-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 14.5px; }
.answer-table th, .answer-table td { border: 1px solid #e2e8f2; padding: 11px 14px; text-align: left; vertical-align: top; }
.answer-table th { background: #f5f8fd; color: var(--navy); font-weight: 600; width: 34%; white-space: nowrap; }
.answer-body { margin-bottom: 24px; }
.answer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, #1f3b73, #2f6fed);
  color: #fff; padding: 24px 26px; border-radius: var(--radius); margin-top: 28px;
}
.answer-cta h3 { font-size: 17px; margin-bottom: 6px; }
.answer-cta p { font-size: 13.5px; opacity: .88; }
.answer-cta .btn-primary { background: #fff; color: var(--brand); white-space: nowrap; }
.answer-cta .btn-primary:hover { background: #eaf1ff; }
.answer-side h3 { font-size: 16px; margin-bottom: 14px; color: var(--navy); }

/* 问答列表：一页问题集，AI 可整页抽取 */
.answer-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.answer-card {
  display: block; background: #fff; border: 1px solid #e6ecf5; border-radius: var(--radius);
  padding: 20px 22px; transition: .2s;
}
.answer-card:hover { border-color: #cfe0fb; box-shadow: 0 8px 22px rgba(47, 111, 237, .1); }
.answer-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; line-height: 1.5; }
.answer-card p { font-size: 14px; color: #6b7789; line-height: 1.8; }
.answer-more { display: inline-block; margin-top: 10px; color: var(--brand); font-size: 13.5px; font-weight: 600; }
@media (max-width: 900px) {
  .answer-wrap { grid-template-columns: 1fr; gap: 24px; }
  .answer-cta { flex-direction: column; align-items: stretch; }
  .answer-cta .btn-primary { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .answer-lead { padding: 16px; }
  .answer-table th { width: 38%; white-space: normal; }
  .answer-table th, .answer-table td { padding: 10px 12px; font-size: 14px; }
}

/* ===== 列表 ===== */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.list-item {
  display: flex; gap: 20px; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
  padding: 14px; transition: .2s;
}
.list-item:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); }
.list-item img { width: 260px; height: 170px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.li-info { min-width: 0; }
.li-info h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.45; }
.li-info p { color: #888; font-size: 14px; line-height: 1.7; }
.li-info .date { color: #bbb; font-size: 12px; display: block; margin-top: 12px; }
.empty { text-align: center; color: #999; padding: 48px 0; }

.pager { text-align: center; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 6px 14px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 详情 ===== */
.detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.detail-main {
  background: #fff; border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px); box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
  min-width: 0;
}
.detail-attrs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.detail-attrs li { background: #eef4ff; color: var(--brand); padding: 6px 14px; border-radius: 4px; font-size: 13px; }
.detail-attrs li span { margin-right: 8px; font-weight: 600; }
.detail-cover { border-radius: 6px; margin-bottom: 24px; width: 100%; }
.detail-content { line-height: 2; font-size: 15px; color: #444; word-wrap: break-word; overflow-wrap: break-word; }
.detail-content p { margin-bottom: 14px; }
.detail-meta { margin-top: 28px; padding-top: 16px; border-top: 1px dashed #e5e5e5; color: #aaa; font-size: 13px; }
.detail-side { min-width: 0; }
.detail-side h3 { font-size: 16px; margin-bottom: 14px; color: var(--navy); }
.side-item {
  display: block; padding: 12px 14px; background: #f8fafc; border-radius: 6px;
  margin-bottom: 10px; font-size: 14px; line-height: 1.5; transition: .2s;
}
.side-item:hover { background: #eef4ff; color: var(--brand); }
.side-cta {
  margin-top: 24px; background: linear-gradient(135deg, #1f3b73, #2f6fed);
  color: #fff; padding: 24px; border-radius: var(--radius); text-align: center;
}
.side-cta p { font-size: 14px; margin-bottom: 6px; }
.side-cta h3 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.btn-primary {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 11px 28px; border-radius: 24px; border: none; font-size: 15px; cursor: pointer;
  min-height: 44px; line-height: 1.5;
}
.btn-primary:hover { background: var(--brand-dark); }

/* ===== 联系页 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info, .contact-form {
  background: #fff; border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
  min-width: 0;
}
.contact-info h3 { color: var(--navy); margin-bottom: 18px; }
.contact-info p { margin-bottom: 12px; line-height: 1.8; color: #555; word-break: break-all; }
.contact-form h3 { color: var(--navy); margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px;
  margin-bottom: 14px; font-size: 15px; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form .btn-primary { width: 100%; }
.msg-tip { font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ===== 悬浮咨询 ===== */
.float-consult {
  position: fixed; right: 20px; bottom: 90px;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 28px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(47, 111, 237, .4);
  z-index: 90; font-size: 14px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.float-consult:hover { background: var(--brand-dark); }

/* ===== 页脚 ===== */
.site-footer { background: #16233f; color: #9aa8c4; margin-top: 60px; padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.f-col h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.f-col p { font-size: 13px; line-height: 1.9; word-break: break-word; }
.f-col a { color: #9aa8c4; margin-right: 10px; display: inline-block; }
.f-col a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px; text-align: center; font-size: 12.5px; line-height: 1.7; }

/* ===== 富文本内容区（后台编辑器输出）===== */
.detail-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 18px auto; }
.detail-content video { max-width: 100%; border-radius: 8px; display: block; margin: 18px auto; background: #000; }
.detail-content iframe { max-width: 100%; }
.detail-content h2 { font-size: clamp(18px, 2.6vw, 22px); color: var(--navy); margin: 26px 0 12px; }
.detail-content h3 { font-size: clamp(16px, 2.2vw, 18px); color: var(--navy); margin: 22px 0 10px; }
.detail-content h4 { font-size: 16px; color: var(--navy); margin: 18px 0 8px; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 14px; }
.detail-content li { margin-bottom: 6px; }
.detail-content blockquote { border-left: 4px solid var(--brand); background: #f6f9ff; padding: 12px 16px; color: #55617a; border-radius: 0 8px 8px 0; margin: 16px 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.detail-content th, .detail-content td { border: 1px solid #e2e8f2; padding: 9px 12px; }
.detail-content th { background: #f5f8fd; color: var(--navy); }
.detail-content hr { border: none; border-top: 1px solid #e6ecf5; margin: 26px 0; }
.detail-content a { color: var(--brand); }
.detail-content pre { background: #f5f8fd; border-radius: 8px; padding: 14px; overflow-x: auto; font-size: 13px; margin: 16px 0; }

/* 附件下载卡片（Word / Excel / PPT / PDF 等） */
.detail-content a[href$=".doc"], .detail-content a[href$=".docx"], .detail-content a[href$=".xls"],
.detail-content a[href$=".xlsx"], .detail-content a[href$=".ppt"], .detail-content a[href$=".pptx"],
.detail-content a[href$=".pdf"], .detail-content a[href$=".zip"], .detail-content a[href$=".rar"],
.detail-content a[href$=".txt"], .detail-content a[href$=".csv"], .detail-content a[href$=".wps"],
.detail-content a[href$=".et"], .detail-content a[href$=".dps"], .detail-content a[href$=".ofd"] {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 10px 18px; margin: 8px 0; border: 1px solid #d7e2f5; border-radius: 10px;
  background: #f7faff; font-weight: 600; text-decoration: none; word-break: break-all;
}
.detail-content a[href$=".doc"]:hover, .detail-content a[href$=".docx"]:hover, .detail-content a[href$=".xls"]:hover,
.detail-content a[href$=".xlsx"]:hover, .detail-content a[href$=".ppt"]:hover, .detail-content a[href$=".pptx"]:hover,
.detail-content a[href$=".pdf"]:hover, .detail-content a[href$=".zip"]:hover, .detail-content a[href$=".rar"]:hover,
.detail-content a[href$=".txt"]:hover, .detail-content a[href$=".csv"]:hover, .detail-content a[href$=".wps"]:hover,
.detail-content a[href$=".et"]:hover, .detail-content a[href$=".dps"]:hover, .detail-content a[href$=".ofd"]:hover {
  background: #eef4ff; border-color: var(--brand);
}

/* ==========================================================================
   iPad / 平板（≤1024）：抽屉导航 + 三栏网格
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-mask { display: block; }
  .header-phone { display: none; }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(78vw, 330px);
    flex: none;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: calc(var(--header-h) + 14px) 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .14);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .3s ease;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .main-nav a { padding: 13px 16px; font-size: 16px; border-radius: 8px; }
  .nav-cta {
    display: block; margin-top: 14px;
    background: var(--brand) !important; color: #fff !important;
    text-align: center; font-weight: 700;
  }

  .service-grid, .quality-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .banner { height: 380px; }
  .site-footer { margin-top: 48px; }
}

/* 详情/联系页在 ≤900 转为单列 */
@media (max-width: 900px) {
  .detail-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 22px; }
  .detail-main { padding: 20px 16px; }
  .contact-info, .contact-form { padding: 22px 18px; }
}

/* ==========================================================================
   大屏手机（≤768）：单列为主 + 移动端底部悬浮按钮
   ========================================================================== */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }

  .logo { font-size: 20px; letter-spacing: 0; }

  .banner { height: 280px; }
  .banner-txt { padding-left: 6%; padding-right: 6%; }

  .service-grid, .quality-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }

  .service-card img { height: 130px; }
  .case-card img { height: 200px; }
  .news-card img { height: 180px; }

  .list-item { flex-direction: column; padding: 12px; gap: 12px; }
  .list-item img { width: 100%; height: 190px; }
  .li-info h3 { font-size: 17px; margin-bottom: 8px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .site-footer { padding-top: 32px; margin-top: 40px; }

  /* 悬浮咨询：移动端缩小并让出安全区 */
  .float-consult {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    padding: 11px 16px; font-size: 13px;
    border-radius: 24px;
  }

  /* 富文本宽表格改为横向滚动 */
  .detail-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  .detail-content { line-height: 1.9; }
}

/* ==========================================================================
   小屏手机（≤480）
   ========================================================================== */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }

  .banner { height: 230px; }
  .banner-txt h2 { margin-bottom: 8px; }

  .quality-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 10px; }
  .service-info { padding: 12px; }
  .service-info h3 { font-size: 15px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .detail-attrs li { font-size: 12.5px; padding: 5px 11px; }
  .float-consult { padding: 10px 14px; font-size: 12.5px; }
}

/* ==========================================================================
   横屏矮屏设备（手机横放）
   ========================================================================== */
@media (orientation: landscape) and (max-height: 500px) {
  .banner { height: 240px; }
  .main-nav { padding-top: calc(var(--header-h) + 8px); overflow-y: auto; }
}

/* ==========================================================================
   触屏设备：去掉 hover 位移，避免点击后卡在悬浮态
   ========================================================================== */
@media (hover: none) {
  .service-card:hover, .case-card:hover, .news-card:hover { transform: none; }
  .service-card:hover { box-shadow: var(--shadow-card); }
  .case-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
}

/* ==========================================================================
   无障碍：尊重系统「减弱动态效果」
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
