/* CSS Variables */
:root {
  --text: #333;
  --muted: #666;
  --border: #e5e5e5;
  --chip: #f5f5f5;
  --section: #fafafa;
  --primary: #004a45;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://oss.allintrip.cn/shanwentou/upfiles/onepage/bannerab.jpg?x-oss-process=image/quality,q_85/format,jpg");
}

.section-box-img {
  width: 35vw;
  position: relative;
  height: 70%;
}
.section-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100% - 18px);
  border-radius: 24px;
}
.img-right-box {
  position: absolute;
  bottom: 0px;
  right: -18px;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: #f2f5f5;
  z-index: 0;
}
.grid {
  display: flex;
  gap: 2rem;
  position: relative;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

/* 更新信息样式 */
.update-info {
  position: absolute;
  bottom: -40px;
  right: 20px;
  z-index: 10;
}

.update-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  background: var(--chip);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
  opacity: 0.8;
}

/* Mission/Vision/Value chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  background: var(--chip);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--border);
}

/* Timeline */
.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-year {
  position: relative;
  padding-left: 28px;
  margin: 18px 0;
}

.tl-year:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.tl-items {
  padding-left: 28px;
}

.tl-items li {
  margin: 8px 0;
  color: #334155;
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.partner-logo::before {
  content: "LOGO";
  color: var(--muted);
  font-size: 12px;
}

/* 保持滚动功能但隐藏滚动条 */
.scrollable {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollable::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* About section specific styles */

.about-content {
  flex: 1;
}
.about-left {
  width: 50vw;
}
.about-title {
  height: 100%;
  flex: 0;
  z-index: 10;
}

/* .about-title h2 {
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
} */

/* 在关于我们内容区域单独显示滚动条 */
.about-content {
  height: 100%;
  max-width: 75%;
  /* 保持可滚动 */
  overflow-y: auto;
  /* Firefox 可见滚动条 */
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 126, 126, 0.5) transparent !important;
  /* 覆盖旧版 IE/Edge 隐藏设置 */
  -ms-overflow-style: auto;
}

.about-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 8px;
}

.about-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35) !important;
  border-radius: 8px;
}

.about-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.45) !important;
}

#about .container {
  gap: 8rem;
}
#about {
  height: 60vh !important;
  display: flex;
  gap: 8rem;
  align-items: center;
}

#about p {
  font-size: 1.3rem;
  line-height: 1.8;
  /* color: #333; */
  /* color: var(--primary); */
  margin-top: 0;
  margin-bottom: 0;
}

#about p {
  text-indent: 2em;
  /* color: var(--primary);
  font-weight: 500; */
}

/* Mission section (full background + 3 bordered blocks) */
#mission {
  height: auto;
  /* min-height: 100vh; */
  position: relative;
  display: flex;
  align-items: center;
}

#mission::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url('https://zhilv-oss.oss-cn-beijing.aliyuncs.com/shanwentou/upfiles/about/mission.png') center/cover no-repeat; */
  filter: brightness(0.65);
}

#mission .container {
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
  z-index: 1;
  /* color: #fff; */
}

.mission-subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.mission-grid {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1fr;
  gap: 3rem;
}

.mission-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mission-column:last-child {
  justify-content: center;
}

.mission-card {
  position: relative;
  color: var(--text);
  padding: 40px 20px 60px;
  height: 100%;
  /* border: 2px solid #949494; */
  background: #f9f9fc;
  border-radius: 2rem;
  transition: all 0.35s ease;
  flex-direction: column;
  border-bottom: none;
  transition: all 1s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.mission-card1 {
  padding-top: 4rem;
  padding-left: 13%;
  padding-bottom: 1rem !important;
}
.mission-card2 {
  padding-top: 2rem;
}
.large-card {
  height: 100%;
  min-height: 720px;
  /* background-color: var(--primary-color) !important; */
  /* background-image: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-color) 100%
  ); */
  /* color: #fff; */
  justify-content: center;
  position: relative;
}

.missicon-icon {
  width: 42px;
  height: 35px;
  position: absolute;
  top: 3rem;
  left: 3rem;
}
.missicon-icon1 {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.missicon-icon-bottom {
  top: auto !important;
  left: auto !important;
  right: 1.5rem;
  bottom: 1.5rem;
  transform: rotate(180deg);
}
.missicon-icon1-bottom {
  transform: rotate(180deg);
  top: auto !important;
  left: auto !important;
  right: 1rem;
  bottom: 1rem;
}

.mission-card h3 {
  color: inherit;
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0 0 2rem 0;
}

.mission-card p {
  color: inherit;
  font-size: 1.6rem;
  text-align: left;
  /* line-height: 1.8rem; */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.missionP {
  line-height: 3rem;
}

.mission-card .mission-tag-num {
  color: #333;
  opacity: 0.5;
  font-weight: 700;
  font-size: 8rem;

  padding: 0 8px;
  transition: all 1s ease;
  margin-right: 1rem;
  margin-top: 80px;
}
.mission-card .mission-tag {
  /* position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);*/
  /* color: #333; */
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  z-index: 2;
  padding: 0 8px;
  transition: all 1s ease;
  margin-bottom: 0.8rem;
  span {
    font-size: 2.8rem;
    color: var(--primary-color);
  }
}

/* Left and right bottom segments (leave a central gap for the tag) */
.mission-card::before,
.mission-card::after {
  content: "";
  /* position: absolute;
  bottom: 0;
  height: 2px;
  background: rgba(148, 148, 148, 0.6);
  border-radius: 2rem; */
}

.mission-card::before {
  left: 1.3rem;
  width: calc(50% - 110px);
}

.mission-card::after {
  right: 1.3rem;
  width: calc(50% - 110px);
}

/* Remove old tag side lines */
.mission-card .mission-tag::before,
.mission-card .mission-tag::after {
  display: none;
  content: none;
}

/* Hover state */
.mission-card:hover {
  background-color: var(--primary-color) !important;
  /* background: rgb(255, 255, 255); */
}

.mission-card:hover .mission-tag {
  /* color: #fff;
  opacity: 1; */
  font-size: 2.8rem !important;
  span {
    color: #fff !important;
    /* font-size: 3.2rem; */
  }
}

.mission-card:hover p {
  /* color: var(--primary); */
  /* use theme primary color for emphasis */
  /* font-weight: 600; */
  color: rgba(255, 2255, 255, 0.9);
}

.mission-card:hover .mission-tag {
  color: #fff;
  /* color: #d0212a; */
  /* transform: translate(-50%, -120%); */
}

/* 响应式设计 */
@media (max-width: 1920px) {
  .missionP {
    line-height: 3rem;
  }
}
@media (min-width: 1920px) {
  .missionP {
    line-height: 3.5rem;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
  }

  .eyebrow {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero .container {
    max-width: 100%;
  }

  .mission-card .mission-tag {
    font-size: 1.4rem;
    /* bottom: -0.7rem; */
  }
  #about {
    height: 80vh !important;
  }
  .section-box-img {
    margin: 1rem 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
  }
  .section-bg {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
  }

  .img-right-box {
    display: none;
  }

  .mission-tag-num {
    display: none;
  }

  .large-card .missicon-icon {
    width: 32px;
    height: 25px;
    top: 1rem;
    left: 1rem;
  }
  .large-card .missicon-icon-bottom {
    top: auto !important;
    left: auto !important;
    right: 1rem;
    bottom: 1rem;
  }

  .org-img {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 2rem;
    margin: 0 0 15px 0;
  }

  .eyebrow {
    padding: 6px 12px;
    font-size: 12px;
  }
}
@media (max-width: 1620px) {
  .mission-card p {
    font-size: 1.4rem;
  }
}
@media (max-width: 1450px) {
  .mission-card p {
    font-size: 1.2rem;
  }
}
@media (max-width: 1024px) {
  .mission-card1 {
    display: flex;
    display: -ms-flex;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
  }
  .mission-card1 .mission-tag {
    text-align: center;
  }
  .mission-title {
    font-size: 2.2rem;
  }

  .mission-card {
    padding: 30px 8px 40px;
    min-height: 300px;
  }

  .mission-card h3 {
    font-size: 1.8rem;
  }

  .mission-card p {
    font-size: 1.2rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-column {
    gap: 16px;
  }

  .large-card {
    min-height: 360px;
  }

  .mission-card::before,
  .mission-card::after {
    width: calc(50% - 85px);
  }
}

/* Founder section */
#founder {
  display: flex;
  gap: 8rem;
  align-items: center;
}

/* Leadership section */
#leadership {
  height: auto;
  /* min-height: 100vh; */
}

#leadership .container {
  flex-direction: column;
  align-items: flex-start;
}

.leadership-content {
  flex: 1;
  margin-top: -50px;
  width: 100%;
}

.leader-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.leader-filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.leader-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.leader-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-template-areas:
    "a a a a a a b b b b b b"
    "c c c c d d d d e e e e"
    "f f f f g g g g h h h h";
}

