html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  box-sizing: border-box;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switch a {
  text-decoration: none;
  border-bottom: none;
}
.language-switch img {
  height: 24px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.language-switch a:hover img {
  transform: scale(1.1);
  box-shadow: 0 2px 8px #aaa;
}
.site-logo {
  height: 80px;
}

/* 侧边导航栏 */
.side-nav {
  width: 200px;
  padding: 20px;
  background: linear-gradient(to bottom, #eeeeee, #ffffff);
  font-family: Georgia, serif;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 20px 0;
}

.nav-link {
  text-decoration: none;
  color: #000;
  font-size: 20px;
  text-shadow: 1px 1px 3px #aaa;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-link.active {
  border-bottom: 3px solid darkred;
}

.layout-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.layout-wrapper > footer {
  margin-top: auto;
}

/* content heading */
main h1 {
  border-bottom: 3px solid darkred;
  padding-bottom: 0.2em;
  margin-bottom: 0.8em;
  display: block;
  width: 100%;
  color: darkred;
  font-size: 1.5em;
}

main p {
  line-height: 1.6;
  font-size: 1.2em;
  margin-bottom: 1.2em;
}

main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.2em auto;
}

@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 8px;
  }
  .site-logo {
    height: 60px;
  }
}

/* assets/style.css */
.header-bg {
    width: 100%;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #eee;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 32px 16px 32px; /* 上 右 下 左 */
    box-sizing: border-box;
}

.site-logo {
    height: 80px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    /* 不要设置 margin-right */
}

.language-switch img {
    height: 24px;
}

@media (max-width: 700px) {
  .side-nav {
    width: 100%;
    padding: 10px 0;
    background: #f5f5f5;
    position: relative;
    left: 0;
    top: 0;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    font-size: 12px;
  }
  .nav-list li {
    margin: 0;
  }
  .nav-link {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* 主体布局：宽屏为左右，窄屏为上下 */
.main-content-flex {
  display: flex;
  flex: 1 0 auto;
}

/* 宽屏：侧边栏在左，内容在右 */
@media (min-width: 701px) {
  .main-content-flex {
    flex-direction: row;
  }
  .side-nav {
    width: 200px;
    min-width: 160px;
  }
  main {
    flex: 1;
    padding: 20px;
  }
}

/* 窄屏：导航在上，内容在下 */
@media (max-width: 700px) {
  .main-content-flex {
    flex-direction: column;
  }
  .side-nav {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
  }
  main {
    padding: 12px;
  }
}

.service-box {
  position: relative;
  overflow: hidden;
  max-width: 724px;
  margin: 1.2em auto;
  border: 1px solid black;
  padding: 0; /* 移除内边距，防止撑大比例 */
  background: linear-gradient(white, #f9d976);
  text-align: center;
  font-size: 20px;
  font-family: 'Arial', sans-serif;
  aspect-ratio: 724 / 287; /* 假设图片是660x180，可根据实际图片调整 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.service-box img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.service-box > *:not(img) {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5em;
  box-sizing: border-box;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 1em;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 1em;
}
.social-icon {
  width: 40px !important;
  height: 40px !important;
  display: inline-block;
  vertical-align: middle;
}