.widget.about {
  margin-bottom: 2rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget.about .widget-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 2px solid #2956a3;
  padding-bottom: 0.5rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 2px solid #2956a3;
}

.about-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.about-divider {
  width: 50%;
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1rem auto;
}

.about-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.about-social a {
  font-size: 0.85rem;
  color: #2956a3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.about-social a:hover {
  color: #1a3c7a;
  text-decoration: underline;
}

.about-social i {
  font-size: 1rem;
}

.widget.ad.card {
  margin-bottom: 2rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget.ad.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #2956a3, #3b6db5);
  color: #ffffff;
}

.card-header i {
  font-size: 1.2rem;
}

.card-header .widget-title {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin: 0;
}

.card-body {
  padding: 1rem;
  text-align: center;
}

.ad-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.ad-image-link {
  display: block;
  margin: 0.5rem 0;
}

.ad-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.ad-image:hover {
  opacity: 0.9;
}

.ad-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: #2956a3;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.ad-button:hover {
  background: #1a3c7a;
}

.ad-button i {
  font-size: 0.9rem;
}

/* 顶部横幅容器 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
  flex-wrap: wrap; /* 允许小屏幕换行 */
}

/* 横幅容器 */
.custom-banner {
  margin-left: auto;
  margin-right: 1rem;
  max-width: 100%; /* 防止溢出 */
}

/* 横幅图片 */
.banner-image {
  max-width: 100%; /* 自适应容器宽度 */
  height: auto; /* 保持宽高比 */
  border-radius: 4px;
  transition: opacity 0.3s ease;
  display: block; /* 确保块级行为 */
  max-width: 400px; /* 大屏幕最大宽度 */
}

/* 悬停效果 */
.banner-image:hover {
  opacity: 0.9;
}

/* 小屏幕调整 */
@media (max-width: 480px) {
  .custom-banner {
    margin-right: 0.5rem; /* 缩小边距 */
  }
  .header-top {
    justify-content: center; /* 小屏幕居中 */
  }
}

/* 强制菜单背景一致 */
.menu__list,
.menu__btn,
.menu__item,
.menu__list--shown {
  background-color: #4a668b !important;
}