@charset "UTF-8";
:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --dark-color: #333;
  --light-color: #f5f5f5;
  --gray-color: #666;
  --accent-color: #ff7a50;
}

body {
  font-family: 'Microsoft Yahei', sans-serif;
  color: var(--dark-color);
  line-height: 1.8;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: white !important;
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  margin-left: 1.5rem;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* 通用区块样式 */
.section {
  padding: 7rem 0 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: var(--dark-color);
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title p {
  margin-top: 2rem;
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 面包屑导航 */
.breadcrumb-nav {
  padding: 1rem 0;
  background-color: var(--light-color);
  font-size: 0.9rem;
}
.breadcrumb-nav .container {
  display: flex;
  align-items: center;
}
.breadcrumb-nav a {
  color: var(--gray-color);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-nav a:hover {
  color: var(--primary-color);
}
.breadcrumb-nav .separator {
  margin: 0 10px;
  color: var(--gray-color);
}
.breadcrumb-nav .current {
  color: var(--primary-color);
  font-weight: 500;
}

/* 新闻列表 */
.news-section {
  padding: 4rem 0 7rem;
  background-color: white;
}

.news-container {
  display: flex;
  gap: 3rem;
}

.news-list {
  flex: 2; /* 主内容区占 2/3 */
}

.news-sidebar {
  flex: 1; /* 侧边栏占 1/3 */
}

.news-item {
  display: flex;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img {
  flex: 1;
  min-width: 250px;
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-img img {
  transform: scale(1.05);
}

.news-content {
  flex: 2;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.news-meta span {
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.news-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--dark-color);
  transition: color 0.3s;
}

.news-item:hover .news-title {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  align-self: flex-start;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.read-more:hover {
  color: #0d62d0;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.pagination .page-item {
  margin: 0 5px;
}

.pagination .page-link {
  color: var(--dark-color);
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.7rem 1.2rem;
  transition: all 0.3s;
}

.pagination .page-link:hover {
  background-color: var(--light-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* 侧边栏 */
.sidebar-widget {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--light-color);
  color: var(--dark-color);
  position: relative;
}

.widget-title:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

/* 搜索框 */
.search-form {
  display: flex;
}

.search-form input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-form input:focus {
  border-color: var(--primary-color);
}

.search-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-form button:hover {
  background-color: #0d62d0;
}

/* 热门标签 */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background-color: var(--light-color);
  color: var(--gray-color);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.tag.active {
  background-color: var(--primary-color);
  color: white;
}

/* 最新文章 */
.recent-posts {
  list-style: none;
  padding: 0;
}

.recent-post-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-item:hover {
  transform: translateX(5px);
}

.recent-post-img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--dark-color);
  transition: color 0.3s;
}

.recent-post-item:hover .recent-post-info h4 {
  color: var(--primary-color);
}

.recent-post-date {
  font-size: 0.8rem;
  color: var(--gray-color);
}
/* 联系表单 */
.contact-section {
  background-color: white;
}

.contact-form {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
  width: 100%;
}

.contact-form .btn-primary:hover {
  background-color: #0d62d0;
  border-color: #0d62d0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
}

.contact-info {
  padding: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(26, 115, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-content h4 {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.info-content p {
  color: var(--gray-color);
  font-size: 0.95rem;
}

.contact-social {
  margin-top: 2rem;
}

.contact-social h4 {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 115, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s;
}

.social-link:hover i {
  color: white;
}

/* 页脚 */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-logo {
  font-weight: bold;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.footer-logo i {
  margin-right: 10px;
  font-size: 2rem;
  color: var(--primary-color);
}

.footer p {
  color: #ccc;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.footer-title {
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links a {
  color: #ccc;
  display: block;
  margin-bottom: 0.8rem;
  transition: all 0.3s;
  font-size: 0.95rem;
  text-decoration:none;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #444;
  color: #ccc;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .section {
	padding: 5rem 0 3rem;
  }
  
  .news-container {
	flex-direction: column;
  }
  
  .news-item {
	flex-direction: column;
  }
  
  .news-img {
	min-width: 100%;
	height: 250px;
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
	background-color: white;
	box-shadow: 0 10px 15px rgba(0,0,0,0.05);
	padding: 1rem;
	border-radius: 10px;
	margin-top: 1rem;
  }
  
  .nav-link {
	margin-left: 0;
	padding: 0.8rem 0;
  }
  
  .section-title h2 {
	font-size: 1.8rem;
  }
  
  .news-content {
	padding: 1.5rem;
  }
  
  .news-title {
	font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .news-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
  }
  
  .sidebar-widget {
	padding: 1.5rem;
  }
}