/* ===================== 全局通用样式 ===================== */
/* 全局重置：清除默认边距、统一盒模型、设置通用字体（移动端+PC端通用） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  /* 彻底禁用浏览器原生下拉刷新/上拉溢出 */
  overscroll-behavior: none;
}

body {
  font-family: "Microsoft Yahei", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-bg);
}

/* =============================================
   📱 移动优先：默认样式（小屏手机 ≤480px）
   ============================================= */

/* 导航头部容器 */
.site-header {
  background-color: var(--color-primary);
}

/* 消息 tab 中固定头部 */
.site-header.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  margin: 0  auto;
}

.header-area {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 16px;

}

/* Logo 区域 */
.nav-logo {
  color: var(--color-white);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Tab 模式下 Logo 居中，汉堡菜单固定右侧 */
.site-header.tab-mode .header-area {
  justify-content: center;
}
.site-header.tab-mode .nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.site-header.tab-mode .hamburger {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- 汉堡菜单按钮 ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none;
}

/* 打勾时汉堡变成叉号 */
.menu-toggle:checked~.hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle:checked~.hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked~.hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- 主导航 ---------- */
.main-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 20px 0;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  z-index: 1000;
}

/* 勾选后菜单滑入 */
.menu-toggle:checked~.main-nav {
  transform: translateX(0);
}

/* 导航菜单列表 */
.nav-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  list-style: none;
  width: 100%;
  margin-right: 0;
}

.nav-menu li {
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
  position: relative;
}

.nav-menu li:last-child {
  border-bottom: none;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  padding: 14px 5px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.nav-menu li:hover {
  background-color: #e8e8e8;
}

/* 移动端隐藏白色箭头 */
.nav-menu li:hover::after {
  display: none;
}

/* ---------- 登录/注册按钮 ---------- */
.nav-auth {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px 30px 10px;
  width: 100%;
}

.btn-login,
.btn-register {
  padding: 8px 30px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  flex: 0 1 auto;
  min-width: 120px;
  transition: background-color 0.3s;
}

.btn-login {
  background-color: transparent;
  color: #333;
  border: 2px solid #333;
}

.btn-login:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-register {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-register:hover {
  background-color: #f0f0f0;
}

/* 欢迎文字（登录后显示） */
.welcome-text {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* ========== 通用页面标题栏 ========== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.page-header .back-btn {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 10px 0px;
  border-radius: 8px;
  transition: background 0.2s;
}

.page-header .back-btn:active {
  background: rgba(255,255,255,0.2);
}

.page-header .header-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.page-header .share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding-left: 0px;
  padding-right: 0px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.page-header .share-btn:active {
  background: rgba(255,255,255,0.2);
}




/* 轮播图区域 */
.banner-carousel .swiper-slide1 {
    background-image: url(../images/banners/banner1.webp);
}
.banner-carousel .swiper-slide2 {
    background-image: url(../images/banners/banner2.webp);
}
.banner-carousel .swiper-slide3 {
    background-image: url(../images/banners/banner3.webp);
}
.banner-carousel .swiper-slide4 {
    background-image: url(../images/banners/banner4.webp);
}
.banner-carousel .swiper-slide5 {
    background-image: url(../images/banners/banner5.webp);
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* ===================== 轮播图外层容器 ===================== */
.banner-wrapper {
  width: 100%;
  background-color: var(--color-bg);
}

.swiper-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease; /* 轮播切换动画 */
}
.swiper-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 小圆点指示器容器 */
.pagination-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* 小圆点个体 */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-white);      /* 当前指示圆点为白色 */
}

/* 平台信息区域 */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--color-white);
    background-color: #f0f0f0;
    margin-top: 0;
    font-size: 16px;
}

.info-bar .name {
    font-weight: 600;
    color: var(--color-primary);
}

.info-bar .contact {
    color: var(--color-primary);
    font-weight: 600;
}

