/* 粤港澳高校心理咨询（辅导）联盟官网 - 主样式文件 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  position: relative; /* 为伪元素定位做准备 */
}

/* 全屏水印背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../logo/Asset 1.svg");
  background-repeat: no-repeat;
  background-position: center bottom; /* 沉底显示 */
  background-size: 100% auto; /* 宽度铺满 */
  opacity: 0.08; /* 极低透明度，避免干扰内容 */
  z-index: -1; /* 放在最底层 */
  pointer-events: none; /* 不干扰点击 */
}

/* 主色调定义 */
:root {
  color-scheme: light; /* 强制声明支持浅色模式，告诉浏览器不要自动转换 */
  --primary-color: #2d5a3d; /* 深绿色 */
  --secondary-color: #4ade80; /* 浅绿色 */
  --accent-color: #6b7280; /* 灰色 */
  --background-color: #ffffff; /* 白色背景 */
  --text-color: #333333; /* 文字颜色 */
  --border-color: #e5e7eb; /* 边框颜色 */
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 强制浅色模式样式覆盖 */
@media (prefers-color-scheme: dark) {
  :root {
    /* 即使在深色模式下，也强制将CSS变量重置为浅色值 */
    --primary-color: #2d5a3d;
    --secondary-color: #4ade80;
    --accent-color: #6b7280;
    --background-color: #ffffff;
    --text-color: #333333;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
  }

  /* 强制关键元素背景为白色，防止透明背景透出浏览器的深色底 */
  body,
  .main,
  .content-section,
  .card,
  .feature-card,
  .activity-card,
  .member-card,
  .contact-card,
  .download-item,
  .requirement-card,
  .activity-item,
  .contact-item {
    background-color: #ffffff !important;
    color: #333333 !important;
  }

  /* 强制文字颜色 */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  div,
  li,
  a {
    color: inherit;
  }

  /* 头部导航可能需要特殊处理，保持深绿色背景 */
  header {
    background-color: #2d5a3d !important;
    color: white !important;
  }

  header a {
    color: white !important;
  }
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航样式 */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px; /* 根据实际 Logo 比例调整 */
  width: auto;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

/* 导航菜单样式 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: var(--secondary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 主要内容区域 */
main {
  min-height: calc(100vh - 200px);
}

/* 页面标题样式 */
.page-title {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-title p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 内容区块样式 */
.content-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 1rem auto;
}

/* 联盟概览部分样式优化 */
.overview-card {
  /* max-width: 900px; 移除最大宽度限制，与页面其他元素保持一致 */
  padding: 3rem 4rem;
}

.overview-card h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.overview-card p {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0;
}

.content-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color),
    transparent
  );
  margin: 2rem auto;
  width: 80%;
}

/* 联盟特色部分样式优化 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.feature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 联络我们页面样式 */
/* 联系卡片样式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 3rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 250px;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 全宽联系卡片样式 */
.contact-card.full-width {
  max-width: 800px;
  margin: 0 auto;
}

/* 增强联系信息布局 */
.contact-info.enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

/* 在线联系方式样式优化 */
.online-contact {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-method {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.method-icon {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 1rem auto 0;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

.contact-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.contact-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* 居中样式的联系人项 */
.contact-item.centered {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

/* 大号图标样式 */
.contact-icon.large {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  background-color: rgba(74, 222, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--primary-color);
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

/* 居中样式的详情文本 */
.contact-item.centered .contact-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-item.centered .contact-details p {
  font-size: 1.1rem;
}

.contact-item.centered .contact-details a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.contact-item.centered .contact-details a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* 按钮样式统一 */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 120px;
  border: none;
}

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

.btn-primary:hover {
  background-color: #1f4e2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: #f0fdf4;
  transform: translateY(-2px);
}

/* FAQ样式优化 */
.faq-section {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0fdf4;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.2rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 1.2rem;
  border-top: 1px solid var(--border-color);
}

/* 表单样式优化 */
.contact-form-section {
  margin-top: 2rem;
}

.form-intro {
  margin-bottom: 2rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* 下载区域样式 */
.download-section {
  margin-top: 2rem;
}

.download-intro {
  margin-bottom: 2rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.download-item {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.download-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.download-item p {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

/* 申请条件样式 */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.requirement-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.requirement-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.requirement-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.requirement-card ul {
  padding-left: 1.5rem;
}

.requirement-card li {
  margin-bottom: 0.5rem;
}

/* 成员单位网格布局 */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.member-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.member-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  border: 3px solid var(--border-color);
}

.member-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.member-type {
  font-size: 0.9rem;
  color: var(--accent-color);
  background-color: #f1f5f9;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
}

/* 主任单位特殊样式 */
.member-card.director {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.member-card.director .member-type {
  background-color: #fbbf24;
  color: white;
}

/* 副主任单位特殊样式 */
.member-card.vice-director {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.member-card.vice-director .member-type {
  background-color: var(--secondary-color);
  color: white;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* 活动列表样式 - 现代化设计 */
.activity-list {
  display: grid;
  gap: 2rem;
}

/* 活动卡片样式 - 现代化设计 */
.activity-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
}

/* Status-based border colors */
.activity-card.upcoming {
  border-left-color: var(--secondary-color);
}

.activity-card.ongoing {
  border-left-color: #3b82f6; /* Blue for ongoing */
}

.activity-card.completed {
  border-left-color: var(--accent-color);
}

.activity-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
}

.activity-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.activity-description {
  color: var(--text-color);
  line-height: 1.6;
}

/* 新的活动卡片底部布局 */
.activity-info-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  gap: 2rem;
  flex-wrap: wrap;
}

.info-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  min-width: 250px;
}

.info-row {
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: baseline;
}

.info-row strong {
  color: var(--primary-color);
  margin-right: 0.5rem;
  white-space: nowrap;
  font-weight: 600;
}

.info-right {
  white-space: nowrap;
  margin-left: auto; /* 确保靠右 */
}

.activity-date-tag {
  color: var(--accent-color);
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

/* 活动状态标签 */
.activity-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  z-index: 10;
}

.activity-status.upcoming {
  background-color: #10b981; /* 绿色 */
}

.activity-status.ongoing {
  background-color: #4ade80; /* 绿色 */
}

.activity-status.completed {
  background-color: #6b7280; /* 灰色 */
}

/* 联系信息样式 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 2rem;
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

/* 页面底部装饰 */
.page-decoration {
  height: 150px;
  background-image: url("../logo/Asset 1.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  margin-top: -50px; /* 稍微向上偏移，与上方内容产生联系 */
  position: relative;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none; /* 避免遮挡点击 */
}

/* 页脚样式 */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.5rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.divider {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .divider {
    display: none;
  }
  .contact-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* 懒加载图片样式 */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 当 member-logo 包含图片时，移除背景和边框 */
.member-logo:has(img) {
  background-color: transparent;
  border: none;
}

/* 确保图片充满圆形 */
.member-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
