* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/**
 * 富文本详情图片：编辑器常带 inline width/height，移动端 max-width 单独生效会导致变形。
 * 用 !important 覆盖 inline 样式，保持等比缩放。
 */
:is(
  .cms-page-content__body,
  .cate-detail__content,
  .article-detail__content,
  .help-article__body,
  .agree-article__body,
  .msp-rich-text,
  .cms-page--about .about-profile__body,
  .cms-page--about .about-mission__body,
  .cms-page--about .about-advantages__body,
  .cms-page--about .about-timeline__body
) img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/**
 * CMS 富文本详情（帮助中心 / 平台协议 / 新闻 / 单页）：
 * 编辑器 inline style 常带 text-wrap: nowrap，移动端在指定容器内强制换行。
 */
@media (max-width: 960px) {
  :is(
    .page-help-detail .cate-detail__content,
    .page-agree-detail .cate-detail__content,
    .page-article-detail .cate-detail__content,
    .page-single .cms-page-content__body
  ) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  :is(
    .page-help-detail .cate-detail__content,
    .page-agree-detail .cate-detail__content,
    .page-article-detail .cate-detail__content,
    .page-single .cms-page-content__body
  ) :is(p, span) {
    text-wrap: wrap !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

html {
  overflow-x: clip;
}

:root {
  --site-header-top-height: 0px;
  --site-header-main-height: 70px;
  --site-header-height: var(--site-header-main-height);
}

.header--with-topbar {
  --site-header-top-height: 40px;
  --site-header-height: calc(var(--site-header-top-height) + var(--site-header-main-height));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1200;
}

.header-top {
  display: none;
  align-items: center;
  justify-content: flex-end;
  height: var(--site-header-top-height);
  border-bottom: 1px solid #f0f2f5;
}

.header--with-topbar .header-top {
  display: flex;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-top .onboard-btn,
.header-top .login-btn,
.header-top .register-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 13px;
}

.header-top .onboard-btn--merchant {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.28);
}

.header-top .onboard-btn--merchant:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.header-top .onboard-btn--influencer {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.28);
}

.header-top .onboard-btn--influencer:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.header-content {
  display: flex;
  align-items: center;
  height: var(--site-header-main-height);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  order: 1;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}

.logo-text {
  margin-left: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-img--round {
  width: 44px;
  height: 44px;
  max-width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: clamp(14px, 1.6vw, 26px);
  flex-wrap: nowrap;
  order: 2;
}

@media (min-width: 961px) {
  .header-content > .nav {
    margin-left: -150px;
  }
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 6px;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-item.active {
  color: #2563eb;
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  order: 3;
}

.header-content .header-user-summary {
  display: none;
}

.header-content .header-user-trigger {
  padding: 2px;
}

.search-box {
  position: relative;
  display: none;
}

.search-box input {
  width: 200px;
  height: 40px;
  padding: 0 40px 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #999;
}

.message-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.message-btn[hidden] {
  display: none !important;
}

.message-btn svg {
  width: 20px;
  height: 20px;
  color: #666;
}

.message-btn svg.is-favorited,
.btn-favorite.favorited svg {
  color: #ef4444;
}

.message-btn:hover {
  background: #e8e8e8;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.login-btn, .register-btn, .onboard-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.onboard-btn {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.onboard-btn--merchant {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.onboard-btn--merchant:hover {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.32);
}

.onboard-btn--influencer {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25);
}

.onboard-btn--influencer:hover {
  color: #fff;
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.32);
}

.onboard-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.login-btn {
  background: transparent;
  color: #666;
}

.login-btn:hover {
  color: #3b82f6;
}

.register-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.header-user {
  position: relative;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 12px;
  border: none;
  background: transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.header-user-trigger:hover,
.header-user.is-open .header-user-trigger {
  background: #f5f7fa;
}

.header-user-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  max-width: 160px;
}

.header-user-account {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-nickname {
  font-size: 12px;
  color: #999;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.header-user-avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 1100;
}

.header-user-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.header-user-menu-link:hover {
  background: #f9fafb;
}

.header-user-menu-link svg {
  width: 18px;
  height: 18px;
  color: #666;
  flex-shrink: 0;
}

.header-user-menu-chevron {
  margin-left: auto;
}

.header-user-detail {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.header-user-detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.header-user-detail-body {
  flex: 1;
  min-width: 0;
}

.header-user-role-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #3b82f6;
  background: #eff6ff;
  border-radius: 4px;
}

.header-user-role-tag--link {
  text-decoration: none;
  cursor: pointer;
}

.header-user-role-tag--link:hover {
  background: #dbeafe;
}

.header-user-info-box {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fbff;
}

.header-user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.header-user-info-row + .header-user-info-row {
  margin-top: 6px;
}

.header-user-info-label {
  color: #666;
  flex-shrink: 0;
}

.header-user-info-value {
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.header-user-logout {
  display: block;
  width: calc(100% - 32px);
  margin: 16px;
  padding: 10px 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-user-logout:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.main {
  padding-top: var(--site-header-height);
  padding-bottom: 48px;
  max-width: 100%;
  overflow-x: clip;
}

/* ========== 会员中心（PC 全局布局） ========== */
.member-center-page {
  background: #f5f7fa;
}

.member-center {
  --member-page-title-height: 56px;
  padding: calc(var(--site-header-height) + 24px) 0 48px;
  min-height: 100vh;
  box-sizing: border-box;
}

.member-profile-header--desktop-only {
  display: none;
}

.member-page-title-bar {
  display: none;
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  z-index: 1195;
  height: var(--member-page-title-height);
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.member-center__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-center .profile-header {
  margin-bottom: 0;
}

.member-center .profile-content {
  margin-top: 0;
}

.member-center .member-content-bare {
  min-width: 0;
}

.member-page-title-bar__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.member-page-title-bar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s ease;
}

.member-page-title-bar__back svg {
  width: 22px;
  height: 22px;
}

.member-page-title-bar__back:hover {
  background: #f1f5f9;
}

.member-page-title-bar__title {
  margin: 0;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-page-title-bar__menu {
  position: relative;
  justify-self: end;
}

.member-page-title-bar__menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s ease;
}

.member-page-title-bar__menu-trigger svg {
  width: 20px;
  height: 20px;
}

.member-page-title-bar__menu-trigger:hover,
.member-page-title-bar__menu.is-open .member-page-title-bar__menu-trigger {
  background: #f1f5f9;
  color: #2563eb;
}

.member-page-title-bar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 1200;
}

.member-page-title-bar__dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.member-page-title-bar__dropdown-link:hover {
  background: #f8fafc;
  color: #2563eb;
}

.member-page-title-bar__dropdown-link.is-active {
  background: #eff6ff;
  color: #2563eb;
}

.member-page-title-bar__dropdown-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}

.member-page-title-bar__dropdown-icon .layui-icon {
  font-size: 16px;
}

.member-page-title-bar__dropdown-link.is-active .member-page-title-bar__dropdown-icon,
.member-page-title-bar__dropdown-link:hover .member-page-title-bar__dropdown-icon {
  background: #dbeafe;
  color: #2563eb;
}

.member-page-title-bar__dropdown-label {
  min-width: 0;
}

.member-overview-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-overview .section-header {
  margin-bottom: 20px;
}

.member-overview .section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.page-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 0;
}

.page-panel--narrow {
  max-width: 720px;
}

.page-panel--form {
  max-width: 640px;
}

.page-panel--wide {
  max-width: 920px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
}

.cycle-quota-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cycle-quota-bar__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.cycle-quota-bar__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cycle-quota-bar__label {
  font-size: 13px;
  color: #64748b;
}

.cycle-quota-bar__value {
  font-size: 20px;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.2;
}

.cycle-quota-bar__value.is-exhausted {
  color: #dc2626;
}

.cycle-quota-bar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

