* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background-color: #b71c1c;
  color: white;
  padding: 1rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 90px;
  padding-left: 30px;
}

header h1 {
  font-size: 1.8rem;
  margin-left: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffeb3b;
}

#hero {
  padding: 2rem 0;
  background-color: #fff;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #b71c1c;
}

#news {
  padding: 2rem 0;
  background-color: #f1f1f1;
}

#news h2 {
  margin-bottom: 1rem;
  color: #b71c1c;
}

#news ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

#about-content, #contact-content {
  padding: 2rem 0;
  background-color: #fff;
}

.about-img, .contact-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0;
}

.contact-info {
  list-style: none;
  margin-top: 1rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

/* footer { */
  /* background-color: #333; */
  /* color: white; */
  /* text-align: center; */
  /* padding: 1rem 0; */
  /* margin-top: 2rem; */
/* } */

/* 联络我们页面样式 */
#contact-page {
  padding: 3rem 0;
}

#contact-page h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  font-size: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-item {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.icon-circle {
  width: 70px;
  height: 70px;
  /*border: 2px solid #b71c1c;*/
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon-circle svg {
  width: 70px;
  height: 70px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-item p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.5;
}

.map-link {
  color: #007bff;
  text-decoration: underline;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.map-link:hover {
  color: #0056b3;
}

/* 底部固定版权信息 */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
}

.footer-container p {
  margin: 0;
  font-size: 14px;
}

/* 导航栏样式优化 */
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px; /* 调整菜单项间距 */
}

header nav ul li a {
    color: #fff; /* 白色文字 */
    text-decoration: none;
    font-size: 16px;
    padding: 7px 10px; /* 增加内边距使点击区域更大 */
    transition: all 0.3s ease; /* 平滑过渡效果 */
    position: relative;
}

/* 当前页面（选中状态）样式 */
header nav ul li a.active,
header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* 半透明白色背景 */
    border-radius: 4px; /* 圆角效果 */
}

/* 当前页面文字变为黄色 */
header nav ul li a.active {
color: #FFD700; /* 金黄色文字 */
font-weight: bold; /* 加粗显示 */
}

/* 可选：添加底部下划线效果 */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffcc00; /* 金黄色下划线 */
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 80%; /* 下划线展开宽度 */
}