/* ========== 全站通用样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    text-align: center;
}

main {
    flex: 1;
}

/* ========== 通用容器样式 ========== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== 顶部导航栏（修复高度不生效+统一样式） ========== */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 12px 0; /* 想要更矮改6px 0，更高改12px 0 */
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex; /* 强制垂直居中，避免内部元素撑高 */
    align-items: center; /* 文字/Logo垂直居中 */
    min-height: 50px; /* 强制控制导航栏最小高度，改这个数值直接变高/矮 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* 确保容器占满header宽度 */
}

header h1 {
    color: #16a34a;
    font-size: 24px;
    margin: 0; /* 清除默认margin，避免撑高 */
    line-height: 1; /* 取消行高影响 */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0; /* 清除默认margin */
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    line-height: 1; /* 取消行高影响 */
}

header nav ul li a:hover {
    color: #22c55e;
}

header nav ul li a.active {
            color: #22c55e;
            font-weight: 600;
        }
/* ========== 弹窗样式（修复背景模糊+保留轻微模糊）- 删掉重复的none属性 ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.1);
  backdrop-filter: blur(4px); /* 轻微模糊，改数值调整程度 */
  -webkit-backdrop-filter: blur(4px); /* Safari兼容 */
  z-index: 9999;
  overflow: auto;
  /* 已删除：多余的 backdrop-filter: none; 修复模糊失效问题 */
}


/* ========== Footer 样式（绿色系优化） ========== */
footer {
    background-color: #16a34a; /* 深绿背景 */
    color: white; /* 白色文字 */
    text-align: center;
    padding: 5px 0;
    width: 100%;
    border-top: 1px solid #22c55e; /* 亮绿边框 */
    margin-top: auto;
}

footer a {
    color: #f0fdf4; /* 浅绿链接 */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: white;
}

/*=========================== 主页专属样式 ========================*/
/* 统一所有板块的容器样式 */
.hero .container,
.introduction-section .container {
  background-color: #f0fdf4;
  box-shadow: 0 2px 5px rgba(167, 243, 208, 0.1);
  border-radius: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 统一板块标题样式 */
.hero h2,
.introduction-section h2,
.resource h2,
.team-section h2 {
  color: #065f46;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

/* 调整板块间距 */
.hero,
.introduction-section,
.resource,
.team-section {
  padding: 20px 0;
  margin: 20px 0;
}


.hero p {
    color: #065f46;
    font-size: 16px;
}

.introduction-section .intro-content {
    font-size: 15px;
    text-align: left;
    padding: 0 10px;
}

.introduction-section p {
    color: #065f46;
    line-height: 1.8;
    margin-bottom: 20px;
}

.introduction-section .read-more-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 0; 
    padding: 10px 20px;
    background-color: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

.introduction-section .read-more-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

/* 适生区域图展示区样式 */
    .map-section {
      padding: 20px 0;
      margin: 20px 0;
    }
    .map-section .container {
      background-color: #f0fdf4;
      box-shadow: 0 2px 5px rgba(167, 243, 208, 0.1);
      border-radius: 8px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }
    .map-section h2 {
      color: #065f46;
      font-size: 24px;
      margin-bottom: 15px;
      text-align: center;
      position: relative;
    }
    .map-section h2::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 2px;
      background-color: #22c55e;
    }
    .map-container {
      text-align: center;
      margin-top: 20px;
    }
    .map-container img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    }
    .map-caption {
      margin-top: 10px;
      color: #065f46;
      font-size: 15px;
    }

/* 主标题样式 + 优化后滚动效果（偏移更大、动画更快） */
.custom-internal-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  /* 优化：偏移从30px→60px，时长0.8s→0.5s，加ease-out更丝滑 */
  opacity: 0;
  transform: translateY(60px); /* 偏移翻倍，动态更明显 */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* 时长缩短，更干脆 */
}
/* 副标题样式 + 优化后滚动效果（同步调整，延迟不变保层次） */
.custom-header-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  max-width: 800px;
  /* 优化：偏移从30px→60px，时长0.8s→0.5s */
  opacity: 0;
  transform: translateY(60px); /* 和主标题偏移一致，视觉统一 */
  transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s; /* 延迟缩短到0.1s，衔接更紧 */
}
/* 滚动后文字显示的类（原有代码，不用改） */
.header-animate .custom-internal-title,
.header-animate .custom-header-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* 主页背景图 核心头部容器（优化背景淡入，更快更明显） */
.custom-internal-header {
  width: 100%;
  min-height: 450px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden; /* 必须保留，防止背景放大后溢出 */
  opacity: 0;
  /* 关键：把transition改成all，让背景变化也有过渡（原有是opacity单独过渡） */
  transition: all 0.6s ease-out; 
}
/* 滚动后背景显示的类（原有代码，不用改） */
.header-animate {
  opacity: 1;
}

