/* Header Styles */
.common-header-content {
  position: fixed;
  top: 0;
  align-items: center;
  justify-content: space-between;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
  z-index: 100;
  flex-wrap: wrap;
  transition: background-color 0.3s ease;
  line-height: 1.5;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

@media screen and (max-width: 767px) {
  .common-header-content {
    width: 100%;
    padding: 0.4rem 1rem;
  }
}

@media screen and (min-width: 768px) {
    .common-header-content {
        width: 100%;
        padding: 1rem 4rem;
    }
}

.common-header-content.scrolled {
  box-shadow: 0 0.8px 4.9px -9px #0000000e, 0 1.9px 6.6px -9px #00000014,
    0 3.9px 7.9px -9px #0000001a, 0 8px 9.8px -9px #00000020,
    0 22px 16px -9px #0000002e;
}

.common-header-content.scrolled .nav-container {
  color: #000000;
}

.common-header-content.scrolled .nav-container > a:hover {
  color: #000000;
  font-weight: 600;
}

.common-header-content.scrolled .title {
  color: #000000;
}

.common-header-content.no-scroll .nav-container {
  color: #f0f0f0;
}

.common-header-content.no-scroll .nav-container > a:hover {
  color: #fff;
  font-weight: 600;
}

.common-header-content.no-scroll .title {
  color: #f0f0f0;
}

.common-header-content .title {
  font-size: 1.8rem;
  color: #fff;
  min-width: 11em;
  margin: 0.4em 0;
  letter-spacing: 0.08em;
}

.common-header-content .nav-container {
  background: rgba(245, 243, 243, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 767px) {
  .common-header-content .nav-container {
    margin: 0 auto;
    padding: 0.8rem 0;
    width: calc(100vw - 2rem);
    display: flex;
    justify-content: space-around;
  }
}

@media screen and (min-width: 768px) {
  .common-header-content .nav-container {
    padding: 0.8rem 2em;
  }
}

.common-header-content .nav-container a {
  cursor: pointer;
  text-decoration: none; /* Reset link style */
  color: inherit; /* Inherit color from parent */
}

@media screen and (max-width: 767px) {
  .common-header-content .nav-container a {
    margin: 0 0.5em;
  }
}

@media screen and (min-width: 768px) {
  .common-header-content .nav-container a {
    /* width: calc(100% - 4rem); Removed this as it looks wrong on a span/a tag inside flex */
    margin: 0 1em;
  }
}

.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link.active {
  font-weight: 700;
  position: relative;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #ffffff;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #ffffff;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before {
  width: 100%;
}

.common-header-content .nav-container a:hover {
  color: #ffffff;
}

/* Footer Styles */
.index-footer {
  background-color: #121212;
  color: #ffffff;
  padding: 0; /* Remove padding here to allow full width borders */
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.index-footer-info {
  display: flex;
  flex-direction: row; /* Horizontal layout */
  justify-content: space-between; /* Limit distance */
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Constrain width */
  margin: 0 auto;
  padding: 3rem 1rem; /* Padding inside the content area */
  border-bottom: none; /* Removed from here */
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0;
  position: static;
  text-align: left;
}

.index-footer-info .lianxi {
  display: flex;
  flex-direction: column; /* Change to column for 3 lines */
  justify-content: center;
  gap: 0.5rem; /* Reduce gap between lines */
  width: auto;
  float: none;
}


.index-footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  background-color: transparent;
  text-align: center;
}

.index-footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #64748b;
    font-size: 0.85rem;
}

.index-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.index-footer-bottom .footer-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.index-footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.index-footer-bottom a:hover {
  color: #64748b; /* No hover color change */
}

.clearfix p { margin-left: 0; }
.record { display: inline-block; }

/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
  .index-footer-info {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .index-footer-info .lianxi {
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .index-footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
  }
  
  .footer-title {
    font-size: 1.2rem;
    text-align: center;
  }
}