.cycle-quota-bar__meta a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.cycle-quota-bar__meta a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cycle-quota-bar {
    align-items: stretch;
    padding: 12px 14px;
  }

  .cycle-quota-bar__metrics {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cycle-quota-bar__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cycle-quota-bar__value {
    font-size: 18px;
  }

  .cycle-quota-bar__meta {
    width: 100%;
    justify-content: space-between;
  }
}

.member-center .btn-primary,
.member-center .btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.member-center .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.member-center .btn-primary:hover {
  transform: translateY(-1px);
}

.member-center .btn-secondary {
  background: #f3f4f6;
  color: #475569;
}

.member-center .btn-secondary:hover {
  background: #e2e8f0;
}

.member-center .btn-danger {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #fef2f2;
  color: #dc2626;
  transition: background 0.2s;
}

.member-center .btn-danger:hover {
  background: #fee2e2;
}

.demand-detail-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 20px;
}

.demand-detail-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.demand-detail-tab:hover {
  color: #334155;
}

.demand-detail-tab.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.demand-detail-panel {
  display: none;
}

.demand-detail-panel.is-active {
  display: block;
}

.match-empty {
  color: #94a3b8;
  text-align: center;
  padding: 48px 16px;
  margin: 0;
}

.portal-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.portal-match-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-match-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.portal-match-card__body {
  min-width: 0;
}

.portal-match-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-match-card__name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
  word-break: break-word;
}

.portal-match-card__score {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.portal-match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.portal-match-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.portal-match-card__reason,
.portal-match-card__stats {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  word-break: break-word;
}

.portal-match-card__stats {
  margin-bottom: 0;
  font-size: 12px;
  color: #94a3b8;
}

.portal-match-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.portal-match-card__actions .layui-btn {
  margin: 0;
}

.portal-match-card__status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  word-break: keep-all;
}

.portal-match-card__status--connecting {
  color: #b45309;
  background: #fef3c7;
}

.portal-match-card__status--connected {
  color: #047857;
  background: #d1fae5;
}

.portal-match-card__status--rejected {
  color: #b91c1c;
  background: #fee2e2;
}

@media (max-width: 640px) {
  .portal-match-grid {
    grid-template-columns: 1fr;
  }

  .portal-match-card__actions {
    flex-direction: column;
  }

  .portal-match-card__actions .layui-btn {
    width: 100%;
    justify-content: center;
  }
}

/* legacy match result page */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.match-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.match-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.match-card__name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.match-card__meta,
.match-card__reason,
.match-card__stats {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.match-card__score {
  margin: 0 0 8px;
  font-size: 14px;
  color: #334155;
}

.match-card__stats {
  margin-bottom: 0;
  font-size: 12px;
  color: #94a3b8;
}

.match-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.match-card__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  word-break: keep-all;
}

.match-card__status--connecting {
  color: #b45309;
  background: #fef3c7;
}

.match-card__status--connected {
  color: #047857;
  background: #d1fae5;
}

.match-card__status--rejected {
  color: #b91c1c;
  background: #fee2e2;
}

.demand-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demand-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.demand-detail__meta .status,
.portal-connect-detail .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  word-break: keep-all;
}

.demand-detail__meta .status.pending,
.portal-connect-detail .status.pending {
  background: #fef3c7;
  color: #d97706;
}

.demand-detail__meta .status.processing,
.table-list .status.processing {
  background: #dbeafe;
  color: #2563eb;
}

.demand-detail__meta .status.matching,
.demand-detail__meta .status.matched,
.portal-connect-detail .status.matching,
.portal-connect-detail .status.processing {
  background: #dbeafe;
  color: #2563eb;
}

.demand-detail__meta .status.completed,
.portal-connect-detail .status.completed {
  background: #d1fae5;
  color: #059669;
}

.demand-detail__no {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.demand-detail__time {
  font-size: 13px;
  color: #94a3b8;
  margin-left: auto;
}

.demand-detail__card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.demand-detail__title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.demand-detail__subtitle {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}

.demand-detail__section + .demand-detail__section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.demand-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
}

.demand-detail__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: start;
}

.demand-detail__row--full {
  grid-column: 1 / -1;
}

.demand-detail__row dt {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.demand-detail__row dd {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  word-break: break-word;
}

@media (max-width: 768px) {
  .demand-detail__grid {
    grid-template-columns: 1fr;
  }

  .demand-detail__time {
    margin-left: 0;
    width: 100%;
  }
}

.view-all {
  text-decoration: none;
  color: #3b82f6;
  font-size: 14px;
}

.view-all:hover {
  text-decoration: underline;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
  position: relative;
}

.service-image > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-image .profile-level-badge__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-image .profile-level-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  --profile-badge-height: 32px;
  max-width: calc(100% - 20px);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.service-image .profile-level-badge__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image .profile-level-badge__name {
  font-size: 13px;
}

.service-image .profile-level-badge--no-icon {
  padding: 0 12px;
}

.service-info {
  padding: 20px;
}

.service-header {
  margin-bottom: 10px;
}

.service-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.member-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.member-tag.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
}

.member-tag.silver {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #fff;
}

.member-tag.rose {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
}

.member-tag.violet {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  color: #fff;
}

.member-tag.ocean {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
}

.member-tag.free {
  background: #f3f4f6;
  color: #6b7280;
}

.service-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.location, .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.service-card .location {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-meta .layui-icon {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1;
}

.service-meta .layui-icon-star-fill {
  color: #fbbf24;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.rating-stars .rating-star {
  font-size: 14px;
  line-height: 1;
}

.rating-stars .rating-star--full {
  color: #fbbf24;
}

.rating-stars .rating-star--hollow {
  color: #d1d5db;
}

.rating-score {
  margin-left: 2px;
}

.service-list-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 48px 0;
}

.service-list-loading {
  text-align: center;
  color: #999;
  padding: 24px 0 8px;
}

.service-footer .price--text {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.service-footer .price--negotiable {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
}

.service-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
  line-height: 1.5;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #ef4444;
}

.contact-btn {
  height: 36px;
  padding: 0 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-btn:hover {
  transform: scale(1.05);
}

.review-carousel {
  position: relative;
  padding: 0 52px 28px;
}

.review-carousel--single {
  padding-bottom: 0;
}

.review-carousel__viewport {
  overflow: hidden;
  transition: height 0.35s ease;
}

.review-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s ease;
  will-change: transform;
}

.review-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.review-carousel__slide:not(.is-active) {
  height: 0;
  overflow: hidden;
}

.review-carousel__slide-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.review-carousel__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.review-carousel__arrow--prev {
  left: 0;
}

.review-carousel__arrow--next {
  right: 0;
}