.leader-card:nth-child(1),
.leader-card:nth-child(2) {
  grid-area: a;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.leader-card:nth-child(1) {
  grid-area: a;
}

.leader-card:nth-child(2) {
  grid-area: b;
}

.leader-card:nth-child(3) {
  grid-area: c;
}

.leader-card:nth-child(4) {
  grid-area: d;
}

.leader-card:nth-child(5) {
  grid-area: e;
}

.leader-card:nth-child(6) {
  grid-area: f;
}

.leader-card:nth-child(7) {
  grid-area: g;
}

.leader-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 24px 28px;
  min-height: 160px;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 74, 69, 0.25);
}

.leader-photo {
  width: 144px;
  min-width: 122px;
  height: 144px;
  flex-basis: 144px;
  overflow: hidden;
  background: #f6f8f9;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.leader-photo img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
}

.leader-info {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.leader-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.leader-title {
  font-size: 1.2rem;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .leaders-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "a a a b b b"
      "c c d d e e"
      "f f f g g g";
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .leaders-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f"
      "g";
    gap: 1rem;
  }

  .leader-card,
  .leader-card:nth-child(-n + 2) {
    min-height: 140px;
    padding: 18px;
  }

  .leader-photo,
  .leader-card:nth-child(-n + 2) .leader-photo {
    width: 96px;
    min-width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .leader-name,
  .leader-card:nth-child(-n + 2) .leader-name {
    font-size: 20px;
  }
}

#founder .founder-left,
#founder .founder-right {
  flex: 1;
  max-height: 100%;
}

#founder .founder-left {
  display: flex;
  flex-direction: column;
}

.founder-title {
  margin-bottom: 2rem !important;
}

#founder h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

.founder-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem !important;
}

.founder-content {
  flex: 1;
  overflow: auto;
  text-indent: 2em;
  padding: 0 8px 0 0 !important;
  scrollbar-color: rgba(126, 126, 126, 0.5) transparent !important;
}

#founder p {
  font-size: 1.3rem;
  color: #334155;
  margin: 0;
  line-height: 1.9;
}

#founder .founder-right {
  border-radius: 2.5vw;
  padding: 0 6rem;
  position: relative;
  translate: none;
  rotate: none;
  scale: none;
  opacity: 1;
  transform: translate(0px, 0px);
  flex: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#founder .founder-right-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78%;
  background: #eee;
  border-radius: 2.5vw;
}

#founder .founder-right img {
  height: calc(60vh - 160px);
  z-index: 1;
}

@media (max-width: 1024px) {
  #founder h3 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 6vw;
  }

  #about .container {
    gap: 0;
    flex-direction: column;
  }

  #about .about-title {
    width: 100%;
    height: auto;
    flex: 0;
  }

  #about .about-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  #founder {
    height: auto;
    flex-direction: column-reverse;
    align-items: start;
    gap: 12px;
  }

  #founder .founder-left,
  #founder .founder-right {
    width: 100%;
    padding-top: 24px;
  }

  #founder .founder-right img {
    border-radius: 12px;
    height: calc(48vh - 160px);
  }
}

/* Fallback when AOS not available: always show elements */
html.no-aos [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* History section (full-bleed background with right timeline) */
#history {
  min-height: 100vh;
  position: relative;
  background: transparent;
}

