/* 定柔科技 ERP - 自定义样式 */
/* Header & Footer 使用 Tailwind CSS 工具类，此文件用于额外自定义样式 */

@import url('/app.notification.css');
@import url('/app.login-dialog.css');
@import url('/app.home-v2.css');
@import url('/app.open-api.css');
@import url('/app.alliance-distribution.css');
@import url('/app.api-smart-dispatch.css');
@import url('/app.factory-join.css');
@import url('/app.temu.css');
@import url('/app.shein.css');
@import url('/app.tiktok.css');
@import url('/app.fbm.css');

/* 通用：移除移动端点击灰色高亮 */
.no-tap-highlight {
  -webkit-tap-highlight-color: transparent;
}

/* iconfont */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* 导航链接 - 胶囊形 */
.nav-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #323843;
  line-height: 22px;
  white-space: nowrap;
  transition:
    color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.nav-link:hover {
  color: #3b82f6;
}

/* 导航选中样式 - 浅蓝背景 + 蓝色光晕 */
.nav-link--active {
  background-color: #eef5ff;
  color: #3b82f6 !important;
  font-weight: 500;
  border-radius: 8px;
}

.nav-link--button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* 导航包裹器 — 分页切换（整项显示，不截断） */
.header-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

.header-nav-viewport {
  flex: 1 1 auto;
  min-width: 0;
}

.header-nav-wrapper[data-header-nav-page='start'] .header-nav-viewport {
  display: flex;
  justify-content: flex-end;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.header-nav-entry,
.mobile-nav-entry {
  display: flex;
  flex-shrink: 0;
}

/* 左右滑动箭头 */
.header-nav-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(58, 77, 131, 0.14);
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 2;
}

.header-nav-arrow:hover {
  background: #f6faff;
  box-shadow: 0 3px 10px rgba(58, 77, 131, 0.18);
}

.header-nav-arrow[hidden] {
  display: none;
}

.header-nav-arrow--prev svg {
  transform: rotate(180deg);
}

.header-nav-item {
  position: relative;
}

.header-nav-item__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header-nav-item--active > .nav-link {
  background-color: #fff;
  color: #3b82f6;
  font-weight: 500;
  border-radius: 8px;
}

.header-nav-item--has-children:hover .header-nav-item__arrow,
.header-nav-item--has-children:focus-within .header-nav-item__arrow,
.header-nav-item--active .header-nav-item__arrow {
  transform: rotate(180deg);
}

.header-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 208px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(58, 77, 131, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1001;
}

.header-submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.header-nav-item--has-children:hover .header-submenu,
.header-nav-item--has-children:focus-within .header-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-submenu__item {
  display: block;
  width: 100%;
  padding: 6px 16px;
  border-radius: 8px;
  color: #323843;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.header-submenu__item + .header-submenu__item {
  margin-top: 8px;
}

.header-submenu__item:hover,
.header-submenu__item--active {
  background: #eef5ff;
  color: #3b82f6;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-nav-toggle__arrow {
  margin-left: 8px;
  color: #707a91;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-nav-group.is-open .mobile-nav-toggle__arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding: 6px 0 0 24px;
}

.mobile-nav-group.is-open .mobile-submenu {
  display: block;
}

.mobile-submenu__item {
  display: block;
  padding: 8px 16px;
  color: #5d697a;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  border-radius: 8px;
}

.mobile-submenu__item + .mobile-submenu__item {
  margin-top: 4px;
}

.mobile-submenu__item--active {
  background: #eef5ff;
  color: #3b82f6;
  font-weight: 500;
}

.header-search-entry {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: 190px;
  height: 40px;
  padding: 0 16px 0 10px;
  border: 1px solid #cfd8e3;
  border-radius: 9999px;
  background: #fff;
  color: #707a91;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-search-entry:hover {
  background: #fff;
  border-color: #bfcadb;
  color: #5d697a;
  box-shadow: 0 6px 18px rgba(58, 77, 131, 0.08);
}

.header-search-entry__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  flex-shrink: 0;
}