/* 会员信息展示区域 */
.member-list {
    margin-top: 0;
    margin-bottom: calc(80px + var(--browser-bottom-ui, 0px));
    background-color: var(--color-white);
}

/* 会员项：左右结构 */
.member-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
}

/* 左侧：头像 */
.member-item .left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.member-item .left a {
    display: block;
    text-decoration: none;
}

/* 会员头像 */
.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
}

/* 右侧：内容 + 展开按钮 */
.member-item .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 会员卡片链接（文字区域可点击跳转） */
.member-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.member-link:active {
    opacity: 0.8;
}

/* 会员信息区 */
.member-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 会员号 */
.member-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
}

/* 会员基本信息 */
.member-basic {
    font-size: 12px;
    color: #222;
    font-weight: 500;
}


/* 会员描述 */
.member-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    display: -webkit-box;
    /* 限制显示5行 */
    -webkit-line-clamp: 4;
    /* 垂直排列 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 展开/折叠过渡动画，提升体验 */
    transition: all 0.3s ease;
}

/* 会员描述展开状态：取消行数限制、高度自适应 */
.member-desc.expanded {
  /* 取消行数限制 */
    -webkit-line-clamp: unset;
    /* 高度自适应 */
    height: auto;
}

 /* 展开/折叠按钮 */
.toggle-btn {
    font-size: 12px;
    color: var(--color-link);
    cursor: pointer;
    margin-top: 4px;
}



/* 底部导航栏：固定定位、白色背景、阴影、弹性布局 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 固定高度，适配移动端 */
    height: 70px;
    /* 白色背景，突出导航 */
    background-color: var(--color-white);
    /* 弹性布局：五个导航项均分 */
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* 顶部阴影，提升层次感 */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    /* iOS 底部安全区域适配（刘海屏/Home Indicator） */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}


/* 底部导航项：垂直排列、灰色文字、适配移动端 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 12px;
    gap: 4px;
}

/* 导航项激活状态：主粉色文字，突出当前页面 */
.nav-item.active {
    color: var(--color-primary);
}

/* 导航图标：Font Awesome 图标，居中排版 */
.nav-icon {
    font-size: 20px;
    line-height: 1;
    height: 30px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 16px;
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* 激活态：柔和粉色圆角胶囊背景 + 微放大 */
.nav-item.active .nav-icon {
    background-color: var(--color-primary-pale);
    transform: scale(1.08);
}

.nav-item .nav-icon i {
    font-style: normal;
}

/* 底部导航未读小红点（粉色圆底白字） */
.nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  background: var(--color-primary, #FF589B);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 9px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  display: none;
}


/* =============== 平板的显示效果 ========================= */

@media screen and (min-width: 768px) {
  .nav-logo {
    font-size: 24px;
  }

  /* 隐藏汉堡菜单按钮 */
  .hamburger {
    display: none;
  }

  /* 主导航：横向排列 */
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding: 0;
    background: none;
    transform: none;
    overflow: visible;
    z-index: auto;
  }

  /* 导航菜单 → 横向 */
  .nav-menu {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-right: 0;
  }

  .nav-menu li {
    border-bottom: none;
  }

  .nav-link {
    padding: 0 15px;
    font-size: 16px;
    width: auto;
  }

  .nav-menu li:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 4px 4px 0 0;
  }

  .nav-menu li:hover a.nav-link {
    color: #fff;
  }

  /* 悬停时向上的白色小箭头 */
  .nav-menu li:hover::after {
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
  }

  /* 登录/注册按钮*/
  .nav-auth {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 0;
    width: auto;
  }

  .btn-login,
  .btn-register {
    padding: 6px 18px;
    font-size: 14px;
    flex: none;
    min-width: auto;
  }

  .btn-login {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
  }

  .btn-register {
    background: #fff;
    color: var(--color-primary);
    border: none;
    font-weight: 600;
  }



