body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  /* A fallback background color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  font-weight: bold;
}

/* 1. header制作 */
.shortcut {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  height: 6.25rem;
  /* 100px */
  background-color: #158cba;
  padding: 0 2rem;
  flex-wrap: nowrap;
  font-family: Arial, sans-serif;
}

.left-items {
  display: flex;
  align-items: center;
  margin-left: 4rem;
}

.left-items .logo_box {
  display: flex;
  align-items: center;
  max-width: 3.125rem;
  /* 50px */
}

.left-items .logo_box img {
  width: 100%;
  height: auto;
}

.CN_EN_title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 1.5rem;
}

.CN_EN_title h2 {
  font-size: 1.8rem;
}

.CN_EN_title h5 {
  font-size: 1rem;
}

.right-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  margin-right: 4rem;
}

.right-section a {
  padding-right: 1.25rem;
  white-space: nowrap;
  font-size: 1rem;
  letter-spacing: 0.1rem;
}

/* Media Queries Consistency */

/* Extra small devices (max-width: 576px) */
@media (max-width: 576px) {
  .shortcut {
    flex-direction: column;
    height: auto;
    padding: 0.5rem;
  }

  .left-items {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .right-section {
    width: 70%;
    margin-right: 0;
    justify-content: space-between;
  }

  .left-items .logo_box {
    max-width: 2rem;
    /* 32px */
  }

  .right-section a {
    padding-right: 0.5rem;
    font-size: 0.8rem;
  }

  .CN_EN_title {
    margin-left: 0.25rem;
  }

  .CN_EN_title h2 {
    font-size: 1rem;
  }

  .CN_EN_title h5 {
    font-size: 0.75rem;
  }
}

/* Small devices (min-width: 577px) and (max-width: 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .shortcut {
    padding: 0 4rem;
  }

  .left-items {
    margin-left: 0.5rem;
  }

  .right-section {
    margin-right: 0.5rem;
  }

  .left-items .logo_box {
    max-width: 2.5rem;
    /* 40px */
  }

  .right-section a {
    padding-right: 0.5rem;
    font-size: 0.9rem;
  }

  .CN_EN_title {
    margin-left: 0.25rem;
  }

  .CN_EN_title h2 {
    font-size: 1.2rem;
  }

  .CN_EN_title h5 {
    font-size: 0.8rem;
  }
}

/* Medium devices (min-width: 769px) and (max-width: 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .shortcut {
    padding: 0 4rem;
  }

  .left-items {
    margin-left: 1rem;
  }

  .right-section {
    margin-right: 1rem;
  }

  .left-items .logo_box {
    max-width: 2.5rem;
    /* 40px */
  }

  .right-section a {
    padding-right: 0.75rem;
    font-size: 0.9rem;
  }

  .CN_EN_title {
    margin-left: 1rem;
  }

  .CN_EN_title h2 {
    font-size: 1.6rem;
  }

  .CN_EN_title h5 {
    font-size: 0.9rem;
  }
}

/* Large devices (min-width: 993px) and (max-width: 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  .shortcut {
    padding: 0 1.5rem;
  }

  .left-items {
    margin-left: 1.5rem;
  }

  .right-section {
    margin-right: 1.5rem;
  }
}

/* Extra large devices (min-width: 1201px) */
@media (min-width: 1201px) {
  .shortcut {
    padding: 0 2rem;
  }

  .left-items {
    margin-left: 4rem;
  }

  .right-section {
    margin-right: 4rem;
  }
}

/* 2. 大图制作 */
.big_img_container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
}

.image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.background-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.text-imp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  white-space: nowrap;
}

.text-imp h1 {
  font-size: 5rem;
  margin: 0;
  font-weight: bold;
}

.text-imp .value_text {
  font-size: 2.5rem;
  margin: 0.3em 0;
}

