@charset "utf-8";
@import url('tokens.css');

/* ============================================================
   1. RESET
   ------------------------------------------------------------
   cui.css 已做基础 margin/padding/list-style reset，此处只补
   box-sizing 与聚焦轮廓。
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
html {
  -webkit-text-size-adjust: 100%;
  /* 防止横向滚动;hidden 会让 html 成为滚动容器、破坏后代 position:sticky,
     故现代浏览器用 clip(不建滚动容器),旧浏览器回退 hidden */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-2);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 防止横向滚动(同 html:clip 不破坏 sticky) */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}
a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: var(--link-hover);
}
a img {
  border: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  transition:
    transform var(--dur-slow) var(--ease),
    opacity var(--dur) var(--ease);
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--fw-medium);
  color: var(--ink);
  line-height: var(--lh-snug);
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink-2);
}
input[type='submit'],
input[type='reset'],
input[type='button'],
select {
  -webkit-appearance: none;
  appearance: none;
}
::selection {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ============================================================
   DTF 作用域基础（首页 / 产品页等 .dtf 页面通用）
   原位于 home.css，因 yooplink 等非首页也需要故移入此。
   ============================================================ */
.dtf *,
.dtf *::before,
.dtf *::after {
  box-sizing: border-box;
}
.dtf {
  margin: 0;
  padding: 0;
}
body.dtf {
  font-family: 'Poppins', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.dtf img {
  max-width: 100%;
  display: block;
}
.dtf a {
  text-decoration: none;
  color: inherit;
}
.dtf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dtf h1,
.dtf h2,
.dtf h3,
.dtf h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}
.dtf p {
  margin: 0;
}
.dtf .wp {
  max-width: var(--maxw);
  margin: 0 150px;
}
.dtf .c {
  clear: both;
}

/* section heading */
.dtf .sec-head.left {
  text-align: left;
  margin-left: 0;
}
.dtf .sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.dtf .sec-eyebrow::before,
.dtf .sec-eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
  opacity: 0.7;
}
.dtf .sec-eyebrow::after {
  background: linear-gradient(90deg, var(--brand), transparent);
}
.dtf .sec-head.left .sec-eyebrow::before {
  display: none;
}
.dtf .sec-title {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--ink);
}
.dtf .sec-title .ac {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dtf .sec-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}
.dtf .sec-pad {
  padding: 100px 0 0 0;
  position: relative;
}

/* ---------- 按钮（.dtf 作用域） ---------- */
.dtf .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  padding: 0 34px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
}
.dtf .btn-dark {
  background: #111;
  color: #fff;
}
.dtf .btn-dark:hover {
  background: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}
.dtf .btn-brand {
  background: var(--grad-brand);
  color: #fff;
}
.dtf .btn-brand:hover {
  transform: translateY(-3px);
}
.dtf .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.dtf .btn-outline:hover {
  background: #fff;
  color: #111;
  transform: translateY(-3px);
}
.dtf .btn-outline.ink {
  color: var(--ink);
  border-color: var(--line);
}
.dtf .btn-outline.ink:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dtf .btn-outline.fill {
  background: #fff;
  color: var(--ink);
  border-color: #a4a4a4;
}
.dtf .btn-outline.fill:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-3px);
}
.dtf .btn-sm {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
}
.dtf .btn-brand::after,
.dtf .btn-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.dtf .btn-brand:hover::after,
.dtf .btn-dark:hover::after {
  left: 140%;
}

/* arrow link */
.dtf .more-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  min-width: 180px;
  padding: 4px 1px 4px 32px;
  border: 1px solid #a4a4a4;
  border-radius: 65px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.dtf .more-link:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(14, 23, 38, 0.08);
}
.dtf .more-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: background 0.3s var(--ease);
}
.dtf .more-link:hover .more-link-icon {
  background: var(--brand);
}
.dtf .more-link-icon svg {
  transition: transform 0.3s var(--ease);
}
.dtf .more-link:hover .more-link-icon svg {
  transform: translateX(3px);
}

/* ---------- 动效：滚动入场 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js [data-reveal='left'] {
  transform: translateX(-40px);
}
.js [data-reveal='right'] {
  transform: translateX(40px);
}
.js [data-reveal='zoom'] {
  transform: scale(0.94);
}
.js [data-reveal].in {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 滚动条（桌面） */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c9d2dc;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

/* ============================================================
   3. 布局容器
   ------------------------------------------------------------
   lib.css .wp{max-width:1540px}，保留内页 1540 上限。
   ============================================================ */