/* 你原有背景图的其他CSS代码（不用动） */
.custom-header-container {
  width: 100%;
  height: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
}
/* 原有背景图样式，添加2行基础属性 */
.has-background-image {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  transform: scale(1); /* 新增：初始缩放1倍（原始大小） */
  filter: brightness(1); /* 新增：初始亮度100%（原始亮度） */
  transition: all 0.8s ease-out; /* 新增：背景变化的过渡，比文字稍慢，更自然 */
}

/* 核心：滚动后（添加header-animate类），背景图轻微放大+亮度微降 */
.header-animate .has-background-image {
  transform: scale(1.08); /* 滚动后放大1.08倍，轻微缩放不突兀（推荐1.05-1.1之间） */
  filter: brightness(0.92); /* 滚动后亮度92%，微暗突出文字（推荐0.9-0.95之间） */
}
.has-background-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* ========== 主页头部三张背景图轮播 - 淡入淡出动画 适配现有样式 ========== */
.custom-internal-header {
  /* 覆盖原有单背景，启用轮播容器样式 */
  background: none !important;
  position: relative;
  overflow: hidden;
}
/* 轮播背景图容器 - 三张图的父容器 */
.bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* 每张背景图的基础样式 - 继承你原有has-background-image的核心属性 */
.bg-slideshow .bg-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* 淡入淡出动画时长，可微调 */
  z-index: 1;
}
/* 激活的背景图 - 显示 */
.bg-slideshow .bg-item.active {
  opacity: 1;
  z-index: 2;
}
/* 保留你原有背景图的遮罩和滚动放大效果 - 完全兼容 */
.bg-slideshow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
}
/* 滚动后依然保留背景图放大+降亮度效果 - 和你原有逻辑一致 */
.header-animate .bg-item {
  transform: scale(1.08);
  filter: brightness(0.92);
  transition: all 0.8s ease-out;
}
/* 响应式适配 - 手机端背景图不放大，避免变形 */
@media (max-width: 576px) {
  .header-animate .bg-item {
    transform: scale(1) !important;
  }
}

/* 公众号二维码固定右下角样式  */
    .wechat-qrcode-fixed {
      position: fixed; /* 固定位置，滚动页面不移动 */
      right: 20px;     /* 距离右侧20px */
      bottom: 25px;    /* 距离底部20px */
      z-index: 9999;   /* 置顶显示，不被其他内容遮挡 */
      text-align: center;
      padding: 10px;
      background: #fff; /* 白色背景，让二维码更清晰 */
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 轻微阴影，更美观 */
    }
    /* 二维码尺寸，适配电脑+手机 */
    .wechat-qrcode-fixed img {
      width: 110px;
      height: 110px;
      display: block;
      margin: 0 auto 8px; /* 二维码和文字之间留间距 */
    }
    /* 文字样式，适配整体风格 */
    .wechat-qrcode-fixed p {
      margin: 0;
      font-size: 14px;
      color: #333; /* 深灰色文字，和网站风格统一 */
      line-height: 1.4;
    }
    /* 手机端适配，缩小一点二维码 */
    @media (max-width: 768px) {
      .wechat-qrcode-fixed img {
        width: 100px;
        height: 100px;
      }
      .wechat-qrcode-fixed p {
        font-size: 12px;
      }
    }

/* ====================== Resource 页面专属样式 ====================== */
.resource .container {
  background-color: #f0fdf4;
  box-shadow: 0 2px 5px rgba(167, 243, 208, 0.1);
  border-radius: 8px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.resource p {
  color: #065f46;
  font-size: 16px;
  line-height: 1.7;
}

.pdf-viewer {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #f0fdf4 !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(167, 243, 208, 0.1);
}

.online-fill-btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    background-color: #22c55e;
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.online-fill-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
}


