@charset "utf-8";
/* =============================================================================
   樽诺财务官网 · 首页样式
   -----------------------------------------------------------------------------
   结构：
     01. 设计令牌（Design Tokens）
     02. 基础重置与全局排版
     03. 通用工具类（.lin-content / .sr-only / .clearfix ...）
     04. 页头：顶栏、Logo、搜索、热线、主导航、业务副导航
     05. 首屏视觉 + 数据条
     06. 业务板块（工商财税 / 知识产权 / 资质代办）
     07. 信任背书
     08. 预约表单 + 工商财税知识
     09. 合作客户
     10. 医疗器械经营资质类目
     11. 客户评价（轮播）
     12. 服务保障
     13. 页脚
     14. 悬浮组件（左侧快捷导航 / 右侧服务栏）
     15. 弹窗层
     16. 响应式与可访问性增强
   ========================================================================== */

/* ============================ 01. 设计令牌 ============================
   颜色令牌（--brand 系、--grad-* 系、--brand-tint-* 系）不在此定义，
   而是由 css/theme-blue.css 或 css/theme-red.css 提供，本文件只保留与配色无关的令牌。
   ==================================================================== */
:root {
  --page: 1200px;            /* 内容区固定宽度（与原站一致） */
  --shadow-soft: 0 0 20px rgba(0, 0, 0, 0.15);
  --shadow-pop: 0 9px 28px 8px rgba(0, 0, 0, 0.05), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12);
  --font-cn: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-fast: 0.2s;
  --t-base: 0.3s ease-in-out;
}

/* ======================= 02. 基础重置与全局排版 ======================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: var(--page);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: all var(--t-base); }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

/* 统一键盘焦点样式（可访问性，同时不影响鼠标操作观感） */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============================ 03. 工具类 ============================ */
.lin-content { width: var(--page); margin: 0 auto; }
.clearfix::after { content: ""; display: table; clear: both; }
.float-right { float: right; }
.mt15 { margin-top: 15px; }
.mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0 !important; }
.ta-r { text-align: right; }
.req { color: #ff4d4f; font-size: 10px; font-style: normal; }

/* 视觉隐藏但保留给屏幕阅读器与抓取器 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 1000000;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* 全站加载遮罩 */
.loading {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 999999999;
}
.loading.is-on { display: block; }

/* ============================== 04. 页头 ============================== */
.header { position: relative; background: #fff; }

.header-top { height: 36px; background: var(--bg-top); }
.header-top .lin-content { position: relative; }
.header-top-about {
  position: relative;
  float: right;
  display: inline-block;
  width: 75px;
  height: 36px;
  padding-left: 15px;
  font-size: 12px;
  line-height: 36px;
  color: var(--ink-2);
}
.header-top-about::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 1px; height: 13px;
  background: var(--line);
}
.header-top-about:hover { color: var(--brand); }
.header-top-about.active,
.header-top a.active .header-top-about { color: var(--brand); font-weight: bold; }

.header-top-login {
  position: relative;
  float: right;
  display: inline-block;
  margin-right: 20px;
  height: 36px;
  font-size: 12px;
  line-height: 36px;
  color: var(--ink-2);
}
.header-top-login img { position: absolute; left: -20px; top: 12px; height: 12px; }
.header-top-login a { color: var(--ink-2); }
.header-top-login a:hover { color: var(--brand); }

.header-content {
  width: var(--page);
  height: 90px;
  margin: 0 auto;
  padding: 20px 0;
}
.header-content::after { content: ""; display: table; clear: both; }

/* Logo 槽位 185×48：页头内容区实际高 50px（90 - 上下 padding 20×2），
   原 169×40 只用到 135px 宽、留白偏多；现按 Logo 自身 3.67:1 的比例
   放大到 176×48，并把多出的 16px 从搜索框左间距中让出，
   使搜索框与放大镜图标的绝对位置完全不变。 */
.logo { float: left; width: 185px; height: 48px; margin-top: 1px; }
.logo img { display: block; width: auto; height: 48px; mix-blend-mode: multiply; }

/* 站内搜索 */
.topSearch { position: relative; float: left; height: 44px; }
.topSearch > img { position: absolute; left: 215px; top: 12px; width: 20px; height: 20px; z-index: 2; }
.topSearch input[type="search"] {
  float: left;
  /* 页头 1200 宽：Logo 185 + 间距 203 + 输入框 460 + 按钮 76 = 924，
     再留 19px 间隔给右侧热线区（257px）—— 三者合计 1200 */
  width: 460px;
  height: 44px;
  margin-left: 203px;
  padding: 0 10px 0 40px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-image: linear-gradient(270deg, var(--brand-2) 0%, var(--brand-warm) 100%) 1;
  border-radius: 2px 0 0 2px;
}
.topSearch input[type="search"]::placeholder { color: var(--ink-3); }
/* 搜索按钮：文字用真实 HTML 渲染（而非烘焙进图片），
   背景直接用品牌渐变令牌，因此自动跟随主题换色，也无需为每个主题单独出图。 */
.topSearchA {
  float: left;
  width: 76px;
  height: 44px;
  padding: 0;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--grad-brand);
  border: 0;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: filter var(--t-fast);
}
.topSearchA:hover { filter: brightness(1.08); }
.topSearchA:active { filter: brightness(0.94); }
/* 渐变底上用白色内描边做焦点提示，比默认的品牌色描边更清晰 */
.topSearchA:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* 搜索建议面板：与输入框严丝合缝对齐（左边 203、宽 480 = 输入框尺寸），
   原模板为 left:204 / width:364，比输入框偏 1px 且窄 61px。 */