.banner-carousel .swiper-slide1 {
    background-image: url(../images/banners/banner-big-1.webp);
}
.banner-carousel .swiper-slide2 {
    background-image: url(../images/banners/banner-big-2.webp);
}
.banner-carousel .swiper-slide3 {
    background-image: url(../images/banners/banner-big-3.webp);
}
.banner-carousel .swiper-slide4 {
    background-image: url(../images/banners/banner-big-4.webp);
}
.banner-carousel .swiper-slide5 {
    background-image: url(../images/banners/banner-big-1.webp);
}

}

/* 移动端隐藏下拉触发区 */
.user-dropdown-trigger {
  display: none;
}

/* 会员卡片 hover 弹窗仅桌面端使用：移动端隐藏，避免裸 HTML 出现在页面流中 */
.card-hover-popup {
  display: none;
}

/* ================ 电脑端显示效果 =================== */
@media (min-width: 1024px) {

  .container {
    width: 1226px;
  }

  /* 电脑端注册页隐藏品牌区 */
  .brand-panel {
    display: none;
  }

  /* ========== Logo ========== */
  .nav-logo {
    font-size: 28px;
  }

  /* ========== 导航栏：菜单左/右 ========== */
  .main-nav {
    margin-left: 80px;
    gap: 30px;
    flex: 1;
    justify-content: space-between;
  }

  .nav-link {
    padding: 0 18px;
    font-size: 18px;
    color: #fff;
  }

  /* ========== 登录/注册按钮 ========== */
  .btn-login {
    padding: 7px 22px;
    font-size: 15px;
  }

  .btn-register {
    padding: 7px 26px;
    font-size: 15px;
  }

  /* 登录后欢迎文字 */
  .welcome-text {
    font-size: 15px;
    color: #fff;
  }

  /* ========== 下拉菜单（更多） ========== */
  .nav-menu li.has-dropdown {
    position: relative;
  }

  .nav-menu li.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 140px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
  }

  .nav-menu li.has-dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-menu li.has-dropdown .dropdown-menu li {
    height: auto;
    border-bottom: none;
  }

  .nav-menu li.has-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
  }

  .nav-menu li.has-dropdown .dropdown-menu a:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
  }

  /* 下拉箭头图标样式 */
  /* 电脑端隐藏 info-bar 和 bottom-nav */
  .info-bar,
  .bottom-nav {
    display: none;
  }

  .nav-menu li.has-dropdown > a .fa-chevron-down {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s;
  }

  .nav-menu li.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* ========== PC 端轮播图（全宽居中，留白自然） ========== */
  .banner-wrapper {
    width: 100%;
    min-width: 1000px;
    overflow: hidden;
  }

  .banner-carousel {
    max-width: 1540px;
    margin: 0 auto;
    height: 320px;
  }

  .banner-carousel .swiper-slide {
    background-size: cover;
    background-position: center top;
  }

  /* 圆点指示器放大 */
  .pagination-dots {
    bottom: 24px;
    gap: 12px;
  }

  /* ========== 电脑端最新注册会员 ========== */
  .latest-members {
    display: flex;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
  }

  .lm-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lm-scroll {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  }

  .lm-track {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    width: max-content;
    animation: lmMarquee 30s linear infinite;
  }

  .latest-members:hover .lm-track {
    animation-play-state: paused;
  }

  @keyframes lmMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .lm-item {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    flex-shrink: 0;
  }

  .lm-item + .lm-item::before {
    content: '';
  }

  .lm-name {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
  }

  .lm-name:hover {
    text-decoration: none;
  }

  .lm-info {
    font-size: 13px;
    color: #888;
  }

  /* ========== PC 端会员Tab栏 ========== */
  .member-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
    padding-top: 30px;
  }

  .member-tab {
    padding: 10px 28px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
    user-select: none;
  }

  .member-tab:hover {
    color: var(--color-primary);
  }

  .member-tab.active {
    color: var(--color-primary);
    font-weight: 600;
  }

  .member-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 28px;
    right: 28px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
  }

  /* ========== PC 端会员卡片网格 ========== */
  .member-grid-pc {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  /* ========== 首页会员列表分页（放大版，参照会员管理设计） ========== */
  #homeMemberPagination .service-pagination {
    gap: 8px;
    margin-top: 20px;
  }

  #homeMemberPagination .service-pagination button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  #homeMemberPagination .service-pagination .pg-arrow {
    font-size: 18px;
    line-height: 1;
    padding: 6px 12px;
  }

  .member-card-pc {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .member-card-pc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  }

  /* 底部渐变覆盖层 */
  .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    z-index: 1;
  }

  .card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }

  .card-gender {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    color: #fff;
    font-size: 7px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .card-gender.male {
    background: #1677FF;
  }

  .card-gender.female {
    background: #FF589B;
  }

  .card-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
  }

  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .card-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    padding: 1px 8px;
    border-radius: 8px;
  }

  /* intro：卡片上不显示，hover时弹窗展示 */
  .card-intro {
    display: none;
  }

  /* ========== 分区标题（更多会员） ========== */
  .section-divider {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
  }

  .section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0e0e0;
  }

  .section-divider-text {
    position: relative;
    display: inline-block;
    background: var(--color-bg);
    padding: 0 24px;
    font-size: 16px;
    color: #999;
    font-weight: 500;
  }

  /* ========== 电脑端列表式会员 ========== */
  .member-list-pc-list .member-item {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  .member-list-pc-list .member-avatar {
    width: 140px;
    height: 140px;
    border-radius: 10px;
  }

  .member-list-pc-list .member-id {
    font-size: 15px;
  }

  .member-list-pc-list .member-basic {
    font-size: 14px;
    color: #444;
  }

  .member-list-pc-list .member-desc {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-height: 1.8;
    color: #666;
    white-space: pre-wrap;
  }

  .member-list-pc-list .toggle-btn {
    font-size: 13px;
  }

  /* ========== 电脑端加载更多按钮 ========== */
  .load-more-pc {
    text-align: center;
    padding: 24px 0 10px;
  }

  .load-more-pc-btn {
    padding: 10px 48px;
    font-size: 15px;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s;
    outline: none;
  }

  .load-more-pc-btn:hover {
    background: var(--color-primary);
    color: #fff;
  }

  .load-more-pc-btn:disabled {
    opacity: 0.5;
    cursor: default;
    background: #f0f0f0;
    color: #999;
    border-color: #ddd;
  }

  /* ========== 会员卡片 hover 弹窗 ========== */
  .card-hover-popup {
    display: block;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 16px 18px;
    max-width: 280px;
    pointer-events: none;
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    word-wrap: break-word;
    white-space: pre-wrap;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .card-hover-popup.show {
    opacity: 1;
  }

  .card-hover-popup .popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
  }

  /* 电脑端显示/隐藏切换 */
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

  /* 电脑端禁用已到底提示和刷新指示器 */
  #load-end-tip,
  #load-more-tip,
  #pull-indicator {
    display: none !important;
  }

  /* ========== 用户下拉面板 ========== */
  .user-dropdown-trigger {
    position: relative;
    cursor: pointer;
    display: none;
  }

  .user-trigger-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.2s;
  }

  .user-trigger-inner:hover {
    background: rgba(255, 255, 255, 0.15);
  }

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

  .user-nickname {
    color: #fff;
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dropdown-caret {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
  }

  .user-dropdown-trigger:hover .dropdown-caret {
    transform: rotate(180deg);
  }

  /* ========== 下拉面板 ========== */
  .user-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    margin-left: -170px;
    width: 340px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 24px;
    display: none;
    z-index: 1001;
    box-sizing: border-box;
  }

  /* 不可见桥接：填补触发区与面板之间的空隙，确保 hover 不中断 */
  .user-dropdown-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 1001;
  }

  .user-dropdown-trigger:hover .user-dropdown-panel {
    display: block;
  }

  .dropdown-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
  }

  /* ========== 左栏 ========== */
  .dropdown-left {
    float: left;
    width: 100px;
    text-align: center;
  }

  /* 面板内清除浮动，确保左右栏并排顶部对齐（火狐/Chrome 一致） */
  .user-dropdown-panel::after {
    content: '';
    display: table;
    clear: both;
  }

  .dropdown-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 12px;
    transition: opacity 0.2s;
    border: none;
    box-sizing: border-box;
  }

  .dropdown-btn:hover {
    opacity: 0.85;
  }

  .dropdown-btn-primary {
    background: var(--color-primary);
    color: #fff;
  }

  .dropdown-btn-outline {
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #666;
  }

  .dropdown-btn-outline:hover {
    background: #ebebeb;
  }

  /* ========== 右栏 ========== */
  .dropdown-right {
    float: left;
    margin-left: 0;
    width: 192px;
    overflow: hidden;
  }

  .dropdown-right::after {
    content: '';
    display: table;
    clear: both;
  }

  .dropdown-item {
    display: block;
    float: left;
    width: 50%;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.15s;
  }

  .dropdown-item i {
    margin-right: 4px;
    font-size: 13px;
    color: #999;
    width: 16px;
    text-align: center;
  }

  .dropdown-item:hover {
    background: #f5f5f5;
    color: var(--color-primary);
  }

  /* 显示下拉触发区 */
  .user-dropdown-trigger {
    display: block;
  }

  /* 防御性保护：防止浏览器扩展（如 eusoft）注入的样式破坏下拉面板定位 */
  .user-dropdown-trigger {
    position: relative !important;
    transform: none !important;
  }
  .user-dropdown-trigger::after {
    position: absolute !important;
  }
  .user-dropdown-panel {
    position: absolute !important;
    transform: none !important;
  }
  .nav-auth {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
  }

  .welcome-text {
    display: none;
  }
}