#history::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://zhilv-oss.oss-cn-beijing.aliyuncs.com/shanwentou/upfiles/about/key-events.png")
    center/cover no-repeat;
  filter: brightness(0.65);
}

#history .history-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  align-items: stretch;
  gap: 2vw;
  width: 100%;
  height: 100%;
}

/* Left title area */
.history-left,
.history-right {
  height: 100%;
  overflow: hidden;
}

.history-left {
  display: flex;
  justify-content: space-between;
  color: #fff;
}

.history-en {
  font-size: 2rem;
  opacity: 0.95;
}

.history-cn {
  margin: 6px 0 0 0;
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
}

.history-tip {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  align-self: flex-end;
  margin-top: auto;
}

/* Right scrollable timeline */
.history-right {
  position: relative;
  display: flex;
  align-items: center;
}

.history-right::before {
  content: "";
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.history-scroll {
  position: relative;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: visible;
  padding-left: 0;
  padding-right: 2vw;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.history-scroll::-webkit-scrollbar {
  width: 6px;
}

.history-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.year-block {
  position: relative;
  padding: 28px 0 44px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 24px;
  overflow: visible;
}

.year-label {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  text-align: right;
  transition: all 1s ease;
  transform-origin: right center;
  padding-right: 18px;
}

.year-items {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-column: 2;
}

.year-items li {
  color: #e6f3ea;
  line-height: 1.9;
  font-size: 1.2rem;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

/* 日期高亮样式 */
.history-date {
  width: 120px;
  min-width: 120px;
  color: #ffb376;
  white-space: nowrap;
}

/* Large translucent year number centered on the baseline of each block */
.year-big {
  position: absolute;
  right: 5%;
  bottom: -6px;
  font-size: 84px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.year-label.accent {
  color: rgb(101 255 204 / 75%);
  transform: scaleX(1.12);
}

/* Responsive */
@media (max-width: 1024px) {
  #history .history-grid {
    grid-template-columns: 1fr;
    padding: 6vh 5vw;
  }

  .history-right::before {
    left: 90px;
  }

  .history-scroll {
    padding-left: 0;
  }

  .about-content {
    padding: 0;
    max-width: 100%;
  }

  .history-en {
    font-size: 1.8rem;
  }

  .history-cn {
    font-size: 2.4rem;
  }

  .year-big {
    font-size: 64px;
    right: 6%;
  }

  .year-block {
    grid-template-columns: 90px 1fr;
    column-gap: 16px;
  }
}

@media (max-width: 640px) {
  #history {
    height: 90vh;
  }

  .year-block {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .year-label {
    grid-column: 1;
    text-align: left;
    transform-origin: left center;
    padding-left: 12px;
    padding-right: 0;
  }

  .year-items {
    grid-column: 1;
  }

  .year-items li {
    font-size: 13px;
  }
}

/* 年份列表导航样式 */
.years-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
}

.year-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.year-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.1);
}

.year-nav-btn:active {
  transform: scale(0.95);
}

.year-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.years-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  justify-content: flex-start;
  align-items: center;
  scroll-behavior: smooth;
  will-change: scroll-position;
}

.years-list.center {
  justify-content: center;
}

.years-list::-webkit-scrollbar {
  width: 4px;
}

.years-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.year-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  flex-shrink: 0;
  transform: translateZ(0);
}

.year-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateZ(0) translateX(4px);
}

.year-item.active {
  background: rgba(101, 255, 204, 0.2);
  border-color: rgba(101, 255, 204, 0.5);
  color: rgb(101, 255, 204);
  box-shadow: 0 0 10px rgba(101, 255, 204, 0.3);
  transform: translateZ(0) scale(1.02);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .years-nav {
    padding: 1rem 0;
  }

  .year-item {
    font-size: 13px;
    padding: 6px 12px;
  }

  .year-nav-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .years-nav {
    padding: 0.75rem 0;
  }

  .year-item {
    font-size: 12px;
    padding: 5px 10px;
  }
}

.org-structure-content {
  width: 100%;
  height: 100%;
}

.org-chart {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: 1.3/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Center Node */
.center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  --pulse-scale: 1;
  --hover-scale: 1;
  transform: translate(-50%, -50%)
    scale(calc(var(--pulse-scale) * var(--hover-scale)));
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 74, 69, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.center-node:hover {
  --hover-scale: 1.14;
  box-shadow: 0 30px 60px rgba(0, 74, 69, 0.4);
}

.center-node img {
  width: 96%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Tweak center text spacing since we now have an image */
.logo-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
}

/* Department Nodes */
.department-nodes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.dept-node {
  position: absolute;
  --node-size: 10rem;
  width: var(--node-size);
  height: var(--node-size);
  padding: 0.3rem;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  z-index: 5;
}

.dept-node:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.dept-node-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dept-node-box-bg {
  position: absolute;
  height: 80%;
  width: 80%;
  background: rgba(3, 255, 234, 0.05);
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
}

.dept-icon {
  margin-bottom: 12px;
  color: var(--primary);
  opacity: 0.8;
}

.dept-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dept-name-sub {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.2;
}

.dept-name-en {
  font-size: 0.6rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  opacity: 0.7;
}

/* Node Positions - Circular Layout */
.dept-node-1 {
  top: 8%;
  left: 15%;
}

.dept-node-2 {
  top: 8%;
  left: calc(85% - var(--node-size));
}

.dept-node-3 {
  top: 25%;
  left: 5%;
}

.dept-node-4 {
  top: 25%;
  left: calc(95% - var(--node-size));
}

.dept-node-5 {
  top: 42%;
  left: 18%;
}

.dept-node-6 {
  top: 42%;
  left: calc(82% - var(--node-size));
}

.dept-node-7 {
  bottom: 42%;
  left: 18%;
}

.dept-node-8 {
  bottom: 42%;
  left: calc(82% - var(--node-size));
}

.dept-node-9 {
  bottom: 25%;
  left: 5%;
}

.dept-node-10 {
  bottom: 25%;
  left: calc(95% - var(--node-size));
}

.dept-node-11 {
  bottom: 8%;
  left: 15%;
}

.dept-node-12 {
  bottom: 8%;
  left: calc(85% - var(--node-size));
}

/* Connection Lines */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connection-lines svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}

