/* ============================================================
   [品牌名称] 检测机构 - 全站公共样式（基于 TailwindCSS CDN 扩展）
   后期替换品牌色：仅需修改 :root 中的 CSS 变量
   ============================================================ */

:root {
  --brand-primary: #0E5FA5;     /* 主品牌色（蓝） */
  --brand-primary-dark: #0A4A82;
  --brand-accent: #00A9B7;      /* 点缀色（青） */
  --brand-dark: #1C1C1E;        /* 深炭灰（限时优惠/页脚/咨询/悬浮栏） */
  --brand-text: #1f2937;
  --brand-text-soft: #6b7280;
  --brand-bg: #ffffff;
  --brand-bg-soft: #f6f8fa;
  --brand-border: #e5e7eb;
}

/* ---------- 基础重置 ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-text);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 容器 ---------- */
.container-x { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部工具条 ---------- */
.utility-bar {
  background: #f3f5f7;
  border-bottom: 1px solid var(--brand-border);
  font-size: 13px;
  color: var(--brand-text-soft);
}
.utility-bar a:hover { color: var(--brand-primary); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav-link {
  position: relative;
  padding: 22px 18px;
  display: inline-flex; align-items: center;
  font-size: 16px; font-weight: 500;
  color: var(--brand-text);
  transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; background: var(--brand-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--brand-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* 二级下拉 */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff;
  border: 1px solid var(--brand-border);
  border-top: 3px solid var(--brand-primary);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease;
}
.has-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
  display: block; padding: 11px 22px; font-size: 14px; color: var(--brand-text);
}
.dropdown-panel a:hover { background: var(--brand-bg-soft); color: var(--brand-primary); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 4px; font-size: 15px; font-weight: 500; transition: all .2s ease; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #f3f4f6; }

/* ---------- 区块标题 ---------- */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .en { display:block; font-size: 14px; letter-spacing: .2em; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 8px; }
.section-title .cn { font-size: 30px; font-weight: 700; color: var(--brand-text); position: relative; display: inline-block; }
.section-title .cn::after { content:""; position:absolute; left:50%; bottom:-14px; transform:translateX(-50%); width:48px; height:3px; background: var(--brand-primary); }

/* ---------- 服务卡片 ---------- */
.service-card {
  background: #fff; border: 1px solid var(--brand-border);
  border-radius: 6px; overflow: hidden;
  transition: all .25s ease;
}
.service-card:hover { box-shadow: 0 14px 32px rgba(14,95,165,.12); transform: translateY(-4px); border-color: transparent; }
.service-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.service-card .thumb img { width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .body { padding: 20px 22px 24px; }
.service-card .body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service-card .body p { font-size: 14px; color: var(--brand-text-soft); line-height: 1.7; }
.service-card .more { display:inline-flex; align-items:center; gap:6px; margin-top: 14px; font-size: 13px; color: var(--brand-primary); font-weight: 500; }

/* ---------- 优势卡片 ---------- */
.advantage-card {
  text-align: center; padding: 36px 24px;
  background: #fff; border-radius: 8px;
  border: 1px solid var(--brand-border);
  transition: all .25s ease;
}
.advantage-card:hover { background: var(--brand-primary); color: #fff; border-color: transparent; }
.advantage-card:hover .ico, .advantage-card:hover h3, .advantage-card:hover p { color: #fff; }
.advantage-card .ico { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--brand-primary); transition: color .25s; }
.advantage-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; transition: color .25s; }
.advantage-card p { font-size: 14px; color: var(--brand-text-soft); line-height: 1.7; transition: color .25s; }

/* ---------- 资讯列表项 ---------- */
.news-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--brand-border); }
.news-item:last-child { border-bottom: 0; }
.news-item .date { flex-shrink:0; width: 64px; text-align:center; background: var(--brand-bg-soft); border-radius: 4px; padding: 8px 0; }
.news-item .date .d { font-size: 22px; font-weight: 700; color: var(--brand-primary); line-height: 1; }
.news-item .date .m { font-size: 12px; color: var(--brand-text-soft); margin-top: 4px; }
.news-item .info h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; transition: color .2s; }
.news-item .info p { font-size: 13px; color: var(--brand-text-soft); line-height: 1.7; }
.news-item:hover .info h4 { color: var(--brand-primary); }

/* ---------- CTA 深色带 ---------- */
.cta-band { background: var(--brand-dark); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); color: #c7c7cc; font-size: 14px; }
.site-footer h4 { color:#fff; font-size: 16px; font-weight: 600; margin-bottom: 22px; }
.site-footer a { color: #c7c7cc; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c2e; padding-top: 20px; margin-top: 40px; }

/* ---------- 悬浮侧边栏 ---------- */
.float-bar { position: fixed; right: 16px; bottom: 96px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.float-bar .item {
  width: 52px; height: 52px; border-radius: 4px;
  background: var(--brand-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; position: relative;
}
.float-bar .item:hover { background: var(--brand-primary); }
.float-bar .item .tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--brand-text); padding: 8px 14px; border-radius: 4px;
  white-space: nowrap; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transition: all .2s;
}
.float-bar .item:hover .tip { opacity: 1; visibility: visible; }
.float-bar .back-top { display: none; }
.float-bar .back-top.show { display: flex; }

/* ---------- 微信二维码按钮 ---------- */
.float-bar .float-wechat { position: relative; }
.float-bar .float-wechat svg { width: 24px; height: 24px; }

/* ---------- 微信二维码弹窗 ---------- */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.wechat-modal.active {
  display: flex;
}
.wechat-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}
.wechat-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 280px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.25s ease;
}
.wechat-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.wechat-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}
.wechat-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wechat-qr-img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  margin: 0 auto;
  -webkit-user-drag: none;
  user-select: none;
}
.wechat-qr-fallback {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
}
.wechat-qr-fallback svg {
  margin: 0 auto 8px;
  display: block;
}
.wechat-modal-tip {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 移动端微信弹窗适配 */
@media (max-width: 640px) {
  .wechat-modal-content {
    padding: 20px;
    max-width: 280px;
  }
  .wechat-qr-img {
    width: 180px;
    height: 180px;
  }
  .wechat-modal-body {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .wechat-modal-content {
    padding: 16px;
    border-radius: 10px;
  }
  .wechat-qr-img {
    width: 160px;
    height: 160px;
  }
  .wechat-modal-tip {
    font-size: 12px;
  }
}

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--brand-bg-soft); padding: 18px 0; font-size: 14px; color: var(--brand-text-soft); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb .sep { margin: 0 8px; color: #d1d5db; }

/* ---------- 内页横幅 ---------- */
.page-banner { position: relative; height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,74,130,.78), rgba(14,95,165,.55)); }
.page-banner .txt { position: relative; z-index: 2; color: #fff; text-align: center; }
.page-banner .txt h1 { font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.page-banner .txt p { font-size: 15px; opacity: .9; letter-spacing: .1em; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand-border); border-radius: 4px; font-size: 14px; color: var(--brand-text);
}
.pagination a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pagination .current { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ---------- 表单 ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display:block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--brand-text); }
.form-field label .req { color: #e11d48; margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--brand-border); border-radius: 4px;
  font-size: 14px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14,95,165,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { display:none; font-size: 12px; color: #e11d48; margin-top: 6px; }
.form-field.has-error .form-input, .form-field.has-error .form-textarea { border-color: #e11d48; }
.form-field.has-error .form-error { display: block; }

/* ---------- 移动端导航 ---------- */
.mobile-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-menu {
    display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 80%; max-width: 360px;
    background: #fff; z-index: 100; padding: 80px 0 24px; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display:block; padding: 14px 24px; border-bottom: 1px solid var(--brand-border); font-size: 15px; }
  .mobile-menu .sub a { padding-left: 44px; font-size: 14px; color: var(--brand-text-soft); }
  .menu-mask { display:none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .menu-mask.open { display: block; }
  .section-title .cn { font-size: 26px; }
}

@media (max-width: 640px) {
  .nav-link { padding: 16px 12px; font-size: 15px; }
  .section-title .cn { font-size: 22px; }
  .page-banner { height: 180px; }
  .page-banner .txt h1 { font-size: 24px; }
  .float-bar { right: 10px; bottom: 70px; }
  .float-bar .item { width: 42px; height: 42px; }
  .float-bar .item svg { width: 20px; height: 20px; }
  .float-bar .item .tip { right: 56px; padding: 6px 10px; font-size: 12px; }
}

/* ---------- 移动端深度适配（320-480px） ---------- */
@media (max-width: 480px) {
  /* 工具栏优化 */
  .utility-bar .container-x { padding: 0 12px; }
  .utility-bar { font-size: 12px; }
  .utility-bar .flex.items-center.gap-5 { gap: 10px; }
  
  /* 导航栏优化 */
  .site-header .container-x { padding: 0 12px; }
  .site-header .flex.items-center { flex-wrap: nowrap; }
  .site-header .gap-3 { gap: 8px; }
  .site-header .py-3 { padding: 8px 0; }
  
  /* LOGO区域紧凑 */
  .site-header .w-11.h-11 { width: 36px; height: 36px; }
  .site-header .text-lg { font-size: 15px; line-height: 1.2; }
  .site-header .text-xs { font-size: 10px; }
  .site-header .tracking-wider { letter-spacing: 0.05em; }
  
  /* 移动端菜单按钮 */
  .mobile-toggle { padding: 6px; }
  .mobile-toggle svg { width: 22px; height: 22px; }
  
  /* 轮播图优化 */
  .hero-swiper .h-\[460px\] { height: 320px !important; }
  .hero-swiper .text-3xl { font-size: 22px; line-height: 1.3; }
  .hero-swiper .text-base { font-size: 14px; line-height: 1.5; }
  .hero-swiper .mb-5 { margin-bottom: 12px; }
  .hero-swiper .mb-8 { margin-bottom: 16px; }
  .hero-swiper .btn { padding: 10px 20px; font-size: 14px; }
  
  /* 统计数据条优化 */
  .section-title + .grid.grid-cols-2 { padding: 16px 0; }
  .section-title + .grid.grid-cols-2 > div { gap: 6px; }
  .section-title + .grid.grid-cols-2 .text-3xl { font-size: 24px; }
  .section-title + .grid.grid-cols-2 .text-base { font-size: 12px; }
  .section-title + .grid.grid-cols-2 .text-sm { font-size: 12px; }
  .section-title + .grid.grid-cols-2 .gap-6 { gap: 16px; }
  
  /* 页面内边距优化 */
  .container-x { padding: 0 14px; }
  .py-20 { padding-top: 40px; padding-bottom: 40px; }
  .py-16 { padding-top: 32px; padding-bottom: 32px; }
  
  /* 区块标题优化 */
  .section-title { margin-bottom: 28px; }
  .section-title .en { font-size: 12px; letter-spacing: 0.15em; }
  .section-title .cn { font-size: 20px; }
  
  /* 关于简介优化 */
  .grid.md\:grid-cols-2.gap-14 { gap: 32px; }
  .about-section .grid { gap: 24px; }
  
  /* 悬浮按钮优化 */
  .float-bar { right: 8px; bottom: 60px; gap: 6px; }
  .float-bar .item { width: 40px; height: 40px; border-radius: 4px; }
  .float-bar .item svg { width: 18px; height: 18px; }
  .float-bar .item .tip { display: none; }
  
  /* 表单优化 */
  .form-field { margin-bottom: 14px; }
  .form-input, .form-textarea, .form-select { padding: 10px 12px; font-size: 14px; }
  
  /* 服务卡片优化 */
  .service-card .body { padding: 14px 16px; }
  .service-card .body h3 { font-size: 16px; }
  .service-card .body p { font-size: 13px; }
  
  /* 优势卡片优化 */
  .advantage-card { padding: 20px 12px; }
  .advantage-card .ico { width: 44px; height: 44px; margin-bottom: 12px; }
  .advantage-card h3 { font-size: 15px; }
  .advantage-card p { font-size: 12px; line-height: 1.5; }
  
  /* CTA区域优化 */
  .cta-band .text-2xl { font-size: 18px; }
  .cta-band .btn { padding: 10px 20px; font-size: 14px; }
  .cta-band .mr-3 { margin-right: 0; margin-bottom: 8px; display: inline-block; }
  
  /* 页脚优化 */
  .site-footer { font-size: 13px; }
  .site-footer h4 { font-size: 14px; margin-bottom: 16px; }
  .site-footer .space-y-2\.5 { gap: 8px; }
  .site-footer .pt-16 { padding-top: 32px; }
  .site-footer .grid.gap-10 { gap: 24px; }
  
  /* 资讯列表优化 */
  .news-item { gap: 12px; padding: 14px 0; }
  .news-item .date { width: 52px; padding: 4px 0; }
  .news-item .date .d { font-size: 18px; }
  .news-item .info h4 { font-size: 14px; }
  .news-item .info p { font-size: 12px; }
  
  /* 面包屑优化 */
  .breadcrumb { padding: 12px 0; font-size: 12px; }
  
  /* 联系我们页面优化 */
  .contact-page .grid.md\:grid-cols-2.gap-10 { gap: 24px; }
  .contact-page .bg-white.rounded-lg.p-8 { padding: 20px; }
  .contact-page .bg-white.rounded-lg.p-10 { padding: 24px 20px; }
}

/* ---------- 极小屏幕适配（320-360px） ---------- */
@media (max-width: 380px) {
  .site-header .text-lg { font-size: 14px; }
  .site-header .text-xs { font-size: 10px; }
  .site-header .w-11.h-11 { width: 32px; height: 32px; }
  
  .hero-swiper .h-\[460px\] { height: 280px !important; }
  .hero-swiper .text-3xl { font-size: 20px; }
  .hero-swiper .text-base { font-size: 13px; }
  
  .float-bar { right: 6px; bottom: 50px; }
  .float-bar .item { width: 38px; height: 38px; }
  
  .container-x { padding: 0 12px; }
  
  .section-title .cn { font-size: 18px; }
  .section-title .en { font-size: 11px; }
  
  .advantage-card { padding: 16px 10px; }
  .advantage-card h3 { font-size: 14px; }
  .advantage-card p { font-size: 11px; }
}

/* ---------- 占位图样式（后期替换为真实素材） ---------- */
.placeholder-img {
  background: linear-gradient(135deg, #eef2f7, #dde6f0);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 13px; letter-spacing: .1em;
}
.placeholder-img::before { content: "占位图 · 后期替换"; }
.placeholder-img.has-img::before { display: none; }
.placeholder-img.has-img { background: transparent; }

/* ---------- 移动端全面优化 ---------- */
@media (max-width: 640px) {
  /* 联系信息卡片 - 确保文字不溢出 */
  .grid.grid-cols-2.md\:grid-cols-4.gap-6 > div {
    padding: 16px 12px !important;
  }
  
  /* Hero 轮播文字防溢出 */
  .hero-swiper .text-3xl,
  .hero-swiper .text-5xl {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* CTA 区域按钮堆叠 */
  .cta-band .btn {
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }
  
  /* 联系方式卡片 - 点击复制提示 */
  .bg-white.border.border-gray-200.rounded-lg.p-8.text-center {
    cursor: pointer;
    transition: all .2s;
  }
  .bg-white.border.border-gray-200.rounded-lg.p-8.text-center:active {
    transform: scale(0.97);
  }
  
  /* 关于简介图片 - 防止裁切 */
  .about-section img,
  .aspect-\[4\/3\] {
    width: 100% !important;
    height: auto !important;
  }
  
  /* 联系页面信息卡片 */
  .contact-page .bg-white.rounded-lg.p-8,
  .contact-page .bg-white.rounded-lg.p-10 {
    padding: 20px 16px !important;
  }
  
  /* 浮动按钮显示优化 */
  .float-bar {
    z-index: 999;
  }
  .float-bar .item .tip {
    display: none;
  }
  
  /* 伙伴/服务卡片网格 */
  .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  /* 服务卡片网格 */
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* 资讯网格 */
  .grid.md\:grid-cols-2.gap-12 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  /* 移动端联系卡片优化 */
  .grid.grid-cols-2.md\:grid-cols-4.gap-6 > div {
    padding: 14px 10px !important;
  }
  
  /* 图标大小适配 */
  .grid.grid-cols-2.md\:grid-cols-4.gap-6 .w-14.h-14 {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Hero 标题更小 */
  .hero-swiper .text-3xl {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  
  /* 区块标题优化 */
  .section-title .cn {
    font-size: 18px !important;
  }
  
  /* 底部版权 */
  .footer-bottom {
    font-size: 11px;
    text-align: center;
  }
  .footer-bottom .flex {
    justify-content: center;
  }
  
  /* 联系表单 */
  .form-input, .form-textarea, .form-select {
    font-size: 16px !important;
  }
  
  /* 关于简介图片角标 */
  .absolute.-bottom-6.-right-6 {
    display: none;
  }
}

/* ---------- 移动端复制按钮交互 ---------- */
@media (max-width: 768px) {
  [data-copy-phone],
  [data-copy-email] {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  [data-copy-phone]:active,
  [data-copy-email]:active {
    opacity: 0.7;
  }
}

/* ---------- 微信浮动按钮移动端优化 ---------- */
@media (max-width: 640px) {
  .float-bar .float-wechat {
    background: var(--brand-primary);
  }
  .float-bar .float-wechat .tip {
    display: none;
  }
}

/* ---------- 通用防裁切 ---------- */
img {
  max-width: 100%;
  height: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.text-overflow {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- 移动端工具栏优化 ---------- */
@media (max-width: 480px) {
  .utility-bar .hidden.sm\:inline,
  .utility-bar .hidden.md\:inline,
  .utility-bar .hidden.sm\:inline-block {
    display: none !important;
  }
  .utility-bar .hidden.sm\:not\:inline {
    display: none;
  }
  .utility-bar {
    font-size: 11px;
    padding: 4px 0;
  }
}