/* ========== 电脑端关于页面 ========== */
  .about-hero {
    background: #fff;
    padding: 36px 0 30px;
    text-align: center;
    border-bottom: 2px solid var(--color-primary-pale);
  }

  .about-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
  }

  .about-hero-sub {
    font-size: 16px;
    color: #999;
    letter-spacing: 6px;
  }

  .about-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 0 60px;
    background: none;
    min-height: auto;
    line-height: 2;
    font-size: 16px;
    color: #444;
  }

  .about-body .about-section {
    margin-bottom: 36px;
  }

  .about-body .section-title {
    font-size: 22px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
    margin-top: 0;
    margin-bottom: 16px;
  }

  .about-body p {
    margin-bottom: 14px;
    text-align: justify;
  }

  .about-body .feature-list li {
    padding: 14px 20px;
    margin-bottom: 12px;
  }

  .about-closing {
    text-align: center;
    /* padding-top: 20px; */
  }

  .closing-line {
    width: 60px;
    height: 2px;
    background: var(--color-primary-light);
    margin: 0 auto 20px;
  }

  .closing-text {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center !important;
  }

  /* ========== 电脑端底部 ========== */
.site-footer {
  background: #2e2e2e;
  color: #ccc;
  padding: 40px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  max-width: 200px;
}