.main {
  position: relative;
}
.c {
  clear: both;
}
.clearfix {
  *zoom: 1;
}
.clearfix::after {
  content: ' ';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* ============================================================
   4. 内页 banner
   ============================================================ */
.ban {
  height: clamp(200px, 22vw, var(--ban-h));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ============================================================
   5. 面包屑 g-cur
   ============================================================ */
.g-cur {
  height: 40px;
  line-height: 40px;
  background: var(--bg-muted);
}
.g-cur .wp {
  background: url('../images/home.png') left center no-repeat;
  padding-left: var(--sp-5);
  box-sizing: border-box;
}
.g-cur .wp a {
  color: var(--ink-2);
  transition: color var(--dur);
}
.g-cur .wp a:hover {
  color: var(--brand);
}

/* ============================================================
   6. 主区两栏 row-b1
   ============================================================ */
.row-b1 {
  overflow: hidden;
  padding: var(--sp-5) 0 56px;
}
.row-b1 .col-l {
  width: var(--sidebar-w);
}
.row-b1 .col-r {
  float: none;
  overflow: hidden;
  margin-left: calc(var(--sidebar-w) + var(--sidebar-gap));
}

/* ============================================================
   7. 标题系列（橙→蓝）
   ============================================================ */
.g-titIns1 {
  height: 44px;
  line-height: 44px;
  font-size: var(--fs-xl);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-weight: var(--fw-normal);
  position: relative;
}
.g-titIns1::after {
  content: '';
  width: 80px;
  height: 1px;
  background: var(--brand);
  position: absolute;
  left: 0;
  bottom: -1px;
}
.g-tit01 {
  text-align: center;
  padding: var(--sp-12) 0;
}
.g-tit01 h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--g-tit-fs);
  color: var(--brand);
  font-weight: var(--fw-normal);
}
.g-tit01 p {
  font-size: var(--fs-md);
  color: var(--muted);
}
.g-tit02 {
  font-size: var(--g-tit02-fs);
  color: var(--brand);
  font-weight: var(--fw-normal);
  font-family: var(--font-mono);
}
.g-tit02 span {
  padding-right: 60px;
  background: url(../images/i6.png) right center no-repeat;
  background-size: contain;
}
.g-tit3 {
  padding-bottom: var(--sp-3);
  font-size: var(--fs-md);
  color: var(--brand);
  border-bottom: 1px solid var(--line);
}
.g-tit3 span {
  font-weight: var(--fw-normal);
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   8. 侧导航 snv
   ============================================================ */
.snv {
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.snv li {
  line-height: 44px;
  background: url('../images/icon12.png') 6px 18px no-repeat;
  text-indent: 20px;
  background-size: auto 10px;
}
.snv li a {
  display: block;
  color: var(--ink);
  font-size: var(--fs-base);
  border-bottom: 1px solid var(--line-soft);
}
.snv > li.on > a {
  color: var(--brand);
}
.snv-sub {
  padding-bottom: var(--sp-3);
  display: none;
}
.snv-sub dd {
  background: url('../images/icon12.png') 12px 18px no-repeat;
  text-indent: 26px;
  background-size: auto 10px;
}
.snv-sub dd.on a {
  color: var(--brand);
}

/* ============================================================
   9. 左侧折叠菜单 work_list
   ------------------------------------------------------------
   保留 jQuery（js.js）依赖的类名：h3 / h3.on / ul，勿改。
   ============================================================ */
.work_list {
  width: 100%;
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.work_list h3 {
  line-height: 44px;
  background: url(../images/icon12.png) 95% center no-repeat;
  text-indent: 20px;
  background-size: auto 10px;
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
  float: left;
}
.work_list h3 a {
  float: left;
  line-height: 44px;
  color: var(--muted);
  font-size: var(--fs-base);
  text-indent: 0;
  padding-left: 5px;
  font-weight: var(--fw-normal);
}
.work_list h3.on a {
  font-weight: var(--fw-bold);
  color: var(--brand-dark);
}
.work_list ul {
  display: none;
  float: left;
  width: 100%;
}
.work_list li {
  background: url(../images/icon12.png) 18px 15px no-repeat;
  text-indent: 26px;
  display: block;
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
  line-height: 42px;
  background-size: 5px;
}
.work_list li a {
  display: block;
  color: var(--muted);
  font-size: var(--fs-base);
  text-indent: 0;
  padding-left: 30px;
}

/* ============================================================
   10. 联系信息 m-info / 新闻列表 ul-newslist
   ============================================================ */
.m-info {
  padding: var(--sp-4) 0;
}
.m-info p {
  height: 34px;
  line-height: 34px;
  font-size: var(--fs-base);
  color: var(--ink-2);
}
.ul-newslist {
  overflow: hidden;
  margin-bottom: var(--sp-8);
}
.ul-newslist li {
  font-size: var(--fs-base);
  padding: var(--sp-5) 0;
  border-bottom: 1px dotted var(--line);
}
.ul-newslist li a {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================================
   11. 内容区
   ============================================================ */
.m-content {
  padding: var(--sp-5) 0;
}
.m-content .txt {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}
.m-content .txt p {
  margin-bottom: var(--sp-4);
}
.m-content .txt img {
  margin: var(--sp-4) 0;
  border-radius: var(--radius-md);
}

/* ============================================================
   12. 分页 g-pages
   ============================================================ */
.g-pages {
  text-align: center;
  font-size: 0;
  margin: var(--sp-10) 0;
}
.g-pages li {
  display: inline-block;
}
.g-pages li a {
  display: block;
  padding: 4px 9px;
  margin: 0 var(--sp-1);
  border: 1px solid #dbdbdb;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-radius: var(--radius-xs);
  transition: all var(--dur) var(--ease);
}
.g-pages li.on a,
.g-pages li a:hover {
  background-color: var(--brand);
  border: 1px solid var(--brand);
  color: var(--on-primary);
}

/* ============================================================
   13. 头部 web-header
   ------------------------------------------------------------
   保持文档流（旧版无 position:fixed），solid/hide 由 js.js 切换。
   ============================================================ */
.web-header {
  *zoom: 1;
  display: flex;
  align-items: center;
  transition:
    transform var(--dur-slow) var(--ease),
    background var(--dur),
    box-shadow var(--dur);
}
.web-header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-header);
}
.web-header.hide {
  transform: translateY(-100%);
}
.web-wp {
  width: 100%;
  max-width: var(--wp-max);
  margin: 0 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.web-header .logo {
  height: var(--logo-h);
  line-height: var(--logo-h);
  flex-shrink: 0;
}
.web-header .logo img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  max-height: 100%;
}

.hdr {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 汉堡按钮 m-menu（参考 ditfcms 实现） */
.m-menu {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  order: 3;
}
.m-menu span {
  position: absolute;
  background: var(--brand);
  width: 30px;
  height: 3px;
  border-radius: 4px;
  right: 0;
  transition: all 0.2s linear;
}
.m-menu span:nth-child(1) {
  top: 25%;
}
.m-menu span:nth-child(2) {
  top: 48%;
}
.m-menu span:nth-child(3) {
  top: 73%;
}
.m-menu.act span {
  top: 48%;
  width: 32px;
}
.m-menu.act span:nth-child(1) {
  transform: rotate(45deg);
}
.m-menu.act span:nth-child(2) {
  width: 0px;
}
.m-menu.act span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ============================================================
   14. 主导航 web-nav（蓝化）
   ============================================================ */
.web-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}
.web-nav > li {
  float: left;
  position: relative;
}
.web-nav > li > a {
  display: block;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: var(--fs-md);
  color: #333;
  text-align: center;
  transition: color var(--dur);
}
.web-nav > li.on > a,
.web-nav > li:hover > a {
  color: var(--brand);
}
.web-nav dl {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 15px;
  margin: 0 -48px;
  z-index: 99;
}
.web-nav dl:after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: -10px;
  width: 15px;
  height: 15px;
  background-color: var(--bg);
  transform: rotate(45deg);
  z-index: -1;
}
.web-nav li:hover dl {
  display: block;
}
.web-nav dl dd a {
  display: block;
  text-align: center;
  height: 40px;
  line-height: 40px;
  color: var(--ink);
  font-size: var(--fs-base);
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  text-indent: 0;
  transition: var(--dur);
}
.web-nav dl dd:first-child a {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.web-nav dl dd:last-child a {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.web-nav dl dd a:hover {
  text-indent: 1em;
  background-color: var(--brand-soft);
  color: var(--brand-dark);
}

/* ============================================================
   二级菜单 submenu（参考 menu-dropdown 样式）
   ============================================================ */
.web-nav > li.has-submenu > a .iconfont {
  font-size: 16px;
  margin-left: 6px;
  transition: transform var(--dur);
}
.web-nav > li.has-submenu:hover > a .iconfont,
.web-nav > li.has-submenu.open > a .iconfont {
  transform: rotate(180deg);
}
.web-nav .submenu {
  position: absolute;
  top: 100%;
  left: -20%;
  min-width: 120px;
  padding: 5px 0 10px 0;
  background: var(--bg);
  z-index: 100;
  box-shadow: 0 2px 8.6px 0 rgba(0, 0, 0, 0.15);
  opacity: 0;
  border-radius: 12px;
  transition:
    opacity 0.3s var(--ease),
    padding 0.3s var(--ease);
}

/* 鼠标悬停显示 */
.web-nav > li.has-submenu:hover > .submenu,
.web-nav > li.has-submenu.hover > .submenu,
.web-nav > li.has-submenu.open > .submenu {
  opacity: 1;
}
/* 非hover状态下的子项隐藏动画 */
.web-nav > li.has-submenu:not(:hover):not(.open) > .submenu {
  padding: 4px 0;
}
.web-nav > li.has-submenu:not(:hover):not(.open) > .submenu > * {
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.web-nav .submenu li {
  float: none;
  display: block;
  overflow: hidden;
  padding: 10px;
  background: transparent;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.web-nav .submenu li:last-child {
  border-bottom: none;
}
.web-nav .submenu li a {
  display: block;
  font-size: var(--fs-base);
  color: var(--ink);
  text-align: left;
  margin-left: 10px;
  transition:
    background 0.3s var(--ease),
    color var(--dur) var(--ease);
}
.web-nav .submenu li:hover {
  background: rgba(0, 0, 0, 0.1);
}
.web-nav .submenu li:hover > a {
  color: var(--brand);
}

/* ============================================================
   15. 语言切换 language
   ============================================================ */
.language {
  float: right;
  list-style: none;
  overflow: hidden;
  margin-top: 25px;
  margin-left: var(--sp-5);
}
.language:hover {
  overflow: inherit;
}
.language .menu {
  display: block;
  position: relative;
  cursor: pointer;
}
.language .menu-title {
  display: block;
  text-align: center;
  color: #312f2f;
  text-transform: uppercase;
  font-size: var(--fs-base);
  transition: 0.5s background-color;
}

.language .menu-title p {
  margin: 0;
  display: inline-block;
  line-height: 22px;
  position: relative;
  padding-right: 18px;
}
.language .menu-dropdown {
  min-width: 100%;
  padding: 5px 0 10px 0;
  position: absolute;
  background: var(--bg);
  z-index: 100;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
  opacity: 0;
  min-width: 85px;
  right: 0;
  border-radius: 12px;
  transition:
    0.5s padding,
    0.5s background;
}
.language:hover .menu-dropdown {
  opacity: 1;
  width: 100%;
}
.language .menu:not(:hover) > .menu-dropdown {
  padding: 4px 0;
  background: var(--bg);
  z-index: 99;
}
.language .menu-dropdown > * {
  overflow: hidden;
  padding: 5px 10px;
  background: transparent;
  white-space: nowrap;
}
.language .menu-dropdown > *:hover {
  background: rgba(0, 0, 0, 0.1);
}
.language .menu:not(:hover) > .menu-dropdown > * {
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.language .menu-dropdown li {
  border-bottom: 1px solid var(--line);
}
.language .menu-dropdown li:last-child {
  border-bottom-color: var(--bg);
}
.language .menu-dropdown li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
}
.language .menu-dropdown li p {
  margin: 0;
  font-size: var(--fs-sm);
  padding-left: 5px;
  text-transform: uppercase;
  display: inline-block;
}

/* ============================================================
   16. 头部右侧 head-right（语言胶囊 + 预约咨询按钮）
   ------------------------------------------------------------
   还原 Figma 1:896（描边语言胶囊）与 1:899（黑色预约咨询按钮）。
   .head-right 被 head.htm 用于 .web-header 右侧容器。
   ============================================================ */
.head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.head-right .language {
  float: none;
  margin-top: 0;
  margin-left: 0;
  overflow: visible;
}
/* 语言触发器 → 描边胶囊（Figma 1:896：44px、#a4a4a4 边、胶囊） */
.head-right .language .menu-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #a4a4a4;
  border-radius: 55px;
  /* font-size: var(--fs-md); */
  font-weight: var(--fw-semi);
  color: var(--ink);
  text-transform: none;
  background: transparent;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.head-right .language:hover .menu-title {
  border-color: var(--ink);
}
.head-right .language .menu-title:before {
  width: 18px;
  height: 18px;
}
.head-right .language .menu-title p {
  padding-right: 0;
  line-height: 1;
}
/* 预约咨询按钮（Figma 1:899：44px、黑底、胶囊、白字 + 图标） */
.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 48px 0 20px;
  position: relative;
  background: #111;
  color: var(--on-primary);
  border-radius: 55px;
  /* font-size: var(--fs-md); */
  font-weight: var(--fw-semi);
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.head-cta:hover {
  background: var(--brand);
  color: var(--on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.head-cta-arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 38px;
  height: 38px;
  background: url('../images/common/arrow.svg') center / contain no-repeat;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease);
}
.head-cta:hover .head-cta-arrow {
  transform: translateY(-50%) translateX(1px);
}
/* 首页(.dtf)下：覆盖 home.css 的 .dtf a{color:inherit}，确保按钮文字始终白色 */
.dtf .head-cta {
  color: var(--on-primary);
}

/* ============================================================
   16. 页脚 web-footer（暗底 + 蓝 hover）
   ============================================================ */
.web-footer {
  background-color: var(--dark-bg);
}
.fd-top {
  overflow: hidden;
  padding: var(--sp-16) 0;
}
.fd-txt {
  float: left;
  width: 50%;
  margin-top: var(--sp-5);
  font-family: var(--font-mono);
}
.fd-txt strong {
  margin-bottom: var(--sp-8);
  display: block;
  font-size: var(--g-tit-fs);
  color: var(--brand);
}
.fd-txt p {
  font-size: var(--fs-md);
  color: var(--dark-text-muted);
  white-space: pre;
}
.fd-nav {
  float: right;
  width: 50%;
}
.fd-nav a.btn {
  position: relative;
  display: block;
  float: right;
  width: 160px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: var(--fs-md);
  color: var(--on-primary);
  background-color: var(--brand);
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.fd-nav a.btn::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 0;
  background-color: var(--brand);
  transition: all var(--dur) var(--ease-out) 0.1s;
  border-radius: var(--radius-sm);
}
.fd-nav a.btn:hover {
  background-color: var(--brand-dark);
}
.fd-nav a.btn:hover::before {
  width: 100%;
  height: 100%;
  background-color: var(--brand-dark);
}
.fd-nav a.btn span {
  display: block;
  position: relative;
  z-index: 2;
}
.fd-nav ul {
  overflow: hidden;
  margin-top: var(--sp-8);
}
.fd-nav ul li {
  float: left;
  width: 16.66%;
}
.fd-nav ul li a {
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: var(--fs-md);
  color: var(--dark-text);
}
.fd-nav ul li.on a,
.fd-nav ul li a:hover {
  color: var(--brand);
}
.web-footer .copy {
  padding: var(--sp-5) 0;
  overflow: hidden;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono);
}
.web-footer .copy p {
  float: left;
  color: var(--dark-text-dim);
  font-size: var(--fs-md);
}
.web-footer .copy a {
  float: right;
  color: #aaa;
  font-size: var(--fs-base);
}
.web-footer .copy a:hover {
  color: var(--dark-text);
}

/* ============================================================
   17. 手机底部菜单 web-link（≤1199 显示）
   ============================================================ */
.h50 {
  display: none;
}
.web-link {
  display: none;
  overflow: hidden;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background-color: var(--bg);
  padding: 4px 0;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.05);
}
.web-link li {
  float: left;
  width: 25%;
}
.web-link li a {
  display: block;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.web-link li.on a,
.web-link li:hover a {
  color: var(--brand);
}
.web-link li a i {
  display: block;
  width: 25px;
  margin: 0 auto;
  height: 25px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 18px;
}
.web-link li a .i1 {
  background-image: url(../images/icon8.png);
}
.web-link li.on .i1 {
  background-image: url(../images/icon8-on.png);
}
.web-link li a .i2 {
  background-image: url(../images/icon9.png);
}
.web-link li.on .i2,
.web-link li:hover .i2 {
  background-image: url(../images/icon9-on.png);
}
.web-link li a .i3 {
  background-image: url(../images/icon10.png);
}
.web-link li.on .i3,
.web-link li:hover .i3 {
  background-image: url(../images/icon10-on.png);
}
.web-link li a .i4 {
  background-image: url(../images/icon11.png);
}
.web-link li.on .i4,
.web-link li:hover .i4 {
  background-image: url(../images/icon11-on.png);
}

/* ============================================================
   18. FOOTER（全站公用）
   ============================================================ */
.site-footer {
  background: var(--bg);
  color: var(--ink-2);
  padding: var(--sp-20) 0 var(--sp-10);
  position: relative;
  border-top: 1px solid var(--line-soft);
}
/* 内容区容器：统一宽度，解耦对 body.dtf 的依赖（值与 .dtf .wp 一致，保证零回归） */
.site-footer .wp {
  max-width: var(--maxw);
  margin: 0 150px;
}
.site-footer .ft-top {
  display: grid;
  grid-template-columns: 1.8fr 1.15fr 1.15fr 1.15fr 1.25fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--line);
}
.site-footer .ft-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--ink);
  font-weight: var(--fw-semi);
  font-size: var(--fs-lg);
}
.site-footer .ft-brand img {
  height: 80px;
  display: block;
}

.site-footer .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  color: var(--on-primary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
}
.site-footer .ft-tag {
  font-size: var(--fs-base);
  color: #000;
  max-width: 32ch;
  line-height: var(--lh-base);
  margin-top: var(--sp-10);
}
.site-footer .ft-col h4 {
  color: var(--ink);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-5);
}
/* 列标题本身可点击时，继承 h4 外观，仅 hover 变品牌色（不产生位移） */
.site-footer .ft-col h4 a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.site-footer .ft-col h4 a:hover {
  color: var(--brand);
}
.site-footer .ft-col li {
  margin-bottom: var(--sp-3);
}
.site-footer .ft-col a {
  font-size: var(--fs-base);
  color: var(--ink-2);
  transition:
    color var(--dur-fast) var(--ease),
    padding-left var(--dur-fast) var(--ease);
}
.site-footer .ft-col a:hover {
  color: var(--brand);
  padding-left: 4px;
}
.site-footer .ft-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-3);
  color: var(--ink-2);
}
.site-footer .ft-contact .ft-label {
  color: var(--muted);
}
.site-footer .ft-contact strong {
  color: var(--ink);
  font-weight: var(--fw-medium);
}
.site-footer .ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-6);
  /* 防止flex子元素溢出 */
  min-width: 0;
}
.site-footer .ft-social {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  /* 防止溢出 */
  flex-shrink: 0;
}
.site-footer .ft-social a {
  display: inline-flex;
  opacity: 0.82;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.site-footer .ft-social a:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.site-footer .ft-social img {
  width: 50px;
  height: 50px;
  display: block;
}
.site-footer .copy {
  font-size: var(--fs-base);
  color: var(--muted);
  /* 防止文本溢出 */
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* --- 社交图标气泡 --- */
.site-footer .ft-social-item {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.site-footer .ft-social-item > img {
  opacity: 0.82;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.site-footer .ft-social-item.is-active > img,
.site-footer .ft-social-item:hover > img {
  opacity: 1;
  transform: translateY(-3px);
}
.site-footer .ft-social-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: none;
  z-index: 100;
  white-space: nowrap;
  width: 180px;
}
.site-footer .ft-social-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}
.site-footer .ft-social-item.is-active .ft-social-bubble {
  display: block;
}
.site-footer .ft-social-bubble img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}
.site-footer .ft-social-bubble-title {
  font-size: 13px;
  color: var(--dark, #222);
  font-weight: 500;
}

/* ============================================================
   19. 返回顶部（全站公用）
   ============================================================ */
.dtf .to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 10px 24px rgba(0, 140, 214, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: 0.35s var(--ease);
}
.dtf .to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dtf .to-top:hover {
  transform: translateY(-3px);
}

/* ============================================================
   20. 响应式（裸数值，沿用旧断点）
   ------------------------------------------------------------
   ≤1499 小屏桌面 / ≤1365 笔记本 / ≤1199 平板横屏
   ≤959 平板竖屏 / ≤767 手机 / ≤479 小屏手机
   ============================================================ */

/* --- ≤1499 小屏桌面 --- */
@media only screen and (max-width: 1499px) {
  .wp {
    width: 97%;
  }
  /* 修复：同步减少固定margin，防止横向溢出 */
  .dtf .wp,
  .web-wp,
  .site-footer .wp {
    margin: 0 60px;
  }
}

/* --- ≤1365 笔记本：侧栏收窄 --- */
@media only screen and (max-width: 1365px) {
  .row-b1 .col-l {
    width: 264px;
  }
  .row-b1 .col-r {
    margin-left: 300px;
  }
}

/* --- ≤1199 平板横屏：手机底栏出现、标题降级 --- */
@media only screen and (max-width: 1199px) {
  .wp {
    width: 95%;
  }
  /* 修复：进一步减少margin */
  .dtf .wp,
  .web-wp,
  .site-footer .wp {
    margin: 0 32px;
  }
  .h50 {
    display: block;
  }
  .web-link {
    display: block;
  }
  .g-tit01 h3 {
    font-size: var(--fs-4xl);
  }
  .g-tit02 {
    font-size: var(--fs-4xl);
  }
  .g-tit01 p {
    font-size: var(--fs-lg);
  }
  .fd-txt p {
    font-size: var(--fs-xs);
  }
  .fd-nav a.btn {
    font-size: var(--fs-base);
    width: 140px;
  }
  .fd-nav ul li a {
    font-size: var(--fs-base);
  }
}

/* 防止菜单打开时背景滚动 */
html.hidden {
  overflow: hidden;
}

/* --- ≤959 平板竖屏：侧栏折叠为单列 --- */
@media only screen and (max-width: 959px) {
  /* 防止横向滚动 */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* ============================================================
     移动端 Header / 导航抽屉（参考 ditfcms 实现）
     ============================================================ */
  .web-header {
    position: relative;
    z-index: 1002; /* 置于浮层(1001)与遮罩(1000)之上，保证汉堡按钮可点 */
  }
  /* 移动端取消 header 毛玻璃 / 滚动隐藏变换：
     backdrop-filter 与 transform 都会建立 containing block，会把 .web-nav 的
     position:fixed 包含块从 viewport 改成 header，导致浮层定位错乱。 */
  .web-header.solid {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .web-header.hide {
    transform: none;
  }

  .dtf .wp {
    padding: 50px 0 0;
    margin: 0 15px;
  }

  /* 左右边距收窄 */
  .web-wp {
    margin: 0 14px;
    padding: 10px 0;
    height: auto;
    justify-content: flex-start;
  }
  .web-header .logo {
    height: 40px;
    line-height: 40px;
    order: 1;
  }
  .web-header .logo img {
    max-height: 40px;
  }

  /* 汉堡按钮显示并靠右 */
  .m-menu {
    display: block;
    margin-left: auto;
  }

  /* 手机端按 Figma 仅保留 logo + 汉堡；
     顶部语言切换与预约按钮由 JS 注入 .web-nav 浮层底部随菜单展开显示 */
  .web-wp > .head-right {
    display: none;
  }

  /* 汉堡浮层底部：head-right（语言胶囊 + 预约咨询按钮），由 JS 注入 .web-nav 末尾 */
  .web-nav .head-right {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 22px 4px;
    margin-top: 8px;
    border-top: 1px solid var(--line-soft);
  }
  .web-nav .head-right .language {
    flex-shrink: 0;
  }
  .web-nav .head-right .language .menu-title {
    height: 44px;
    padding: 0 16px;
  }
  /* 预约咨询按钮占满剩余宽度并居中 */
  .web-nav .head-right .head-cta {
    flex: 1;
    justify-content: center;
    padding: 0 20px;
    white-space: nowrap;
  }
  .web-nav .head-right .head-cta-arrow {
    right: 0;
  }

  /* 语言下拉在浮层内改为静态文档流 + display 切换，
     避免 position:absolute 被 .web-nav 的 overflow:auto/max-height 裁剪。
     仅对注入浮层的 head-right 生效（PC 端 head-right 在 .web-wp 内，不匹配）。 */
  .web-nav .head-right .language {
    overflow: visible;
  }
  .web-nav .head-right .language .menu-dropdown {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 6px 0;
    background: var(--bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    display: none;
  }
  /* 触屏点击 menu-title 触发 .open 类展开；:hover/:focus-within 兜底 PC 端 */
  .web-nav .head-right .language:hover .menu-dropdown,
  .web-nav .head-right .language:focus-within .menu-dropdown,
  .web-nav .head-right .language.open .menu-dropdown {
    display: block;
  }
  /* 覆盖 PC 端收起态 height:0 hack：容器已由 display 接管显隐，子项恢复正常尺寸 */
  .web-nav .head-right .language .menu-dropdown > * {
    visibility: visible;
    height: auto;
    padding: 0;
  }
  .web-nav .head-right .language .menu-dropdown li a {
    justify-content: flex-start;
    padding: 10px 14px;
  }

  /* 导航浮层：居中圆角面板，从 header 下方展开（按 Figma 还原） */
  .web-nav {
    display: block;
    position: fixed;
    top: 80px;
    left: 50%;
    width: max(calc(100vw - 30px), 360px);
    padding: 36px 0 !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-12px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility var(--dur);
    z-index: 1001;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .web-nav.nav-m-act {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* 浮层背景遮罩：菜单展开时覆盖页面其余区域，点击外部即关闭（沿用现有 .m-menu 关闭逻辑） */
  body:has(.web-nav.nav-m-act)::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14, 23, 38, 0.35);
    z-index: 1000;
  }

  /* 导航列表 */
  .web-nav > li {
    float: none;
    display: block;
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 12px;
  }

  .web-nav > li:last-child {
    border-bottom: none;
  }

  .web-nav > li > a {
    display: block;
    height: auto;
    line-height: 1.2;
    padding: 14px 22px;
    text-align: left;
    font-size: var(--fs-md);
    font-weight: 400;
    color: #000;
    border-bottom: none;
    transition: color var(--dur);
  }
  .web-nav > li:last-child > a {
    border-bottom: none;
  }
  .web-nav > li > a::after {
    display: none;
  }
  .web-nav > li.has-submenu > a .iconfont {
    position: absolute;
    right: 18px;
    top: 50%;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 14px;
    color: #9a9a9a;
    transform: translateY(-50%);
    transition: transform var(--dur) var(--ease);
  }
  .web-nav > li.has-submenu.open > a .iconfont {
    transform: translateY(-50%) rotate(180deg);
  }

  /* 二级菜单：独立白色卡片（圆角 12 / 边框 #d9d9d9 / 阴影） */
  .web-nav .submenu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    padding: 6px 0;
    margin: 4px auto 10px;
    width: calc(100% - 28px);
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    box-shadow: 0 2px 8.6px 0 rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
    z-index: auto;
  }
  .web-nav > li.has-submenu.open > .submenu {
    display: block;
  }
  /* 重置 PC 端折叠态隐藏规则 */
  .web-nav > li.has-submenu:not(:hover):not(.open) > .submenu {
    padding: 6px 0;
  }
  .web-nav > li.has-submenu:not(:hover):not(.open) > .submenu > * {
    visibility: visible;
    height: auto;
    padding: 0;
    margin: 0;
  }
  .web-nav .submenu li {
    padding: 0;
    background: transparent;
    border-bottom: 1px solid var(--line-soft);
  }
  .web-nav .submenu li:last-child {
    border-bottom: none;
  }
  .web-nav .submenu li a {
    display: block;
    height: 42px;
    line-height: 42px;
    padding: 0 18px;
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--ink);
    text-align: left;
    margin: 0;
    transition: color var(--dur);
  }
  .web-nav .submenu li:hover {
    background: transparent;
  }
  .web-nav .submenu li:hover > a {
    color: var(--brand);
  }

  .ban {
    height: 300px;
  }
  .row-b1 .col-l {
    float: none;
    width: auto;
  }
  .row-b1 .col-r {
    margin-left: 0;
  }
  .g-titIns1 {
    font-size: var(--fs-lg);
  }
  .snv {
    margin-bottom: var(--sp-3);
  }
  .ul-newslist,
  .m-info,
  .dbn {
    display: none;
  }
  .fd-top {
    display: none;
  }
  .g-tit01 {
    padding: var(--sp-6) 0;
  }
  .g-tit01 h3 {
    font-size: var(--fs-3xl);
  }
  .site-footer .ft-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- ≤767 手机 --- */
@media only screen and (max-width: 767px) {
  .ban {
    display: none;
    height: 0;
  }
  .g-cur {
    height: 30px;
    line-height: 30px;
  }
  .row-b1 {
    padding: var(--sp-5) 0 36px;
  }
  .row-b1 .col-l {
    display: none;
  }
  .g-tit01 h3 {
    font-size: var(--fs-2xl);
  }
  .g-tit02 {
    font-size: var(--fs-3xl);
  }
  .web-footer .copy {
    text-align: center;
  }
  .web-footer .copy p {
    float: none;
    font-size: var(--fs-base);
  }
  .web-footer .copy a {
    display: none;
  }

  .site-footer {
    padding: 0 0 var(--sp-10);
  }

  .site-footer .ft-top {
    grid-template-columns: 1fr;
  }
  .site-footer .ft-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-5);
  }
  .site-footer .ft-social {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-footer .ft-social li {
    flex: 0 0 calc(20% - 12px);
    max-width: calc(20% - 12px);
    text-align: center;
  }
  .site-footer .ft-social a,
  .site-footer .ft-social-item {
    display: inline-flex;
    margin: 0 auto;
  }
  .site-footer .ft-social-bubble {
    position: fixed;
    bottom: auto;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 40px);
    max-width: 280px;
    z-index: 9999;
  }
  .site-footer .ft-social-bubble::after {
    display: none;
  }
  .site-footer .ft-social-item.is-active .ft-social-bubble {
    display: block;
    animation: fadeIn 0.2s ease;
  }
  .site-footer .ft-social-bubble img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .site-footer .ft-social-bubble-title {
    display: block;
    margin-top: 8px;
    font-size: var(--fs-base);
    color: var(--ink);
  }
}

/* --- ≤479 小屏手机 --- */
@media only screen and (max-width: 479px) {
  .g-pages li a {
    padding: 6px 8px;
  }
}

/* --- 品牌色高亮:typename 局部着色,见 brand_text() 与 brand_words.php --- */
.brand-text {
  color: var(--brand);
}

/* ============================================================
   联系弹窗(Contact Modal)
   ============================================================ */

/* --- 弹窗容器 --- */
.cnt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--font-sans);
}
.cnt-modal.is-open {
  display: flex;
}
.cnt-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.cnt-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cnt-in 0.25s ease-out;
}
@keyframes cnt-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 关闭按钮 --- */
.cnt-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #1f2937;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.cnt-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* --- 弹窗主体 --- */
.cnt-modal-body {
  padding: 36px 60px 50px;
  overflow-y: auto;
}