/* Media Queries Consistency */
@media (max-width: 576px) {
  .text-imp h1 {
    font-size: 2rem;
  }

  .text-imp .value_text {
    font-size: 1rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .text-imp h1 {
    font-size: 3rem;
  }

  .text-imp .value_text {
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .text-imp h1 {
    font-size: 3.5rem;
  }

  .text-imp .value_text {
    font-size: 2rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .text-imp h1 {
    font-size: 4rem;
  }

  .text-imp .value_text {
    font-size: 2.3rem;
  }
}

@media (min-width: 1201px) {
  .text-imp h1 {
    font-size: 5rem;
  }

  .text-imp .value_text {
    font-size: 2.5rem;
  }
}

/* 3. 公司简介 */
.company_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 4rem 2rem;
  /* Ensures content fills viewport height */
}

@media (max-width: 576px) {
  .company_container {
    flex-direction: column;
    margin: 5rem 2rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .company_container {
    margin: 5rem 3rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .company_container {
    margin: 8rem 5rem;
    flex-direction: row;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .company_container {
    margin: 8rem 6rem;
  }
}

@media (min-width: 1201px) {
  .company_container {
    margin: 8rem 6rem;
  }
}

.company_image-container {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 769px) {
  .company_image-container {
    margin-bottom: 0;
    margin-right: 1rem;
  }
}

.company_image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.company_text-container {
  width: 100%;
  max-width: 37.5rem;
  padding: 1rem;
}

@media (min-width: 769px) {
  .company_text-container {
    padding: 0;
    margin-left: 1rem;
  }
}

@media (min-width: 1201px) {
  .company_text-container {
    margin-left: 2rem;
  }
}

.company_text-container h1 {
  font-size: 1.5rem;
  color: #4e5c66;
  margin-top: 0;
}

@media (max-width: 576px) {
  .company_text-container h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .company_text-container h1 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .company_text-container h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .company_text-container h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1201px) {
  .company_text-container h1 {
    font-size: 2rem;
  }
}

.line {
  width: 100%;
  height: 0.0625rem;
  background-color: #e6e6e6;
  margin-top: 0.3125rem;
  margin-bottom: 1rem;
}

@media (min-width: 769px) {
  .line {
    margin-bottom: 1.875rem;
  }
}

.company_text-container p {
  font-size: 1rem;
  color: #718696;
  text-align: justify;
  line-height: 1.6rem;
}

@media (max-width: 576px) {
  .company_text-container p {
    font-size: 1rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .company_text-container p {
    font-size: 1rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .company_text-container p {
    font-size: 1.15rem;
    line-height: 2rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .company_text-container p {
    font-size: 1.1rem;
    line-height: 2.2rem;
  }
}

@media (min-width: 1201px) {
  .company_text-container p {
    font-size: 1.1rem;
    line-height: 2.2rem;
  }
}

/* 4. 项目介绍 */
.big_box {
  margin: 0 auto;
  background-color: #f6f7f8;
  padding: 2rem 0.8rem;
}

.program_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2.7rem 2rem;
}

.program_text,
.program_image {
  width: 100%;
}

.program_text {
  margin-right: 1rem;
}

.big_title {
  display: flex;
  align-items: flex-start;
  padding-right: 1.25rem;
}

.big_title h1 {
  font-size: 2rem;
  padding-bottom: 1rem;
}

.sub_title {
  padding-right: 1.25rem;
}

.sub_title h3 {
  color: #4e5c66;
}

.sub_title p {
  padding-bottom: 0.9375rem;
  font-size: 1.1rem;
  line-height: 2.2rem;
  color: #718696;
  text-align: justify;
}

.program_line {
  width: 100%;
  height: 0.0625rem;
  background-color: #e6e6e6;
  margin-top: 0.3125rem;
  margin-bottom: 1.25rem;
}

.program_text {
  display: flex;
  flex-direction: column;
}

.program_text .big_title h1 {
  font-size: 1.5rem;
  color: #4e5c66;
}

.program_image {
  margin-top: 1.25rem;
}

.program_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.625rem;
}

.more_program_button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 9.375rem;
  height: 2.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 0.125rem solid #718696;
  background-color: white;
}

.sub_title a {
  color: #4e5c66;
  background-color: white;
}

.sub_title a:hover {
  font-weight: bold;
}

/* Responsive Styles Consistency */
@media (max-width: 576px) {
  .big_box {
    padding: 1.5rem 0.8rem;
  }

  .program_text .big_title h1 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .sub_title p {
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .sub_title a {
    font-size: 0.9rem;
  }

  .sub_title {
    padding-right: 0;
  }

  .more_program_button {
    width: 7.375rem;
    height: 2.5rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .program_container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .more_program_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 2rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .program_text .big_title h1 {
    font-size: 1.75rem;
  }

  .sub_title p {
    font-size: 1rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .program_container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .program_text,
  .program_image {
    width: 48%;
  }

  .program_image {
    margin-top: 0;
  }

  .program_text .big_title h1 {
    font-size: 2rem;
  }

  .sub_title {
    padding-right: 0;
  }

  .sub_title p {
    font-size: 1.15rem;
    line-height: 2rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .program_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 3.3rem;
    padding-right: 3.3rem;
  }

  .program_text .big_title h1 {
    font-size: 1.75rem;
  }

  .sub_title p {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1201px) {
  .program_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 3.3rem;
    padding-right: 3.3rem;
  }

  .program_text .big_title h1 {
    font-size: 2rem;
  }

  .sub_title p {
    font-size: 1.125rem;
  }
}

/* 5. 价值观 */
.value h1 {
  margin-top: 4.5rem;
  font-size: 1.8rem;
  color: #4e5c66;
  text-align: center;
}

/* Container for the offer cards */
.big-contain {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.125rem 1.25rem;
  margin-bottom: 3rem;
  margin-left: 1rem;
  margin-right: 1rem;
  /* Add gap on the left and right sides */
}

/* Grid layout for the offer cards */
.contain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two columns */
  grid-template-rows: auto auto;
  /* Two rows */
  gap: 1.25rem;
  /* Gap between boxes */
}

/* Individual offer card styling */
.offer-card {
  width: 100%;
  max-width: 18.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border: 0.0625rem solid #e6e6e6;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 0.625rem;
  height: 15rem;
}

/* Image styling */
.offer-card img {
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Heading styling */
.offer-card h4 {
  margin-top: -0.625rem;
  color: #4e5c66;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Paragraph styling */
.offer-card p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  text-align: center;
  color: #718696;
  margin-top: 0.5rem;
}

/* Responsive adjustments Consistency */
@media (max-width: 576px) {
  .value h1 {
    margin-top: 3.5rem;
    font-size: 2rem;
  }

  .contain {
    grid-template-columns: 1fr;
    /* Single column for smaller screens */
    grid-template-rows: auto;
    /* Adjust rows */
  }

  .big-contain {
    padding: 1.25rem;
    margin-bottom: 3rem;
    /* Adjust padding for smaller screens */
  }
}

/* 6. gallery制作 */
.gallery-container {
  background-color: #f6f7f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.125rem 1.25rem;
}

.gallery-container h1 {
  font-size: 1.5rem;
  color: #4e5c66;
  margin-bottom: 1.25rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* Add padding to the left and right */
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0.625rem;
}

.gallery-container a {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 9.375rem;
  height: 2.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 0.125rem solid #718696;
  background-color: white;
  color: #4e5c66;
  font-size: 0.875rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 3.75rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 43.75rem;
}

.close,
.prev,
.next {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
  user-select: none;
  cursor: pointer;
}

.close {
  right: 1.5625rem;
  top: 0.9375rem;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.close:hover,
.prev:hover,
.next:hover {
  color: #bbb;
}

@media (max-width: 576px) {
  .gallery-container h1 {
    font-size: 2rem;
  }

  .gallery-container a {
    font-size: 1rem;
    width: 10rem;
    height: 3rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 0 2rem;
    /* Adjust padding for tablets */
  }

  .gallery img {
    min-height: 15rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .gallery-container h1 {
    font-size: 2.5rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 0 3rem;
    /* Adjust padding for tablets */
  }

  .gallery img {
    min-height: 20rem;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .gallery-container h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 0 5rem;
    /* Adjust padding for tablets */
  }

  .gallery img {
    min-height: 20rem;
  }
}

@media (min-width: 1201px) {
  .gallery-container h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 0 14rem;
    /* Adjust padding for tablets */
  }

  .gallery img {
    min-height: 20rem;
  }
}

/* 7. footer制作 */
footer {
  background-color: #158cba;
  color: #fff;
  padding: 1.25rem 0;
  font-family: Arial, sans-serif;
  position: relative;
  /* Added position relative */
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 0.0625rem solid #e6e6e6;
  margin-left: 1rem;
  margin-right: 1rem;
  flex-wrap: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  margin-right: auto;
  white-space: nowrap;
}

.footer-links img {
  width: 3.75rem;
  height: 3.75rem;
  margin-right: 0.5rem;
}

.footer-links .footer_title {
  margin-right: 1.25rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 0.625rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  font-weight: bold;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.625rem;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ddd;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background-color: #158cba;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  padding-top: 0.625rem;
}

.footer-bottom-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.625rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  font-weight: bold;
}

/* Media Queries */

/* Extra small devices (max-width: 576px) */
@media (max-width: 576px) {
  .footer-main {
    flex-wrap: wrap;
  }

  .footer-links .footer_title {
    margin-right: 1rem;
  }

  .footer-links img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .footer-links a,
  .social-links a {
    font-size: 0.625rem;
    margin: 0.25rem 0.25rem;
  }

  .footer-bottom p {
    font-size: 0.5rem;
  }

  .footer-bottom-links a {
    font-size: 0.5rem;
    margin: 0.25rem 0.5rem;
  }
}

/* Small devices (min-width: 577px) and (max-width: 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .footer-links img {
    width: 2rem;
    height: 2rem;
  }

  .footer-links a,
  .social-links a {
    font-size: 0.75rem;
    margin: 0.5rem 0.25rem;
  }

  .footer-bottom {
    padding: 0.5rem 1rem;
  }

  .footer-bottom p {
    font-size: 0.625rem;
  }
}

/* Medium devices (min-width: 769px) and (max-width: 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .footer-links img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .footer-links a,
  .social-links a {
    font-size: 0.875rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* Large devices (min-width: 993px) and (max-width: 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  .footer-links img {
    width: 3rem;
    height: 3rem;
  }

  .footer-links a,
  .social-links a {
    margin: 0 0.5rem;
    font-size: 1rem;
  }

  .footer-bottom {
    padding: 0.75rem 1.25rem;
  }

  .footer-bottom p {
    font-size: 0.875rem;
  }

  .footer-bottom-links a {
    margin: 0 0.5rem;
  }
}

/* Extra large devices (min-width: 1201px) */
@media (min-width: 1201px) {
  .footer-links img {
    width: 3.75rem;
    height: 3.75rem;
  }

  .footer-links a,
  .social-links a {
    margin: 0 0.625rem;
    font-size: 1rem;
  }

  .footer-bottom {
    padding: 1.25rem 0;
  }

  .footer-bottom p {
    font-size: 1rem;
  }

  .footer-bottom-links a {
    margin: 0 0.625rem;
  }
}