.footer-col-qr {
  max-width: 140px;
  flex: none;
}

.footer-col-contact {
  max-width: 220px;
  flex: none;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

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

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

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 6px;
}

.footer-qr-label {
  font-size: 12px;
  color: #999;
}

.footer-phone {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.footer-wechat {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}

.footer-kefu-btn {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s;
}

.footer-kefu-btn:hover {
  background: var(--color-primary-dark);
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #444;
  padding: 16px 0;
}

  .footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
  }

  .footer-icp a {
    color: #888;
    text-decoration: none;
  }

  .footer-icp a:hover {
    color: #ccc;
  }

/* ========== 默认：桌面端元素隐藏，移动端元素显示 ========== */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* ========== 手机端会员 Tab 切换栏 ========== */
.member-list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.mobile-member-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f1f2f4;
  margin: 0 0 14px;
  padding-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-member-tab-bar::-webkit-scrollbar {
  display: none;
}

.mobile-member-tab-bar .member-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 0 10px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-member-tab-bar .member-tab.active {
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-member-tab-bar .member-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

/* ========== 桌面端会员网格加载中占位 ========== */
.member-grid-pc-loading {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 15px;
}

/* 返回按钮（聊天页/通知页，由 JS 追加到 .header-area 内部） */
.header-area .back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 102;
  font-weight: 300;
}