/* --- 标题 --- */
.cnt-modal-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 30px;
  text-align: center;
  line-height: 1.3;
}

/* --- 覆盖框架表单默认样式 --- */
.cnt-modal .eyou_form_attr {
  margin-bottom: 15px;
}
.cnt-modal .eyou_form_text,
.cnt-modal .eyou_form_textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 0.5px solid #e3e3e3;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--ink);
  padding: 0 16px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.03);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}
.cnt-modal .eyou_form_text {
  height: 64px;
  line-height: 64px;
}
.cnt-modal .eyou_form_textarea {
  height: 160px;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
}
.cnt-modal .eyou_form_text:focus,
.cnt-modal .eyou_form_textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 140, 214, 0.18);
}
.cnt-modal .eyou_form_text::placeholder,
.cnt-modal .eyou_form_textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

/* --- 提交按钮 --- */
.cnt-submit {
  display: block;
  width: 100%;
  height: 63px;
  border: none;
  border-radius: 39px;
  background: #000;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.cnt-submit:hover {
  background: #1a1a1a;
}
.cnt-submit:active {
  background: #111;
}
.cnt-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- 提示信息 --- */
#contactMsg {
  margin-bottom: 12px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}

/* --- 隐藏验证码 --- */
.cnt-modal input[name='vertify'],
.cnt-modal img[id^='verify_'],
.cnt-modal a[id^='verify_'],
.cnt-modal .eyou_form_verify_img {
  display: none !important;
}

/* --- 悬浮按钮 --- */
.cnt-fab {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.cnt-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 22px 50px rgba(0, 140, 214, 0.35);
}
.cnt-fab svg {
  width: 22px;
  height: 22px;
}

/* --- 响应式 --- */
@media (max-width: 640px) {
  .cnt-modal-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 12px;
  }
  .cnt-modal-body {
    padding: 28px 22px 36px;
  }
  .cnt-modal-title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  /* 移动端隐藏悬浮按钮 */
  .cnt-fab {
    display: none;
  }
}

/* 下载弹窗隐藏留言框（attr_80，由 JS 自动填入报告标题） */
#downloadModal #attr_80,
#downloadModal [name="attr_80"] {
  display: none;
}
