/* 机构页面样式 */
.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.institution-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.institution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.institution-card h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.3em;
}

.card-body {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.institution-summary {
  color: #34495e;
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.6;
}

.institution-meta {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #7f8c8d;
  font-size: 0.85rem;
}

.location, .nature {
  font-size: 0.9em;
  color: #7f8c8d;
}

.meta-value {
  font-weight: bold;
  color: #2c3e50;
}

.enter-btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px;
  background: #3498db;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.enter-btn:hover {
  background: #2980b9;
  text-decoration: none;
}

/* 独特的机构横幅样式 */
.institutions-banner {
  background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.institutions-banner h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: bold;
}

.institutions-banner p {
  margin: 10px 0 0;
  font-size: 1.2em;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .institutions-banner h1 {
    font-size: 2em;
  }
  
  .institutions-banner p {
    font-size: 1em;
  }
  
  .institution-grid {
    grid-template-columns: 1fr;
  }
}

/* 新增：新闻首页横幅样式 */
.news-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.news-banner h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

.news-banner p {
    margin: 10px 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .news-banner h1 {
        font-size: 2em;
    }
    
    .news-banner p {
        font-size: 1em;
    }
    
    .institution-grid {
        grid-template-columns: 1fr;
    }
}

/* 引用新闻CSS中的样式 */
body {
    line-height: 2;
}

.news-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2em 0;
    text-align: center;
    margin-bottom: 2em;
}

.news-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #2c3e50;
}

.news-header p {
    font-size: 1.2em;
    margin: 0.5em 0 0 0;
    color: #7f8c8d;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-body {
    padding: 1.5em;
}

/* 保持与其他页面一致的页眉页脚样式 */
.header {
    position: relative;
    z-index: 10;
}

.site-footer {
    margin-top: 3em;
}