/* 底部导航链接样式重置 */
.nav-item-link {
  text-decoration: none;
  color: inherit;
}

/* ===================== 悬浮圆形展开菜单 ===================== */
/* 容器：固定定位，默认透明隐藏，展开时显示白色背景+边框 */

.float-menu-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
  width: 54px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0px;
  border-radius: 27px;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 子按钮容器 */
.float-menu-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  padding: 15px 0;
}

/* 单个子按钮：透明背景，无边框 */
.float-menu-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  position: relative;
}

.float-menu-item .menu-item-icon {
  font-size: 14px;
  line-height: 1.2;
}

.float-menu-item .menu-item-label {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: gray;
  margin-top: 1px;
}

/* 展开状态：白色背景 + 细边框 + 阴影 */
.float-menu-container.expanded {
  background: #fff;
  border-color: #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 展开状态：子按钮可见 */
.float-menu-container.expanded .float-menu-item {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 逐个弹出延迟 */
.float-menu-container.expanded .float-menu-item:nth-child(1) { transition-delay: 0.03s; }
.float-menu-container.expanded .float-menu-item:nth-child(2) { transition-delay: 0.08s; }
.float-menu-container.expanded .float-menu-item:nth-child(3) { transition-delay: 0.13s; }
.float-menu-container.expanded .float-menu-item:nth-child(4) { transition-delay: 0.18s; }

/* 收起时：反向延迟（先收后面的） */
.float-menu-container:not(.expanded) .float-menu-item:nth-child(1) { transition-delay: 0.06s; }
.float-menu-container:not(.expanded) .float-menu-item:nth-child(2) { transition-delay: 0.045s; }
.float-menu-container:not(.expanded) .float-menu-item:nth-child(3) { transition-delay: 0.03s; }
.float-menu-container:not(.expanded) .float-menu-item:nth-child(4) { transition-delay: 0.015s; }


/* 主按钮：容器内定位，无固定定位 */
.float-menu-container .float-plus-btn {
  margin: 0;
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.35s ease;
  will-change: transform;
  width: 50px;
  height: 50px;
  border: none;
  box-shadow: none;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  padding: 0;
  user-select: none;
}
.float-menu-container .float-plus-btn svg {
  display: block;
}

/* 旋转动画：展开时顺时针旋转 135° 变为 × */
.float-menu-container.expanded .float-plus-btn {
  transform: rotate(135deg);
}

/* 子按钮点击反馈 */
.float-menu-item:active {
  transform: scale(0.90) !important;
}

@media (min-width: 768px) {
  .float-menu-container {
    bottom: 40px;
    right: 40px;
    width: 60px;
    padding: 8px 0;
    border-radius: 32px;
  }

  .float-menu-item {
    width: 52px;
    height: 52px;
  }

  .float-menu-item .menu-item-icon {
    font-size: 22px;
  }

  .float-menu-item .menu-item-label {
    font-size: 10px;
  }

  .float-menu-container .float-plus-btn {
    width: 52px;
    height: 52px;
  }
  .float-menu-container .float-plus-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ===================== 底部加载更多提示（与顶部下拉刷新一致） ===================== */
#load-more-tip {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  pointer-events: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#load-more-tip .pull-indicator-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  border-top-color: var(--color-primary, #c0392b);
  animation: pullSpin 0.7s linear infinite;
}

/* 已到底 Toast 提示（弹出后 3 秒自动消失） */
.load-end-tip {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: rgba(142, 142, 147, 0.55);
  color: #fff;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.load-end-tip.show {
  opacity: 1;
}

/* 空数据提示 */
.empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 15px;
}

/* ===================== 下拉刷新指示器（圆形，固定于页面顶部） ===================== */
/* 所有 transform/opacity 由 JS 内联控制，不依赖 class。
   拖拽时 transition=none（立即跟随手指），
   释放后恢复 transition（弹性过冲曲线 cubic-bezier(0.175,0.885,0.32,1.275)）
   实现回弹 bounce 效果。 */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 9998;
  pointer-events: none;
  /* 默认隐藏：translateY 负值将元素推到视口上方，translateX -50% 保持水平居中 */
  transform: translate(-50%, -100%);
  opacity: 0;
  /* 基础过渡，拖拽时会被 JS 临时覆盖为 none */
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.3s ease;
}

