@keyframes fadeInOnce {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

section[data-cattype="418"] .circle-label {
  opacity: 0; /* 初始隐藏 */
}

section[data-cattype="418"] .circle-label.fade-in-once {
  animation: fadeInOnce 1s ease forwards;
}


section[data-cattype="418"] .core-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom right;
  z-index: 0;
  pointer-events: none;

  /* 防止 dropdown 变化高度时跳动 */
  will-change: transform, opacity;

  /* 四角淡出遮罩 */
  -webkit-mask-image: radial-gradient(circle at 100% 100%, rgb(0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%);
}
/* 反转颜色（圆圈背景 + 字体白色） */
#CorePrinciples {
  padding-top: 0;
	padding-bottom: 1px;
}
/* 圆圈变 solid 色，文字变白 */
.principle.active .circle-label {
  background-color: var(--circle-color);
  color: #fff !important;
  border-color: var(--circle-color);
}
@keyframes zoomFlowSoft {
  0% {
    transform: scale(0.98);
  }
  35% {
    transform: scale(1.18);
  }
  65% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

section[data-cattype="418"] .circle-label.zoom-once {
  animation: zoomFlowSoft 2s cubic-bezier(0.66, 0, 0.34, 1) 1;
  will-change: transform, opacity;
}
section[data-cattype="418"] .core-left-bg {
  position: absolute;
  inset: 0;
  overflow: hidden; /* ✅ 关键：限制图片不会放大影响布局 */
  z-index: 1;
}

section[data-cattype="418"] .core-left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3); /* ✅ 初始放大 */
  transition: transform 1.4s ease;
  will-change: transform;
}

/* 加了 .zoom-out 时，恢复正常比例 */
section[data-cattype="418"] .core-left-img.zoom-out {
  transform: scale(1);
}



/* 标题字体变白 */
.principle.active .principle-text strong {
  color: #fff !important;
}

/* 箭头样式（向下箭头） */
.arrow-down {
  width: 0;
  height: 0;
  position: absolute;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ccc; /* JS 中会动态替换 */
  transform: translateX(-50%);
}

section[data-cattype="418"] {
  position: relative;
}
/* 确保内容盖在上面 */
section[data-cattype="418"] .core-left,
section[data-cattype="418"] .core-right,
section[data-cattype="418"] .core-box {
  position: relative;
  z-index: 1;
}

section[data-cattype="418"] .core-section {
  display: flex;
  width: 100%;              /* ⬅️ 撑满整行 */
  height: 1050px;
  font-family: Helvetica, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
    position: relative; /* ✅ 用来限制 absolute 背景 */
}

/* ░░ 左边照片与文字 ░░ */
section[data-cattype="418"] .core-left {
  width: 42%;
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-sizing: border-box;
  height: 750px;
  z-index: 2;
  bottom: -20%;
}

section[data-cattype="418"] .core-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: local; /* 或尝试 fixed 看效果 */
  z-index: 1;
}
section[data-cattype="418"] .core-left-bg-mobile {
  display: none;
}
section[data-cattype="418"] .core-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

section[data-cattype="418"] .quote-box {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 80%;
  align-content: center;
  justify-content: center;
  display: flex;
}

section[data-cattype="418"] .quote-box p {
font-size: 30px;
  font-weight: bold;
  margin: 0;
  position: relative;
  color: #fff;
}

section[data-cattype="418"] .quote-box::before {
  content: "“";
  font-family: Helvetica, sans-serif;
  font-size: 275px;
  position: absolute;
  left: 0;
  top: -320px;
}

section[data-cattype="418"] .quote-box::after {
content: "”";
  font-family: Helvetica, sans-serif;
  font-size: 275px;
  position: absolute;
  right: 0;
  bottom: -445px;
}

/* ░░ 右边内容 ░░ */
section[data-cattype="418"] .core-right {
display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
    position: absolute;   
right: 1%;
  top: 5%;
}

section[data-cattype="418"] .core-box {
background: #fff;
  border: 2px solid #ccc;
padding: 2% 5% 2% 23%;
  width: 95%;
  box-sizing: border-box;
  height: 810px;
}

/* 标题 */
section[data-cattype="418"] .core-box h2 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

/* 每一段原则条目 */
section[data-cattype="418"] .principle {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

section[data-cattype="418"] .circle-label {
  width: 160px;
  height: 160px;
  border: 15px solid;
  border-radius: 50%;
  padding: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #fff;
  font-size: 18px;
    border-color: #ccc; /* default */
}
section[data-cattype="418"] .principle-text strong::after {
      content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--after-color, #ccc); /* 优先使用 JS 设置的变量 */
  margin-top: 6px;
}
section[data-cattype="418"] .integrity {
  border-color: #0086B3;
  color: #0086B3;
}

section[data-cattype="418"] .contribution {
  border-color: #5D7333;
  color: #5D7333;
}

section[data-cattype="418"] .empathy {
  border-color: #DB4F39;
  color: #DB4F39;
}

/* 原则段落正文 */
section[data-cattype="418"] .principle-text {
  flex: 1;
  text-align: left;
  padding-left: 20px;
  
}
section[data-cattype="418"] .principle.integrity strong::after {
  background-color: #0086B3;
}

section[data-cattype="418"] .principle.contribution strong::after {
  background-color: #5D7333;
}

section[data-cattype="418"] .principle.empathy strong::after {
  background-color: #DB4F39;
}

section[data-cattype="418"] .principle-text strong {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  position: relative;
  padding-bottom: 6px;
  font-size: 18px;
  padding-top: 2%;
}

/* 标题下细线 */
section[data-cattype="418"] .principle-text strong::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ccc;
  margin-top: 6px;
}

