* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

.html {
  font-size: 16px;
}

body {
  width: 100%;
  background-color: #fff;
  color: #333;
}

.page-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  /* 防止横向滚动 */
}

/* Header */
header {
  position: fixed;
  /* 固定在页面顶部 */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 87, 64, 0.9);
  color: white;
  padding: 0 5%;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  /* 确保在其他元素之上 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#content {
  max-width: none !important;
  /* 移除框架限制 */
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  /* font-family: "Arial", "Helvetica", sans-serif; */
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  white-space: nowrap;
  /* 禁止换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}



/* Navigation */
/* 主导航样式 */
.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  position: relative;
  /* 用于子菜单定位 */
  margin-left: calc(4vw - 10px);
  padding-bottom: 0.75rem;
  /* 扩展可触发区域，避免鼠标失焦 */
  padding-top: 0.75rem;
}

header nav ul li a {
  color: white;
  text-decoration: none !important;
  outline: none;
  position: relative;
  transition: color 0.4s ease;
  font-size: 1rem;
  font-weight: 450;
  /* 最小12px，最大16px，随视口动态变化 */
  white-space: nowrap;
  /* 禁止换行 */
  overflow: hidden;
  text-overflow: ellipsis;
}


/* 子菜单样式 */
header nav ul .submenu {
  display: none;
  position: absolute;
  top: calc(100%);
  left: 0;
  background-color: rgba(17, 87, 64, 0.85);
  width: max-content;
  min-width: 10rem;
  padding: 0.5rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 998;
}


header nav ul .submenu li {
  margin: 0;
  padding: 0.25rem 1rem;
}

header nav ul .submenu a {
  color: white;
  /* 子菜单文字默认白色 */
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* 悬停时展开子菜单 */
header nav ul .has-submenu:hover .submenu {
  display: block;
}

/* 下划线动画 */
header nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 3px;
  background-color: #FFD700;
  transition: width 0.3s ease-in-out;
}

/* 文字悬停/选中时变黄 */
header nav ul li a:hover::after,
header nav ul li a:focus::after {
  color: #FFD700;
  width: 100%;
}

header nav ul li a:visited {
  color: #ffffff;
  /* 已访问链接也为白色 */
}

header nav ul li a:hover,
header nav ul li a:active,
header nav ul .submenu a:hover,
header nav ul .submenu a:active {
  color: #FFD700;
  /* 选中时变黄色 */
}


/* ========== 2. 汉堡菜单按钮 ========== */
.menu-toggle {
  display: none;
  /* 默认不显示（PC 端隐藏） */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}


/* home banner */
.home-banner {
  width: 100%;
  height: auto;
  padding-top: 26.32%;
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  /* margin-bottom: 1.5rem; */
}

.home-banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* banner */
.banner {
  width: 100%;
  height: auto;
  padding-top: 10.41%;
  /* 250/1600 = 0.1316 or 13.16% */
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Main Content */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 1rem;
  flex: 1;
  /* 使内容区域占满剩余空间 */
}

.container h3 {
  font-size: 1.5rem;
  color: #115740;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  /* text-align: center; */
  font-weight: bold;
}

.container p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1rem;
  text-indent: 2em;
  /* 首行缩进 */
  text-align: justify;
  /* 两端对齐 */
}

.section-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  font-size: 2rem;
  color: #115740;
  font-weight: bold;
}

