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

body {
  font-family: "Microsoft Yahei", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-bg);
  /* 接管原生下拉手势，浏览器不再抢事件 */
  overscroll-behavior-y: contain;
}

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

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

.container {
  margin: 0  auto;
}

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

}

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

/* ---------- 汉堡菜单按钮 ---------- */
.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: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  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 rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s;
  position: relative;
}

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

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

.nav-menu li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

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

/* ---------- 登录/注册按钮 ---------- */
.nav-auth {
  display: flex;
  flex-direction: row;
  justify-content: 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: var(--color-white);
  border: 2px solid var(--color-white);
}

.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: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

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

.banner-carousel {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    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: 8px;
    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: 8px; */
    margin-bottom: 80px;
    background-color: var(--color-white);
}

/* 会员项 */
.member-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
}

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

/* 会员信息区 */
.member-content {
    flex: 1;
    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;
    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);
}


/* 底部导航项：垂直排列、灰色文字、适配移动端 */
.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-accent);
}

/* 导航图标：大号字体，提升辨识度 */
.nav-icon {
    font-size: 14px;
}


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

@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: var(--color-primary-dark);
  }

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

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

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

  .btn-login {
    border-width: 1px;
  }



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

}

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

  .container {
    width: 1226px;
  }
  .nav-logo {
    font-size: 32px;
  }

  .main-nav {
    gap: 35px;
  }

  .nav-link {
    padding: 0 25px;
    font-size: 20px;
  }
}
/* 底部导航链接样式重置 */
.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;
  font-size: 42px;
  border: none;
  box-shadow: none;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  padding: 0;
  user-select: none;
}

/* 旋转动画：展开时顺时针旋转 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;
    font-size: 28px;
  }
}

/* ===================== 加载更多提示 ===================== */
.load-more-tip {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

.loading-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--color-primary, #c0392b);
  border-radius: 50%;
  animation: loadSpin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes loadSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 空数据提示 */
.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;
  /* 基础过渡，拖拽时会被 JS 临时覆盖为 none */
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.3s ease;
}

/* 圆形背景容器 */
.pull-indicator-inner {
  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);
}

/* 旋转圆环 */
.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); }
}