.connection-line {
  stroke: url(#lineGradient);
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  opacity: 0.6;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Fallback for browsers that don't support SVG gradients */
.connection-line {
  stroke: #004a45;
  stroke-opacity: 0.6;
}

.connection-lines::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

/* Connection lines for each department */
.dept-node-1::before,
.dept-node-2::before,
.dept-node-3::before,
.dept-node-4::before,
.dept-node-5::before,
.dept-node-6::before,
.dept-node-7::before,
.dept-node-8::before,
.dept-node-9::before,
.dept-node-10::before,
.dept-node-11::before,
.dept-node-12::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.dept-node {
  animation: float 6s ease-in-out infinite;
}

.dept-node:nth-child(odd) {
  animation-delay: 0s;
}

.dept-node:nth-child(even) {
  animation-delay: 3s;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .org-chart {
    height: 100%;
  }

  .center-node {
    width: 180px;
    height: 180px;
  }

  .dept-node {
    --node-size: 140px;
  }

  .logo-text {
    font-size: 2.2rem;
  }

  .dept-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  #org-structure {
    padding: 80px 4vw;
  }

  #org-structure .container {
    flex-direction: column;
  }

  .org-structure-content {
    width: 100%;
    height: 100%;
  }

  .org-chart {
    height: 100%;
    width: 100;
  }

  .center-node {
    width: 150px;
    height: 150px;
  }

  .dept-node {
    --node-size: 120px;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .dept-name {
    font-size: 0.7rem;
  }

  .dept-name-en {
    font-size: 0.5rem;
  }

  /* Adjust positions for mobile */
  .dept-node-1 {
    top: 8%;
    left: 12%;
  }

  .dept-node-2 {
    top: 8%;
    left: calc(88% - var(--node-size));
  }

  .dept-node-3 {
    top: 25%;
    left: 3%;
  }

  .dept-node-4 {
    top: 25%;
    left: calc(97% - var(--node-size));
  }

  .dept-node-5 {
    top: 42%;
    left: 15%;
  }

  .dept-node-6 {
    top: 42%;
    left: calc(85% - var(--node-size));
  }

  .dept-node-7 {
    bottom: 42%;
    left: 15%;
  }

  .dept-node-8 {
    bottom: 42%;
    left: calc(85% - var(--node-size));
  }

  .dept-node-9 {
    bottom: 25%;
    left: 3%;
  }

  .dept-node-10 {
    bottom: 25%;
    left: calc(97% - var(--node-size));
  }

  .dept-node-11 {
    bottom: 8%;
    left: 12%;
  }

  .dept-node-12 {
    bottom: 8%;
    left: calc(88% - var(--node-size));
  }
}

@media (max-width: 480px) {
  .org-chart {
    height: 100%;
    width: 100%;
  }

  .center-node {
    width: 120px;
    height: 120px;
  }

  .dept-node {
    --node-size: 100px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .dept-name {
    font-size: 0.6rem;
  }

  .dept-name-en {
    font-size: 0.4rem;
  }

  .dept-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Optimize connection lines for mobile */
  .connection-line {
    stroke-width: 1.5;
    stroke-dasharray: 3, 3;
  }
}

/* Enhanced hover effects */
.dept-node::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dept-node:hover::after {
  opacity: 1;
}

/* Loading animation for nodes */
.dept-node {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.dept-node:nth-child(1) {
  animation-delay: 0.1s;
}

.dept-node:nth-child(2) {
  animation-delay: 0.2s;
}

.dept-node:nth-child(3) {
  animation-delay: 0.3s;
}

.dept-node:nth-child(4) {
  animation-delay: 0.4s;
}

.dept-node:nth-child(5) {
  animation-delay: 0.5s;
}

.dept-node:nth-child(6) {
  animation-delay: 0.6s;
}

.dept-node:nth-child(7) {
  animation-delay: 0.7s;
}

.dept-node:nth-child(8) {
  animation-delay: 0.8s;
}

.dept-node:nth-child(9) {
  animation-delay: 0.9s;
}

.dept-node:nth-child(10) {
  animation-delay: 1s;
}

.dept-node:nth-child(11) {
  animation-delay: 1.1s;
}

.dept-node:nth-child(12) {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover styles for enterprise cluster cards */
.dept-node {
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease, border-color 240ms ease, background 240ms ease,
    color 240ms ease, filter 240ms ease;
}

/* Soft glow under card */
.dept-node::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: radial-gradient(
    60% 60% at 50% 40%,
    rgba(0, 74, 69, 0.22),
    rgba(30, 64, 175, 0.18) 60%,
    rgba(30, 64, 175, 0) 70%
  );
  filter: blur(10px);
  opacity: 0;
  z-index: -2;
  transition: opacity 240ms ease;
}

.dept-node:hover,
.dept-node:focus-visible {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  border-color: transparent;
  background: linear-gradient(160deg, #0ea5a8 0%, #1e40af 100%);
  z-index: 8;
}

.dept-node:hover::before,
.dept-node:focus-visible::before {
  opacity: 1;
}

/* Keep gradient ring stronger on hover */
.dept-node:hover::after,
.dept-node:focus-visible::after {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Icon and text invert on hover */
.dept-node:hover .dept-icon,
.dept-node:focus-visible .dept-icon {
  color: #fff;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.dept-node:hover .dept-name,
.dept-node:hover .dept-name-sub,
.dept-node:hover .dept-name-en,
.dept-node:focus-visible .dept-name,
.dept-node:focus-visible .dept-name-sub,
.dept-node:focus-visible .dept-name-en {
  color: #fff;
}

/* Center node hover glow */
.center-node {
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.center-node:hover {
  filter: drop-shadow(0 25px 45px rgba(0, 74, 69, 0.35));
}

/* === Animated idle motions for enterprise cluster === */
/* Register animatable custom properties for transforms */
@property --tx {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --ty {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Compose transforms from variables so hover/animation can co-exist */
.org-chart .dept-node {
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
  --scale: 1;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot))
    scale(var(--scale));
  /* Combine: entrance + idle drift */
  animation: fadeInUp 0.6s ease forwards,
    nodeDrift var(--drift-duration, 12s) ease-in-out var(--drift-delay, 0.2s)
      infinite;
}

/* Use variables to implement hover lift instead of overriding transform */
.org-chart .dept-node:hover,
.org-chart .dept-node:focus-visible {
  --ty: -6px;
  --scale: 1.04;
}
.org-img-box {
  width: 100% !important;
  height: 90%;
  top: 10%;

  position: absolute;
  /* background-image: url("https://oss.allintrip.cn/shanwentou/upfiles/about/cultureCircle.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; */
}
.org-img-mobile {
  display: none;
  width: 100%;
  height: 90%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.org-img {
  width: 100%;
  height: 100%;
  position: relative;
  top: 100px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  /* height: 80%; */
}
.org-img-center {
  border-radius: 50%;
  text-align: center;
  position: absolute;
  top: 0;
  bottom: 0;
  /* transform: translateY(-50%); */
  left: 0;
  right: 0;
  margin: auto;
  width: 30%;
  transition: all 0.5s;
  /* 抵消容器的旋转，保持中心图片静止 */
  animation: counterRotation 30s linear infinite;
  z-index: 10;
}
.org-img-center:hover {
  box-shadow: 0 0px 30px rgba(248, 227, 171, 0.85);
  transform: scale(1);
  /*transition: all 0.5s; */
}
.node {
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border-radius: 50%;
  background: white;

  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform-origin: center; */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* 整体公转效果 - 整个节点容器一起旋转 */
.org-img-box {
  width: 100% !important;
  height: 90%;
  top: 10%;
  position: absolute;
  animation: wheelRotation 30s linear infinite;
  transform-origin: center;
}

/* 整体旋转动画定义 - 匀速旋转 */
@keyframes wheelRotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 反向旋转动画定义 - 抵消容器的旋转 */
@keyframes counterRotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.node:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  box-shadow: 0 5px 20px rgba(248, 227, 171, 0.35);
  z-index: 20;
}
.node-text {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  color: #6e6e6e;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  z-index: 9;
  /* 抵消容器的旋转，保持文字方向不变 */
  animation: counterRotation 30s linear infinite;
  transform-origin: center;
  /* 优化文字渲染，防止歪斜 */
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  /* 强制硬件加速 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* 抗锯齿 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 防止文字模糊 */
  text-rendering: optimizeLegibility;
}
.nodeCover {
  z-index: 10;
  position: absolute;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  width: 0%;
  height: 0%;
  background: #e1b45e;
  margin: auto;
  opacity: 0;
  border-radius: 50%;
  transform: scale(1, 1);
}
/* .node::after {
  content: "";
} */
.node:hover .nodeCover {
  animation: ripple 1s linear infinite;
}
/* 定义涟漪扩散动画 */
@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.3;
    transform: scale(1, 1);
  }
  100% {
    width: 120%;
    height: 120%;
    opacity: 0;
    transform: scale(1.6, 1.6);
  }
}

/* 自动hover动画效果 */
.auto-hover {
  animation: nodePulse 2s ease-in-out infinite !important;
  transition: all 0.3s ease !important;
}

/* 节点脉冲动画 */
@keyframes nodePulse {
  0% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 5px 20px rgba(248, 227, 171, 0.35);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 8px 30px rgba(248, 227, 171, 0.5);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 5px 20px rgba(248, 227, 171, 0.35);
  }
}

/* 自动hover状态下的涟漪效果 */
.auto-hover .nodeCover {
  animation: ripple 1s linear infinite !important;
}

/* 自动hover状态下的文字效果 */
.auto-hover .node-text {
  color: #4a5568 !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

/* 确保自动hover与手动hover的平滑过渡 */
.node.auto-hover:hover {
  /* 当用户手动hover时，保持自动hover的效果，但增强一些 */
  transform: translate(-50%, -50%) scale(1.3) !important;
  box-shadow: 0 10px 35px rgba(248, 227, 171, 0.6) !important;
}

/* 手动hover时覆盖自动hover的动画 */
.node:hover.auto-hover {
  animation: none !important;
}

.node:hover.auto-hover .nodeCover {
  animation: ripple 1s linear infinite !important;
}

.node-text {
  font-size: 14px;
  text-align: center;
  padding: 8px;
}
/* 针对不同分辨率的优化 */
@media screen and (max-width: 3000px) and (min-width: 2560px) {
  .node-text {
    font-size: 14x;
    line-height: 1.3;
  }
}
/* 针对不同分辨率的优化 */
@media screen and (max-width: 1920px) and (min-width: 1440px) {
  .node-text {
    font-size: 14x;
    line-height: 1.3;
  }
}

@media screen and (max-width: 1440px) and (min-width: 1024px) {
  .node-text {
    font-size: 14px;
    line-height: 1.25;
  }
}

@media screen and (max-width: 1024px) {
  .node-text {
    font-size: 13px;
    line-height: 1.2;
    padding: 6px;
  }
}

/* 高DPI屏幕优化 */
@media screen and (-webkit-min-device-pixel-ratio: 2),
  screen and (min-resolution: 192dpi) {
  .node-text {
    -webkit-font-smoothing: subpixel-antialiased;
    text-rendering: geometricPrecision;
  }
}

/* 针对不同设备像素比的优化 */
@media screen and (min-device-pixel-ratio: 1.5) {
  .org-img-box {
    animation-duration: 30s;
  }

  .node-text {
    animation-duration: 30s;
  }
}

@media screen and (min-device-pixel-ratio: 2) {
  .org-img-box {
    animation-duration: 30s;
  }

  .node-text {
    animation-duration: 30s;
  }
}

@media screen and (min-device-pixel-ratio: 3) {
  .org-img-box {
    animation-duration: 30s;
  }

  .node-text {
    animation-duration: 30s;
    font-weight: 500;
  }
}

.connector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 2px;
  /* background-color: #b3c7dd; */
  transform-origin: 0 0;
  z-index: 5;
}
/* Gentle drifting animation */
@keyframes nodeDrift {
  0% {
    --tx: 0px;
    --ty: 0px;
    --rot: 0deg;
  }

  20% {
    --tx: 4px;
    --ty: -3px;
    --rot: 0.6deg;
  }

  40% {
    --tx: 0px;
    --ty: -6px;
    --rot: 0deg;
  }

  60% {
    --tx: -4px;
    --ty: -3px;
    --rot: -0.6deg;
  }

  80% {
    --tx: 0px;
    --ty: 2px;
    --rot: 0deg;
  }

  100% {
    --tx: 0px;
    --ty: 0px;
    --rot: 0deg;
  }
}

/* Stagger different timings for variety */
.org-chart .dept-node:nth-child(1) {
  --drift-duration: 11s;
  --drift-delay: 0.1s;
}

.org-chart .dept-node:nth-child(2) {
  --drift-duration: 13s;
  --drift-delay: 0.3s;
}

.org-chart .dept-node:nth-child(3) {
  --drift-duration: 12s;
  --drift-delay: 0.5s;
}

.org-chart .dept-node:nth-child(4) {
  --drift-duration: 14s;
  --drift-delay: 0.7s;
}

.org-chart .dept-node:nth-child(5) {
  --drift-duration: 11.5s;
  --drift-delay: 0.2s;
}

.org-chart .dept-node:nth-child(6) {
  --drift-duration: 13.5s;
  --drift-delay: 0.4s;
}

.org-chart .dept-node:nth-child(7) {
  --drift-duration: 12.5s;
  --drift-delay: 0.6s;
}

.org-chart .dept-node:nth-child(8) {
  --drift-duration: 15s;
  --drift-delay: 0.8s;
}

.org-chart .dept-node:nth-child(9) {
  --drift-duration: 12.2s;
  --drift-delay: 0.25s;
}

.org-chart .dept-node:nth-child(10) {
  --drift-duration: 13.2s;
  --drift-delay: 0.45s;
}

.org-chart .dept-node:nth-child(11) {
  --drift-duration: 11.8s;
  --drift-delay: 0.65s;
}

.org-chart .dept-node:nth-child(12) {
  --drift-duration: 14.5s;
  --drift-delay: 0.85s;
}

/* Make connection lines gently travel */
@keyframes dashTravel {
  to {
    stroke-dashoffset: -1000;
  }
}

.connection-line {
  stroke-dashoffset: 0;
  animation: dashTravel 12s linear infinite;
}

/* Subtle breathing/pulse for center node */
/* Register animatable custom properties */
@property --pulse-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --hover-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@keyframes centerPulse {
  0%,
  100% {
    box-shadow: 0 20px 40px rgba(0, 74, 69, 0.3);
    --pulse-scale: 1;
  }

  50% {
    box-shadow: 0 28px 64px rgba(0, 74, 69, 0.42);
    --pulse-scale: 1.12;
  }
}

.center-node {
  animation: centerPulse 3s ease-in-out infinite;
}

/* Soft breathing glow without animating filters on the image */
.center-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(0, 74, 69, 0.28),
    rgba(0, 74, 69, 0) 70%
  );
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
  transform: translateZ(0) scale(1);
  animation: centerGlow 1s ease-in-out infinite;
}

@keyframes centerGlow {
  0%,
  100% {
    opacity: 0.08;
    transform: translateZ(0) scale(1);
  }

  50% {
    opacity: 0.35;
    transform: translateZ(0) scale(1.08);
  }
}

/* Reduced motion: keep effects minimal */
@media (prefers-reduced-motion: reduce) {
  .org-chart .dept-node {
    animation: fadeInUp 0.6s ease forwards;
  }

  .connection-line {
    animation: none;
  }

  .center-node {
    animation: none;
  }
}

#enterprise-cluster {
  min-height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

#enterprise-cluster .container {
  align-items: flex-start;
  width: 100%;
  height: 100%;
  position: relative;
}

#enterprise-cluster .enterprise-cluster-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.bg-left {
  /* display: none; */
  width: 25%;
  position: absolute;
  top: 15%;
  left: 8%;
  /* background: blue; */
  height: 90%;
  z-index: 9999;
  /* background-image: url("https://zhilv-oss.oss-cn-beijing.aliyuncs.com/shanwentou/upfiles/onepage/feixian.png");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center; */
}
.bg-right {
  width: 20%;
  /* background: red; */
  position: absolute;
  top: 15%;
  right: 10%;
  opacity: 0.3;
  height: 90%;
  z-index: 9999;
}
/* .bg-right:hover + .enterprise-cluster-bg-hover {
  display: block;
} */

#enterprise-cluster .enterprise-cluster-bg img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  /* filter: brightness(0.65); */
  /* display: none; */
  margin-top: 120px;
  transition: all 0.5s;
  /* 默认隐藏企业集群背景图片，显示组织架构 */
}
.enterprise-cluster-bg-3 {
  z-index: 999;
  position: absolute;
  left: 0;
  top: 0px;
  width: 100%;
  height: 100%;
}
.enterprise-cluster-bg-hover {
  display: none;
  /* opacity: 0; */
}