.review-carousel__dots {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.review-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.review-carousel__dots button.is-active {
  background: #3b82f6;
  transform: scale(1.15);
}

@media (max-width: 1023px) {
  .review-carousel__slide-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.partner-platforms {
  padding: 40px 0 48px;
  background: #fff;
}

.review-carousel--partners {
  padding: 0 36px 28px;
}

.review-carousel--partners.review-carousel--single {
  padding-bottom: 0;
}

.review-carousel--partners .review-carousel__slide-inner {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 12px;
  align-items: start;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}

.partner-item__img {
  width: 100%;
  max-width: 172px;
  aspect-ratio: 245 / 98;
  object-fit: contain;
  object-position: center;
  display: block;
}

.partner-item__name {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.footer-friend-links + .footer-bottom {
  border-top: none;
  padding-top: 20px;
}

.footer-friend-links a {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-friend-links a:hover {
  color: #fff;
}

@media (max-width: 1023px) {
  .review-carousel--partners .review-carousel__slide-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .partner-item__img {
    max-width: 160px;
  }
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.review-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 24px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviewer-detail {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.review-time {
  font-size: 12px;
  color: #999;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-rating span:first-child {
  color: #fbbf24;
}

.review-rating span:last-child {
  font-weight: bold;
  color: #fbbf24;
}

.review-content {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.portal-review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 15px;
}

.portal-review-media__item {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.portal-review-media__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-review-list__item .review-reply {
  margin-top: 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
}

.review-reply__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #334155;
}

.review-reply__time {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.review-reply__content {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  word-break: break-word;
}

.review-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.review-dimensions span {
  font-size: 12px;
  color: #999;
  background: #fff;
  padding: 4px 10px;
  border-radius: 12px;
}

.review-target {
  font-size: 13px;
  color: #999;
}

.review-target a {
  color: #3b82f6;
  text-decoration: none;
}

.review-target a:hover {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.category-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon .layui-icon {
  font-size: 28px;
  color: #fff;
  line-height: 1;
}

.price-symbol {
  font-family: inherit;
  margin-right: 1px;
}

.category-icon.warehouse {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.category-icon.logistics {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-icon.customs {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-icon.freight {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
  margin-bottom: 5px;
}

.category-count {
  font-size: 13px;
  color: #999;
}

.footer {
  background: #1a1a1a;
  padding: 60px 0 30px;
  color: #999;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-contact-link {
  color: #fff;
  text-decoration: none;
  -webkit-text-fill-color: #fff;
}

.footer-contact-link:hover,
.footer-contact-link:active {
  color: #66b3ff;
  -webkit-text-fill-color: #66b3ff;
  text-decoration: underline;
}

.footer-contact-link:visited {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .logo-icon {
  flex-shrink: 0;
}

.footer-brand-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
}

.footer-qrcodes {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-qrcode-item {
  text-align: center;
}

.footer-qrcode-item img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
}

.footer-qrcode-item span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #999;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  font-size: 13px;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.footer-gongan__logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.login-page, .register-page {
  min-height: calc(100vh - var(--site-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container, .register-container {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-header, .register-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1, .register-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.login-header p, .register-header p {
  font-size: 14px;
  color: #999;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
  background: #fff;
}

.form-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.form-actions a {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
}

.form-actions a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.page-footer {
  text-align: center;
  margin-top: 25px;
}

.page-footer p {
  font-size: 14px;
  color: #999;
}

.page-footer a {
  color: #3b82f6;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.service-list-banner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: #e5e7eb;
}

.service-list-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.service-list-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
}

.service-list-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.service-list-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-list-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.service-list-carousel__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.service-list-carousel__arrow--prev {
  left: 24px;
}

.service-list-carousel__arrow--next {
  right: 24px;
}

.service-list-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.service-list-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.service-list-carousel__dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

.service-list-page {
  padding: 32px 0 40px;
}

.filter-bar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.filter-group select {
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  min-width: 140px;
}

.filter-group--region .filter-region-cascade {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group--region select {
  min-width: 140px;
}

.filter-group--region select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.filter-group input {
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.filter-group--keyword input {
  min-width: 200px;
  width: 220px;
}

.btn-filter {
  height: 40px;
  padding: 0 25px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sort-options {
  display: flex;
  gap: 15px;
}

.sort-options button {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s;
}

.sort-options button.active,
.sort-options button:hover {
  background: #eff6ff;
  color: #3b82f6;
}

.results-count {
  font-size: 14px;
  color: #666;
}

.detail-page {
  padding: 40px 0;
}

.detail-bio {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

.detail-cert-list {
  list-style: none;
  padding-left: 0;
}

.detail-cert-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.detail-header {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-top {
  display: flex;
  gap: 30px;
}

.detail-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
}

.detail-info h1 {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-tags span {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.detail-tags .member {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
}

.detail-tags .location {
  background: #f3f4f6;
  color: #666;
}

.detail-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item .value {
  font-size: 24px;
  font-weight: bold;
  color: #3b82f6;
}

.meta-item .label {
  font-size: 13px;
  color: #999;
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.detail-actions .btn-contact,
.detail-actions .btn-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}

.detail-actions .btn-contact {
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.detail-actions .btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.detail-actions .btn-favorite {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.detail-actions .btn-favorite__icon {
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  transition: color 0.2s, transform 0.2s;
}

.detail-actions .btn-favorite__text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.detail-actions .btn-favorite:hover {
  border-color: #fca5a5;
  color: #ef4444;
  background: #fff;
}

.detail-actions .btn-favorite:hover .btn-favorite__icon {
  color: #ef4444;
  transform: scale(1.08);
}

.detail-actions .btn-favorite.favorited {
  border-color: #fecaca;
  color: #ef4444;
  background: #fef2f2;
}

.detail-actions .btn-favorite.favorited .btn-favorite__icon {
  color: #ef4444;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}

.detail-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-section h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item .name {
  font-size: 15px;
  color: #333;
}

.service-item .price {
  font-size: 16px;
  font-weight: bold;
  color: #ef4444;
}

.tab-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-bar button {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s;
}

.tab-bar button.active,
.tab-bar button:hover {
  background: #eff6ff;
  color: #3b82f6;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-section h4 {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.contact-info .phone {
  font-size: 20px;
  font-weight: bold;
  color: #3b82f6;
}

.quick-contact {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.profile-page {
  padding: 24px 0 48px;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 32px 40px;
  color: #fff;
  margin-bottom: 0;
  position: relative;
}

.profile-header__actions {
  position: absolute;
  right: 32px;
  bottom: 28px;
  top: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-header__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(4px);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-header__action-btn--link {
  font-family: inherit;
}

.profile-header__action-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.profile-header__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.profile-header__action-icon svg {
  width: 18px;
  height: 18px;
}

.member-invite-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.member-invite-list__head h2 {
  margin: 0;
}

.member-invite-list__tip {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.member-invite-list__empty {
  margin: 0;
  color: #94a3b8;
  text-align: center;
  padding: 32px 16px;
}

.member-invite-list__name {
  font-weight: 600;
  color: #0f172a;
}

.member-invite-list__mobile {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.member-invite-list__status {
  color: #64748b;
  font-size: 13px;
}

.member-invite-list__status--done {
  color: #059669;
  font-weight: 600;
}

.member-invite-modal__desc {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 25px;
}

.profile-avatar-link {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
  transition: opacity 0.2s;
}

.profile-avatar-link:hover {
  opacity: 0.9;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

.profile-info__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.profile-info__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: background 0.2s;
}

.profile-info__edit svg {
  width: 15px;
  height: 15px;
}

.profile-info__edit:hover {
  background: rgba(255, 255, 255, 0.24);
}

.profile-info p {
  font-size: 14px;
  opacity: 0.8;
}

.profile-info__badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-info__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  --profile-badge-height: 32px;
}

.profile-level-badge,
.profile-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--profile-badge-height);
  min-height: var(--profile-badge-height);
  box-sizing: border-box;
  padding: 0 12px 0 6px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1;
  max-width: fit-content;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-level-badge:hover,
.profile-service-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.profile-level-badge--no-icon {
  padding: 0 14px;
}

.profile-level-badge__icon,
.profile-service-badge__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-service-badge__icon {
  border-radius: 6px;
}

.profile-level-badge__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-service-badge__icon .layui-icon {
  font-size: 14px;
  color: #fff;
  line-height: 1;
}

.profile-level-badge__name,
.profile-service-badge__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.profile-level-badge--basic {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 38%, #f3f3f3 72%, #ededed 100%);
}

.profile-level-badge--basic .profile-level-badge__name {
  color: #4a4a4a;
}

.profile-level-badge--silver {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcff 20%, #edf6fd 45%, #dff0fb 72%, #cce9f8 100%);
}

.profile-level-badge--silver .profile-level-badge__name {
  color: #2a7a9e;
}

.profile-level-badge--gold {
  background: linear-gradient(
    165deg,
    #f2d060 0%,
    #e8c040 14%,
    #dba828 28%,
    #c9a010 42%,
    #b8860b 56%,
    #9a7209 70%,
    #7a5a06 84%,
    #5c4204 100%
  );
}

.profile-level-badge--gold .profile-level-badge__name {
  color: #fffef8;
  text-shadow: 0 1px 2px rgba(50, 32, 0, 0.25);
}

.profile-level-badge--rose {
  background: linear-gradient(135deg, #fff0f6 0%, #fce7f3 45%, #fbcfe8 72%, #f9a8d4 100%);
}

.profile-level-badge--rose .profile-level-badge__name {
  color: #be185d;
}

.profile-level-badge--violet {
  background: linear-gradient(135deg, #f3efff 0%, #ede9fe 45%, #ddd6fe 72%, #c4b5fd 100%);
}

.profile-level-badge--violet .profile-level-badge__name {
  color: #6d28d9;
}

.profile-level-badge--ocean {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 45%, #7dd3fc 72%, #38bdf8 100%);
}

.profile-level-badge--ocean .profile-level-badge__name {
  color: #0369a1;
}

.profile-realname-badge {
  display: inline-flex;
  align-items: center;
  height: var(--profile-badge-height);
  min-height: var(--profile-badge-height);
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1;
  max-width: fit-content;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.profile-realname-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.profile-realname-badge__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.profile-realname-badge--pending {
  background: #fff7ed;
  border-color: #fdba74;
}

.profile-realname-badge--pending .profile-realname-badge__name {
  color: #c2410c;
}

.profile-realname-badge--verified {
  background: #ecfdf5;
  border-color: #86efac;
}

.profile-realname-badge--verified .profile-realname-badge__name {
  color: #047857;
}

.profile-service-badge--warehouse {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.profile-service-badge--warehouse .profile-service-badge__icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.profile-service-badge--warehouse .profile-service-badge__name {
  color: #1d4ed8;
}

.profile-service-badge--logistics {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.profile-service-badge--logistics .profile-service-badge__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.profile-service-badge--logistics .profile-service-badge__name {
  color: #047857;
}

.profile-service-badge--customs {
  background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
}

.profile-service-badge--customs .profile-service-badge__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.profile-service-badge--customs .profile-service-badge__name {
  color: #b45309;
}

.profile-role-link {
  color: inherit;
  text-decoration: none;
}

.profile-role-link:hover {
  text-decoration: underline;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  margin-top: 28px;
}

.profile-stat {
  text-align: center;
}

.profile-stat .value {
  font-size: 28px;
  font-weight: bold;
}

.profile-stat .label {
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .profile-header {
    display: flex;
    flex-direction: column;
    padding: 20px 16px 18px;
  }

  .profile-header__actions {
    order: 3;
    position: static;
    margin: 16px 0 0;
    display: flex;
    width: 100%;
    gap: 10px;
  }

  .profile-header__action-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    padding: 11px 12px;
    font-size: 14px;
  }

  .profile-user {
    order: 1;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }

  .profile-avatar-link,
  .profile-user > .profile-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .profile-info__title-row {
    margin-bottom: 0;
    gap: 8px;
  }

  .profile-info h2 {
    font-size: 20px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-info__badges {
    gap: 6px;
    width: 100%;
  }

  .profile-info__badge-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    --profile-badge-height: 28px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-info__badge-row--primary {
    overflow-x: auto;
  }

  .profile-info__badge-row--services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow-x: visible;
  }

  .profile-info__badge-row--services .profile-service-badge {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    justify-content: center;
    padding: 0 4px;
    gap: 4px;
  }

  .profile-info__badge-row--services .profile-service-badge__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-info__badge-row::-webkit-scrollbar {
    display: none;
  }

  .profile-level-badge,
  .profile-service-badge {
    flex-shrink: 0;
    height: var(--profile-badge-height);
    min-height: var(--profile-badge-height);
    padding: 0 9px 0 4px;
    border-radius: 9px;
    box-shadow: none;
  }

  .profile-level-badge--no-icon {
    padding: 0 10px;
  }

  .profile-level-badge__icon,
  .profile-service-badge__icon {
    width: 18px;
    height: 18px;
  }

  .profile-info__badge-row .profile-level-badge__icon {
    display: none;
  }

  .profile-realname-badge {
    flex-shrink: 0;
    height: var(--profile-badge-height);
    min-height: var(--profile-badge-height);
    padding: 0 10px;
    border-radius: 9px;
  }

  .profile-level-badge__name,
  .profile-service-badge__name,
  .profile-realname-badge__name {
    font-size: 12px;
  }

  .profile-header .profile-stats {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 4px;
    margin-top: 18px;
    width: 100%;
  }

  .profile-header .profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
  }

  .profile-header .profile-stat .value {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
  }

  .profile-header .profile-stat .label {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.92;
    white-space: nowrap;
  }
}

.profile-nav {
  background: #fff;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.profile-nav li {
  margin-right: 5px;
}

.profile-nav a {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.profile-nav a.active,
.profile-nav a:hover {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.profile-nav--grid {
  padding: 16px;
}

.profile-nav--grid ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-nav--grid li {
  margin: 0;
  min-width: 0;
}

.profile-nav--grid .profile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 4px 10px;
  border-bottom: none;
  border-radius: 12px;
  text-align: center;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-nav--grid .profile-nav__link:hover,
.profile-nav--grid .profile-nav__link.active {
  color: #2563eb;
  background: #eff6ff;
  border-bottom-color: transparent;
}

.profile-nav--grid .profile-nav__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-nav--grid .profile-nav__icon .layui-icon {
  font-size: 24px;
}

.profile-nav--grid .profile-nav__link:hover .profile-nav__icon,
.profile-nav--grid .profile-nav__link.active .profile-nav__icon {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.profile-nav--grid .profile-nav__label {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  word-break: keep-all;
}

@media (min-width: 769px) {
  .profile-nav--grid {
    padding: 12px 20px;
  }

  .profile-nav--grid ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .profile-nav--grid .profile-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .profile-nav--grid .profile-nav__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
  }

  .profile-nav--grid .profile-nav__icon .layui-icon {
    font-size: 16px;
  }

  .profile-nav--grid .profile-nav__label {
    font-size: 14px;
    font-weight: 500;
  }

  .member-profile-header--desktop-only {
    display: block;
  }

  .member-center .member-content-bare--mobile-only {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

.profile-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
}

.table-list th,
.table-list td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
}

.table-list th {
  background: #fafafa;
  font-weight: 600;
  color: #333;
}

.table-list tr:hover {
  background: #fafafa;
}

.table-list .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  word-break: keep-all;
}

.table-list .table-list__cell--status {
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
}

.table-list .status.pending {
  background: #fef3c7;
  color: #d97706;
}

.table-list .status.processing {
  background: #dbeafe;
  color: #2563eb;
}

.table-list .status.matched,
.table-list .status.matching {
  background: #dbeafe;
  color: #2563eb;
}

.table-list .status.unpublished,
.demand-detail__meta .status.unpublished,
.portal-connect-detail .status.unpublished {
  background: #f1f5f9;
  color: #64748b;
}

.table-list .status.completed {
  background: #d1fae5;
  color: #059669;
}

.table-list .status.replied {
  background: #d1fae5;
  color: #059669;
}

.portal-review-manage-table__content {
  max-width: 360px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.portal-review-manage-table .table-list__empty {
  text-align: center;
  color: #94a3b8;
  padding: 24px 15px;
}

.table-list .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.table-list .actions .layui-btn,
.table-list .actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25 !important;
  height: auto !important;
  min-height: 32px;
  box-sizing: border-box;
  vertical-align: middle;
}

.table-list .actions .layui-btn-sm {
  min-height: 30px;
  line-height: 1.25;
}

.table-list .actions button:not(.layui-btn) {
  padding: 6px 15px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.table-list .actions .btn-view {
  background: #f3f4f6;
  color: #666;
}

.table-list .actions .btn-view:hover {
  background: #e5e7eb;
}

.table-list .actions .btn-republish,
.table-list .actions .btn-cancel {
  background: #f3f4f6;
  color: #475569;
}

.table-list .actions .btn-republish:hover,
.table-list .actions .btn-cancel:hover {
  background: #e2e8f0;
}

.table-list .actions .btn-delete {
  background: #fef2f2;
  color: #dc2626;
}

.table-list .actions .btn-delete:hover {
  background: #fee2e2;
}

.demand-detail__status-hint {
  font-size: 13px;
  color: #94a3b8;
  margin-right: 4px;
}

.table-list .actions .btn-contact {
  background: #3b82f6;
  color: #fff;
}

.table-list .actions .btn-contact:hover {
  background: #2563eb;
}

.portal-order-table__desc {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-order-table__actions {
  flex-wrap: wrap;
  gap: 6px;
}

.portal-order-table__actions .layui-btn + .layui-btn {
  margin-left: 0;
}

.portal-order-reject-layer {
  padding: 16px 20px 0;
}

.portal-order-reject-layer__tip {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.portal-connect-table__desc {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-connect-table__actions {
  flex-wrap: wrap;
  gap: 6px;
}

.portal-connect-table__actions .layui-btn + .layui-btn {
  margin-left: 0;
}

.member-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.member-dashboard-grid__section {
  margin-top: 0;
}

.member-center .merch-dashboard__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.member-center .merch-dashboard__section-head h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.member-center .merch-dashboard__more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  white-space: nowrap;
}

.member-center .merch-dashboard__more:hover {
  color: #2563eb;
  text-decoration: underline;
}

.member-dashboard__publish-btn {
  display: block;
  margin: 20px auto 0;
  min-width: 168px;
  text-align: center;
}

@media (max-width: 768px) {
  .member-center-page--subpage .member-page-title-bar {
    display: block;
  }

  .member-center-page--subpage #memberProfileNav {
    display: none;
  }

  .member-page-title-bar__inner {
    padding: 0 12px;
  }

  .member-center-page--subpage .member-center {
    padding-top: calc(var(--site-header-height) + var(--member-page-title-height) + 16px);
  }

  .member-center__inner {
    padding: 0 12px;
  }

  .member-center .profile-content {
    padding: 16px 12px;
    overflow-x: clip;
  }

  .member-dashboard-grid {
    gap: 16px;
  }

  .member-center .detail-section {
    padding: 16px;
    overflow-x: clip;
  }

  .member-center .detail-section h3 {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .merch-dashboard__section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .member-center .merch-dashboard__section-head h3 {
    font-size: 16px;
  }

  .member-center .merch-dashboard__more {
    font-size: 13px;
  }

  .member-dashboard__publish-btn {
    width: 100%;
    max-width: 280px;
  }

  .member-center .table-list--responsive {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
  }

  .member-center .table-list--responsive thead {
    display: none;
  }

  .member-center .table-list--responsive tbody {
    display: block;
  }

  .member-center .table-list--responsive tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "primary status"
      "meta meta"
      "time time"
      "actions actions";
    gap: 8px 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .member-center .table-list--responsive tbody tr:last-child {
    margin-bottom: 0;
  }

  .member-center .table-list--responsive tbody tr:hover {
    background: #fff;
  }

  .member-center .table-list--responsive tbody td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
  }

  .member-center .table-list--responsive .table-list__col--optional {
    display: none !important;
  }

  .member-center .table-list--responsive .table-list__cell--primary {
    grid-area: primary;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .member-center .table-list--responsive .table-list__cell-sub {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.4;
  }

  .member-center .table-list--responsive .table-list__cell--status {
    grid-area: status;
    justify-self: end;
    align-self: start;
    text-align: right;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .member-center .table-list--responsive .table-list__cell--status .status {
    display: inline-block;
    white-space: nowrap;
    word-break: keep-all;
  }

  .member-center .table-list--responsive .table-list__cell--meta {
    grid-area: meta;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    word-break: break-word;
  }

  .member-center .table-list--responsive .table-list__cell--meta[data-meta-label]::before {
    content: attr(data-meta-label) '：';
    color: #94a3b8;
  }

  .member-center .table-list--responsive .table-list__meta-line + .table-list__meta-line {
    margin-top: 2px;
  }

  .member-center .table-list--responsive .table-list__meta-line--muted {
    font-size: 12px;
    color: #94a3b8;
  }

  .member-center .table-list--responsive .table-list__cell--time {
    grid-area: time;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
  }

  .member-center .table-list--responsive .table-list__cell--time[data-time-label]::before {
    content: attr(data-time-label) '：';
    color: #64748b;
  }

  .member-center .table-list--responsive .table-list__cell--actions {
    grid-area: actions;
    padding-top: 4px;
  }

  .member-center .table-list--responsive .table-list__cell--actions .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .member-center .table-list--responsive .table-list__cell--actions .actions button,
  .member-center .table-list--responsive .table-list__cell--actions .actions .layui-btn {
    padding: 0 12px;
    font-size: 12px;
    min-height: 32px;
    line-height: 1.25;
  }

  .member-center .table-list--responsive .table-list__empty {
    display: block;
    padding: 24px 12px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eef2f7;
  }

  .member-center .member-invite-table tbody tr {
    grid-template-areas:
      "primary status"
      "meta meta";
  }

  .member-center .points-ledger-table tbody tr {
    grid-template-areas:
      "primary status"
      "meta meta"
      "time time";
  }

  .member-center .portal-favorite-table tbody tr {
    grid-template-areas:
      "primary status"
      "time time"
      "actions actions";
  }

  .member-center .portal-favorite-table .table-list__cell--primary {
    font-size: 16px;
    line-height: 1.4;
  }

  .member-center .portal-favorite-table .tag-service {
    white-space: nowrap;
  }

  .member-center .portal-order-table tbody tr {
    grid-template-areas:
      "primary status"
      "phone phone"
      "wechat wechat"
      "time time"
      "actions actions";
  }

  .member-center .portal-order-table .table-list__cell--phone {
    grid-area: phone;
  }

  .member-center .portal-order-table .table-list__cell--wechat {
    grid-area: wechat;
  }

  .member-center .portal-order-table .table-list__cell--primary {
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .member-center .table-list--responsive .table-list__action--accept,
  .member-center .table-list--responsive .layui-btn-normal.btn-accept-order {
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
  }

  .portal-review-reply-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
  }

  .portal-review-reply-form__btn {
    margin-top: 8px;
    width: 100%;
  }

  .member-center .portal-review-manage-table tbody tr {
    grid-template-areas:
      "primary status"
      "meta meta"
      "time time"
      "actions actions";
  }

  .member-center .portal-review-manage-table .portal-review-manage-table__content {
    display: block;
    max-width: none;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
  }

  .member-center .portal-review-manage-table .table-list__cell--actions:not(:has(.btn-reply-review)) {
    display: none;
  }

  .member-center .portal-member-review-list .portal-review-list__item {
    margin-bottom: 12px !important;
    padding: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .member-center .wh-warehouse-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .member-center .wh-warehouse-table {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
  }

  .member-center .wh-warehouse-table thead {
    display: none;
  }

  .member-center .wh-warehouse-table tbody {
    display: block;
  }

  .member-center .wh-warehouse-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "primary actions"
      "meta meta"
      "stats stats";
    gap: 8px 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .member-center .wh-warehouse-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .member-center .wh-warehouse-table tbody td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
  }

  .member-center .wh-warehouse-table tbody td:first-child {
    grid-area: primary;
  }

  .member-center .wh-warehouse-table tbody td:last-child {
    grid-area: actions;
    justify-self: end;
    align-self: start;
  }

  .member-center .wh-warehouse-table tbody td:nth-child(2),
  .member-center .wh-warehouse-table tbody td:nth-child(3),
  .member-center .wh-warehouse-table tbody td:nth-child(4),
  .member-center .wh-warehouse-table tbody td:nth-child(5) {
    grid-area: stats;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
  }

  .member-center .wh-warehouse-table tbody td:nth-child(2)::before {
    content: '面积/库容：';
    color: #94a3b8;
  }

  .member-center .wh-warehouse-table tbody td:nth-child(3)::before {
    content: '货物类型：';
    color: #94a3b8;
  }

  .member-center .wh-warehouse-table tbody td:nth-child(4)::before {
    content: '计费方式：';
    color: #94a3b8;
  }

  .member-center .wh-warehouse-table tbody td:nth-child(5)::before {
    content: '基础报价：';
    color: #94a3b8;
  }

  .member-center .wh-warehouse-table .layui-btn-xs {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .member-center .wh-setup__header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .member-center .wh-setup__header .layui-btn {
    width: 100%;
    justify-content: center;
  }

  .member-center .table-list--responsive .table-list__action--detail {
    display: none !important;
  }

  .member-center .portal-favorite-table tr[data-detail-href] .table-list__action--visit {
    display: none !important;
  }

  .member-center .table-list--responsive .table-list__cell--actions:not(:has(.table-list__action--secondary)) {
    display: none;
  }

  .member-center .table-list--responsive tbody tr.table-list__row--clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .member-center .table-list--responsive tbody tr.table-list__row--clickable:active {
    border-color: #dbeafe;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
  }

  .member-center .table-list--responsive tbody tr.table-list__row--clickable .table-list__cell--primary {
    position: relative;
    padding-right: 18px;
  }

  .member-center .table-list--responsive tbody tr.table-list__row--clickable .table-list__cell--primary::after {
    content: '›';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
  }

  .member-center .table-list--responsive .table-list__cell--actions .actions {
    width: 100%;
  }

  .member-center .table-list--responsive .table-list__cell--actions .actions > * {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
  }

  .member-center .table-list--responsive .table-list__action--danger,
  .member-center .table-list--responsive .btn-delete {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
  }

  .member-center .table-list--responsive .btn-cancel {
    background: #fff7ed !important;
    color: #ea580c !important;
    border: 1px solid #fed7aa !important;
  }

  .member-center .table-list--responsive .table-list__action--visit,
  .member-center .table-list--responsive .layui-btn-normal {
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
  }

  .member-center .points-ledger-table .table-list__cell--status {
    font-weight: 600;
  }

  .member-center .points-ledger-table .points-ledger__change--positive {
    color: #16a34a;
  }

  .member-center .points-ledger-table .points-ledger__change--negative {
    color: #dc2626;
  }

  .portal-review-list__empty {
    color: #999;
    text-align: center;
    padding: 24px 0;
    margin: 0;
  }

  .portal-review-list__item {
    margin-bottom: 12px !important;
    padding: 14px;
  }

  .portal-review-list__item:last-child {
    margin-bottom: 0 !important;
  }

  .portal-review-list__item .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .portal-review-list__item .review-rating {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  .portal-review-list__item .review-content {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 0;
    word-break: break-word;
  }

  .portal-review-list__item .review-reply {
    margin-top: 10px;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
  }

  .portal-review-list__item .portal-review-media__item {
    width: 72px;
    height: 72px;
  }
}

.portal-connect-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.portal-connect-detail__no {
  font-size: 18px;
  font-weight: 600;
  color: #181818;
}

.portal-connect-detail__provider {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.portal-connect-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portal-favorite-table__actions {
  flex-wrap: wrap;
  gap: 6px;
}

.portal-favorite-table__actions .layui-btn + .layui-btn {
  margin-left: 0;
}

.table-list .actions .btn-reject-order {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.table-list .actions .btn-reject-order:hover {
  background: #fef2f2;
}

.portal-order-modal {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.portal-order-modal:not([hidden]) {
  display: flex !important;
}

.portal-order-modal[hidden] {
  display: none !important;
}

.portal-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.portal-order-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.portal-order-modal__dialog--wide {
  width: min(640px, 100%);
}

.portal-order-modal__dialog h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.portal-order-modal__tip {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}

.portal-order-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.portal-order-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.portal-order-modal__body {
  display: grid;
  gap: 12px;
}

.portal-order-detail-grid {
  display: grid;
  gap: 10px;
}

.portal-order-detail-grid__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  font-size: 14px;
}

.portal-order-detail-grid__label {
  color: #64748b;
}

.portal-order-detail-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.portal-order-detail-section h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 40px;
  padding: 0 4px;
  color: #9ca3af;
  font-size: 14px;
  letter-spacing: 1px;
  user-select: none;
}

.pagination button:hover,
.pagination button.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .pagination {
    gap: 6px;
    margin-top: 20px;
  }

  .pagination button {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 6px;
  }

  .pagination .prev,
  .pagination .next {
    padding: 0 10px;
    font-size: 12px;
  }

  .pagination-ellipsis {
    min-width: 18px;
    height: 34px;
    font-size: 12px;
  }
}

.member-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 20px;
  padding-top: 4px;
}

.member-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.member-pagination__btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.member-pagination__btn.is-disabled {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #cbd5e1;
  pointer-events: none;
}

.member-pagination__info {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .member-pagination {
    gap: 10px;
    margin-top: 16px;
  }

  .member-pagination__btn {
    min-width: 0;
    flex: 1;
    max-width: 120px;
    height: 38px;
    font-size: 13px;
  }

  .member-pagination__info {
    width: 100%;
    order: -1;
    margin-bottom: 2px;
    font-size: 12px;
  }
}

.points-card {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 16px;
  padding: 30px;
  color: #fff;
  margin-bottom: 20px;
}

.points-card .points-value {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.points-card .points-label {
  font-size: 16px;
  opacity: 0.9;
}

.points-card .btn-exchange {
  margin-top: 20px;
  padding: 12px 30px;
  background: #fff;
  color: #f59e0b;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.points-history {
  margin-top: 20px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item .type {
  font-size: 15px;
  color: #333;
}

.history-item .time {
  font-size: 13px;
  color: #999;
}

.history-item .amount {
  font-size: 16px;
  font-weight: bold;
}

.history-item .amount.positive {
  color: #059669;
}

.history-item .amount.negative {
  color: #ef4444;
}

.member-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
}

.plan-card.featured {
  border: 2px solid #3b82f6;
}

.plan-card .plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 12px;
  padding: 5px 15px;
  border-radius: 20px;
}

.plan-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.plan-card .price {
  font-size: 36px;
  font-weight: bold;
  color: #ef4444;
  margin-bottom: 5px;
}

.plan-card .price-unit {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.plan-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
}

.plan-card li {
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card li::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
}

.plan-card .btn-subscribe {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.plan-card .btn-subscribe.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.plan-card .btn-subscribe.secondary {
  background: #f3f4f6;
  color: #666;
}

.demand-form {
  max-width: 600px;
  margin: 0 auto;
}

.demand-form .form-group textarea {
  width: 100%;
  height: 100px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  resize: none;
}

.demand-form .form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.match-results {
  margin-top: 30px;
}

.match-results .match-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 20px;
}

.match-card .match-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.match-card .match-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-card .match-info {
  flex: 1;
}

.match-card .match-info h4 {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.match-card .match-score {
  display: inline-block;
  background: #d1fae5;
  color: #059669;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.match-card .match-services {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.match-card .match-actions {
  display: flex;
  gap: 10px;
}

.match-card .match-actions button {
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.match-card .match-actions .btn-contact {
  background: #3b82f6;
  color: #fff;
}

.match-card .match-actions .btn-skip {
  background: #f3f4f6;
  color: #666;
}

.review-form .rating-section {
  margin-bottom: 20px;
}

.review-form .rating-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.rating-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.rating-item {
  text-align: center;
}

.rating-item .label {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.rating-item .stars {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.rating-item .star {
  width: 32px;
  height: 32px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #e0e0e0;
  transition: all 0.3s;
}

.rating-item .star.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #fff;
}

.review-form .upload-section {
  margin-bottom: 20px;
}

.upload-area {
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #3b82f6;
}

.upload-area .upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24px;
}

.upload-area p {
  font-size: 14px;
  color: #999;
}

.messages-container {
  max-width: 800px;
  margin: 0 auto;
}

.messages-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-mark-all-read {
  border: none;
  background: transparent;
  color: #3b82f6;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.message-mark-all-read:hover {
  color: #2563eb;
  text-decoration: underline;
}

.member-center-page .messages-container {
  max-width: none;
  margin: 0;
}

.message-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.message-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.messages-guest-tip {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.messages-guest-tip a {
  color: #3b82f6;
  text-decoration: none;
}

.messages-guest-tip a:hover {
  text-decoration: underline;
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: all 0.3s;
}

.message-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-icon svg {
  width: 20px;
  height: 20px;
}

.message-icon--account {
  background: #ede9fe;
  color: #6d28d9;
}

.message-icon--connect {
  background: #dbeafe;
  color: #1e40af;
}

.message-icon--review {
  background: #fef3c7;
  color: #92400e;
}

.message-icon--membership {
  background: #fce7f3;
  color: #be185d;
}

.message-icon--system {
  background: #f3f4f6;
  color: #4b5563;
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #3b82f6;
  vertical-align: middle;
}

.message-item:hover {
  background: #fafafa;
}

.message-item.unread {
  background: #eff6ff;
}

.message-item:last-child {
  border-bottom: none;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.message-header .message-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.message-header .message-time {
  font-size: 12px;
  color: #999;
}

.message-content {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.message-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  margin-right: 10px;
}

.message-type.match {
  background: #dbeafe;
  color: #1e40af;
}

.message-type.review {
  background: #fef3c7;
  color: #92400e;
}

.message-type.system {
  background: #f3f4f6;
  color: #4b5563;
}

/* Layui 弹层（前台统一） */
.layui-layer-dialog .layui-layer-title {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  color: #181818;
  font-weight: 600;
}

.layui-layer-btn a {
  border-radius: 4px;
}

.layui-layer-btn .layui-layer-btn0 {
  background-color: #0064ff;
  border-color: #0064ff;
}

.layui-layer-msg {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 35, 75, 0.12);
}

/* AI/OCR 演示进度 */
.ai-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 6px;
  color: #0958d9;
  font-size: 14px;
}

.ai-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #91caff;
  border-top-color: #0958d9;
  border-radius: 50%;
  animation: cpw-spin 0.8s linear infinite;
}

@keyframes cpw-spin {
  to { transform: rotate(360deg); }
}

/* 协议勾选：协议名称高亮（注册 / 认证 / 入驻等场景共用） */
.agreement-link,
.agreement-link-text {
  color: #0064ff;
}

.agreement-link {
  text-decoration: none;
  cursor: pointer;
}

.agreement-link:hover {
  text-decoration: underline;
}

.agreement-link:visited,
.agreement-link:active {
  color: #0064ff;
}

/* 协议弹框（勾选同意场景） */
body.agreement-modal-open {
  overflow: hidden;
}

.agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.agreement-modal[hidden] {
  display: none !important;
}

.agreement-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.agreement-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agreement-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
}

.agreement-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.agreement-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.agreement-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

.agreement-modal__body {
  padding: 20px;
  overflow: auto;
}

.agreement-modal__loading,
.agreement-modal__empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.agreement-modal__content {
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
}

.agreement-modal__content p {
  margin: 0 0 12px;
}

.agreement-modal__content ol,
.agreement-modal__content ul {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

body.store-share-modal-open {
  overflow: hidden;
}

.store-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.store-share-modal[hidden] {
  display: none;
}

.store-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.store-share-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.store-share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.store-share-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.store-share-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.store-share-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.store-share-modal__body {
  padding: 16px 20px 24px;
}

.store-share-modal__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.store-share-modal__cover {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.store-share-modal__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.store-share-modal__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-share-modal__cover-placeholder {
  font-size: 22px;
  font-weight: 600;
  color: #4f46e5;
}

.store-share-modal__meta {
  min-width: 0;
  flex: 1;
}

.store-share-modal__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-share-modal__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-share-modal__copy {
  width: 100%;
  justify-content: center;
}

.store-share-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-share-method {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.store-share-method__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.store-share-method__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.store-share-method__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.store-share-method__desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.store-share-method--qr .store-share-modal__qr {
  margin: 0 auto;
}

.store-share-wechat-guide__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  font-size: 13px;
  line-height: 1.6;
}

.store-share-wechat-guide__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-share-wechat-guide__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.store-share-wechat-guide__steps li:last-child {
  margin-bottom: 0;
}

.store-share-wechat-guide__steps li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.store-share-method--wechat .store-share-wechat-guide__steps li span {
  background: #dbeafe;
  color: #1d4ed8;
}

.store-share-wechat-guide__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
}

.store-share-modal .msp-btn,
.store-share-modal__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.store-share-modal .msp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.store-share-modal .msp-btn--primary:hover {
  opacity: 0.94;
}

.store-share-modal .msp-btn--primary:active {
  transform: scale(0.98);
}

.store-share-modal .msp-btn--ghost {
  color: #2563eb;
  background: #fff;
  border-color: #93c5fd;
}

.store-share-modal .msp-btn--ghost:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.store-share-modal .msp-btn--ghost:active {
  transform: scale(0.98);
}

.store-share-modal__copy {
  width: 100%;
  justify-content: center;
}

.store-share-wechat-inapp {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f9ff 100%);
}

.store-share-wechat-inapp__tip {
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.store-share-wechat-inapp__guide {
  width: 100%;
  justify-content: center;
}

.wechat-sdk-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.wechat-sdk-status__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #94a3b8;
}

.wechat-sdk-status--loading {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.wechat-sdk-status--loading .wechat-sdk-status__dot {
  background: #3b82f6;
  animation: wechat-sdk-pulse 1.2s ease-in-out infinite;
}

.wechat-sdk-status--ready {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.wechat-sdk-status--ready .wechat-sdk-status__dot {
  background: #22c55e;
}

.wechat-sdk-status--disabled {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.wechat-sdk-status--disabled .wechat-sdk-status__dot {
  background: #f59e0b;
}

.wechat-sdk-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.wechat-sdk-status--error .wechat-sdk-status__dot {
  background: #ef4444;
}

@keyframes wechat-sdk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.store-share-modal--mode-wechat [data-share-ui-methods] {
  display: none;
}

.store-share-modal--mode-pc [data-share-ui-wechat],
.store-share-modal--mode-pc [data-share-method-friend] {
  display: none;
}

.store-share-modal--mode-mobile [data-share-ui-wechat],
.store-share-modal--mode-mobile [data-share-method-qr] {
  display: none;
}

.store-share-modal--mobile .member-invite-modal__desc,
.store-share-modal--mobile .store-share-modal__preview {
  margin-bottom: 14px;
}

.store-share-modal--mobile {
  align-items: flex-end;
  padding: 0;
}

.store-share-modal--mobile .store-share-modal__panel {
  width: 100%;
  max-width: none;
  border-radius: 16px 16px 0 0;
  max-height: min(85vh, 520px);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.store-share-modal--mobile .store-share-modal__header {
  padding: 16px 16px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.store-share-modal--mobile .store-share-modal__body {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.store-share-modal--mobile .member-invite-modal__desc {
  margin-bottom: 18px;
  font-size: 14px;
  color: #475569;
}

@media (max-width: 1280px) {
  .store-share-modal:not(.store-share-modal--mobile) {
    align-items: flex-end;
    padding: 0;
  }

  .store-share-modal:not(.store-share-modal--mobile) .store-share-modal__panel {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }
}

.store-share-modal__qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 220px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.store-share-modal__qr img,
.store-share-modal__qr canvas {
  display: block;
}

.store-share-method--qr {
  text-align: center;
}

.wechat-share-card-wrap {
  margin-bottom: 16px;
}

.wechat-share-card__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.wechat-share-card__bubble {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wechat-share-card__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-share-card__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wechat-share-card__thumb-placeholder {
  font-size: 28px;
  font-weight: 700;
  color: #4f46e5;
}

.wechat-share-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.wechat-share-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wechat-share-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wechat-share-card__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}

.wechat-share-card__source-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

body.wechat-share-guide-open {
  overflow: hidden;
}

.wechat-share-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
}

.wechat-share-guide-overlay[hidden] {
  display: none;
}

.wechat-share-guide-overlay__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.wechat-share-guide-overlay__arrow {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  pointer-events: none;
}

.wechat-share-guide-overlay__arrow::before {
  content: '';
  width: 56px;
  height: 56px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  border-radius: 0 12px 0 0;
  transform: rotate(-12deg);
  opacity: 0.95;
}

.wechat-share-guide-overlay__arrow-icon {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.wechat-share-guide-overlay__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
}

.wechat-share-guide-overlay__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
}

.wechat-share-guide-overlay__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.wechat-share-guide-overlay__steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.wechat-share-guide-overlay__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.wechat-share-guide-overlay__steps li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.wechat-share-guide-overlay__note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

.wechat-share-guide-overlay__btn {
  width: 100%;
}

body.wechat-share-require-open {
  overflow: hidden;
}

.wechat-share-require-dialog {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.wechat-share-require-dialog[hidden] {
  display: none;
}

.wechat-share-require-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.wechat-share-require-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 24px 20px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.wechat-share-require-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
}

.wechat-share-require-dialog__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.wechat-share-require-dialog__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  text-align: left;
}

.wechat-share-require-dialog__btn {
  width: 100%;
}

.store-share-method--wechat [data-wechat-share-guide-open] {
  width: 100%;
  margin-top: 4px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  order: 4;
}

.mobile-menu-btn:hover {
  background: #ebebeb;
}

.mobile-menu-btn__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #333;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu-btn.is-active .mobile-menu-btn__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .mobile-menu-btn__bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active .mobile-menu-btn__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 与分类列表等页面统一在 960px 以下启用移动端顶栏 */
@media (max-width: 960px) {
  .header .container {
    max-width: 100%;
  }

  .header-top {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-top::-webkit-scrollbar {
    display: none;
  }

  .header-top-actions {
    flex-wrap: nowrap;
  }

  .header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
    min-width: 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    flex: unset;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .logo-img {
    max-width: 100%;
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  .header-right {
    grid-column: 2;
    grid-row: 1;
    order: unset;
    margin-left: 0;
    flex-shrink: 0;
    gap: 8px;
  }

  .header-content:has(.header-right) {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-content:has(.header-right) .header-right {
    grid-column: 2;
  }

  .header-content:has(.header-right) .mobile-menu-btn {
    grid-column: 3;
  }

  .mobile-menu-btn {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    order: unset;
    margin-left: 0;
    flex-shrink: 0;
  }

  .header-right ~ .mobile-menu-btn {
    margin-left: 0;
  }

  .header-content .nav {
    display: none;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    z-index: 1190;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: none;
    order: 4;
    max-height: calc(100vh - var(--site-header-height));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #f0f2f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0 12px;
  }

  .header-content .nav.mobile-active {
    display: flex;
  }

  .header-content .nav-item {
    padding: 14px 20px;
    font-size: 15px;
    white-space: normal;
    border-bottom: 1px solid #f5f7fa;
  }

  .header-content .nav-item:last-child {
    border-bottom: none;
  }

  .header-content .nav-item.active::after {
    display: none;
  }

  .header-content .nav-item.active {
    color: #2563eb;
    background: #f0f7ff;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-main-height: 56px;
  }

  .header--with-topbar {
    --site-header-top-height: 36px;
  }

  .header .container {
    padding: 0 12px;
  }

  .header-top-actions {
    gap: 8px;
  }

  .header-top .onboard-btn,
  .header-top .login-btn,
  .header-top .register-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-content {
    gap: 10px;
  }

  .logo-img {
    height: 44px;
    width: auto;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-bottom: 28px;
  }

  .footer-section:first-child,
  .footer-section:last-child {
    grid-column: 1 / -1;
  }

  .footer-section h4 {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .footer-qrcodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
    justify-items: center;
    margin-bottom: 28px;
  }

  .footer-qrcode-item {
    width: 100%;
    max-width: 150px;
  }

  .footer-qrcode-item img {
    width: 120px;
    height: 120px;
  }

  .footer-qrcode-item span {
    margin-top: 8px;
    font-size: 13px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-image > img {
    height: 100px;
  }

  .service-info {
    padding: 12px;
  }

  .service-header {
    margin-bottom: 6px;
  }

  .service-header h3 {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .service-image .profile-level-badge {
    top: 8px;
    right: 8px;
    --profile-badge-height: 30px;
    max-width: calc(100% - 16px);
    padding: 0 10px 0 5px;
    border-radius: 9px;
  }

  .service-image .profile-level-badge__icon {
    display: flex;
    width: 22px;
    height: 22px;
  }

  .service-image .profile-level-badge__name {
    font-size: 12px;
  }

  .service-image .profile-level-badge--no-icon {
    padding: 0 10px;
  }

  .service-meta {
    gap: 8px;
    margin-bottom: 8px;
  }

  .location,
  .rating {
    font-size: 11px;
  }

  .service-desc {
    font-size: 11px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .service-footer .price {
    text-align: center;
    width: 100%;
  }

  .price {
    font-size: 14px;
  }

  .contact-btn {
    width: 100%;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 17px;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .category-item {
    padding: 12px 4px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .category-icon .layui-icon {
    font-size: 20px;
  }

  .category-name {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .category-count {
    font-size: 11px;
  }

  .review-carousel .review-carousel__arrow {
    display: none;
  }

  .review-carousel:not(.review-carousel--partners) {
    padding: 0 0 32px;
  }

  .review-carousel:not(.review-carousel--partners) .review-carousel__dots {
    left: 0;
    right: 0;
  }

  .review-carousel:not(.review-carousel--partners) .review-carousel__slide-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .review-carousel:not(.review-carousel--partners) .review-card {
    padding: 16px 12px;
  }

  .review-carousel:not(.review-carousel--partners) .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }

  .review-carousel:not(.review-carousel--partners) .reviewer-info {
    gap: 8px;
  }

  .review-carousel:not(.review-carousel--partners) .reviewer-avatar {
    width: 36px;
    height: 36px;
  }

  .review-carousel:not(.review-carousel--partners) .reviewer-name {
    font-size: 13px;
  }

  .review-carousel:not(.review-carousel--partners) .review-time {
    font-size: 11px;
  }

  .review-carousel:not(.review-carousel--partners) .review-rating {
    font-size: 12px;
  }

  .review-carousel:not(.review-carousel--partners) .review-content {
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .review-carousel:not(.review-carousel--partners) .review-dimensions {
    display: none;
  }

  .review-carousel:not(.review-carousel--partners) .review-target {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .review-carousel--partners {
    padding: 0 0 24px;
  }

  .review-carousel--partners .review-carousel__dots {
    left: 0;
    right: 0;
  }

  .review-carousel--partners .review-carousel__slide-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .review-carousel--partners .partner-item__img {
    max-width: 100%;
    width: 100%;
  }

  .review-carousel--partners .partner-item__name {
    font-size: 12px;
  }

  .partner-platforms {
    padding: 32px 0 40px;
  }
}
