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

/* 防止移动端水平滚动 */
html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 页面内容容器 */
.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部菜单样式 */
.top-menu {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
  display: none;
}

.top-menu.active {
  display: block;
}

.top-menu__links-section {
  margin-bottom: 20px;
}

.top-menu__links-header {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.top-menu__links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-menu__link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.top-menu__link:hover {
  color: #007bff;
}

.top-menu__signin {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.top-menu__signin-link {
  text-decoration: none;
  color: #333;
}

.top-menu__signin-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* 网站头部样式 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-menu__mobile-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.top-menu__desktop-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.top-menu__main-group {
  display: flex;
  align-items: center;
  flex: none;
}

.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.site-logo {
  height: 110px;
  width: auto;
}

.site-logo-secondary {
  height: 100px;
  width: auto;
  opacity: 0.8;
}

.top-menu-burger {
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.top-menu-burger__lines {
  width: 100%;
  height: 3px;
  background: #333;
  position: relative;
  transition: all 0.3s;
}

.top-menu-burger__lines::before,
.top-menu-burger__lines::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s;
}

.top-menu-burger__lines::before {
  top: -8px;
}

.top-menu-burger__lines::after {
  bottom: -8px;
}

.top-menu-burger.active .top-menu-burger__lines {
  background: transparent;
}

.top-menu-burger.active .top-menu-burger__lines::before {
  transform: rotate(45deg);
  top: 0;
}

.top-menu-burger.active .top-menu-burger__lines::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* 桌面导航样式 */
.top-line-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  z-index: 2;
}

.top-line-menu__link {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-line-menu__link:hover,
.top-line-menu__link_current {
  color: #007bff;
}

.top-line-menu__more {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

/* 更多下拉菜单样式 */
.more-dropdown {
  position: relative;
  display: inline-block;
}

.more-dropdown__content {
  position: absolute;
  top: 100%;
  right: -200px;
  transform: translateY(-10px);
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 1800px;
  width: 70vw;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 50px;
  margin-top: 10px;
}

.more-dropdown__content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.more-dropdown__content::before {
  display: none;
}

.more-dropdown__content::after {
  display: none;
}

.more-dropdown__link-sections {
  display: flex;
  gap: 120px;
  justify-content: center;
  align-items: center;
}

.more-dropdown__link-section {
  min-width: 250px;
  text-align: center;
  flex: 1;
}

.more-dropdown__link-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.more-dropdown__link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-dropdown__link-item {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  padding: 4px 0;
}

.more-dropdown__link-item:hover {
  color: #f59e0b;
}

/* 更多按钮激活状态 */
.more-dropdown.active .top-line-menu__more {
  transform: rotate(180deg);
}

.top-line-menu__signin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0;
}

.top-line-menu__signin-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  text-align: center;
}

/* 主要内容区域 */
.page-main {
  flex: 1;
}

/* 顶部消息区域 */
.top-message {
  display: flex;
  background: linear-gradient(135deg, #a8e6cf 0%, #9dd8c7 100%); /* 渐变薄荷绿背景 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 1200px;
  min-height: 400px;
  transition: box-shadow 0.3s ease;
  align-items: stretch;
}

.top-message:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.top-message__text {
  flex: 1;
  background: transparent; /* 继承父元素背景 */
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}


.top-message__text-header {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
  color: #222;
  text-align: left;
}

.top-message__text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-message__help-us {
  text-align: left;
}

.top-message__text_help {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
}

.top-message__text_link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  font-size: 18px;
}

.top-message__text_link:hover {
  color: #1d4ed8;
}

.top-message__heart-icon {
  width: 18px;
  height: 18px;
}

.top-message__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* 继承父元素背景 */
  padding: 20px;
}

.top-message__image-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.top-message__image-content:hover {
  transform: scale(1.02);
}

