/* 全局样式 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #00a0e9;
  --accent-color: #5cb85c;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --text-color: #333;
  --border-radius: 4px;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f4f7fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: #f1f1f1;
  color: var(--secondary-color);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.center {
  text-align: center;
  margin-top: 2rem;
}

/* 头部样式 */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 15px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 0;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  font-weight: bolder;
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  padding: 10px 15px;
  display: block;
  color: var(--dark-color);
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 160, 233, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* 特色区域 */
.features {
  padding: 80px 0;
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* 新闻区域 */
.news {
  padding: 80px 0;
  background-color: #f4f7fa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.news-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.news-content .date {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* 号召性用语区域 */
.cta {
  background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 160, 233, 0.9)), url('../images/cta-bg.jpg') no-repeat center center/cover;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 页脚 */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 12px;
  margin-left: 64px;
}

.footer-logo h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* 实验室简介页面样式 */
.page-header {
  background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 160, 233, 0.8)), url('../images/page-header-bg.jpg') no-repeat center center/cover;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
}

.breadcrumb li {
  margin: 0 5px;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: white;
}

.content-section {
  padding: 80px 0;
  background-color: white;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.content-container-con {
  max-width: 900px;
  margin: 0 auto; 
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.content-section h5 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #343A40;
  text-align: center;
}

.content-section h6 {
  font-size: 0.8rem;
  margin-bottom: 20px;
  color: #6C757D;
  text-align: center;
  font-style: italic;
}

.content-container-con p {
	margin-bottom: 20px;
	line-height: 1.8;
	text-indent: 2em;
}

.content-section p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.content-section ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-section ul li {
  margin-bottom: 10px;
  position: relative;
  list-style-type: disc;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-gallery1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 100px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-gallery1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* 数据共享页面样式 */
.data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.data-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  transition: var(--transition);
}

.data-card:hover {
  transform: translateY(-5px);
}

.data-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.data-card p {
  margin-bottom: 20px;
}

.data-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* 表单样式 */
.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
}

/* 设备展示样式 */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.equipment-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.equipment-card:hover {
  transform: translateY(-5px);
}

.equipment-image {
  height: 200px;
  overflow: hidden;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.equipment-card:hover .equipment-image img {
  transform: scale(1.05);
}

.equipment-details {
  padding: 20px;
}

.equipment-details h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.equipment-details .specs {
  margin: 15px 0;
}

.equipment-details .specs li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.equipment-details .specs li i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* 科普文章样式 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.article-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  margin-bottom: 10px;
}

.article-content .date {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.article-content .excerpt {
  margin-bottom: 15px;
}

/* 期刊查询样式 */
.search-container {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

.search-form {
  display: flex;
  gap: 15px;
}

.search-form .form-control {
  flex: 1;
}

.journal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.journal-table th,
.journal-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.journal-table th {
  background-color: var(--primary-color);
  color: white;
}

.journal-table tbody tr:hover {
  background-color: #f5f5f5;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--box-shadow);
}

.pagination a.active {
  background-color: var(--primary-color);
  color: white;
}

/* 联系我们页面样式 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-card h3 {
  margin-bottom: 15px;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}