body {
  font-family: "Microsoft YaHei", sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #444;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.site-header {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  padding: 22px 0;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-nav {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
}

.banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* 轮播图样式 */
.banner-container {
  max-width: 1160px;
  margin: 30px auto 0;
  padding: 0 25px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #fff;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.carousel-item {
  position: absolute; /*绝对定位叠放*/
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out; /*淡出淡入动画*/
}

.carousel-item.active {
  opacity: 1; /* 显示当前项 */
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.carousel-indicators button.active {
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0078d4;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px auto;
  max-width: 1160px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h2 {
  margin-top: 0;
  color: #0078d4;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.card p {
  color: #666;
  margin-bottom: 25px;
}

.site-footer {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 25px 0;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-top: 30px;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 70%;
  max-width: 800px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 25px;
  top: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #0078d4;
}

.modal h2 {
  color: #0078d4;
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.thoughts-content {
  margin-top: 20px;
}

.thought-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.thought-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thought-item h3 {
  color: #333;
  margin-bottom: 10px;
}

.thought-item p {
  color: #666;
  line-height: 1.7;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}