section[data-cattype="418"] .principle-text p {
  margin: 0;
  font-size: 18px;
  color: #333;
}

/* 淡出背景图保留（如需） */
section[data-cattype="418"] .corner-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  transform: rotate(-3deg);
  opacity: 0.1;
  pointer-events: none;
}
section[data-cattype="418"] .mobile-core-tabs {
  display: none;
  margin-top: 30px;
}

section[data-cattype="418"] .core-tab {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

section[data-cattype="418"] .tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  font-size: 16px;
}

section[data-cattype="418"] .tab-header:hover {
  background: #4c4c4c;
	color: white;
}

section[data-cattype="418"] .toggle-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}
section[data-cattype="418"] .core-tab.active .tab-header {
  background: #4c4c4c;
  color: white;
}
section[data-cattype="418"] .tab-content {
  display: none;
  padding: 15px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
text-align:left;
}
    section[data-cattype="418"] .close-btn {
      display: none;
    }

    
@media (max-width: 1550px) {
  section[data-cattype="418"] .core-right{
    right: 0%;
    width: 68%;
  }
  section[data-cattype="418"] .core-left {
    height: 570px;
    bottom: -38%;
  }
  section[data-cattype="418"] .principle-text p{
    font-size: 16px;
  }
  section[data-cattype="418"] .quote-box p {
    font-size: 18px;
  }

  section[data-cattype="418"] .circle-label {
    width: 110px;
    height: 110px;
    font-size: 16px;
    border-width: 8px;
  }

  section[data-cattype="418"] .core-box {
    padding: 5% 5% 5% 15%;
    height: auto;
  }

  section[data-cattype="418"] .core-box h2 {
    font-size: 2.5em;
  }
}


/* === 3. Mobile 设备（max-width: 768px）优化 === */
@media (max-width: 768px) {
    section[data-cattype="418"] .circle-label {
      width: 108px;
    height: 108px;
    }
  section[data-cattype="418"] .core-section {
    flex-direction: column;
    height: auto;
  }
  section[data-cattype="418"] .close-btn {
  display: block;
  text-align: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}
section[data-cattype="418"] .principle-text-container .principle-text {
  text-align: center;
    padding: 0;
    padding-top: 20px;
}

section[data-cattype="418"] .principle-text-container .close-btn {
  display: block;
  text-align: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  color: #000;
}
section[data-cattype="418"] .principle-text p {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}
  section[data-cattype="418"] .para {
    display: block;
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
  }
  section[data-cattype="418"] .core-left {
    width: 100%;
    padding: 40px 40px;
    bottom: unset;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #fff;
    height: 275px;
  }
    section[data-cattype="418"] .core-left-bg {
    display: none;
  }
  section[data-cattype="418"] .core-left-bg-mobile {
    display: block;
    position: absolute;
    inset: 0;
    background-size: 100% 100%; /* ✅ 让图拉伸铺满 */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
  }
   section[data-cattype="418"] h2 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  section[data-cattype="418"] .quote-box {
    flex-direction: column;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  section[data-cattype="418"] .quote-box::before {
    font-size: 80px;
    left: 10px;
    top: -45px;
  }

  section[data-cattype="418"] .quote-box::after {
    font-size: 80px;
    right: 10px;
    bottom: -75px;
  }

  section[data-cattype="418"] .quote-box p {
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
 section[data-cattype="418"] .core-right {
    position: relative !important;  /* ✅ 取消 absolute，让它正常排列 */
    right: unset !important;
    top: unset !important;
    width: 100%;
    margin: 40px 0px;
  }
  section[data-cattype="418"] .core-box{
    padding: 2%;
    height: auto;
    border: none;
  }
  section[data-cattype="418"] .principle {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
  }

  section[data-cattype="418"] .circle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  section[data-cattype="418"] .principle-text {
    display: none;
    flex-wrap: wrap;
    flex: 1;
    display: none;
    width: 100%;               /* ✅ 让文字内容撑满整行 */
    margin-top: 20px;
    text-align: left;
    box-sizing: border-box;    /* ✅ padding 不会超宽 */
    padding: 0 20px;           /* ✅ 左右加内边距美观一点 */
    clear: both;               /* ✅ 强制脱离圆圈对齐的浮动 */
  }
section[data-cattype="418"] .principle-text.active {
  display: block;  /* ✅ 显示当前点击的 */
}
  section[data-cattype="418"] .principle-text strong {
    display: inline-block;
    line-height: 1.3;
    flex: 1 1 auto;
  }
  section[data-cattype="418"] .principle-text strong::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--after-color, #ccc) !important;
    margin-top: 6px;
  }
  section[data-cattype="418"] .principle-text .principle-paragraph {
    flex-basis: 100%;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }
  section[data-cattype="418"] .core-box .principle {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    text-align: center;
    margin: 0 1%;
  }

  section[data-cattype="418"] .principle-text {
    display: none;   /* 默认隐藏所有文字内容 */
    width: 100%;
    margin-top: 20px;
    text-align: left;
  }

  section[data-cattype="418"] .principle-text.active {
    display: block;
  }

   section[data-cattype="418"] .close-btn {
    display: none;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    float: right;
    cursor: pointer;
    margin: 10px 20px;
  }
   section[data-cattype="418"] .principle-text-container {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
  }
}
