:root {
  --w1280: 1280px;
  --w1440: 1440px;
    --primary-color: #0866ff;
  --primary-light: #e6f0ff;
  --text-dark: #292929;
  --text-gray: #33333380;
  --bg-light: #f4f8ff;
  --bg-blue: #0a44a7;
  --border-radius: 8px;
  --shadow-light: 0 5px 15px #0866ff0f;
}
body {
  background-color: #fff;
}
/* 通用 Flex 样式 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.w-1280 {
  width: var(--w1280);
  display: flex;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: " / ";
  margin: 0 0.5rem;
}

.faq-section {
  padding: 3rem 0;
  background: #f9f9f9;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-section article {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.faq-section h3 {
  margin-bottom: 0.5rem;
  color: #333;
}
/* ========== Layout Helpers ========== */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
}

/* ========== Site Header (Reusable) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.site-brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  font-family: Alimama ShuHeiTi, Arial, sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #191919;
  line-height: 77px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-brand img {
  width: 32px;
  height: 32px;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.site-nav__link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 6px;
  border-radius: 8px;
}

.site-nav__link:hover {
  background: rgba(36, 104, 242, 0.08);
  color: #2468f2;
}

.active-li,
.site-nav__link[aria-current="page"] {
  color: #2468f2;
  font-weight: 600;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.site-actions__link {
  text-decoration: none;
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #232323;
  margin-right: 20px;
}

.site-actions__btn {
  font-family: PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  box-sizing: border-box;
  width: 114px;
  background: #0866ff;
  border-radius: 4px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: none;
  align-items: center;
  gap: 12px;
}

.user-info__btn {
  font-family: PingFang SC;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  box-sizing: border-box;
  background: #0866ff;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* ========== Site Footer (Reusable) ========== */
.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  width: fit-content;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }
  .site-nav__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 侧栏客服样式 - 完全匹配参考风格 */
.service-aside {
  position: fixed;
  top: 50%;
  right: 0;
  width: 74px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background-color: var(--card-bg); /* 使用全局变量，统一背景色 */
  box-shadow: 0px 0px 10px 1px rgba(87, 73, 73, 0.4);
  transform: translateY(-50%); /* 修正垂直居中写法，更规范 */
  z-index: 9999; /* 提升层级，避免被遮挡 */
  transition: box-shadow 0.2s ease; /* 增加阴影过渡，更顺滑 */
}

/* 悬浮客服按钮样式 */
.floating-service-btn {
  border: 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--text-main); /* 使用全局文字主色 */
  cursor: pointer;
  padding: 8px 0; /* 增加内边距，扩大点击区域 */
  width: 100%; /* 按钮宽度铺满侧栏 */
  transition: color 0.2s ease, transform 0.1s ease; /* 增加过渡效果 */
}

/* 按钮图标样式 */
.floating-service-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain; /* 保证图标不变形 */
  margin-bottom: 4px; /* 图标与文字间距 */
  transition: transform 0.2s ease; /* 图标缩放过渡 */
}

/* 按钮悬停效果 */
.floating-service-btn:hover {
  color: var(--primary); /* 悬停时文字变主题色 */
  transform: translateY(-2px); /* 轻微上移 */
}

.floating-service-btn:hover img {
  transform: scale(1.1); /* 图标轻微放大 */
}

/* 修复 dialog 居中问题 */
dialog#service-dialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  padding: 0;
  width: 320px;
  max-width: 90%;
  position: relative;
  overflow: hidden;
  /* 关键：使用 transform 实现居中 */
  transform: translate(-50%, -50%);
}

/* 让 dialog 在视口中心显示 */
dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  background-color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  padding: 12px;
  width: 320px;
  max-width: 90%;
  transition: opacity 0.2s ease;
}

/* backdrop 样式 */
dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* 图片样式 */
dialog#service-dialog img {
  object-fit: contain;
}

/* 关闭按钮样式 */
.dialog-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dialog-close:hover {
  color: #333;
  background-color: #f0f0f0;
}