/* ====================== About + Collaboration + Personnel 三板块统一样式 ====================== */
/* 公共基础样式（三个板块外层容器完全统一） */
.about-pdish-section,
.team-section {
    padding: 20px 0 !important;
    margin: 18px 0;
    background-color: #f9f9f9 !important;
    max-width: none;
    box-shadow: none;
}
/* 内层绿色容器（三个板块完全统一） */
.about-pdish-section .container,
.team-section .container {
    background-color: #f0fdf4;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border: none;
    transition: none;
    box-shadow: 0 2px 5px rgba(167, 243, 208, 0.1);
}
/* ========== About板块大标题 - 基础样式 ========== */
.about-pdish-section h2 {
    color: #065f46 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    position: relative !important;
    font-weight: 700 !important; /* 强制加粗（你截图里About实际是加粗的） */
    line-height: 1.3 !important;  /* 统一行高，避免横线错位 */
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
/* About标题底部短横线 */
.about-pdish-section h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -6px !important;    /* 精准对齐截图里的横线位置 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 2px !important;     /* 横线粗细和About保持一致 */
    background-color: #22c55e !important;
    border: none !important;
}

/* ========== Personnel板块大标题 - 1:1复制About，强制一致 ========== */
.team-section h2 {
    color: #065f46 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    position: relative !important;
    font-weight: 700 !important; /* 和About一样强制加粗 */
    line-height: 1.3 !important;  /* 行高完全一致，横线不错位 */
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
/* Personnel标题底部短横线 - 像素级复制About */
.team-section h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -6px !important;    /* 和About横线位置完全一样 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 2px !important;     /* 和About横线粗细完全一样 */
    background-color: #22c55e !important;
    border: none !important;
}


/* ------------------------------ About 板块专属样式 ------------------------------ */
.about-pdish-content {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    transition: all 0.3s ease;
    font-size: 15px;
    text-align: left;
    color: #000;
    line-height: 1.8;
}
.about-pdish-content:hover {
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

/* ------------------------------ Collaboration 板块专属样式 ------------------------------ */
.collab-team {
    margin-top: 1rem;
    gap: 2.5rem;
    display: flex;
    flex-direction: column;
}
.collab-member {
    position: relative;
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 20px;
    padding-left: 230px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    transition: all 0.3s ease;
    min-height: 280px;
}
.collab-member:hover {
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}
.collab-img {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.1);
    border: 2px solid #f0fdf4;
    z-index: 1;
}
.collab-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.collab-img:hover img {
    transform: scale(1.03);
}
.collab-info {
    width: 100%;
    text-align: left;
    z-index: 0;
}
.collab-info h3,
.collab-info h4,
.collab-info p,
.collab-info p strong {
    color: #000 !important;
}
.collab-info h3 {
    font-size: 20px;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.collab-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 1rem 0;
}
.collab-info p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.collab-info p:last-child {
    margin-bottom: 0;
}