/* 胶囊背景容器（含文字说明，用户一看即知是下拉刷新） */
.pull-indicator-inner {
  min-width: 130px;
  height: 40px;
  border-radius: 20px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 胶囊内旋转圆环（比纯圆圈模式稍小） */
#pull-indicator .pull-indicator-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* 胶囊文字 */
.pull-indicator-text {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

/* 旋转圆环 */
.pull-indicator-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  border-top-color: var(--color-primary, #c0392b);
  animation: pullSpin 0.7s linear infinite;
}

@keyframes pullSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}



/* =============================================
   移动端 / 平板「快捷入口」下拉菜单
   （桌面端样式在 @media (min-width:1024px) 内定义，
     此块覆盖手机与平板，避免子菜单裸露错位）
   ============================================= */
@media (max-width: 1023.98px) {
  /* 移动端隐藏「筛选会员」菜单项：底部 Tab 已有「筛选」，且新标签页方式不适合汉堡菜单 */
  .nav-menu li.nav-filter-desktop {
    display: none;
  }

  .nav-menu li.has-dropdown {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
  }

  .nav-menu li.has-dropdown > a.nav-link {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* chevron 图标绝对定位：不占文本布局空间，
     保证「快捷入口」文本与其它菜单项（如「关于我们」）垂直居中对齐 */
  .nav-menu li.has-dropdown > a .fa-chevron-down {
    position: absolute;
    top: 50%;
    right: 16px;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .nav-menu li.has-dropdown .dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    width: 100%;
  }

  .nav-menu li.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu li.has-dropdown .dropdown-menu li {
    height: 44px;
    border-bottom: 1px solid #eee;
    justify-content: center;
  }

  .nav-menu li.has-dropdown .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li.has-dropdown .dropdown-menu a {
    font-size: 15px;
    color: #555;
    padding: 0;
    text-align: center;
  }

  .nav-menu li.has-dropdown .dropdown-menu a:hover,
  .nav-menu li.has-dropdown .dropdown-menu a:active {
    color: var(--color-primary);
    background: transparent;
  }

  .nav-menu li.has-dropdown.open > a .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* 桌面端隐藏「查找会员」菜单项：仅移动端汉堡菜单使用（桌面端已有「筛选会员」入口） */
@media (min-width: 1024px) {
  .nav-menu li.nav-find-mobile {
    display: none;
  }
  /* 桌面端隐藏一级「退出登录」：桌面端已有用户下拉/退出按钮，仅移动端汉堡菜单显示 */
  .nav-menu li.nav-logout-mobile {
    display: none;
  }
}
