/* ============================================================
   txxdh.com 全站基础样式 base.css
   风格：定妆喷雾风（透白 + 浅紫 + 浅灰）
   说明：全站统一变量 / 导航 / 页脚 / 按钮 / 卡片 / 动效 / 响应式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色板：透白·浅紫·浅灰 */
  --bg:        #f8f6fd;   /* 页面底色（透白带淡紫） */
  --bg-deep:   #f1edfa;   /* 深一档底色 */
  --card:      #ffffff;   /* 卡片纯白 */
  --line:      #e9e3f6;   /* 分割线 */
  --line-2:    #dcd3f0;

  --purple-1:  #f3edff;
  --purple-2:  #e5d9fc;
  --purple-3:  #c9aef6;
  --purple-4:  #a67ff0;
  --purple-5:  #7c3aed;   /* 品牌主紫 */
  --purple-6:  #6326d0;
  --purple-7:  #4a1b9e;

  --gray-1:    #f6f6f9;
  --gray-2:    #ebebf1;
  --gray-3:    #cbcbd7;
  --gray-4:    #9a9aac;
  --ink-1:     #2b2b3d;   /* 主文字 */
  --ink-2:     #56566c;   /* 次级文字 */
  --ink-3:     #7c7c92;   /* 弱文字 */
  --white:     #ffffff;

  /* 柔和悬浮阴影（卡片立体轻盈） */
  --shadow-sm:  0 2px 10px rgba(124, 58, 237, .06);
  --shadow-md:  0 10px 30px rgba(124, 58, 237, .10);
  --shadow-lg:  0 20px 54px rgba(124, 58, 237, .16);
  --shadow-ink: 0 12px 32px rgba(43, 43, 61, .10);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;

  /* 布局 */
  --container: 1200px;
  --nav-h: 74px;
  --topbar-h: 42px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--purple-4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--purple-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; }
.sec--tight { padding: 64px 0; }
.sec--soft { background: var(--bg); }
.sec--white { background: var(--card); }
.sec--mist { background: linear-gradient(180deg, #f8f6fd 0%, #f1edfa 100%); }

/* ---------- 区块标题 ---------- */
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 2px; color: var(--purple-6);
  font-weight: 600; margin-bottom: 14px; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--purple-4); border-radius: 2px; }