/* 气候变化区域 */
.climate-change {
  background: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.climate-change__content {
  max-width: 800px;
  margin: 0 auto;
}

.climate-change__text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.climate-change__link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.climate-change__link a:hover {
  color: #0056b3;
}

/* 当前项目标题 */
.current-projects {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 60px 0 40px;
  color: #333;
}

/* 通用区块样式 */
.section-common {
  position: relative;
  height: 500px;
  margin: 40px auto;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-common__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-common__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
}

.section-common__info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-common__info-organization img {
  height: 30px;
  width: auto;
}

.section-common__info-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.section-common__header {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: white;
}

.section-common__text-block {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

/* 背景图片样式 */
.carbon-removal__background {
  background-image: url('../images/路径.jpg');
}

.threats-to-crops__background {
  background-image: url('../images/实验室.jpg');
}

.help-pastoralists__background {
  background-image: url('../images/帮助果农.png');
}

.food-security__background {
  background-image: url('../images/科技赋能.png');
}

.fighting-locusts__background {
  background-image: url('../images/果蝇模块.jpg');
}

.data-harvesting__background {
  background-image: url('../images/数据收集.jpg');
}

/* 两列布局样式 - 食品安全和数据收集 */
.food-security__section,
.data-harvesting__section {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 500px;
  background: linear-gradient(135deg, #fdfdfd 0%, #c584aa 100%); /* 渐变薄荷绿背景 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 1200px;
  transition: box-shadow 0.3s ease;
}

.food-security__section:hover,
.data-harvesting__section:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.food-security__section .section-common__text-content,
.data-harvesting__section .section-common__text-content {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  background: transparent; /* 继承父元素背景 */
  position: relative;
}


.food-security__section .section-common__image-content,
.data-harvesting__section .section-common__image-content {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* 继承父元素背景 */
  padding: 20px;
}

.food-security__section .section-common__image,
.data-harvesting__section .section-common__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.food-security__section .section-common__image:hover,
.data-harvesting__section .section-common__image:hover {
  transform: scale(1.02);
}

.food-security__section .section-common__info,
.data-harvesting__section .section-common__info {
  margin-bottom: 20px;
}

.food-security__section .section-common__info-time,
.data-harvesting__section .section-common__info-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.food-security__section .section-common__header,
.data-harvesting__section .section-common__header {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #222;
  text-align: left;
}

.food-security__section .section-common__text-block,
.data-harvesting__section .section-common__text-block {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

/* AI项目特殊样式 */
.pv-ai__section {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #a8e6cf 100%, #b6e0d1 0%); /* 浅绿色背景 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 1200px;
  min-height: 400px;
  padding: 0;
}

.pv-ai__text-content {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.pv-ai__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000; /* 深绿色标题 */
  line-height: 1.3;
}

.pv-ai__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #2d5016; /* 深绿色文本 */
}

.pv-ai__button {
  display: inline-block;
  background: white;
  color: #2d5016;
  padding: 15px 35px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  align-self: flex-start;
}

.pv-ai__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.pv-ai__illustration-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 40px;
}

.pv-ai__illustration {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pv-ai__illustration:hover {
  transform: scale(1.02);
}

/* 碳移除项目背景 */
.carbon-removal__image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 作物威胁项目背景 */
.threats-to-crops__image {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 帮助牧民项目背景 */
.help-pastoralists__image {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 抗击蝗虫项目背景 */
.fighting-locusts__image {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* 食品安全项目 */
.food-security {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 40px 20px;
}

.food-security__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.food-security__logo img {
  height: 40px;
  width: auto;
}

.food-security__ticket-image {
  height: 200px;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 10px;
}

.food-security__content {
  flex: 1;
}

.food-security__info-time {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.food-security__header {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.food-security__text-block {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* 数据收集项目 */
.data-harvesting {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.data-harvesting__images {
  flex: 1;
}

.data-harvesting__ticket-image {
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.data-harvesting__content {
  flex: 1;
}

.data-harvesting__header {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.data-harvesting__text-block {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

/* 专家评价区域 */
.kip-e-tom {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 40px 20px;
}

.kip-e-tom__name {
  flex: 1;
  text-align: center;
}

.kip-e-tom__image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.kip-e-tom__image_header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.kip-e-tom__image_text {
  font-size: 16px;
  color: #666;
}

.kip-e-tom__content {
  flex: 2;
}

.kip-e-tom__text {
  margin-bottom: 20px;
}

.kip-e-tom__text-block {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
  color: #555;
}

.kip-e-tom__link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

/* 新闻报告区域 */
.news-reports {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-reports__header {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.news-reports__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.news-reports__link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s;
}

.news-reports__link:hover {
  transform: translateY(-5px);
}

.news-reports__item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.news-reports__item:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-reports__item-content {
  padding: 20px;
}

.news-reports__item-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-reports__item-date {
  font-size: 14px;
  color: #666;
}

.news-reports__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-reports__more {
  display: block;
  text-align: center;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

/* 页脚样式 */
.page-footer {
  background: #333;
  color: white;
  padding: 60px 20px 20px;
  margin-top: 80px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

.page-footer__desktop-link-sections {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 40px;
  gap: 120px;
}

.page-footer__link-sections {
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: center;
}

.footer-links__section {
  min-width: 200px;
  text-align: center;
}

.footer-links__header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links__link {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links__link:hover {
  color: #fff;
}

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

.footer-support__button {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 15px;
  transition: background 0.3s;
}

.footer-support__button:hover {
  background: #0056b3;
}

.footer-support__text {
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
}

.footer-terms-social {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #555;
  gap: 100px;
}

.footer-terms-social__terms a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-terms-social__social-networks {
  display: flex;
  gap: 20px;
}

.footer-terms-social__social-networks a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-terms-social__social-networks a:hover {
  color: #fff;
}

/* 气候弹窗样式 */
.climate-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.climate-popup_hidden {
  display: none;
}

.climate-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.climate-popup__content {
  background: white;
  max-width: 600px;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.climate-popup__header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.climate-popup__text-block {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

/* 通用链接样式 */
.link-common {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.link-common:hover {
  text-decoration: underline;
}

.link-common2 {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.link-common3 {
  color: #ccc;
  text-decoration: none;
}

.link-common4 {
  color: #ccc;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 修复移动端页脚溢出与被裁切问题：
     1) 取消 100vw 与负边距造成的水平溢出
     2) 让容器自然占满屏幕宽度并可换行 */
  .page-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .page-footer__desktop-link-sections,
  .page-footer__link-sections,
  .footer-terms-social {
    width: 100%;
  }

  .page-footer__link-sections {
    display: grid;
    grid-template-columns: 1fr; /* 单列堆叠，避免横向超出 */
    row-gap: 20px;
  }

  .footer-terms-social {
    flex-wrap: wrap;
  }
  .top-menu__desktop-section {
    display: none;
  }
  
  .top-menu__mobile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
  }
  
  .site-logo {
    height: 40px;
    width: auto;
  }
  
  .site-logo-secondary {
    height: 22px;
    width: auto;
  }
  
  /* 移动端汉堡菜单样式优化 */
  .top-menu-burger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
  }
  
  .top-menu-burger__lines {
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
  }
  
  .top-menu-burger__lines::before,
  .top-menu-burger__lines::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s ease;
  }
  
  .top-menu-burger__lines::before {
    top: -8px;
  }
  
  .top-menu-burger__lines::after {
    bottom: -8px;
  }
  
  .top-menu-burger.active .top-menu-burger__lines {
    background-color: transparent;
  }
  
  .top-menu-burger.active .top-menu-burger__lines::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .top-menu-burger.active .top-menu-burger__lines::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  
  /* 移动端顶部菜单样式优化：默认隐藏，上滑入场 */
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    display: block; /* 覆盖上方的display控制，使用透明度与位移动画隐藏 */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .top-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  /* 移动端页脚：与donate.html保持一致 */
  .footer-terms-social {
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .footer-terms-social__social-networks {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .footer-terms-social__social-networks a {
    padding: 8px 12px;
    font-size: 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-terms-social__social-networks a:hover {
    color: #ffffff;
  }

  /* 移动端更多下拉菜单样式优化 */
  .more-dropdown__content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: auto;
    margin-top: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 1002;
  }
  
  .more-dropdown__content::before,
  .more-dropdown__content::after {
    display: none;
  }
  
  .more-dropdown__link-sections {
    flex-direction: column;
    gap: 25px;
    max-width: 320px;
    width: 100%;
  }
  
  .more-dropdown__link-section {
    text-align: center;
  }
  
  .more-dropdown__link-header {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
  }
  
  .more-dropdown__link-item {
    font-size: 16px;
    padding: 10px 0;
    color: #555;
  }
  
  .more-dropdown__link-item:hover {
    color: #007bff;
    background: transparent;
    padding: 10px 0;
    margin: 0;
  }
  
  /* 移动端页面内容间距优化 */
  .page-main {
    margin-top: 80px;
  }
  
  .mt-28 {
    margin-top: 80px;
  }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
  .top-menu__mobile-section {
    padding: 0 15px;
  }
  
  .site-logo {
    height: 35px;
  }
  
  .site-logo-secondary {
    height: 20px;
  }
  
  .top-message__text-header {
    font-size: 1.5rem;
  }
  
  .section-common,
  .food-security,
  .data-harvesting,
  .kip-e-tom {
    padding: 15px;
  }
  
  .news-reports__list {
    padding: 0 15px;
  }
  
  .page-footer__desktop-link-sections,
  .footer-terms-social {
    padding: 0 16px;
  }
}

/* 桌面端样式 */
@media (min-width: 769px) {
  .top-menu__mobile-section {
    display: none;
  }
  
  .top-menu__desktop-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
}

/* 工具类 */
.nobr {
  white-space: nowrap;
} 

/* 统一内容最大宽度和居中 */
.page-content,
.page-main,
.top-message,
.climate-change,
.news-reports {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .section-common {
    height: 400px;
    margin: 20px auto;
  }
  
  .section-common__content {
    padding: 20px;
  }
  
  .section-common__header {
    font-size: 1.8rem;
  }
  
  .section-common__text-block {
    font-size: 16px;
  }
  
  /* 两列布局移动端调整 */
  .food-security__section,
  .data-harvesting__section {
    flex-direction: column;
    height: auto;
    margin: 20px 16px;
    max-width: calc(100% - 32px);
  }
  
  .food-security__section .section-common__text-content,
  .data-harvesting__section .section-common__text-content {
    padding: 40px 20px;
    justify-content: center;
  }
  
  .food-security__section .section-common__image-content,
  .data-harvesting__section .section-common__image-content {
    min-height: 250px;
    padding: 20px;
  }
  
  .food-security__section .section-common__header,
  .data-harvesting__section .section-common__header {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .food-security__section .section-common__text,
  .data-harvesting__section .section-common__text {
    text-align: center;
  }
  
  /* AI项目移动端调整 */
  .pv-ai__section {
    flex-direction: column;
    margin: 20px 16px;
    min-height: auto;
    height: auto; /* 强制自适应内容高度 */
    max-width: calc(100% - 32px);
    padding: 12px 12px 36px; /* 增加底部空间，避免被下一块遮挡 */
    overflow: visible; /* 覆盖桌面端的 overflow:hidden，允许内容完全显示 */
  }
  
  .pv-ai__text-content {
    padding: 40px 20px;
  }
  
  .pv-ai__title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .pv-ai__description {
    font-size: 16px;
    text-align: center;
  }
  
  .pv-ai__button {
    align-self: center;
  }
  
  .pv-ai__illustration-content {
    min-height: 300px; /* 提高插图区域高度，防止裁切 */
    padding: 20px;
  }
  .pv-ai__illustration {
    max-width: 90%;
    max-height: 260px; /* 放宽高度确保完整显示 */
  }
  /* 与下一模块拉开间距，避免视觉挤压与遮挡 */
  .pv-ai__section + .section-common {
    margin-top: 16px;
  }
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .top-message {
    flex-direction: column;
    margin: 20px 16px;
    min-height: auto;
    max-width: calc(100% - 32px);
  }
  
  .top-message__text {
    padding: 40px 20px;
  }
  
  .top-message__text-header {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .top-message__help-us {
    text-align: center;
  }
  
  .top-message__image {
    min-height: 250px;
  }
}

/* 气候变化区域居中 */
.climate-change {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  border-radius: 16px;
  margin: 40px auto;
}

.climate-change__content {
  text-align: center;
}

/* 新闻区块居中 */
.news-reports {
  text-align: center;
  margin: 40px auto;
  padding: 60px 0;
  border-radius: 16px;
}

.news-reports__header {
  text-align: center;
}

.news-reports__list {
  justify-content: center;
}



/* 标题居中 */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

/* 响应式优化 */
@media (max-width: 900px) {
  .section-common {
    height: 450px;
    max-width: 100%;
    margin: 40px 16px;
  }
  
  .food-security__section,
  .data-harvesting__section {
    height: 450px;
    max-width: 100%;
    margin: 40px 16px;
  }
}

@media (max-width: 600px) {
  .page-content,
  .page-main,
  .top-message,
  .climate-change,
  .news-reports {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section-common {
    height: 350px;
    margin: 20px 16px;
    max-width: calc(100% - 32px);
  }
  
  .food-security__section,
  .data-harvesting__section {
    height: auto;
    margin: 20px 16px;
    max-width: calc(100% - 32px);
  }
  .climate-change, .news-reports {
    margin: 20px 16px;
    padding: 20px 0;
    max-width: calc(100% - 32px);
  }
} 

/* 移动端优化样式 */
@media (max-width: 768px) {
  /* 确保所有容器不超出屏幕宽度 */
  .page-content,
  .page-main,
  .site-header,
  .top-menu__mobile-section,
  .top-menu__desktop-section {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* 顶部菜单移动端优化 */
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .top-menu.active {
    transform: translateX(0);
  }

  .top-menu__links-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
  }

  .top-menu__links-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
  }

  .top-menu__links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .top-menu__link {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
  }

  .top-menu__link:hover {
    color: #f59e0b;
    background: #fef3c7;
    border-color: #f59e0b;
    transform: translateX(5px);
  }

  .top-menu__signin {
    margin-top: 30px;
    padding: 20px;
    background: #f59e0b;
    border-radius: 12px;
    text-align: center;
  }

  .top-menu__signin-header {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
  }

  .top-menu__signin-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
  }

  .top-menu__signin-link:hover {
    background: #fff;
    color: #f59e0b;
  }

  /* 汉堡菜单优化 */
  .top-menu-burger {
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
  }

  .top-menu-burger:hover {
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .top-menu-burger:hover .top-menu-burger__lines,
  .top-menu-burger:hover .top-menu-burger__lines::before,
  .top-menu-burger:hover .top-menu-burger__lines::after {
    background: #fff;
  }

  .top-menu-burger.active {
    background: #f59e0b;
    border-color: #f59e0b;
  }

  .top-menu-burger.active .top-menu-burger__lines,
  .top-menu-burger.active .top-menu-burger__lines::before,
  .top-menu-burger.active .top-menu-burger__lines::after {
    background: #fff;
  }

  /* 网站头部移动端优化 */
  .site-header {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .top-menu__mobile-section {
    padding: 0 15px;
  }

  .site-logo {
    height: 80px;
  }

  .site-logo-secondary {
    height: 70px;
  }

  /* 桌面导航隐藏 */
  .top-menu__desktop-section {
    display: none;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .top-menu {
    padding: 70px 15px 15px 15px;
  }

  .top-menu__links-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .top-menu__links-header {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .top-menu__link {
    font-size: 14px;
    padding: 8px 12px;
  }

  .site-logo {
    height: 70px;
  }

  .site-logo-secondary {
    height: 60px;
  }

  .top-menu-burger {
    width: 30px;
    height: 30px;
  }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
  .top-menu__desktop-section {
    max-width: 100%;
    padding: 0 20px;
  }

  .top-line-menu {
    gap: 20px;
  }

  .top-line-menu__link {
    font-size: 16px;
  }

  .more-dropdown__content {
    width: 80vw;
    max-width: 1200px;
  }
}

/* 动画优化 */
.top-menu,
.more-dropdown__content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-menu__link,
.more-dropdown__link-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .top-menu__link:hover,
  .top-line-menu__link:hover,
  .more-dropdown__link-item:hover {
    transform: none;
  }

  .top-menu__link:active,
  .top-line-menu__link:active,
  .more-dropdown__link-item:active {
    background: #f59e0b;
    color: #fff;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .top-menu {
    background: #000;
    color: #fff;
  }

  .top-menu__links-section {
    border: 2px solid #fff;
  }

  .top-menu__link {
    border: 1px solid #fff;
  }

  .top-menu__link:hover {
    background: #fff;
    color: #000;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  .top-menu,
  .top-menu-burger,
  .top-menu__link,
  .top-line-menu__link {
    transition: none;
  }
} 

/* 首页特定样式 - 更多下拉菜单位置调整 */
body:has(.page-content[data-page-content]) .more-dropdown__content,
.page-content[data-page-content] .more-dropdown__content {
  right: -400px; /* 往左移动200px (从-200px改为-400px) */
}

/* 首页移动端下拉菜单样式调整 */
@media (max-width: 768px) {
  body:has(.page-content[data-page-content]) .more-dropdown__content,
  .page-content[data-page-content] .more-dropdown__content {
    right: 0; /* 移动端保持居中 */
  }
} 
/* ========== �ƶ����Ż���ǿ ========== */

/* �����ƶ����Ż� */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overflow-x: hidden;
}

/* �ƶ��˵�����ǿ */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .top-menu__mobile-section {
    padding: 0 16px;
    gap: 16px;
  }

  .site-logo {
    height: 60px;
    max-width: 200px;
  }

  .top-menu-burger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
  }

  .top-menu-burger:active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  /* �ƶ��˲˵��Ż� */
  .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .top-menu__links-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .top-menu__links-header {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
  }

  .top-menu__link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .top-menu__link:active {
    background: #f59e0b;
    color: #fff;
    transform: scale(0.98);
  }

  .top-menu__signin {
    margin-top: 24px;
    padding: 20px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
  }

  .top-menu__signin-link {
    display: block;
    padding: 12px 16px;
    background: #f59e0b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-menu__signin-link:active {
    background: #d97706;
    transform: scale(0.98);
  }
}

/* ��С��Ļ�Ż� */
@media (max-width: 480px) {
  .site-header {
    padding: 10px 0;
  }

  .top-menu__mobile-section {
    padding: 0 12px;
  }

  .site-logo {
    height: 50px;
    max-width: 160px;
  }

  .top-menu-burger {
    width: 40px;
    height: 40px;
  }

  .top-menu {
    padding: 70px 16px 16px;
  }

  .top-menu__links-section {
    margin-bottom: 20px;
    padding: 12px;
  }

  .top-menu__links-header {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .top-menu__link {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* ҳ���ƶ����Ż� */
@media (max-width: 768px) {
  .page-footer {
    padding: 28px 16px 16px;
  }

  .page-footer__desktop-link-sections {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .page-footer__link-sections {
    display: flex;
    flex-direction: column; /* 单列堆叠 */
    gap: 0;
    width: 100%;
  }

  .footer-links__section {
    text-align: left; /* 左对齐与截图一致 */
    margin-bottom: 32px;
    width: 100%;
  }

  .footer-links__header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff; /* 白色标题 */
    line-height: 1.2;
  }

  .footer-links__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links__link {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1; /* 浅灰可读 */
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
  }

  .footer-links__link:hover {
    color: #ffffff;
  }

  .footer-links__link:active {
    color: #f59e0b;
  }

  .footer-support {
    text-align: center;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
  }

  .footer-support__button {
    display: inline-block;
    padding: 12px 24px;
    background: #f59e0b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-support__button:active {
    background: #d97706;
    transform: scale(0.98);
  }

  .footer-terms-social {
    flex-direction: column;
    gap: 16px;
    text-align: left; /* 左对齐 */
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .footer-terms-social__social-networks {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-terms-social__social-networks a {
    padding: 8px 12px;
    font-size: 14px;
    color: #cbd5e1; /* 浅灰 */
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-terms-social__social-networks a:active {
    background: #f3f4f6;
    color: #f59e0b;
  }
}

/* ���������ƶ����Ż� */
@media (max-width: 768px) {
  .page-main {
    padding: 0;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .btn, button {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .btn:active, button:active {
    transform: scale(0.98);
  }
}

/* ����Ԫ���ƶ����Ż� */
@media (max-width: 768px) {
  input, textarea, select {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease;
  }

  input:focus, textarea:focus, select:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  }

  label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
  }
}

/* ��Ƭ�������ƶ����Ż� */
@media (max-width: 768px) {
  .card, .dashboard-card {
    margin: 0 0 16px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ͼƬ�ƶ����Ż� */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .hero-image, .feature-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }
}

/* �����Ż� */
@media (max-width: 768px) {
  .scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }

  ::-webkit-scrollbar {
    width: 4px;
  }

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

  ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}

/* �����Ż� */
@media (max-width: 768px) {
  .top-menu,
  .more-dropdown__content,
  .page-footer {
    will-change: transform;
  }

  .site-header,
  .top-menu-burger,
  .top-menu__link {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

/* �ɷ������Ż� */
@media (max-width: 768px) {
  .top-menu-burger,
  .top-menu__link,
  .footer-links__link {
    min-height: 44px;
    min-width: 44px;
  }

  @media (prefers-contrast: high) {
    .top-menu__link {
      border: 2px solid #000;
    }
    
    .top-menu__link:active {
      background: #000;
      color: #fff;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .top-menu,
    .top-menu-burger,
    .top-menu__link {
      transition: none;
      animation: none;
    }
  }
}

/* �����Ż� */
@media (max-width: 768px) and (orientation: landscape) {
  .top-menu {
    padding: 60px 20px 20px;
  }

  .top-menu__links-section {
    margin-bottom: 16px;
    padding: 12px;
  }

  .site-logo {
    height: 50px;
  }
}

/* 末尾追加：提升优先级的移动端适配 */
@media (max-width: 768px) {
  /* 顶部菜单：统一使用 translateX 模式，避免与上方样式冲突 */
  .top-menu { display: block; }
  .top-menu:not(.active) {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  .top-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  /* 移动端：防止内容被容器裁切 */
  .top-message,
  .section-common,
  .food-security__section,
  .data-harvesting__section {
    overflow: visible !important;
    height: auto;
  }

  /* 页脚条款与社交：与donate.html保持一致 */
  .footer-terms-social { 
    gap: 16px !important; 
    padding: 20px 16px !important; 
    text-align: left !important;
    margin-top: 24px !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
  }
  .footer-terms-social__social-networks { 
    display: flex !important; 
    justify-content: flex-start !important; 
    gap: 12px !important; 
    flex-wrap: wrap !important;
  }
  .footer-terms-social__social-networks a { 
    padding: 8px 12px !important; 
    background: transparent !important; 
    border-radius: 6px !important; 
    color: #cbd5e1 !important; 
    text-align: left !important;
    transition: all 0.2s ease !important;
  }
  .footer-terms-social__social-networks a:hover {
    color: #ffffff !important;
  }
}