#enterprise-cluster .enterprise-cluster-title {
  z-index: 10;
}

/* 组织架构内容在企业集群section中的样式 */
#enterprise-cluster .org-structure-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  backdrop-filter: blur(10px);
  display: block;
  /* 默认显示组织架构内容 */
}

#enterprise-cluster .org-structure-content .org-chart {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 企业集群切换按钮样式 */
.enterprise-cluster-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 9;
}

.enterprise-cluster-toggle-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.enterprise-cluster-toggle-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enterprise-cluster-toggle-btn:hover {
  color: rgb(0, 0, 0);
  background: rgba(255, 255, 255, 0.1);
}

.enterprise-cluster-toggle-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.enterprise-cluster-toggle-btn.active:hover {
  background: rgba(255, 255, 255, 1);
}

.enterprise-cluster-toggle-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .node {
    width: 5rem;
    height: 5rem;
  }
}
/* 响应式设计 */
@media (max-width: 768px) {
  .enterprise-cluster-btn {
    right: 0;
  }

  .enterprise-cluster-toggle-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .org-img-mobile {
    display: block;
  }
  .org-img-box {
    display: none;
  }
}

@media (max-width: 480px) {
  .enterprise-cluster-toggle-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .enterprise-cluster-toggle-text {
    font-size: 11px;
  }
}
.partnerCon {
  display: block;
}
#partner {
  min-height: 100vh;
  height: auto !important;
}
.swiper-container {
  width: 100%;
}
.swiper-main {
  display: block;
  width: 100%;
  /* height: 360px; */
}
.swiper-slide {
  text-align: center;
  height: 400px !important;
}
.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  border-radius: 16px;
  background: linear-gradient(135deg, #f6f8f8ff 0%, #f0f3f3 100%);
  padding: 50px 30px 0px;
  border: 2px solid #ffffff;
  /* Center slide text vertically */
  transition: 300ms;
  transform: scale(0.8);
  text-align: left;
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
  transform: scale(1);
}
.flex-center {
  display: flex;
  align-items: center;
}
.logoIcon {
  height: 60px;
  object-fit: contain;
  width: 60px;
  margin-right: 16px;
}
.companyName {
  font-weight: 600;
  font-size: 24px;
  color: #202131;
}
.companyBox {
  margin-top: 40px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}