.kicker--center::after { content: ""; width: 26px; height: 2px; background: var(--purple-4); border-radius: 2px; }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.3; color: var(--ink-1); letter-spacing: .5px; }
.sec-title em { font-style: normal; color: var(--purple-5); }
.sec-desc { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--purple-5), var(--purple-6)); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, .28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(124, 58, 237, .36); }
.btn-ghost { background: var(--card); color: var(--purple-6); border-color: var(--purple-3); }
.btn-ghost:hover { background: var(--purple-1); transform: translateY(-3px); }
.btn-soft { background: var(--purple-1); color: var(--purple-6); }
.btn-soft:hover { background: var(--purple-2); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--purple-6); box-shadow: 0 8px 22px rgba(124, 58, 237, .18); }
.btn-light:hover { transform: translateY(-3px); }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-tel { background: linear-gradient(135deg, #f0abfc, var(--purple-5)); color: #fff; }

/* ---------- 标签 / 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-full);
  background: var(--purple-1); color: var(--purple-6);
  font-size: 12.5px; font-weight: 600; letter-spacing: .5px;
}
.badge--solid { background: var(--purple-5); color: #fff; }
.badge--line { background: transparent; border: 1px solid var(--purple-3); }
.tag {
  display: inline-block; padding: 3px 12px; border-radius: var(--r-full);
  background: var(--gray-1); color: var(--ink-2); font-size: 12.5px;
  border: 1px solid var(--gray-2);
}
.tag--purple { background: var(--purple-1); color: var(--purple-6); border-color: var(--purple-2); }

/* ---------- 卡片（悬浮柔影基础） ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}
.card--lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- 顶部信息条 ---------- */
.topbar { background: linear-gradient(90deg, var(--purple-7), var(--purple-6) 55%, var(--purple-5)); color: #efe9ff; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--topbar-h); }
.topbar-slogan { display: inline-flex; align-items: center; gap: 8px; }
.topbar-slogan svg { width: 14px; height: 14px; }
.topbar-contact { display: inline-flex; align-items: center; gap: 18px; }
.topbar-contact a { color: #fff; font-weight: 600; }
.topbar-contact a:hover { color: #f5d0fe; }
.topbar-contact .sep { opacity: .4; }

/* ---------- 主导航 ---------- */
.site-head { position: relative; z-index: 100; }
.navbar {
  position: sticky; top: 0; width: 100%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.navbar.scrolled { box-shadow: 0 8px 30px rgba(74, 27, 158, .10); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; color: var(--ink-1); }
.logo-name em { font-style: normal; color: var(--purple-5); }
.logo-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); border-radius: var(--r-sm);
  white-space: nowrap; /* 防止导航文字折行 */
}
.nav-links > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--purple-5);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--purple-6); }
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-tel {
  margin-left: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px !important; border-radius: var(--r-full) !important;
  background: var(--purple-1); color: var(--purple-6) !important; font-weight: 700 !important;
}
.nav-tel::after { display: none; }
.nav-tel:hover { background: var(--purple-2); }
.nav-tel svg { width: 16px; height: 16px; }

.hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.hamburger span { position: relative; width: 22px; height: 2px; background: var(--ink-1); border-radius: 2px; transition: background .3s ease; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--ink-1); border-radius: 2px; transition: transform .3s ease, top .3s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after { top: 0; transform: rotate(-45deg); }

/* 移动端全屏菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(248, 246, 253, .97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 40px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: all .35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 14px 8px; font-size: 20px; font-weight: 600;
  color: var(--ink-1); border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--purple-5); }
.mobile-menu .mm-tel { margin-top: 26px; text-align: center; }
.mobile-menu .mm-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--purple-5); }
.breadcrumb .sep { color: var(--gray-3); }

/* ---------- 页脚 ---------- */
.footer { background: linear-gradient(180deg, #23203a 0%, #1a1830 100%); color: #c9c6de; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: -160px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 65%);
  pointer-events: none;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; padding: 64px 0 48px; position: relative; z-index: 1; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; letter-spacing: 1px; }
.footer .f-brand p { margin-top: 16px; font-size: 14px; color: #a7a3c2; max-width: 300px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 14px; color: #b6b2d0; }
.footer ul a:hover { color: #e4d9ff; padding-left: 4px; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #b6b2d0; }
.footer .f-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--purple-3); }
.footer .f-contact .big { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: #8e8aa8; position: relative; z-index: 1;
}
.footer-bottom a { color: #b6b2d0; }
.footer-bottom .icp a { color: #8e8aa8; }
.footer-bottom .icp a:hover { color: #e4d9ff; }

/* ---------- 悬浮联系条 ---------- */
.floatbar {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.floatbar .fb-item {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-6); position: relative; transition: all .3s ease;
}
.floatbar .fb-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--purple-5); color: #fff; }
.floatbar .fb-item svg { width: 22px; height: 22px; }
.floatbar .fb-tip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--ink-1); color: #fff; font-size: 12.5px; padding: 7px 14px;
  border-radius: 8px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .3s ease;
}
.floatbar .fb-item:hover .fb-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.floatbar .fb-top { background: var(--purple-1); }

/* 移动端底部快捷条 */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(74, 27, 158, .12);
  grid-template-columns: 1fr 1fr 1fr;
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 9px; font-size: 11.5px; color: var(--ink-2); font-weight: 600;
}
.mobile-bar a svg { width: 21px; height: 21px; }
.mobile-bar a.mb-primary { background: linear-gradient(135deg, var(--purple-5), var(--purple-6)); color: #fff; }

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .25, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: all .8s cubic-bezier(.2, .6, .25, 1); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: all .8s cubic-bezier(.2, .6, .25, 1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }

/* ---------- 通用列表图标（自定义矢量） ---------- */
.icon-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--purple-1); color: var(--purple-6); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-dot svg { width: 14px; height: 14px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow-sm); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--purple-1); color: var(--purple-7); font-weight: 700; font-size: 13.5px; letter-spacing: .5px; }
.tbl tbody tr:hover { background: var(--gray-1); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .c-purple { color: var(--purple-6); font-weight: 700; }

/* ---------- 无障碍与动效偏好 ---------- */
:focus-visible { outline: 3px solid var(--purple-4); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
/* 中屏：隐藏电话按钮并收窄导航，避免文字折行 */
@media (max-width: 1180px) {
  .nav-tel { display: none; }
  .nav-links { gap: 2px; }
  .nav-links > a { padding: 10px 10px; font-size: 14px; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .topbar-slogan { display: none; }
  .sec { padding: 64px 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floatbar { display: none; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 62px; }
  .topbar-contact { font-size: 12px; gap: 10px; }
  .btn-lg { padding: 13px 28px; font-size: 15px; }
  .sec-title { font-size: 24px; }
}

/* 页脚全站导航 */
.footer-links { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 34px 0 30px; display: grid; grid-template-columns: 150px 1fr; gap: 30px; }
.footer-links .fl-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 2px; padding-top: 4px; }
.footer-links .fl-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-links h5 { font-size: 12.5px; color: #8e8aa8; letter-spacing: 1px; margin-bottom: 12px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { font-size: 13px; color: #a7a3c2; transition: all .25s ease; }
.footer-links ul a:hover { color: #e4d9ff; padding-left: 4px; }
@media (max-width: 1080px) { .footer-links { grid-template-columns: 1fr; gap: 18px; } .footer-links .fl-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-links .fl-groups { grid-template-columns: 1fr; } }