.section-title-en {
  font-size: 1rem;
  color: #115740;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}



/* News Section */
.news-container {
  background-color: white;
  border-radius: 0.25rem;
  padding: 1rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.news-item {
  min-height: 3.5rem;
  border-bottom: 1px solid #eee;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  align-items: center;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
}

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


.news-item.highlight {
  background-color: rgba(225, 7, 0, 0.25);
  font-weight: bold;
}

.news-item .text {
  width: 50rem;
}

.news-item .date {
  text-align: center;
  width: 6rem;
  color: #999;
  font-size: 0.875rem;
}

.news-item:hover {
  background-color: rgba(193, 198, 200, 0.2);
  cursor: pointer;
}

.news-item.highlight:hover {
  background-color: rgba(225, 7, 0, 0.3);
  cursor: pointer;
}

.news-item .tag {
  text-align: center;
  width: 6rem;
  color: white;
  background-color: rgba(225, 8, 0, 0.65);
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

@media (max-width: 650px) {
  .news-container {
    padding: auto;
    /* 移动端自动内边距 */
    /* margin: 0 10px; */
    /* 移动端左右边距 */
  }

  .news-item {
    padding: 10px;
  }

  .news-item .text {
    width: 30rem;
  }

  .news-item .tag,
  .news-item .date {
    /* make it width to 40px*/
    width: 6rem;
    font-size: 0.75rem;
  }
}


/* Follow Us Section */
.follow-us {
  margin: 0rem auto;
  padding: 0rem 0rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 80rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.follow-us-description {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 3rem;
}

.qr-code-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  padding: 0 0rem;
}

.qr-code-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 0rem;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
  /* 桌面端：4个一行，每个占约 25% */
  flex-basis: calc(25% - 2rem);
  width: 15%;
  max-width: 10rem;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qr-code-container img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 保持1:1比例 */
  border-radius: 0.5rem;
  /* border: 1px solid #e0e0e0; */
  object-fit: contain;
  object-position: center;
  background-color: #f8f9fa;
}

.qr-code-container .description {
  font-size: 1rem;
  color: #115740;
  text-align: center;
  font-weight: 510;
  line-height: 1;
  margin: 0;
  text-indent: 0;
  width: 100%;
}

/* 移动端响应式：宽度不够时显示2x2 */
@media (max-width: 768px) {
  .qr-code-card {
    flex-basis: calc(50% - 1rem);
    /* 2列布局 */
    min-width: 10rem;
  }

  .follow-us-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .qr-code-grid {
    gap: 1.5rem;
  }

  .qr-code-container .description {
    font-size: 0.9rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .qr-code-card {
    flex-basis: calc(50% - 1rem);
    width: 15%;
    max-width: 10rem;
  }

  .qr-code-grid {
    gap: 1rem;
  }

  .follow-us-description {
    font-size: 0.875rem;
  }

  .qr-code-container .description {
    font-size: 0.875rem;
  }
}


/* Conference Information */
.conference-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.conference-card {
  flex: 1;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conference-image {
  height: 13rem;
  background-color: #ddd;
  overflow: hidden;
}

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

.conference-content {
  padding: 1rem;
}

/* .conference-title {
  color: #115740;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
} */

.conference-info h3 {
  font-size: 1.375rem;
  color: #115740;
  margin-top: 0px;
  margin-bottom: 0.5rem;
  /* text-align: center; */
  font-weight: bold;
}

.conference-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  text-align: justify;
}

/* Paper Submission */
.paper-submission {
  background-color: #002454;
  color: white;
  padding: 1.5rem 0rem;
  text-align: center;
  margin-bottom: 4rem;
}

.paper-submission .container {
  max-width: 100%;
}

.paper-submission h2 {
  font-size: 1.75rem;
}

.paper-submission h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
}

.paper-submission p {
  text-indent: 0;
  color: white;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.paper-submission .btn {
  display: inline-block;
  background-color: white;
  color: #172987;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
}

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

/* Speakers */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* 将最小宽度从 200px 增加到 280px */
  gap: 2rem;
  /* 增加间距从 20px 到 30px */
  margin-bottom: 3rem;
  padding: 0 1rem;
  /* 添加左右内边距 */
}

.speaker-card {
  background-color: white;
  border-radius: 0.25rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 17rem;
}

.speaker-card p {
  text-indent: 0em;
}

.speaker-card:hover {
  transform: translateY(-5px);
}

.speaker-avatar {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid hsla(181, 100%, 24%, 0.5);
  /* 增加边框宽度 */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  /* 添加细微阴影 */
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
  /* 将图片向上偏移，使面部居中 */
  transition: transform 0.3s ease;
  /* 添加过渡效果 */
}

/* 添加悬停效果 */
.speaker-card:hover .speaker-avatar img {
  transform: scale(1.05);
  /* 鼠标悬停时轻微放大图片 */
}

.speaker-info {
  display: flex;
  flex-direction: column;
  /* 关键：此属性将其所有子项（h4和p）在交叉轴（水平方向）上居中 */
  align-items: center;
  gap: 0.5rem;
}

.speaker-name {
  font-size: 1.125rem;
  font-weight: bold;
  color: #115740;
  margin: 0;
  letter-spacing: 0.5px;
  text-align: center;
  /* 添加这行 */
  width: 100%;
  /* 添加这行 */
}

.speaker-title {
  /* 关键：此属性让该元素内部的文本居中对齐 */
  text-indent: 0em;
  text-align: center !important;
  font-size: 1rem;
  color: #666;
  margin: 0 !important;
  line-height: 1.4;
}


/* Sponsors */
/* Sponsors Section */
.sponsors-section {
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.sponsors-section h3 {
  color: #115740;
  text-align: center;
  margin: 2.5rem 0 1.875rem;
  font-size: 1.375rem;
  font-weight: bold;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 添加装饰线条 */
.sponsors-section h3::before,
.sponsors-section h3::after {
  content: "";
  height: 0.1rem;
  background: #115740;
  flex: 1;
  max-width: 40%;
  opacity: 0.5;
}

.sponsors-section h3::before {
  margin-right: 1rem;
}

.sponsors-section h3::after {
  margin-left: 1rem;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  margin: auto;
}

.sponsor-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sponsor-logo {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sponsor-logo img {
  max-width: 10rem;
  max-height: 4rem;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}


.sponsor-card .sponsor-name {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 500;
  text-align: center;
  /* 确保居中 */
  width: 100%;
  display: block;
  text-indent: 0;
  /* 取消从 .container p 继承过来的首行缩进 */
}

/* 响应式调整 */
@media (max-width: 768px) {

  /* .sponsors-section h3::before,
  .sponsors-section h3::after {
    max-width: 4rem;
  } */

  .sponsors-section h3 {
    font-size: 1.25rem;
    margin: 1.875rem 0 1.25rem;
  }

  .sponsor-logo {
    height: 5rem;
  }

  .sponsor-logo img {
    max-width: 9.375rem;
    max-height: 3.75rem;
  }
}

/* Co-organizers */
.co-organizers-grid {
  display: flex;
  /* 改为 flex */
  flex-wrap: wrap;
  /* 允许换行 */
  justify-content: center;
  /* 关键：在水平方向上居中所有行内容 */
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.co-organizer-card {
  background-color: white;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 14rem;
  /* 为了在一行内容纳5个，需要为卡片设置一个基础宽度 */
  /* 100% / 5 = 20%，再减去一些 gap 的空间 */
  flex-basis: calc(20% - 20px);
  min-width: 12rem;
  /* 保证卡片的最小宽度 */
}

.co-organizer-card p {
  text-indent: 0em;
}

.co-organizer-card:hover {
  transform: translateY(-3px);
}

.co-organizer-logo {
  width: 8rem;
  /* 比院士头像小 */
  height: 8rem;
  margin: 0 auto;
  border-radius: 8px;
  /* 方形圆角，适合logo */
  overflow: hidden;
  /* border: 2px solid #00797c; */
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #f8f9fa; */
}

.co-organizer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 保持logo完整显示 */
  object-position: center;
  transition: transform 0.3s ease;
}

.co-organizer-card:hover .co-organizer-logo img {
  transform: scale(1.03);
}

.co-organizer-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 6px; */
}

.co-organizer-name {
  font-size: 1rem;
  /* font-weight: bold; */
  color: #115740;
  margin: 0;
  letter-spacing: 0.3px;
  text-align: center;
  width: 100%;
  line-height: 1.5;
}

.co-organizer-type {
  text-indent: 0em;
  text-align: center !important;
  font-size: 12px;
  color: #666;
  margin: 0 !important;
  line-height: 1.4;
}


.img-container {
  width: 100%;
  max-width: 1000px; /* 增大 max-width 以更好地展示三张并排图片 */
  margin: auto;
  
  /* 基础设置：默认是手机端的竖排布局 (堆叠) */
  display: flex;
  flex-direction: column; /* 手机端：垂直排列 */
  gap: 15px; /* 图片间的垂直间距 */
}

/* 统一设置图片样式 */
.img-container img {
  width: 100%; /* 在竖排或占据一行时，图片宽度占满容器 */
  height: auto;
  /* 确保图片在电脑端并排时可以被 Flex 弹性控制 */
}

/* --- 媒体查询：电脑端布局 (宽度大于 768px 时激活) --- */
@media (min-width: 768px) {
  .img-container {
    flex-direction: row; /* 电脑端：水平排列 */
    justify-content: space-between; /* 图片间分散对齐，也可使用 space-around 或 center */
    gap: 20px; /* 图片间的水平间距 */
  }

  .img-container img {
    /* 电脑端：每张图片占据容器约三分之一的宽度 */
    width: calc(33.33% - 15px); /* 100%/3 - 减去间隙(gap)的平均值 */
    /* 更简单、推荐的写法是使用 flex-basis: 
       flex: 1 1 30%; 
    */
    min-width: 150px; /* 防止图片过小 */
  }
}



/* Footer */

footer {
  width: 100%;
  background-color: #00797c;
  color: white;
  padding: 20px 0;
  margin-top: 5rem;
  min-height: 15rem;
  position: relative;
  /* 为了定位SVG图片 */
}

.footer-container {
  margin: 0 auto;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.footer-top {
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.625rem;
}

.footer-top p {
  font-size: 1.75rem;
  font-weight: bold;
}

.footer-divider {
  border: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 1);
  margin: 0.625rem auto;
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.footer-column {
  padding-right: 1rem;
}

.footer-column h3 {
  font-size: 1.375rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-column p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-indent: 0;
}

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

.footer-column li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-indent: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* SVG 右上角装饰 */
footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 15rem;
  height: 3rem;
  background-image: url('../images/logo/珞珈展翼歇山纹.png');
  background-size: cover;
  /* 保证图片铺满边角 */
  background-repeat: no-repeat;
  background-position: top right;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
  transform: translate(-3%, -38%);
  /* 将图像偏移至右上角边界 */
  opacity: 1;
  z-index: 1;
  /* 确保不会覆盖内容 */
}

footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  background-image: url('../images/logo/珞珈书韵云雷纹.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom left;
  transform: translate(10%, -10%);
  /* 调整位置以确保部分可见 */
  opacity: 1;
  z-index: 1;
  /* 确保不会覆盖内容 */
}

.beian {
  background-color: #000000;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255);
}

.beian p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.beian .beian-img {
  margin-left: 3.75rem;
}

.beian img {
  width: 1.25rem;
  height: 1.25rem;
}

.beian a {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  color: #ffffff;
  gap: 0.5rem;
}

.beian a:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* Feedback Button */
.feedback-btn {
  position: fixed;
  right: 0;
  top: 70%;
  background-color: transparent;
  /* Transparent background */
  color: #e10800;
  /* Red text to match border */
  padding: 0.375rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  border-radius: 6px 0 0 6px;
  border: 2px solid #e10800;
  /* Red border */
  font-size: 0.875rem;
  color: #e10800;
  transition: all 0.3s ease;
  /* Smooth transition for hover effects */
}

.feedback-btn:hover {
  background-color: rgba(225, 8, 0, 0.8);
  /* Slightly visible red background on hover */
  box-shadow: 0 0 5px rgba(225, 8, 0, 0.5);
  /* Subtle shadow for emphasis */
  color: white;
  /* White text on hover */
}


/* ========== 3. 移动端样式调整 ========== */
@media (max-width: 768px) {


  /* Logo */
  .logo {
    font-weight: bold;
    font-size: 1.1rem;
  }

  html {
    font-size: 13px;
  }

  .container {
    width: 95% !important;
    padding: 0.5rem 0.5rem;
  }

  #content {
    width: 100%;
    /* 强制宽度与视口一致 */
    max-width: 100vw;
    /* 防止横向溢出 */
    padding: 0 0px;
    /* 可选：增加内边距 */
  }

  header {
    width: 100%;
    /* 确保 header 也是满宽 */
  }

  .menu-toggle {
    display: block;
    /* 仅手机端显示汉堡按钮 */
  }

  /* 导航菜单，靠右展开 */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    /* 靠右展开 */
    width: 15rem;
    background: rgba(17, 87, 64, 0.95);
    padding: 0.5rem 0;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
  }


  .nav-menu.active {
    display: flex;
    /* 点击后展开 */
  }

  .nav-menu li {
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: left;
  }

  /* ========== 4. 移动端子菜单 ========== */

  .submenu {
    display: none;
    position: relative !important;
    min-width: 240px;
    margin-right: 1px;
    /* 与父菜单保持间距 */
    margin-top: 10px;
    padding: 3px 3px;
    background: rgba(2, 96, 68, 0.9) !important;
    border-right: 2px solid rgba(255, 215, 0);
    /* 右侧分隔线 */
    box-shadow: -4px 0 8px rgba(255, 255, 255, 0.5) !important;
    /* 左侧阴影 */
  }


  .has-submenu>a::after {
    display: none !important;
  }


  .submenu li {
    padding: 0.5rem 1rem !important;
  }


  .submenu a:hover {
    transform: none;
    color: #FFD700 !important;
  }

  .submenu .submenu {
    right: -1rem;
    margin-right: -1rem;
    top: -0.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 0 1.5rem;
  }

  .footer-top p {
    font-size: 1.5rem;
  }

  footer::after {
    width: 8rem;
    height: 2rem;
  }

  footer::before {
    width: 80px;
    height: 80px;
  }


  .beian {
    font-size: 0.875rem;
  }

  .beian p {
    gap: 0.375rem;
  }

  .beian img {
    width: 0.375rem;
    height: 0.375rem;
  }

  .beian a {
    gap: 0.4rem;
  }

}


@media (max-width: 768px) {
  footer {
    min-height: auto;
    padding: 30px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 30px;
  }

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

  .footer-top p {
    font-size: 20px;
    padding: 0 15px;
  }

  .footer-divider {
    margin: 1rem 1rem;
    width: calc(100% - 30px);
  }

  /* 调整装饰元素 */
  footer::after {
    width: 8rem;
    height: 2rem;
    transform: translate(-10%, -40%);
    opacity: 0.8;
  }

  footer::before {
    width: 60px;
    height: 60px;
    transform: translate(15%, -15%);
    opacity: 0.8;
  }

  .footer-column h3 {
    font-size: 18px;
    margin: 15px 0;
  }

  .footer-column li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {

  .news-item {
    font-size: 0.875rem;
  }

  .news-item .text {
    width: 18rem;
  }

  .news-item .date,
  .news-item .tag {
    width: 4rem;
    font-size: 0.65rem;
  }

  .conference-info {
    /* 1. 将 flex 的主轴方向从横向 (row) 改为纵向 (column) */
    flex-direction: column;
    /* 2. (可选) 可以适当调整卡片之间的垂直间距 */
    gap: 1rem;
  }

  .conference-image {
    height: 10rem;
  }

  .conference-info h3 {
    font-size: 1.25rem;
    /* text-align: center; */
  }

  .conference-desc {
    font-size: 0.75rem;
  }

  .paper-submission {
    padding: 1rem 1rem;
    margin-bottom: 4rem;
  }

  .paper-submission .container {
    max-width: 90%;
  }

  .paper-submission h2 {
    font-size: 1.5rem;
  }

  .paper-submission p {
    font-size: 0.875rem;
  }

  .paper-submission.btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

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


  /* 1. 调整 Grid 布局，允许创建更窄的列 */
  .speakers-grid {
    /* 将最小列宽从 280px 减小到 150px，这样一行就能容纳两个 */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    /* 可以适当减小卡片间距 */
  }

  /* 2. 压缩卡片内部元素的尺寸以适应新空间 */
  .speakers-grid .speaker-card {
    height: auto;
    /* 让卡片高度自适应内容，非常重要！ */
    padding: 0.75rem;
    /* 也可以适当减小内边距 */
  }

  .speakers-grid .speaker-avatar {
    /* 必须缩小头像，否则会撑破布局 */
    width: 7rem;
    /* 从 10rem 缩小 */
    height: 7rem;
    /* 从 10rem 缩小 */
  }

  .speakers-grid .speaker-name {
    font-size: 0.875rem;
    /* 也可以适当缩小字体 */
  }

  .speakers-grid .speaker-title {
    font-size: 0.75rem;
  }


  /* 1. 调整 co-organizer 卡片的宽度 */
  .co-organizer-card {
    flex-basis: calc(50% - 0.5rem);
    min-width: auto;
    height: 12.5rem;
  }

  .co-organizer-logo {
    width: 6rem;
    height: 6rem;
  }

  .co-organizer-name {
    font-size: 0.9rem;
  }

  .footer-top p {
    font-size: 1.2rem;
  }

  .footer::after {
    width: 8rem;
    transform: translate(-10%, -50%);
  }

  .footer::before {
    display: none;
    /* 超小屏幕隐藏底部装饰 */
  }

  .footer li {
    text-align: center;
  }

  .footer-column p {
    font-size: 0.875rem;
    text-align: center;
  }

  .beian .beian-img {
    margin-left: 2rem;
  }

}