.companyNum {
  font-weight: bold;
  font-size: 48px;
  color: #3872ff;
  line-height: 56px;
  margin-bottom: 20px;
}
.subDesc {
  /* height: 17px; */
  font-weight: 400;
  font-size: 13px;
  color: #646a73;
  line-height: 17px;
  margin-top: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}
.companyDesc {
  /* height: 40px; */
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #646a73;
  line-height: 20px;
}
/* logo墙滚动 */
.logo-wall-container {
  width: 100%;

  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.leftBox {
  position: absolute;
  left: 0;
  top: 20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  z-index: 9;
  height: 80px;
  width: 200px;
  text-align: center;
  line-height: 80px;
  font-size: 16px;
}
/* .leftBox::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: 0;
  top: 50%;
  margin-top: -25px;
  border-width: 50px 0 50px 50px;
  border-color: transparent transparent transparent #7fdbff;
} */
.logo-wall {
  margin-top: 10px;
  display: flex;
  width: max-content;
}
.logo-wall1 {
  animation: scroll 45s linear infinite;
}
.logo-wall2 {
  animation: scrollRight 35s linear infinite;
}
.logo-wall:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  margin: 0 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 5px rgba(138, 135, 135, 0.09);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* 克隆的logo项用于无缝循环 */
.logo-wall.clone {
  position: absolute;
  top: 20px;
  left: 100%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
.fixed-label {
  position: absolute;
  font-size: 14px;
  transition: all 0.3s;
}
.fixed-label {
  position: absolute;
  font-size: 15px;
  z-index: 100;
  pointer-events: auto;
  transition: all 0.3s;
  width: 320px;
  text-align: right;
  line-height: 32px;
  color: #333;
}
.connector-line {
  position: absolute;
  height: 1px;
  background: #e2e2e2;
  transform-origin: left center;
  z-index: 90;
  pointer-events: none;
}

/* 公司分类样式 */
.company-category {
  margin-bottom: 12px;
  /* padding: 8px; */
  font-size: 14px;
  line-height: 24px;
  color: #333;
  text-align: left;
  /* display: flex; */
  align-items: flex-start;
  /* gap: 10px; */
  min-height: 32px;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
}

/* .company-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 90px;
  right: 0;
  height: 1px;
  background-color: #debc74;
} */

.company-category:last-child::after,
.company-category.collapsed::after {
  display: none;
}

.company-category:hover .category-content {
  color: #debc74;
  font-size: 15px;
}

/* 地图悬停时高亮所有分类 */
.company-category.map-highlighted {
}
.category-content {
  transition: 0.8s all;
}
.company-category.map-highlighted .category-content {
  color: #debc74;
  font-size: 15px;
}

.company-category.map-highlighted strong {
  color: #debc74;
}

.company-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.company-category strong {
  font-size: 13px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  min-width: 70px;
  max-width: 80px;
  text-align: center;
  /* padding: 6px 8px; */
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  align-self: center;
  line-height: 1.2;
  word-break: keep-all;
  height: fit-content;
}

.company-category:hover strong {
  color: #debc74;
}

.company-category strong::after {
  content: "▶";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  transition: transform 0.3s ease;
}

.company-category.collapsed strong::after {
  transform: translateY(-50%) rotate(90deg);
}

.company-category .category-content {
  transition: max-height 0.3s ease;
  max-height: 1000px;
  flex: 1;
  padding-top: 2px;
  line-height: 32px;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.company-category .category-content::-webkit-scrollbar {
  display: none;
}

.company-category.collapsed .category-content {
  max-height: 0;
  overflow: hidden;
}

/* 领导班子新布局样式 */
.leaders-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  min-height: calc(100vh - 200px);
}

.leadership-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.leadership-top,
.leadership-middle {
  justify-content: center;
}

.leadership-bottom {
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  max-width: 1000px;
  overflow-x: auto;
  align-items: flex-start;
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  min-height: auto;
  height: auto;
}

.leadership-bottom .leader-card {
  min-width: 170px;
  max-width: 180px;
  padding: 12px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leadership-bottom .leader-title {
  min-height: 33px;
  max-width: 160px;
}

.leader-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.leader-photo {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

.leadership-top .leader-photo,
.leadership-middle .leader-photo {
  width: 200px !important;
  height: 170px !important;
  min-height: 170px !important;
  max-height: 250px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.leadership-bottom .leader-photo {
  width: 140px;
  height: 180px;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.leader-info {
  color: #333;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
}

.leader-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.leadership-top .leader-name,
.leadership-middle .leader-name {
  font-size: 18px;
}

.leadership-bottom .leader-name {
  font-size: 16px;
}

.leader-title {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  max-width: 180px;
  min-height: auto;
  flex: 1;
}

.leadership-top .leader-title,
.leadership-middle .leader-title {
  font-size: 13px;
  max-width: 220px;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  line-height: 1.4;
}

.leadership-bottom .leader-title {
  font-size: 12px;
  max-width: 160px;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 2K分辨率适配（2560px及以上） */
@media (min-width: 2560px), (min-device-width: 2560px) {
  .leaders-grid {
    max-width: 1600px !important;
    gap: 60px !important;
    padding: 30px 30px !important;
  }

  .leadership-row {
    gap: 40px !important;
    margin-bottom: 30px;
  }

  .leadership-bottom {
    gap: 30px !important;
    max-width: 1500px !important;
  }

  .leader-card {
    padding: 22px !important;
    border-radius: 8px !important;
  }

  .leadership-top .leader-photo,
  .leadership-middle .leader-photo {
    width: 320px !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  .leadership-bottom .leader-photo {
    width: 220px !important;
    height: 260px !important;
    min-height: 260px !important;
  }

  .leadership-bottom .leader-card {
    min-width: 240px !important;
    max-width: 260px !important;
    padding: 20px !important;
    min-height: 360px !important;
  }

  .leadership-bottom .leader-title {
    min-height: 40px !important;
    max-width: 220px !important;
  }

  .leadership-top .leader-name,
  .leadership-middle .leader-name {
    font-size: 22px !important;
    margin-bottom: 10px !important;
  }

  .leadership-bottom .leader-name {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .leadership-top .leader-title,
  .leadership-middle .leader-title {
    font-size: 15px !important;
    max-width: 260px !important;
  }

  .leadership-bottom .leader-title {
    font-size: 14px !important;
  }

  .leader-photo {
    margin-bottom: 14px !important;
  }
}

/* 1920px-2559px 高清屏幕适配 */
@media (min-width: 1920px) and (max-width: 2559px),
  (min-device-width: 1920px) and (max-device-width: 2559px) {
  .leaders-grid {
    max-width: 1300px !important;
    gap: 30px !important;
    padding: 25px 25px !important;
    margin-bottom: 40px;
  }

  .leadership-row {
    gap: 24px !important;
  }

  .leadership-bottom {
    gap: 18px !important;
    max-width: 1100px !important;
  }

  .leader-card {
    padding: 18px !important;
    border-radius: 7px !important;
  }

  .leadership-top .leader-photo,
  .leadership-middle .leader-photo {
    width: 200px !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .leadership-bottom .leader-photo {
    width: 150px !important;
    height: 190px !important;
  }

  .leadership-bottom .leader-card {
    min-width: 180px !important;
    max-width: 190px !important;
    padding: 14px !important;
    min-height: 260px !important;
  }

  .leadership-bottom .leader-title {
    min-height: 34px !important;
    max-width: 170px !important;
  }

  .leadership-top .leader-name,
  .leadership-middle .leader-name {
    font-size: 19px !important;
    margin-bottom: 7px !important;
  }

  .leadership-bottom .leader-name {
    font-size: 17px !important;
  }

  .leadership-top .leader-title,
  .leadership-middle .leader-title {
    font-size: 13.5px !important;
    max-width: 230px !important;
  }

  .leadership-bottom .leader-title {
    font-size: 12.5px !important;
  }

  .leader-photo {
    margin-bottom: 11px !important;
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .leaders-grid {
    gap: 20px;
    padding: 15px 10px;
  }

  .leadership-top .leader-photo,
  .leadership-middle .leader-photo {
    width: 180px !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .leadership-bottom .leader-photo {
    width: 120px;
    height: 160px;
  }

  .leadership-bottom .leader-card {
    min-width: 150px;
    max-width: 160px;
    min-height: 210px;
  }

  .leadership-bottom .leader-title {
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  .leaders-grid {
    gap: 15px;
    padding: 10px 5px;
  }

  .leadership-row {
    gap: 15px;
  }

  .leadership-bottom {
    gap: 10px;
    padding: 0 10px;
  }

  .leadership-top .leader-photo,
  .leadership-middle .leader-photo {
    width: 160px !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .leadership-bottom .leader-photo {
    width: 100px;
    height: 140px;
  }

  .leadership-bottom .leader-card {
    min-width: 120px;
    max-width: 130px;
    min-height: 180px;
  }

  .leadership-bottom .leader-title {
    max-width: 110px;
  }

  .leadership-top .leader-name,
  .leadership-middle .leader-name,
  .leadership-bottom .leader-name {
    font-size: 16px;
  }

  .leadership-top .leader-title,
  .leadership-middle .leader-title,
  .leadership-bottom .leader-title {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .leaders-grid {
    gap: 10px;
    padding: 5px;
  }

  .leadership-bottom {
    gap: 8px;
    padding: 0 5px;
  }

  .leadership-top .leader-photo,
  .leadership-middle .leader-photo {
    width: 140px !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .leadership-bottom .leader-photo {
    width: 85px;
    height: 110px;
  }

  .leadership-bottom .leader-card {
    min-width: 95px;
    max-width: 105px;
    min-height: 150px;
  }

  .leadership-bottom .leader-title {
    max-width: 85px;
  }

  .leader-card {
    padding: 10px;
  }

  .leadership-top .leader-name,
  .leadership-middle .leader-name,
  .leadership-bottom .leader-name {
    font-size: 14px;
  }

  .leadership-top .leader-title,
  .leadership-middle .leader-title,
  .leadership-bottom .leader-title {
    font-size: 10px;
  }
}
/* 移动端特定logo也要放大 */
.logo-item img[src*="image19.jpeg"],
.logo-item img[src*="image32.png"],
.logo-item img[src*="image58.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.3);
}
.logo-item img[src*="image30.png"],
.logo-item img[src*="image21.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.1);
}
.logo-item img[src*="image47.jpeg"],
.logo-item img[src*="image48.jpeg"],
.logo-item img[src*="image35.jpeg"],
.logo-item img[src*="image42.jpeg"],
.logo-item img[src*="image41.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.1);
}
.logo-item img[src*="image34.png"],
.logo-item img[src*="image33.jpeg"],
.logo-item img[src*="image46.jpeg"],
.logo-item img[src*="image61.jpeg"],
.logo-item img[src*="image60.jpeg"],
.logo-item img[src*="image54.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.3);
}
.logo-item img[src*="image48.jpeg"],
.logo-item img[src*="image47.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(0.6);
}
.logo-item img[src*="image52.jpeg"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.8);
}
.logo-item img[src*="image53.png"] {
  max-width: 200px !important;
  max-height: 100px !important;
  transform: scale(1.2);
}
