/* ====================== 基本样式 ====================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    text-align: center;
}

main {
    flex: 1;
}

/* ====================== Footer 样式 ====================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    bottom: 0;
    width: 100%;
}

/* ====================== 容器 ====================== */
.container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ====================== 导航栏样式 ====================== */
nav {
    background-color: #238b1b;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 100px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #10580b;
}

/*===========================index========================*/
.news-section {
    background-color: #f9f9f9; /* 可自定义背景 */
    padding: 20px 0;
  }
  
  .news-carousel {
    background-color: #fff; /* 可自定义 */
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    font-size: 15px;
  }
  
  .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
  }
  
  .news-list li {
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .news-list a {
    color: #333;
    text-decoration: none;
    display: block;
  }
  
  .news-list a:hover {
    color: #007BFF;
  }
  
  .news-list .date {
    font-size: 13px;
    color: #8e8d8d;
    margin-left: 10px;
  }
  
  
  /* 团队介绍 */
  .team-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
  }
  
  .team-members {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .team-member {
    background: rgb(229, 252, 228);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 150px;
    text-align: center;
  }
  

  .team-member img {
    width: 100%;
    max-width: 100px; /* 控制最大宽度，避免太大 */
    height: auto;
    border-radius: 12px; /* 圆角矩形效果 */
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 可选：加一点阴影更美观 */
}


/* ====================== 下拉菜单 ====================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #238b1b;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
    padding: 5px 10px;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #10580b;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ====================== 病害识别 ====================== */

/* 标题 */
h1 {
    color: #333;
    background-color: #ffffff;
    text-align: left;
}

/* 模型选择区域 */
.model-container {
    margin-bottom: 60px;
}

.model-select {
    padding: 8px;
    font-size: 16px;
    width: 400px;
}

/* 主体内容布局 */
.content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* 上传和检测区域 */
.upload-section,
.result-section {
    width: 550px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 图片框 */
.image-frame {
    position: relative;
    width: 550px;
    height: 350px;
    border: 2px dashed #aaa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 按钮样式 */
button {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background-color: #218838;
}

/* ====================== 响应式设计 ====================== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav ul li {
        display: block;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .upload-section,
    .result-section {
        width: 90%;
    }
}

/* ======================= 超链接设置 ====================== */
/* 未访问的链接 */
a[href$=".pdf"]:link {
  color: #15803d; /* 蓝色 */
  text-decoration: none; /* 去除下划线 */
}

/* 已访问的链接 */
a[href$=".pdf"]:visited {
  color: #7c3aed; /* 紫色 */
}

/* 鼠标悬停时的链接 */
a[href$=".pdf"]:hover {
  color: #ff0000; /* 红色 */
  text-decoration: underline; /* 显示下划线 */
  font-weight: bold; /* 加粗 */
}

.pdf-viewer {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/*   a标签要平均占据该行          */
.pdf-viewer a {
    margin: 20px auto;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