/* ------------------------------ Personnel 板块专属样式（已对齐） ------------------------------ */
.team-group .group-title {
    color: #16a34a;
    font-size: 22px;
    margin: 25px 0 15px 0;
    text-align: left;
    padding-left: 15px;
    position: relative;
}
.team-group .group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}
.team-members {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.team-member {
    background: #ffffff;
    border: 1px solid #dcfce7;
    padding: 20px; /* 和About/Collab卡片内边距统一 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    flex: 1 1 calc(16.666% - 15px);
    max-width: calc(16.666% - 15px);
    min-width: 110px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
/* Personnel卡片hover：与About/Collab完全统一 */
.team-member:hover {
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    transform: none; /* 移除偏移，保持一致 */
}
.team-member img {
    width: 100%;
    max-width: 95px;
    height: 95px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.1);
    border: 2px solid #f0fdf4;
}
.team-member h3 {
    color: #065f46;
    font-size: 16px;
    margin: 5px 0 8px;
}
.team-member p {
    color: #14532d;
    font-size: 14px;
    line-height: 1.5;
}
.modal-body .info-item {
    margin-bottom: 15px;
    text-align: left;
}
.modal-body .info-value {
    display: block;
    margin-top: 5px;
    color: #14532d;
    line-height: 1.6;
}

/* ------------------------------ 响应式适配（三板块统一逻辑） ------------------------------ */
@media (max-width: 768px) {
    /* Collab适配 */
    .collab-member {
        position: static;
        padding-left: 20px;
        min-height: auto;
        text-align: center;
    }
    .collab-img {
        position: static;
        width: 180px;
        height: 220px;
        margin: 0 auto 20px;
    }
    .collab-info {
        text-align: left;
    }
    /* Personnel适配 */
    .team-members {
        gap: 10px;
    }
    .team-member {
        flex: 1 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        min-width: 100px;
        padding: 15px 10px;
    }
    .team-member img {
        max-width: 70px;
        height: 70px;
    }
}
/* ====================== Service 页面专属样式 ====================== */
/* 核心布局 - 左侧侧边栏 + 右侧内容 */
.layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

/* 左侧侧边导航栏 */
.sidebar {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a7f3d0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav li a {
    display: block;
    padding: 10px 15px;
    color: #065f46;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

/* 右侧服务模块区域 */
.content-area {
    padding: 10px 0;
}

.service-category {
    display: none; /* 默认隐藏所有分类 */
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
}

.service-category.active {
    display: block; /* 激活的分类显示 */
}

.category-title {
    font-size: 24px;
    color: #065f46;
    margin-bottom: 20px;
    border-left: 4px solid #22c55e;
    padding-left: 15px;
    font-weight: 600;
}

.service-module {
    margin-bottom: 25px;
}

.module-title {
    font-size: 18px;
    color: #16a34a;
    margin-bottom: 10px;
}

.module-desc {
    color: #14532d;
    margin-bottom: 15px;
    line-height: 1.7;
}

.service-btn {
    display: inline-block;
    background-color: #22c55e;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.service-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}



/* 病害识别页面样式 */
h1 {
    color: #065f46;
    background-color: #ffffff;
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #22c55e;
    padding-left: 15px;
}

.model-container {
    margin-bottom: 60px;
}

.model-select {
    padding: 8px 15px;
    font-size: 16px;
    width: 400px;
    border: 1px solid #dcfce7;
    border-radius: 6px;
    background-color: #f0fdf4;
    color: #065f46;
}

.content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-section, .result-section {
    width: 550px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    border: 1px solid #dcfce7;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 350px;
    border: 2px dashed #dcfce7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0fdf4;
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 按钮通用样式 */
button, .btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #22c55e;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

button:hover, .btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

/* PDF 链接样式 */
a[href$=".pdf"]:link {
  color: #16a34a;
  text-decoration: none;
}

a[href$=".pdf"]:visited {
  color: #065f46;
}

a[href$=".pdf"]:hover {
  color: #22c55e;
  text-decoration: underline;
  font-weight: bold;
}

.pdf-viewer a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    background-color: #f0fdf4;
    color: #065f46;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pdf-viewer a:hover {
    background-color: #22c55e;
    color: white;
    transform: translateY(-2px);
}

/* 表格样式 */
.basic-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.basic-info-table td {
    border: 1px solid #dcfce7;
    padding: 12px 15px;
    vertical-align: top;
    color: #14532d;
}
.basic-info-table .label {
    width: 120px;
    font-weight: 600;
    background: #f0fdf4;
    line-height: 28px;
    color: #065f46;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.1); /* 降低遮罩层透明度，避免太暗 */
  backdrop-filter: blur(8px); /* 核心：背景模糊，4px是轻微模糊，可调整为2-8px */
  -webkit-backdrop-filter: blur(4px); /* 兼容Safari浏览器 */
  z-index: 9999;
  overflow: auto;
}

.modal-content {
  background-color: #ffffff;
  margin: 3% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 650px;
  position: relative;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.15);
  border: 1px solid #dcfce7;
  animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 优化弹窗内容排版 */
.modal-body {
  padding: 30px;
  color: #14532d;
  line-height: 1.7;
  max-height: 70vh; /* 限制弹窗高度，避免超出屏幕 */
  overflow-y: auto; /* 内容过多时显示滚动条 */
}

.info-item {
  margin-bottom: 18px;
  text-align: left;
}


@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px) scale(0.95);}
  to {opacity: 1; transform: translateY(0) scale(1);}
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: 300;
  color: #6b7280;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.close-btn:hover {
  color: #22c55e;
  background-color: #f0fdf4;
}

.modal-header {
  text-align: center;
  padding: 40px 30px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px 16px 0 0;
}

.modal-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.modal-header h2 {
  margin: 0 0 8px 0;
  color: #065f46;
  font-size: 28px;
  font-weight: 600;
}

.position-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: #22c55e;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.modal-body {
  padding: 30px;
  color: #14532d;
  line-height: 1.7;
}