.header-search-entry__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #323843;
  font: inherit;
  line-height: 22px;
}

.header-search-entry__input::placeholder {
  color: #707a91;
}

header[role='banner'] .gap-2 {
  gap: 16px !important;
}

/* 右侧按钮 - 胶囊形 */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
}

.header-btn:hover {
  opacity: 0.95;
}

/* 会员权益 - 黄橙到粉紫渐变 */
.header-btn--member {
  color: #693c1b;
  background: linear-gradient(84deg, #fff9bf 0%, #ffe6da 65%, #fddbff 100%);
  box-shadow: 0 2px 8px rgba(249, 131, 255, 0.3);
}

.header-btn--member:hover {
  box-shadow: 0 4px 12px rgba(249, 131, 255, 0.4);
  background: linear-gradient(84deg, #fff48e 0%, #ffd4c1 65%, #fcbcff 100%);
}

.header-btn--member:active {
  box-shadow: 0 4px 12px rgba(249, 131, 255, 0.4);
  background: linear-gradient(84deg, #fff48e 0%, #ffd4c1 65%, #fcbcff 100%);
}

.header-btn__icon {
  width: 18px;
  height: 18px;
}

/* 立即登录 - 白底灰边 */
.header-btn--login {
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.header-btn--login:hover {
  color: #111827;
  border-color: #d1d5db;
}

.header-btn--workbench {
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.header-btn--workbench:hover {
  color: #111827;
  border-color: #d1d5db;
}

/* 登录后：用户头像 + 下拉 */
.header-user {
  position: relative;
}

.header-user__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #374151;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.header-user__trigger:hover {
  opacity: 0.92;
}

.header-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d2d9e0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.header-user__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 208px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(58, 77, 131, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 1000;
}

.header-user.is-open .header-user__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user__dropdown-title {
  padding: 8px 16px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.header-user__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #323843;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  box-sizing: border-box;
}

.header-user__dropdown-item
  + .header-user__dropdown-item:not(.header-user__dropdown-item--logout) {
  margin-top: 8px;
}

.header-user__dropdown-item:hover,
.header-user__dropdown-item--active {
  background: #eef5ff;
  color: #3b82f6;
}

.header-user__dropdown-item--logout {
  align-self: flex-start;
  justify-content: center;
  margin-top: 12px;
  width: auto;
  padding: 8px 14px;
  border: 1px solid #cfd8ea;
  background: #fff;
  color: #4b5563;
  font-weight: 500;
}

.header-user__dropdown-item--logout:hover {
  background: #fff;
  border-color: #9db7f8;
  color: #3b82f6;
}

.header-user__dropdown-item--logout .header-user__dropdown-icon {
  flex-shrink: 0;
}

/* homepage */
.home-warapper {
  position: relative;
  isolation: isolate;
  /* 创建新堆叠上下文，避免背景层影响子元素 cursor */
  min-height: 2406px;
}

.home-warapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('/assets/images/home-bg-1.png');
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========== Homepage Accordion Item (复用样式) ========== */
.accordion-item {
  width: 100%;
  padding: 0 4px;
  transition: all 0.3s;
}

.accordion-item__active {
  padding: 16px;
}

.accordion-item__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
  /* 对应 gap-3 */
}

.accordion-item__iconWrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item__arrowWrap {
  width: 24px;
  height: 24px;
  position: relative;
}

.accordion-item__content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  /* 约等于 rounded-xl */
  transition: all 0.3s;
}

.accordion-item__desc {
  color: rgb(63 63 70);
  /* text-zinc-700 */
  font-size: 16px;
  line-height: 24px;
  margin: 16px 0;
  /* mb-4 */
}

.accordion-item__bullets {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  /* gap-3 */
}

.accordion-item__bullet {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  /* gap-2 */
}

.accordion-item__bulletIconWrap {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item__bulletText {
  color: rgb(63 63 70);
  /* text-zinc-700 */
  font-size: 16px;
  line-height: 20px;
}

.\!grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.\!grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* homepage */
.homepage-sub-title {
  background: linear-gradient(90deg, #323843, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Homepage Hero Tab 选中态 - 渐变文字和边框 */
.homepage-tab__active {
  background: linear-gradient(
    90deg,
    #0f77fe,
    #1170fe,
    #1369fe,
    #1662fe,
    #185cfe,
    #1a55fe,
    #1c4ffe,
    #1f49fe,
    #2143ff,
    #233dff,
    #2537ff,
    #2831ff,
    #2a2cff,
    #322cff,
    #3b2eff,
    #4531ff,
    #4e33ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.homepage-tab__active-border {
  background: linear-gradient(
    90deg,
    #0f77fe,
    #1170fe,
    #1369fe,
    #1662fe,
    #185cfe,
    #1a55fe,
    #1c4ffe,
    #1f49fe,
    #2143ff,
    #233dff,
    #2537ff,
    #2831ff,
    #2a2cff,
    #322cff,
    #3b2eff,
    #4531ff,
    #4e33ff
  );
}

.price_card_btn--disabled {
  cursor: not-allowed;
}

button.primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 80px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  /* font-weight: 500; */
  cursor: pointer;
  /* box-shadow: 0px 15px 20px 0px rgba(67, 108, 230, 0.3); */
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

button.primary:hover,
.btn-primary:hover {
  background-color: #59a4ff;
}

button.primary:active,
.btn-primary:active {
  background-color: #1461e1;
}

.header-auth-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  width: 104px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 40px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-auth-entry:active {
  background-color: #1461e1;
}

.header-auth-entry__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.header-auth-entry__action--login {
  border-radius: 40px 0 0 40px;
}

.header-auth-entry__action--register {
  border-radius: 0 40px 40px 0;
}

.header-auth-entry[data-auth-active='login']
  .header-auth-entry__action--login,
.header-auth-entry[data-auth-active='register']
  .header-auth-entry__action--register {
  background-color: #59a4ff;
  color: #ffffff;
}

.header-auth-entry__action:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.header-auth-entry__action:active {
  background-color: rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.header-auth-entry__divider {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: inherit;
  line-height: 22px;
  margin: 0;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

button.default,
.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: #ffffff;
  color: #5d697a;
  border: 1px solid #d2d9e0;
  border-radius: 80px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

button.default:hover,
.btn-default:hover {
  background-color: #eef5ff;
  border-color: #3b82f6;
  color: #3b82f6;
}

button.default:active,
.btn-default:active {
  background-color: #eef5ff;
  border-color: #1461e1;
  color: #1461e1;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

button.primary.disabled,
button.primary.loading,
.btn-primary.disabled,
.btn-primary.loading {
  background-color: #8ec1ff;
  color: white;
}

button.loading,
.btn-primary.loading {
  position: relative;
  pointer-events: none;
}

button.loading::before,
.btn-primary.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spinner 1s linear infinite;
}

@media (max-width: 1023px) {
  header[role='banner'] > div {
    gap: 16px;
    min-height: 56px;
    padding: 11px 16px !important;
  }

  #mobile-menu-button {
    width: 24px;
    height: 24px;
    margin-right: 8px !important;
  }

  header[role='banner'] a[href='/'] img {
    width: 90px;
    height: 24px;
    object-fit: contain;
  }

  header[role='banner'] button.default,
  header[role='banner'] button.primary,
  header[role='banner'] .btn-primary,
  header[role='banner'] .header-auth-entry,
  header[role='banner'] .default,
  header[role='banner'] .primary {
    min-height: 34px;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
  }

  header[role='banner'] > div > .flex.items-center.gap-2.shrink-0 {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  header[role='banner'] .header-search-entry {
    display: inline-flex;
    flex: 1 1 auto;
    width: auto;
    max-width: 300px;
    min-width: 0;
    height: 34px;
    gap: 6px;
    padding: 0 12px;
    border-color: #d2d9e0;
  }

  header[role='banner'] .header-search-entry__icon {
    width: 16px;
    height: 16px;
  }

  header[role='banner'] .header-search-entry__input {
    font-family: 'PingFang SC', sans-serif;
    line-height: 22px;
  }

  header[role='banner'] .header-auth-entry {
    flex: 0 0 auto;
    width: 104px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }
}

/* 手机端搜索框左右间距 16px */
@media (max-width: 767px) {
  .header-search-entry {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 359px) {
  header[role='banner'] .header-search-entry {
    padding-inline: 10px;
  }

  header[role='banner'] .header-auth-entry {
    width: 104px;
    padding-inline: 0;
  }
}

/* ========== 平板端响应式 (768px – 1439px) ========== */
@media (min-width: 768px) and (max-width: 1439px) {
  /* Header — 平板端使用汉堡菜单但布局更宽松 */
  header[role='banner'] > div {
    gap: 12px;
    min-height: 60px;
    padding: 12px 32px !important;
  }

  #mobile-menu-button {
    width: 28px;
    height: 28px;
    margin-right: 12px !important;
  }

  header[role='banner'] a[href='/'] img {
    width: 110px;
    height: 28px;
  }

  header[role='banner'] .header-search-entry {
    flex: 1 1 auto;
    width: auto;
    max-width: 300px;
    min-width: 0;
    height: 40px;
    gap: 8px;
    padding: 0 14px;
  }

  header[role='banner'] .header-auth-entry {
    flex: 0 0 auto;
    width: 104px;
    height: 36px;
    min-height: 36px;
  }

  header[role='banner'] button.default,
  header[role='banner'] button.primary,
  header[role='banner'] .btn-primary,
  header[role='banner'] .default,
  header[role='banner'] .primary {
    min-height: 36px;
    padding: 8px 18px;
    font-size: 14px;
    line-height: 22px;
  }

  /* 强制显示汉堡菜单（覆盖 Tailwind lg:hidden 在 1024px 的生效） */
  #mobile-menu-button {
    display: block !important;
  }

  /* 强制隐藏桌面端导航（覆盖 max-lg:hidden 在 ≥1024px 失效） */
  header[role='banner'] .header-nav {
    display: none !important;
  }

  /* 强制保持移动端菜单面板可用（覆盖 lg:hidden） */
  #mobile-menu-panel {
    display: flex !important;
  }

  /* 移动端遮罩层 — 只在 JS 移除 hidden 类时显示 */
  #mobile-menu-overlay:not(.hidden) {
    display: block !important;
  }

  /* Footer — 平板端折叠菜单保持但更宽松 */
  footer[role='contentinfo'] [data-footer-mobile-toggle] {
    padding: 12px 0;
  }

  footer[role='contentinfo'] [data-footer-mobile-toggle] span {
    font-size: 18px;
  }

  /* Footer — 二维码靠右对齐 */
  footer[role='contentinfo'] .flex.w-full.items-start.justify-between.gap-4 {
    max-width: 600px;
    padding-right: 12px;
  }

  /* Footer — 强制显示移动端折叠布局（覆盖 lg:hidden） */
  footer[role='contentinfo'] > div > div:first-of-type {
    display: flex !important;
  }

  /* Footer — 强制隐藏桌面端多列布局（覆盖 lg:flex） */
  footer[role='contentinfo'] > div > div:nth-of-type(2) {
    display: none !important;
  }

  /* 合作申请流程 — 平板端强制4列同行（只命中含 max-sm:hidden 的桌面端版本） */
  [class*="max-sm:hidden"][class*="grid-cols-1"][class*="md:grid-cols"] {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    padding-left: 12px !important;
  }

  [class*="max-sm:hidden"][class*="grid-cols-1"][class*="md:grid-cols"] h3 {
    font-size: 14px !important;
    white-space: nowrap;
  }

  [class*="max-sm:hidden"][class*="grid-cols-1"][class*="md:grid-cols"] li {
    font-size: 11px !important;
  }

  }

/* ========== iPad Pro 专项 (1024px – 1439px) ========== */
@media (min-width: 1024px) and (max-width: 1439px) {
  /* Header 搜索框 — iPad Pro 上更宽 */
  header[role='banner'] .header-search-entry {
    max-width: 500px;
    padding-right: 16px !important;
  }

  /* Header 底部边框 — Pro 上也显示（原 max-lg:border-b 在 ≥1024px 隐藏） */
  header[role='banner'] {
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #e5e7eb !important;
  }

  /* 合作申请流程 — iPad Pro 间距加大 */
  [class*="max-sm:hidden"][class*="grid-cols-1"][class*="md:grid-cols"] {
    gap: 88px !important;
  }

  /* ===== SaaS 页面 iPad Pro ===== */

  /* --- Part 1 Hero — iPad Mini 放大版，纯上下堆叠 --- */
  [data-saas-mode] > div:first-of-type {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: normal !important;
    min-height: auto !important;
    height: auto !important;
    padding: 220px 48px !important;
    gap: 40px !important;
  }
  [data-saas-mode] [class*="order-2"][class*="lg:order-1"] {
    order: 2 !important;
    height: auto !important;
    max-height: 420px !important;
    max-width: 560px !important;
    flex: 0 0 auto !important;
  }
  [data-saas-mode] [class*="order-2"][class*="lg:order-1"] img {
    height: auto !important;
    max-width: 100% !important;
  }
  [data-saas-mode] [class*="order-1"][class*="lg:order-2"] {
    order: 1 !important;
    width: 100% !important;
    max-width: 620px !important;
    flex: 0 0 auto !important;
  }
  [data-saas-mode] h1,
  [data-saas-mode] [class*="text-\[34px\]"] {
    font-size: 38px !important;
  }

  /* --- Part 2 Section 外层：左右间距更小 --- */
  section[data-saas-accordion="product-profit"] {
    padding: 40px 16px !important;
  }
  section[data-saas-accordion="product-profit"] h2 {
    font-size: 34px !important;
  }

  /* --- Part 2 两个手风琴网格：2列等宽 + 居中 --- */
  section[data-saas-accordion="product-profit"] .grid-cols-1:not([data-saas-brand-accordion]),
  [data-saas-brand-accordion] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    max-width: 940px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 16px !important;
    overflow: hidden !important;
  }

  /* 所有网格子元素：防溢出 + 防重叠 */
  section[data-saas-accordion="product-profit"] .grid-cols-1:not([data-saas-brand-accordion]) > div,
  [data-saas-brand-accordion] > div {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* 视觉图：覆盖 lg:h-[492px] + [aspect-ratio]（产品:last-child=视觉, 品牌:first-child=视觉） */
  section[data-saas-accordion="product-profit"] .grid-cols-1:not([data-saas-brand-accordion]) > div:last-child,
  [data-saas-brand-accordion] > div:first-child {
    height: 400px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  /* 手风琴面板：覆盖 lg:h-[492px] + min-h-[492px]（产品:first-child=面板, 品牌:last-child=面板） */
  section[data-saas-accordion="product-profit"] .grid-cols-1:not([data-saas-brand-accordion]) > div:first-child,
  [data-saas-brand-accordion] > div:last-child {
    min-height: 0 !important;
    height: 400px !important;
    overflow-y: auto !important;
  }

  /* --- Part 3 核心优势 — 2 列 --- */
  section[data-saas-accordion="product-profit"] ~ section [class*="grid-cols-1"][class*="md:grid-cols-2"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* --- Part 4 客户见证 — 堆叠 --- */
  section[data-saas-accordion="product-profit"] ~ section [class*="flex-col"][class*="lg:flex-row"] {
    flex-direction: column !important;
  }
  section[data-saas-accordion="product-profit"] ~ section [class*="lg:w-3\/10"],
  section[data-saas-accordion="product-profit"] ~ section [class*="lg:w-2\/5"] {
    width: 100% !important;
  }
  section[data-saas-accordion="product-profit"] ~ section [class*="max-lg:order-first"] {
    order: -1 !important;
  }
}


@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}