.searchLinkList {
  position: absolute;
  left: 203px;
  top: 44px;
  z-index: 99;
  width: 460px;
  background: #fff;
  border-radius: 0 0 2px 2px;
  box-shadow: var(--shadow-pop);
}
.searchLinkList[hidden] { display: none; }
.searchLinkList span {
  display: block;
  width: 100%;
  height: 36px;
  padding-left: 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 36px;
  color: rgba(0, 0, 0, 0.65);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.searchLinkList span:hover,
.searchLinkList span.is-active { background: rgba(0, 0, 0, 0.06); }

/* 页头热线区
   高度与页头内容区（90 - 上下 padding 20×2 = 50px）一致，靠 flex 垂直居中，
   避免原先「44px 容器 + 图标 margin-top:7px」导致的图标下沉与溢出。
   宽度用自动收缩（float + auto），因此整块右边缘与内容区对齐。 */
.header-top-service {
  float: right;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
}
.header-top-service > img { flex: 0 0 auto; width: 40px; height: 40px; }
.header-top-service-text { line-height: 1.3; }
.header-top-service-text .service-label { font-size: 12px; color: var(--ink-3); }
.header-top-service-text .service-phone {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  color: var(--ink-2);
}
.header-top-service-text .service-phone a {
  font-size: 18px;
  font-weight: bold;
  color: var(--brand);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.header-top-service-text .service-phone a:hover { color: var(--brand-2); }

/* 主导航（红条） */
.u-header-bottom {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 126px;
  background: var(--grad-brand);
}
.u-header-bottom.is-cloned {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.header-bottom { width: var(--page); height: 44px; margin: 0 auto; }
.top-nav { text-align: center; }
.top-nav > ul > li { position: relative; display: inline-block; }
.top-nav > ul > li > a {
  display: block;
  width: 143px;
  padding: 0 13px;
  font-size: 16px;
  line-height: 40px;
  color: var(--ink);
  text-transform: uppercase;
}
.u-header-bottom .top-nav > ul > li > a { color: #fff; }
.header .top-nav > ul > li .active { color: var(--brand); font-weight: bold; }
.header .top-nav > ul > li > a:hover { color: var(--brand); font-weight: bold; }
.u-header-bottom .top-nav > ul > li > a:hover,
.u-header-bottom .top-nav > ul > li > a.active { color: #fff !important; font-weight: bold; }
.u-header-bottom .top-nav > ul > li > a:hover { opacity: 0.85; }

.more-service-items {
  position: absolute;
  left: 0;
  top: 44px;
  z-index: 999;
  display: none;
  width: 140px;
  height: 310px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
/* 悬停桥接：导航项 li 高 40px，而面板从 44px 才开始，中间 4px 空隙会让
   鼠标一离开导航项就触发 mouseleave、菜单在鼠标到达前面板之前就收起。
   用一个透明的 ::before 把这段空隙盖住（面板本身是 li 的子元素，
   悬停它也等于悬停 li），从而保证鼠标能顺利移入下拉项。 */
.more-service-items::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
}
.more-service:hover > .more-service-items,
.more-service:focus-within > .more-service-items,
.more-service.is-open > .more-service-items { display: block; }
.more-service-items > ul > li {
  height: 44px;
  font-size: 16px;
  line-height: 44px;
  color: var(--ink-3);
  text-align: center;
}
.more-service-items > ul > li > a { color: var(--ink); }
.more-service-items > ul > li:hover a { color: var(--brand); font-weight: bold; }

/* 业务副导航（白条） */
.header-sub-bottom {
  width: 100%;
  height: 82px;
  background: #fff;
  box-shadow: 0 0 14px 0 rgba(219, 219, 219, 0.5);
  text-align: center;
}
.header-sub-bottom > ul {
  display: flex;
  flex-flow: row;
  justify-content: center;
  padding-top: 12px;
}
.header-sub-bottom > ul > li {
  display: flex;
  flex-flow: row;
  justify-content: center;
  margin-right: 30px;
}
.header-sub-bottom > ul > li.last { margin-right: 0; }
.sub-bottom-type {
  width: 56px;
  height: 56px;
  padding-top: 7px;
  font-size: 14px;
  line-height: 21px;
  color: #fff;
  text-align: center;
  background: linear-gradient(136deg, var(--brand-warm-2) 0%, var(--brand-deep) 100%);
  border-radius: 8px;
}
.sub-bottom-items { width: 190px; height: 56px; border-right: 1px solid var(--line); }
/* 「资质代办」组的名称最长（危险品经营许可证 8 字 ≈ 112px），
   40% 单元格需 ≥112px，因此该组给到 300px，避免末尾标签被挤成两行 */
.sub-bottom-items.wide { width: 300px; border: 0; }
.sub-bottom-items a {
  display: inline-block;
  width: 40%;
  height: 28px;
  font-size: 14px;
  line-height: 28px;
  color: var(--ink-2);
  text-align: left;
  /* 短标签一律不折行：否则单元格稍窄就会出现「公司注册」被拆成两行的错位 */
  white-space: nowrap;
}
.sub-bottom-items a:hover,
.sub-bottom-items a.active { color: var(--brand); font-weight: bold; }

/* ========================= 05. 首屏 + 数据条 ========================= */
.head-slides {
  position: relative;
  min-width: var(--page);
  height: 430px;
  background: var(--img-hero) no-repeat 50% 80%;
  background-size: cover;
}
/* 首屏文案。原图把「一站式企业服务 / 17年专业经验」烧在像素里，
   现改为真实 HTML 文字 —— 颜色跟随 --brand，蓝色主站即蓝色，红色副站即红色。
   白色 text-shadow 用来压住照片底纹，保证可读性。 */
.head-slides .hero-copy {
  position: relative;
  z-index: 4;
  padding-top: 96px;
  text-align: center;
}
.head-slides .hero-copy-title {
  font-size: 46px;
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: 4px;
  color: var(--brand);
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.9);
}
.head-slides .hero-copy-sub {
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--brand);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}
.head-slides .slides-item {
  position: absolute;
  bottom: -90px;
  width: var(--page);
  height: 180px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  z-index: 5;
}
.avg-4-box { float: left; width: 300px; height: 100%; padding-top: 30px; text-align: center; }
.avg-4-box .title-text {
  width: 100%;
  height: 32px;
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  line-height: 32px;
  color: var(--brand-2);
}
.avg-4-box .user-text { height: 19px; margin-top: 10px; font-size: 14px; line-height: 19px; color: var(--ink-2); }

/* 说明：原站此处为 <div class="content"> 直接浮动的扁平结构，
   本版使用语义化 <main> 包裹，因此改为普通块级 + 根元素建立 BFC，
   避免宽度 100% 的浮动元素溢出容器、把页脚整体下推。 */
main { display: flow-root; }
.content { width: 100%; margin-top: 135px; }

/* ========================== 06. 业务板块 ========================== */
.gsss { margin-bottom: 60px; }
.gsss-title { margin-bottom: 30px; }
.gsss-title p {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  font-size: 28px;
  line-height: 36px;
  color: var(--ink);
}
.gsss-title p::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 4px; height: 28px;
  background: var(--primary);
}
.gsss-title span { padding-left: 10px; font-size: 15px; color: var(--ink-3); }
.gsss-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gsss-item { text-align: center; cursor: pointer; }
.gsss-item a {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.gsss-item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.12);
}
.gsss-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gsss-cap {
  padding: 14px 10px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}
.gsss-cap i { display: block; margin-top: 4px; font-size: 12px; font-style: normal; font-weight: normal; color: var(--ink-3); }
@keyframes gsss-item {
  16.65% { transform: translateY(8px); }
  33.3% { transform: translateY(-6px); }
  49.95% { transform: translateY(4px); }
  66.6% { transform: translateY(-2px); }
  83.25% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

/* 区块标题 */
.home-title { width: 100%; height: 77px; margin-bottom: 60px; }
.home-title p { width: 100%; height: 43px; font-size: 32px; line-height: 43px; color: var(--ink); text-align: center; }
.home-title span { display: inline-block; width: 100%; height: 24px; margin-top: 10px; font-size: 18px; color: var(--ink-3); text-align: center; }

/* ========================== 07. 信任背书 ========================== */
.trust-section { margin-top: 90px; }
.trust-section .home-title { margin-bottom: 40px; }
.cred-list::after { content: ""; display: table; clear: both; }
.copinfo-box { float: left; width: 25%; height: 100%; padding-top: 20px; text-align: center; transition: padding-top 0.4s; }
.copinfo-box:hover { padding-top: 16px; }
.footer-middle-box-img { width: 110px; height: 110px; margin: 0 auto; }
.footer-middle-box-img img { width: 100%; height: auto; }
.copinfo-box .title-text { width: 100%; min-height: 24px; font-size: 18px; line-height: 24px; color: var(--ink); }
.copinfo-box .user-text { width: 100%; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* =================== 08. 预约表单 + 工商财税知识 =================== */
.consult-section { margin-top: 90px; }
.content-left { float: left; width: 43.5%; padding: 0 20px 60px; }
.content-right { float: left; width: 56.5%; padding: 0 10px 60px 30px; }

.a-form h2,
.a-table h2 {
  position: relative;
  width: 100%;
  padding-left: 14px;
  font-size: 24px;
  line-height: 34px;
  color: var(--brand-2);
  text-align: left;
}
.a-form h2::before,
.a-table h2::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 4px; height: 24px;
  background: var(--brand-2);
}
.a-form h3 { width: 100%; margin: 40px 0 20px; font-size: 18px; color: var(--ink); }

.a-form input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.a-form input[type="checkbox"] + label,
.login_box .login_item input[type="checkbox"] + label { cursor: pointer; }
.a-form input[type="checkbox"] + label > i,
.login_box .login_item input[type="checkbox"] + label > i {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  vertical-align: middle;
  background: #fff;
  border: 1px solid #000;
}
.a-form input[type="checkbox"]:checked + label > i,
.login_box .login_item input[type="checkbox"]:checked + label > i {
  position: relative;
  top: -1px;
  background: var(--brand-2);
  border: 1px solid var(--brand-2);
}
.a-form input[type="checkbox"]:checked + label > i::before,
.login_box .login_item input[type="checkbox"]:checked + label > i::before {
  content: "";
  position: absolute;
  left: 50%; top: 22%;
  width: 4px; height: 8px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform-origin: center;
  transform: translate(-50%, -30%) rotate(40deg);
}
.a-form input[type="checkbox"]:focus-visible + label > i { outline: 2px solid var(--brand); outline-offset: 2px; }

.form-checkbox { float: left; width: 120px; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
.form-block { float: left; width: 100%; }
.form-textarea textarea {
  width: 480px;
  height: 120px;
  padding: 10px;
  color: var(--ink);
  border: 1px solid var(--brand-2);
  resize: vertical;
}
.form-input input {
  width: 480px;
  height: 32px;
  padding-left: 10px;
  color: var(--ink);
  border: 1px solid var(--brand-2);
}
.field-tip { display: none; }
.form-dashed {
  float: left;
  width: 100%;
  height: 40px;
  background: var(--img-dashed) no-repeat 0 100%;
  background-size: 100% auto;
}
.form-submit { float: left; width: 100%; margin-top: 40px; text-align: center; }
.a-form button {
  width: 220px;
  height: 32px;
  font-size: 18px;
  color: #fff;
  background: var(--brand);
  border: 0;
}
.a-form button:hover { background: var(--brand-2); }
.a-form button.submit-disabled { background: #bfbfbf !important; cursor: not-allowed; }

/* 知识区 */
.a-table { position: relative; }
.a-table .a-more { position: absolute; right: 10px; top: 5px; display: inline-block; color: var(--ink-2); }
.a-table .a-more:hover { color: var(--brand); }
.table-wrap { float: left; width: 100%; margin-top: 42px; }
.table-left { float: left; width: 147px; }
.table-left > ul > li {
  width: 147px;
  height: 108px;
  font-size: 18px;
  line-height: 108px;
  color: var(--ink);
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.table-left > ul > li.active {
  color: #fff;
  background: var(--img-table-active) no-repeat;
  background-size: 100% 100%;
}
.table-left > ul > li:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.table-right { float: right; width: 420px; }

.home-news-list li { width: 100%; height: 80px; line-height: 80px; border-bottom: 1px dotted #979797; }
.home-news-list li a { display: flex; justify-content: space-between; font-size: 16px; color: #000; }
.home-news-list li a:hover { color: var(--brand); }
.home-news-list li p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news-list li i { font-style: normal; font-size: 14px; color: var(--ink-3); }

.home-news-list li.news-empty a { color: var(--ink-3); }
.home-news-list li.news-empty a:hover { color: var(--brand); }

.page { width: auto; height: 24px; margin: 36px auto 0; line-height: 24px; }
.page > ul { float: right; }
.page > ul > li {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  text-align: center;
  cursor: pointer;
}
.page > ul > li:hover { color: var(--brand); }
.page > ul li.p-active { color: var(--brand); border: 1px solid var(--brand); }
.page > ul li.p-disabled { opacity: 0.5; cursor: not-allowed; }
.page > ul li.p-disabled:hover { color: inherit; }

/* ========================== 09. 合作客户 ========================== */
.partners-band {
  width: 100%;
  margin-bottom: 90px;
  padding: 60px 0 70px;
  background: var(--bg-soft);
}
.partners-band .home-title { margin-bottom: 20px; }
.partner-intro {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
}
.partner-tags { max-width: 1000px; margin: 0 auto; }
.partner-block { margin-bottom: 36px; }
.partner-block:last-child { margin-bottom: 0; }
.partner-group-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin: 0 0 20px;
  position: relative;
}
.partner-group-label::before,
.partner-group-label::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border-color);
  vertical-align: middle;
  margin: 0 16px;
}
.partner-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.partner-tag {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-main);
  transition: all .25s;
}
.partner-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.partner-district-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.district-cell {
  display: block;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-main);
  text-align: center;
  transition: all .25s;
}
.district-cell:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
@media (max-width: 768px) {
  .partner-district-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =================== 10. 医疗器械经营资质类目 =================== */
.core-section { margin-top: 90px; }
.core-section .home-title { margin-bottom: 46px; }
.core-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.core-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.12);
}
.core-card-img img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  border-radius: 8px;
}
.core-card-title {
  margin: 16px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.core-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.core-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.core-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.box-bottom-btn { float: left; width: 100%; height: 60px; margin-top: 40px; text-align: center; }
.box-bottom-btn button {
  width: 440px;
  height: 60px;
  font-size: 18px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 16px;
}
.box-bottom-btn button:hover { background: var(--brand-2); }

/* ========================== 11. 客户评价 ========================== */
.eval-band {
  width: 100%;
  margin-top: 70px;
  padding: 90px 0;
  background: var(--bg-soft);
}
.eval-band .home-title { margin-bottom: 50px; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.12);
}
.client-quote {
  font-size: 60px;
  line-height: 40px;
  color: var(--primary);
  font-family: Georgia, serif;
  margin: 0 0 12px;
}
.client-desc {
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.client-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.client-tag {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 4px;
}
.client-name {
  font-size: 13px;
  color: var(--ink-3);
}

/* ========================== 12. 服务保障 ========================== */
.assurance-section { margin-top: 70px; }
.assur-item p { color: var(--brand-2); }
.assur-item p.assur-title { padding: 20px 0; font-size: 24px; }
.assur-item span { font-size: 14px; line-height: 19px; color: var(--ink-3); }
.assur-item img { width: 120px; height: 120px; }

/* ============================= 13. 页脚 ============================= */
/* 页脚上部（品牌卡片 + “立足上海…”寄语）整块已删除。
   因此这里不再需要 min-height：原先是为了兜住原站固定 height:1005px 而留，
   现在页脚高度由 .middle / .flinks / .bottom 自然撑开，留 min-height 反而会在
   页面底部多出一大片空白。 */
.footer { width: 100%; min-width: var(--page); }

.footer .middle { height: 250px; }
.footer .middle .lin-content::after { content: ""; display: table; clear: both; }

.flinks { width: 100%; background: #fafafa; }
.flinks-head { padding-top: 20px; }
.flinks-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 14px;
  color: #fff;
  background: var(--brand);
  border: 0;
}
.flinks ul { padding: 15px 0; }
.flinks ul li { display: inline-block; padding: 10px 30px 10px 0; cursor: pointer; }
.flinks ul li a { color: var(--ink-2); }
.flinks ul li a:hover { color: var(--brand); }

.footer .bottom { width: 100%; background: var(--ink); padding: 20px 0 30px; }
.footer .bottom .lin-content { display: flex; justify-content: space-between; align-items: flex-start; }
.bottom-box { width: 48%; }
.bottom-box-text1 { width: 179px; height: 32px; margin-top: 16px; font-size: 24px; line-height: 32px; letter-spacing: 1px; color: #fff; }
.bottom-box-text2 { font-size: 14px; line-height: 19px; color: #fff; margin-top: 12px; }
.bottom-brand { margin: 16px 0; }
.bottom-brand img { width: 100px; height: auto; margin-right: 30px; transition: transform 0.4s ease; }
.bottom-brand img:hover { transform: scale(1.2); }
/* 服务区域文字块（替代原品牌图片行） */
.serve-area { font-size: 14px; line-height: 24px; color: rgba(255, 255, 255, 0.82); }
.serve-area-parks { margin-top: 8px; opacity: 0.75; }
.copyright { margin-top: 16px; font-size: 14px; line-height: 19px; color: #fff; text-align: right; }
.copyright a { color: #fff; }
.copyright a:hover { color: var(--brand-warm); }
.clear-input { position: relative; width: 425px; height: 44px; margin-top: 60px; margin-left: auto; }
.clear-input input {
  width: 425px;
  height: 44px;
  padding-left: 15px;
  border: 0;
  outline-color: #fff;
}
.clear-input button {
  position: absolute;
  right: 0; top: 0;
  height: 44px;
  padding: 13px 15px;
  background: transparent;
  border: 0;
}
.clear-input button img { width: 20px; height: 20px; }

/* ========================= 14. 悬浮组件 ========================= */
.float-nav {
  position: fixed;
  left: 12px;
  top: 180px;
  z-index: 888;
  width: 124px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(14, 66, 210, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06); /* 蓝色调阴影，红色主题下可忽略 */
  overflow: hidden;
}
.float-nav.is-hidden { display: none; }
.float-nav-head {
  position: relative;
  width: 100%;
  padding: 20px 10px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-indent: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-2) 100%);
}
.float-nav-head::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}
.float-nav-head::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 74px;
  height: 74px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.float-nav-head img { width: 96px; height: 38px; }
.float-nav ul { padding: 6px 0 8px; }
.float-nav ul li {
  position: relative;
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
}
.float-nav ul li a { display: block; height: 42px; line-height: 42px; }
.float-nav ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
  transition: height 0.2s ease;
}
.float-nav ul li span {
  display: inline-block;
  font-size: 13px;
  line-height: 42px;
  letter-spacing: 0.5px;
  color: var(--ink-2);
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.float-nav ul li:hover { background: var(--brand-tint-1); }
.float-nav ul li:hover::before { height: 22px; }
.float-nav ul li:hover span { color: var(--brand); font-weight: 600; }
#float-nav-close {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#float-nav-close:hover { background: var(--brand); border-color: var(--brand); }
#float-nav-close img { width: 16px; height: 16px; transition: filter 0.2s ease; }
#float-nav-close:hover img { filter: invert(1); }

.right_bar {
  position: fixed;
  right: 0;
  top: 180px;
  z-index: 888;
  width: 68px;
  height: 408px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.right_bar a.link {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  transition: all linear 0.2s;
}
.right_bar a.link:last-child { border-bottom: 0; }
.right_bar .ic1 { border-radius: 8px 8px 0 0; }
.right_bar .ic6 { border-radius: 0 0 8px 8px; }
.right_bar a.link:hover { color: #fff; background: var(--grad-brand-226); }
.right_bar a.link > img { position: absolute; top: 10px; left: 21px; width: 26px; height: 26px; }
.right_bar a.link > .rightbar-img { opacity: 1; }
.right_bar a.link:hover > .rightbar-img { opacity: 0; }
.right_bar a.link > .rightbar-act-img { opacity: 0; }
.right_bar a.link:hover > .rightbar-act-img { opacity: 1; }
.right_bar .link-title { position: absolute; bottom: 10px; width: 100%; font-size: 12px; text-align: center; }

.right_bar .ic_box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: 68px;
  top: -20px;
  overflow: hidden;
  transition: all linear 0.2s;
}
.right_bar .link:hover .ic_box,
.right_bar .link:focus-within .ic_box { visibility: visible; opacity: 1; }
.right_bar .ic_box .txt-arrow {
  position: absolute;
  right: 4px;
  top: 30px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-left-color: #fff;
}
.right_bar .ic2_box { width: 278px; height: 270px; padding: 20px 40px 20px 20px; }
.right_bar .ic2_box .ic_content {
  position: relative;
  width: 238px;
  height: 161px;
  padding: 20px 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.right_bar .ic2_box .ic_content div { width: 100%; color: var(--ink); }
.right_bar .ic2_box .ic_content .sub-text { padding: 0; font-size: 12px; color: var(--ink-3); text-align: left; }
.right_bar .ic2_box .ic_content span { font-weight: bold; color: var(--brand); }
.call-input-row { display: flex; }
.right_bar .ic2_box .ic_content input {
  width: 147px;
  height: 40px;
  padding-left: 15px;
  border: 1px solid var(--brand-2);
  border-radius: 5px 0 0 5px;
  outline-color: #fff;
  vertical-align: middle;
}
.right_bar .ic2_box .ic_content button {
  width: 70px;
  height: 40px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-warm-2) 0%, var(--brand-deep) 100%);
  border: 0;
  border-radius: 0 8px 8px 0;
}
.call-hotline { margin-top: 20px; text-align: left; }

.right_bar .ic4_box { width: 278px; height: 125px; padding: 20px 40px 20px 20px; }
.right_bar .ic4_box .ic_content { position: relative; width: 238px; height: 85px; background: #fff; box-shadow: var(--shadow-soft); }
.right_bar .ic4_box .txt {
  float: left;
  width: auto;
  height: 30px;
  padding: 15px 0 0 15px;
  font-size: 14px;
  line-height: 30px;
  color: var(--ink);
  white-space: nowrap;
  border-radius: 4px;
}
.right_bar .ic4_box .txt-sub { font-size: 12px; color: var(--ink-3); }
.right_bar .ic4_box .er_code {
  position: absolute;
  right: 8px; top: 8px;
  width: 68px;
  height: 68px;
  background: var(--img-qr) no-repeat;
  background-size: contain;
}

/* ============================= 15. 弹窗 ============================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100000000;
  display: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}
.modal.is-open { display: block; }
.modal[hidden] { display: none; }

.modal .close {
  position: absolute;
  color: #fff;
  background: transparent;
  border: 0;
}
.enroll_form .close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  line-height: 44px;
  text-align: center;
}
.checkname_form .close { top: 0; right: 10px; width: 24px; height: 22px; font-size: 24px; color: var(--ink-3); }

/* 在线留言 / 注册 */
.enroll_form {
  position: absolute;
  top: 50%; left: 50%;
  width: 400px;
  margin-left: -200px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: left;
}
.enroll_form .enroll-sub { width: 100%; font-size: 22px; font-weight: 700; color: var(--ink); text-align: center; }
.enroll_form .enroll-slogan {
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}
.enroll_form .ef-field { margin-top: 16px; }
.enroll_form .ef-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.enroll_form .ef-field label i { color: #e53935; font-style: normal; }
.enroll_form input,
.enroll_form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.enroll_form input:focus,
.enroll_form textarea:focus { border-color: var(--brand); }
.enroll_form textarea { resize: vertical; font-family: inherit; }
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.enroll_form .ef-submit {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.enroll_form .ef-submit:hover { background: var(--brand-deep, #0e42d2); }
.enroll_form .ef-tip { margin-top: 12px; font-size: 12px; color: #bbb; text-align: center; }
.enroll_finish button,
.fail_box button {
  font-size: 21px;
  color: #fff;
  background: var(--grad-btn);
  border: 0;
  border-radius: 23px;
}

/* 公司查名 */
.checkname_form {
  position: absolute;
  top: 50%; left: 50%;
  width: 375px;
  height: 524px;
  margin: -250px auto auto -150px;
  padding: 170px 30px 0;
  text-align: center;
  background: #fff var(--img-checkname-form) no-repeat -4px 0;
  background-size: 383px auto;
  border-radius: 8px;
}
.checkname_form input {
  width: 100%;
  height: 32px;
  margin-bottom: 15px;
  padding-left: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.checkname_form .cityinput { cursor: pointer; }
.checkname_form .province-field,
.checkname_form .industry-field,
.checkname_form .company-field { position: relative; display: inline-block; width: 100%; }
.checkname_form .company-field { width: 100%; }
.checkname_form .ljt { position: absolute; top: 5px; right: 10px; cursor: pointer; color: var(--ink-3); }
.checkname_form .ljt img { width: 12px; height: 12px; }
.checkname_form .two-col { display: flex; gap: 4%; }
.checkname_form .two-col > div { width: 48%; }
.checkname_form button#footer_gshm_enroll {
  width: 100%;
  height: 32px;
  margin: 29px 0;
  font-size: 21px;
  color: #fff;
  background: linear-gradient(270deg, var(--brand-warm-4) 0%, var(--brand-warm-3) 100%);
  border: 0;
  border-radius: 23px;
}
.checkname_form .form-hint { width: 100%; font-size: 10px; line-height: 14px; color: var(--ink-3); text-align: center; }

.gshm-province {
  position: absolute;
  left: 0; top: 32px;
  z-index: 10;
  display: none;
  width: 840px;
  padding: 20px 5px 25px 20px;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
}
.gshm-province.is-open { display: block; }
.gshm-province .hot { width: 100%; margin-bottom: 25px; }
.gshm-province .hot span {
  height: 24px;
  margin-right: 10px;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
}
.gshm-province .hot .hot-label { color: var(--ink); cursor: default; }
.gshm-province .list { width: 100%; }
.gshm-province .list span {
  display: inline-block;
  width: 80px;
  height: 30px;
  margin: 0 10px 15px 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  text-align: center;
  background: #f5f5f5;
  border-radius: 2px;
  cursor: pointer;
}
.gshm-province .list span:hover,
.gshm-province .list span.click { color: #fff; background: var(--accent-ink); }

.footer_hylx {
  position: absolute;
  left: 0; top: 32px;
  z-index: 10;
  display: none;
  width: 705px;
  height: 295px;
  padding: 20px;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
}
.footer_hylx.is-open { display: block; }
.footer_hylx .hot { height: 24px; margin-bottom: 20px; font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--ink); }
.footer_hylx .background {
  display: inline-block;
  width: 80px;
  height: 30px;
  font-size: 14px;
  line-height: 30px;
  color: #fefefe;
  text-align: center;
  background: var(--brand);
  border-radius: 2px;
}
.footer_hylx span {
  display: inline-block;
  height: 30px;
  margin-right: 10px;
  font-size: 14px;
  line-height: 30px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.footer_hylx span:hover { color: var(--accent-ink); }
.footer_hylx span.background:hover { color: #fff; }
.footer_hylx .none { margin-top: 20px; font-size: 18px; font-weight: bold; line-height: 24px; letter-spacing: 1px; color: var(--ink); }
.footer_hylx .none .req { font-size: 14px; }

.footer_company {
  position: absolute;
  left: 0; top: 32px;
  z-index: 10;
  display: none;
  width: 100%;
  height: 72px;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-pop);
}
.footer_company.is-open { display: block; }
.footer_company span {
  display: block;
  padding-left: 12px;
  font-size: 14px;
  line-height: 36px;
  color: #000;
  cursor: pointer;
}
.footer_company span:hover { background: rgba(0, 0, 0, 0.05); }

/* 登录 / 注册 */
.login_box { z-index: 1000000; background: rgba(0, 0, 0, 0.25); }
.login_form {
  position: absolute;
  top: 160px; left: calc(50% - 300px);
  width: 600px;
  height: 506px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}
.login_head { width: 600px; height: 70px; background: #fafafa; border-radius: 8px 8px 0 0; }
.login_head_img { float: left; padding: 22px 20px; }
.login_head_img img { width: 110px; height: auto; mix-blend-mode: multiply; }
.login_box_close {
  float: right;
  padding: 15px 21px 0 0;
  font-size: 28px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
}
.login_title {
  width: 100%;
  padding: 40px;
  font-size: 18px;
  font-weight: bold;
  line-height: 24px;
  letter-spacing: 1px;
  color: var(--ink);
  text-align: center;
}
.login_item .input_item {
  position: relative;
  width: 600px;
  height: 40px;
  margin-bottom: 20px;
  padding-left: 73px;
  text-align: left;
}
.login_input {
  float: left;
  width: 455px;
  height: 40px;
  padding-left: 41px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login_item .input_item > img { position: absolute; left: 88px; top: 13px; height: 14px; }
.login_code_btn {
  position: absolute;
  left: 379px;
  width: 149px;
  height: 40px;
  color: #fff;
  background: linear-gradient(270deg, var(--brand-2) 0%, var(--brand-warm) 100%);
  border: 0;
  border-radius: 8px;
}
.login_item .code-input { width: 296px; }
.login_item .input_item:last-child .login_code_btn { left: 73px; width: 455px; }
.btn_disabled { background: #bfbfbf !important; cursor: not-allowed; }
.login_item .form-checkbox { float: none; width: auto; margin-bottom: 0; }
.login_item .form-checkbox label { font-size: 14px; color: #000; }

.warn-msg {
  position: absolute;
  left: 80px;
  top: 40px;
  display: none;
  font-size: 12px;
  color: var(--brand);
}
.warn-msg.is-visible { display: block; }

/* 提交结果 */
.enroll_finish {
  position: absolute;
  top: 50%; left: 50%;
  width: 316px;
  height: 382px;
  margin: -200px auto auto -158px;
  padding: 0 14px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
}
.enroll_finish img { margin-top: -30px; width: 140px; height: 140px; }
.enroll_finish .finish-title { width: 100%; height: 32px; margin-top: 14px; font-size: 24px; line-height: 32px; letter-spacing: 1px; color: var(--ink); text-align: center; }
.enroll_finish .finish-sub { width: 100%; height: 24px; margin-top: 10px; font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--ink-3); text-align: center; }
.fail_box {
  position: absolute;
  top: 50%; left: 50%;
  width: 316px;
  height: 200px;
  margin: -200px auto auto -158px;
  padding: 0 14px;
  text-align: center;
  background: #fff;
}
.fail_box p { width: 100%; height: 32px; margin-top: 14px; font-size: 24px; line-height: 32px; letter-spacing: 1px; color: var(--ink); text-align: center; }
.fail_box span { display: inline-block; width: 100%; height: 24px; margin-top: 30px; font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--ink-3); text-align: center; }

/* ================== 16. 响应式与可访问性增强 ==================
   说明：≥1200px 时与原站完全一致；窄屏下仅做“不改变视觉语言”的
   自适应收窄，避免出现横向滚动条，便于移动端收录与阅读。      */
@media screen and (max-width: 1199px) {
  body { min-width: 0; overflow-x: hidden; }
  .lin-content,
  .header-content,
  .header-bottom,
  .head-slides .slides-item,
  .client-list { width: 100%; padding-left: 12px; padding-right: 12px; }
  .head-slides,
  .footer,
  .eval-band { min-width: 0; }
  .head-slides { height: 300px; }
  .head-slides .hero-copy { padding-top: 58px; }
  .head-slides .hero-copy-title { font-size: 30px; letter-spacing: 2px; }
  .head-slides .hero-copy-sub { margin-top: 10px; font-size: 15px; letter-spacing: 2px; }
  .head-slides .slides-item { position: static; height: auto; margin-top: -60px; padding: 20px 12px; }
  .avg-4-box { width: 50%; padding: 16px 0; }
  .content { margin-top: 40px; }
  .gsss-items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gsss-item img { height: 130px; }
  .gsss-title span { display: block; padding-left: 0; padding-top: 6px; }
  .copinfo-box { width: 50%; margin-bottom: 20px; }
  .content-left,
  .content-right { width: 100%; padding: 0 0 40px; }
  .form-input input,
  .form-textarea textarea { width: 100%; }
  .table-left { width: 100%; }
  .table-left > ul { display: flex; flex-wrap: wrap; }
  .table-left > ul > li { flex: 1 1 33.33%; width: auto; height: 48px; line-height: 48px; font-size: 15px; }
  .table-right { float: left; width: 100%; margin-top: 16px; }
  .partners-band { padding: 40px 0 50px; }
  .partner-tag { padding: 8px 16px; font-size: 13px; }
  .core-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .core-card { padding: 16px 12px; }
  .box-bottom-btn button { width: 100%; max-width: 440px; font-size: 16px; height: 52px; }
  .client-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer { height: auto; padding-bottom: 40px; }
  .footer .middle { height: auto; }
  .footer .middle { padding-bottom: 12px; }
  .bottom-box { width: 100%; padding: 0 16px; }
  .copyright,
  .clear-input { float: left; width: 100%; margin-top: 16px; text-align: left; }
  .clear-input input { width: 100%; }
  .bottom-box-text2 { width: 100%; height: auto; }
  .float-nav { display: none; }
  .service-float { display: none; }
  .right_bar { top: auto; bottom: 12px; height: auto; }
  .right_bar a.link { height: 52px; }
  .right_bar a.link > img { top: 6px; left: 13px; }
  .right_bar .link-title { bottom: 4px; }
  .right_bar .ic_box { display: none; }
  .header-sub-bottom { height: auto; padding-bottom: 12px; overflow-x: auto; }
  .header-sub-bottom > ul { flex-wrap: wrap; }
  .header-sub-bottom > ul > li { margin: 0 8px 10px; }
  /* 不再缩窄副导航单元格：窄屏下由 flex-wrap 换行承接，
     若缩小单元格会让「著作权登记」「危险品经营许可证」等长标签折行 */
  .sub-bottom-items { width: 190px; }
  .sub-bottom-items.wide { width: 300px; }
  .topSearch { display: none; }
  .login_form,
  .enroll_form,
  .checkname_form,
  .enroll_finish,
  .fail_box {
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    max-width: calc(100vw - 24px);
  }
  .login_form { width: 100%; }
  .login_item .input_item { width: 100%; padding-left: 16px; padding-right: 16px; }
  .login_input { width: 100%; }
  .login_item .input_item > img { left: 30px; }
  .login_code_btn { left: auto; right: 16px; }
  .login_item .code-input { width: 60%; }
  .gshm-province,
  .footer_hylx { width: calc(100vw - 60px); }
  .gshm-province .list span { width: 72px; }
}

/* 尊重“减少动态效果”偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印：隐藏所有悬浮与弹窗组件 */
@media print {
  .float-nav,
  .right_bar,
  .modal,
  .loading { display: none !important; }
}


/* ============ 微信客服直达卡片 ============ */
.enroll_wecom .enroll-sub { text-align: center; }
.enroll_wecom .enroll-slogan { text-align: center; }
.wecom-entry { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.wecom-btn, .wecom-phone {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 10px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.wecom-btn { background: linear-gradient(135deg,#165DFF,#0E42D2); color: #fff; }
.wecom-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,93,255,.3); }
.wecom-phone { background: #F5F7FA; color: #1D2129; }
.wecom-phone:hover { background: #E8F0FF; }
.wecom-ico { font-size: 24px; flex-shrink: 0; }
.wecom-txt { display: flex; flex-direction: column; }
.wecom-txt b { font-size: 15px; font-weight: 600; }
.wecom-txt small { font-size: 12px; opacity: .75; margin-top: 2px; }

/* ============ 首页联系客服卡片（新版协调设计） ============ */
.a-form.consult-card {
  background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
  border: 1px solid #E6EDFF;
  border-radius: 12px;
  padding: 28px 28px 20px;
  margin-top: 4px;
}
.consult-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.consult-card-hico {
  width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, #165DFF, #4080FF);
  flex-shrink: 0;
}
.consult-card-head h2 { font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 700; padding-left: 0; }
.consult-card-head h2::before { display: none; }
.consult-card-sub { font-size: 13px; color: var(--ink-3); margin: 6px 0 20px; }

.consult-card-btn,
.consult-card-phone {
  display: flex; align-items: center; gap: 14px;
  width: 100%; box-sizing: border-box;
  padding: 14px 16px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  margin-bottom: 12px;
}
.consult-card-btn { background: linear-gradient(135deg, #165DFF, #0E42D2); color: #fff; }
.consult-card-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,93,255,.28); }
.consult-card-phone { background: #fff; border: 1px solid #E6EDFF; color: var(--ink); }
.consult-card-phone:hover { background: #F2F6FF; }

.cc-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cc-icon-wecom { background: rgba(255,255,255,0.18); }
.cc-icon-phone { background: #F2F6FF; }
.cc-icon-phone::before {
  content: ""; width: 18px; height: 18px; border: 2px solid #165DFF;
  border-radius: 50%; background: transparent;
}
.cc-text { display: flex; flex-direction: column; flex: 1; }
.cc-text b { font-size: 15px; font-weight: 600; }
.cc-text small { font-size: 12px; opacity: .78; margin-top: 2px; }
.cc-arrow { font-size: 22px; font-weight: 300; opacity: .6; }

.consult-card-points {
  display: flex; gap: 10px; margin: 16px 0 6px;
}
.consult-card-points span {
  flex: 1; text-align: center; font-size: 12px; color: var(--ink-2);
  background: #fff; border: 1px solid #E6EDFF; border-radius: 8px;
  padding: 7px 0;
}
.consult-card-note { font-size: 12px; color: #C9CDD4; text-align: center; margin-top: 14px; }


/* ============ 右侧客服悬浮导航 ============ */
.service-float {
  position: fixed;
  right: 12px;
  top: 180px;
  z-index: 889;
  width: 148px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(14, 66, 210, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.service-float-head {
  position: relative;
  width: 100%;
  padding: 16px 10px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-2) 100%);
}
.service-float-head::after {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -30px;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.service-float ul { padding: 8px 12px 10px; }
.service-float ul li { width: 100%; margin-bottom: 8px; }
.service-float ul li:last-child { margin-bottom: 0; }
.service-float ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.service-float ul li a:hover { background: var(--brand-tint-1); transform: translateX(-2px); }
.service-float .sf-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand-light, #E8F0FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-float .sf-ico img { width: 16px; height: 16px; }
.service-float ul li a:hover .sf-ico { background: var(--brand); }
.service-float ul li a:hover .sf-ico img { filter: invert(1); }
.service-float .sf-text { display: flex; flex-direction: column; line-height: 1.15; }
.service-float .sf-text b { font-size: 15px; font-weight: 700; color: var(--ink); }
.service-float ul li a:hover .sf-text b { color: var(--brand); }
.service-float .sf-text small { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.service-float .sf-phone-num { font-size: 15px; font-weight: 700; color: var(--brand); white-space: nowrap; letter-spacing: 0.5px; }

/* ============ 右侧客服悬浮 - 纯CSS图标 ============ */
.sf-ico-wecom { position: relative; background: #E8F0FF; }
.sf-ico-wecom::before {
  content: "";
  width: 14px; height: 11px;
  background: var(--brand);
  border-radius: 3px;
  position: relative;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.sf-ico-wecom::after {
  content: "";
  width: 5px; height: 5px;
  border: 2px solid #fff;
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
  position: absolute;
  right: 6px; bottom: 6px;
  background: transparent;
}
.sf-ico-phone { background: #E8F0FF; }
.sf-ico-phone::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: transparent;
}

/* ======================================================================
   常用电脑分辨率适配（覆盖固定1200px布局，流式自适应）
   - 超宽屏（>=1680）：内容区加宽至 1400px，充分利用宽屏，避免两侧大片空白
   - 标准大屏（>=1440）：内容区 1320px
   - 主流笔记本（1200-1439）：保持 1200px 原布局
   - 中屏笔记本/平板（992-1199）：内容区跟随视口收缩，两栏按比例缩小，
     不再直接塌成手机单列
   - 小屏（768-991）：两栏堆叠 + 网格 2 列
   ====================================================================== */

/* ---------- 内容区流式化：不再被 min-width:1200 撑出横向滚动 ---------- */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 1199px) {
  body { overflow-x: clip; }
}

/* ---------- 超宽屏 / 宽屏：内容区加宽 ---------- */
@media (min-width: 1680px) {
  :root { --page: 1400px; }
}
@media (min-width: 1440px) and (max-width: 1679px) {
  :root { --page: 1320px; }
}

/* ---------- 中屏 992-1199：保持桌面布局，内容跟随视口 ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .lin-content,
  .header-content,
  .header-bottom,
  .footer .lin-content { width: calc(100% - 32px); }

  /* 首页左咨询卡片 / 右知识区：按比例收缩，保持并排 */
  .content-left { width: 44%; }
  .content-right { width: 56%; padding-left: 28px; }
  .consult-card { padding: 24px 20px 16px; }

  /* 预约表单控件跟随容器 */
  .form-input input,
  .form-textarea textarea { width: 100%; }
  .form-checkbox { width: auto; margin-right: 16px; }

  /* 知识区表格：左分类 + 右列表并排收窄 */
  .table-left { width: 130px; }
  .table-right { width: calc(100% - 146px); }
  .table-left > ul > li { height: 96px; line-height: 96px; font-size: 16px; }

  /* 业务网格：4 列 -> 2 列 */
  .gsss-items { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* 医疗器械类目：4 列 -> 2 列 */
  .core-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* 信任背书 4 宫格：2 列 */
  .copinfo-box { width: 50%; }

  /* 客户评价网格 */
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* 副导航：允许横向滚动不换行错乱 */
  .header-sub-bottom { overflow-x: auto; }
  .sub-bottom-items { width: auto; padding: 0 10px; }
  .sub-bottom-items.wide { width: auto; }
}

/* ---------- 小屏 768-991：桌面向手机过渡，两栏堆叠、网格 2 列 ---------- */
@media (min-width: 768px) and (max-width: 991px) {
  .lin-content,
  .header-content,
  .header-bottom,
  .footer .lin-content { width: calc(100% - 24px); }

  .content-left,
  .content-right { width: 100%; float: none; padding: 0 0 36px; }
  .form-input input,
  .form-textarea textarea { width: 100%; }
  .gsss-items { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .core-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .copinfo-box { width: 50%; }
  .client-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ======================================================================
   浮动导航修复：小屏不隐藏 + 电话号完整显示
   ====================================================================== */

/* 1) 服务导航宽度加宽，保证电话号完整显示 */
.service-float { width: 170px; }

/* 2) 电话号：去掉间隔空格 + 调小字距，确保 18918966557 不溢出 */
.service-float .sf-phone-num {
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}

/* 3) 中等屏幕（768-1199）：浮动导航保留但紧凑显示，不再 display:none */
@media (max-width: 1199px) and (min-width: 768px) {
  .float-nav { display: block; }
  .service-float { display: block; }

  /* 左侧导航紧凑化 */
  .float-nav { width: 104px; }
  .float-nav-head { padding: 12px 8px 10px; font-size: 14px; letter-spacing: 2px; }
  .float-nav ul li { height: 36px; line-height: 36px; }
  .float-nav ul li a { height: 36px; line-height: 36px; }
  .float-nav ul li span { font-size: 12px; line-height: 36px; }
  #float-nav-close { bottom: -24px; width: 36px; height: 36px; }

  /* 右侧服务导航紧凑化 */
  .service-float { width: 150px; }
  .service-float ul { padding: 6px 10px 8px; }
  .service-float .sf-text b { font-size: 13px; }
  .service-float .sf-text small { font-size: 11px; }
  .service-float .sf-phone-num { font-size: 13px; }
}

/* 4) 很窄屏（<768）：浮动导航隐藏（走移动端布局） */
@media (max-width: 767px) {
  .float-nav { display: none; }
  .service-float { display: none; }
}