.info-label {
  font-weight: 600;
  color: #22c55e;
  font-size: 15px;
  margin-bottom: 6px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #f0fdf4;
  text-align: center;
}

.resume-btn {
  background-color: #22c55e;
  color: white !important; /* 强制白色字体，避免被覆盖 */
  border: none;
  padding: 6px 22px;
  border-radius: 25px; /* 大圆角，彻底告别方形（数值越大越圆） */
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none; /* 若按钮是a标签，去除下划线 */
  display: inline-block; /* 确保padding和圆角生效 */
}

.resume-btn:hover {
  background-color: #16a34a;
  color: white !important; /* hover时仍保持白色字体 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* ====================== 响应式设计 ====================== */
@media (max-width: 768px) {
    /* 导航栏响应式 */
    header .container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px; /* 响应式同步调整内边距 */
    }
    header nav ul {
        gap: 15px;
    }
    header h1 {
        line-height: 1; /* 小屏时取消固定行高，避免导航栏过高 */
    }

    /* Service 页面响应式 */
    .layout-grid {
        grid-template-columns: 1fr;
        width: 95%;
    }
    .sidebar {
        position: static;
        margin-bottom: 20px;
        top: 0;
    }

    /* 病害识别页面响应式 */
    .content {
        flex-direction: column;
        align-items: center;
    }
    .upload-section, .result-section {
        width: 90%;
    }
    .model-select {
        width: 90%;
    }
    .image-frame {
        height: 250px;
    }

    /* People 页面响应式 */
    .team-section .container {
        width: 90%;
        padding: 15px;
    }
    .team-member {
        flex: 1 1 140px;
        max-width: 160px;
    }
    .team-member img {
        max-width: 100px;
        height: 100px;
    }

    /* Resource 页面响应式 */
    .resource .container,
    .pdf-viewer {
        width: 90%;
        padding: 15px;
    }

    /* 弹窗响应式 */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .modal-img {
        width: 120px;
        height: 120px;
    }
}

/* 全局响应式适配 + 头部背景图响应式适配 合并版 */
@media (max-width: 992px) {
    /* 头部背景图：平板尺寸调整 */
    .custom-internal-header {
        min-height: 220px;
    }
    .custom-internal-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* 全局布局：平板/小屏适配 */
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-bottom: 20px;
        top: 0;
    }
    header .container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    header nav ul {
        gap: 15px;
    }
    header h1 {
        line-height: 1;
    }

    /* 头部背景图：同断点同步调整 */
    .custom-internal-header {
        min-height: 180px;
    }
    .custom-internal-title {
        font-size: 2rem;
    }
    .custom-header-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* 头部背景图：手机小屏极致适配 */
    .custom-internal-header {
        min-height: 150px;
    }
    .custom-internal-title {
        font-size: 1.8rem;
    }
    .has-background-image {
        background-attachment: scroll !important; /* 手机端恢复正常滚动 */
    }
}

/* 乡村振兴政策文件专属样式 - 适配全站绿色系 */
.policy-document {
    margin: 20px auto;
    padding: 20px;
}

.policy-document h2 {
    color: #065f46 !important;
    font-size: 24px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    position: relative !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.policy-document h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 2px !important;
    background-color: #22c55e !important;
}

.policy-document .about-pdish-content {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(167, 243, 208, 0.1);
    font-size: 15px;
    text-align: left;
    color: #14532d;
    line-height: 1.8;
}

.policy-document .section-title {
    color: #16a34a !important;
    font-size: 18px !important;
    margin: 25px 0 15px 0 !important;
    font-weight: 600 !important;
}

.policy-document p {
    margin-bottom: 15px;
    text-align: justify;
}

.policy-document strong {
    color: #065f46;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .policy-document .about-pdish-content {
        padding: 15px;
    }
    
    .policy-document h2 {
        font-size: 20px !important;
    }
}