/* ===================================
  首页样式 - Banner (Figma: 1421-110)
  =================================== */

.jing-banner {
  position: relative;
  height: 401px; /* 1440 修正高度为 401px */
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(163.09deg, rgb(36, 51, 91) 23%, rgb(0, 67, 115) 77%);
}

.jing-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.jing-banner-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  padding: 0;
  height: 359px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.jing-banner-content {
  border-left: 3px solid #E7581A;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 27px;
  width: 998px; /* 1440 精确宽度 */
  align-items: flex-start;
}

.jing-banner-title-wrapper {
  padding-left: 64px; /* 1440 偏移值修正(对应Figma左边距) */
  width: 100%;
}

.jing-banner-title {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: normal;
  letter-spacing: -0.2px;
  width: 855px; /* 1440 标题固定宽度 */
  word-break: break-word;
  margin: 0;
}

.jing-banner-btn-wrapper {
  padding-left: 64px; /* 保持与标题对齐线一致 */
}

.jing-btn-outline {
  width: 197px;
  height: 60px;
  border: 1px solid #A6A6A6;
  border-radius: 7px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.jing-btn-outline:active {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================
  详情页样式 - Main (Figma Node: 1717:560)
  =================================== */

.jing-main {
  background: #FFFFFF;
  padding-bottom: 50px;
}

.jing-container {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  box-sizing: border-box;
}

.jing-breadcrumb {
  padding: 49px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
}
/* Lines 103-110 omitted */
.jing-content-container {
  width: 100%;
  padding: 10px 0;
}


/* ===================================
  首页样式 - News/Highlights (Figma: 770-83)
  =================================== */

.jing-news {
  position: relative;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 59px;
  width: 100%;
}

.jing-news-list {
  width: 100%;
  max-width: 1010px; /* 1440基准: Grid width 998px + small buffer */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0; 
}

.jing-news-title {
  width: 100%;
  max-width: 998px;
  height: 168px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 35px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.jing-news-title-wrapper {
  width: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jing-news-line {
  width: 81px;
  height: 2px;
  background: #000000;
}

.jing-news-heading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
}

.jing-news-heading {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 35px;
  font-weight: 300;
  line-height: normal;
  color: #000000;
  margin: 0;
}

.jing-news-grid {
  width: 100%;
  max-width: 998px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px 70px; /* 垂直 34px, 水平 70px (根据 286*3+70*2=998 计算) */
  box-sizing: border-box;
  content-visibility: auto;
}

/* ===================================
  媒体查询 - 1280px (Pad)
  =================================== */
@media screen and (max-width: 1280px) {
  /* Banner Pad 适配 */
  .jing-banner-wrapper {
    max-width: 1280px;
    padding: 0 70px; /* 增加边距 */
  }

  .jing-banner-content {
    width: 602px; /* Pad 稿宽度 */
  }

  .jing-banner-title {
    font-size: 40px;
    width: 462px;
  }

  .jing-banner-title-wrapper,
  .jing-banner-btn-wrapper {
    padding-left: 70px;
  }

  .jing-btn-outline {
    font-size: 16px;
  }

  /* News Pad 适配 */
  .jing-news-list {
    max-width: 599px;
  }

  .jing-news-title {
    max-width: 599px;
  }

  .jing-news-grid {
    max-width: 599px;
    gap: 47px 27px; /* Figma 1280: 垂直 47px, 水平 27px */
  }
}

.jing-news-card {
  position: relative;
  width: 286px;
  height: 410px; 
  background: #FFFFFF;
  border-bottom: 1px solid #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jing-news-card-image {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}

.jing-news-card-tag {
  position: absolute;
  left: 29px;
  top: 220px;
  height: 40px;
  line-height: 40px;
  font-family: 'Cormorant Garamond', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #E7581A;
  white-space: nowrap;
}

.jing-news-card-subtitle {
  position: absolute;
  left: 29px;
  top: 265px; /* 1440 修正为 265px */
  width: calc(100% - 58px);
  max-height: 120px; /* 增加高度以容纳多行 */
  line-height: 38px;
  font-family: 'Open Sans Condensed', 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #00437A;
  white-space: normal; /* 允许换行 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ===================================
  首页样式 - YouTube (Figma: 770-97)
  =================================== */

.jing-youtube {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 10px;
  background: #FFFFFF;
}

.jing-youtube-media {
  width: 892px;
  max-width: 100%;
  aspect-ratio: 892 / 501;
  border: 1px solid #A6A6A6;
  overflow: hidden;
}

.jing-youtube-video {
  display: block;
  width: 100%;
  height: 100%;
}

/* Desktop 1280 (<=1280px) */
@media (max-width: 1280px) {
  .jing-banner {
    background: linear-gradient(156.34deg, rgb(36, 51, 91) 23%, rgb(0, 67, 115) 77%);
  }

  .jing-banner-wrapper {
    padding: 0 40px;
    height: 359px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jing-banner-content {
    gap: 27px;
    max-width: 618px; /* Based on 1280 - (331*2) from Figma context */
    height: auto;
    justify-content: center;
  }

  .jing-banner-title-wrapper {
    padding: 0 70px;
  }

  .jing-banner-info-wrapper {
    padding: 0 70px;
  }

  .jing-banner-title {
    font-size: 35px;
    width: 462px;
  }

  .jing-banner-btn-wrapper {
    padding: 0 70px;
  }

  .jing-btn-outline {
    font-size: 16px;
    letter-spacing: -0.16px;
  }

  /* News 1280 - 精确匹配 pad-1280 设计稿 (node-id: 1262:358) */
  .jing-news-list {
    padding: 0;
    width: 599px;
    max-width: 599px;
    margin: 0 auto;
  }

  .jing-news-title {
    width: 100%;
    padding: 35px 0;
  }

  .jing-news-grid {
    width: 100%;
    justify-content: space-between;
    gap: 47px 0;
    height: auto;
    min-height: auto;
  }

  .jing-youtube {
    padding: 35px 10px;
  }

  .jing-youtube-media {
    width: 598px;
    height: 386px;
  }

  .jing-breadcrumb {
    padding: 30px 20px;
  }

  .jing-container {
    max-width: 618px;
  }

  .jing-content-container {
    padding: 10px 0;
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .jing-banner {
    height: auto;
    min-height: 350px;
    background: linear-gradient(144.36deg, rgb(36, 51, 91) 23%, rgb(0, 67, 115) 77%);
  }

  .jing-banner-wrapper {
    padding: 82px 45px 113px 30px;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .jing-banner-content {
    gap: 22px;
    border-left: 3px solid #E7581A;
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .jing-banner-title-wrapper {
    padding: 0 0 0 40px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .jing-banner-info-wrapper {
    padding: 0 40px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .jing-banner-title {
    font-size: 30px;
    letter-spacing: -0.16px;
    width: 100%;
    text-align: left;
  }

  .jing-banner-btn-wrapper {
    padding: 0 40px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .jing-btn-outline {
    width: 121px;
    height: 39px;
    font-size: 16px;
    letter-spacing: -0.16px;
  }

  .jing-news-list {
    padding: 0 30px 23px;
    width: 100%;
    max-width: 708px;
    margin: 0 auto;
  }

  .jing-news-grid {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 47px;
  }

  .jing-news-card {
    width: 100%;
    height: auto;
    background: #FFFFFF;
    border: 1px solid #A6A6A6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .jing-news-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .jing-news-card-tag,
  .jing-news-card-subtitle {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0;
  }

  .jing-news-card-tag {
    font-family: 'Cormorant Garamond', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-style: italic;
    color: #E7581A;
    margin: 10px 0 0;
    letter-spacing: 0;
  }

  .jing-news-card-subtitle {
    font-family: 'Open Sans Condensed', 'Noto Sans JP', sans-serif;
    font-size: 22px;
    color: #00437A;
    margin: 5px 0 20px;
    line-height: 1.2;
  }

  .jing-youtube {
    padding: 35px 20px;
  }

  .jing-breadcrumb {
    padding: 20px 0;
    font-size: 12px;
    gap: 10px;
  }

  .jing-container {
    padding: 0 40px;
    max-width: 100%;
  }

  .jing-content-text {
    font-size: 16px;
  }

  .jing-content-container {
    width: 100%;
    padding: 10px 0;
  }
}

/* ===================================
  首页样式 - Help Section (Figma: 2938:758)
  =================================== */

.jing-help {
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  padding: 50px 0;
  width: 100%;
}

.jing-help-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jing-help-title {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 35px 0;
}

.jing-help-line {
  width: 81px;
  height: 2px;
  background: #000000;
}

.jing-help-heading {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 35px;
  font-weight: 300;
  color: #000000;
  margin: 0;
}

.jing-help-grid {
  display: flex;
  gap: 20px;
  width: 100%;
}

.jing-help-card {
  flex: 1;
  display: flex;
  border: 1px solid #000000;
  height: 232px;
  overflow: hidden;
}

.jing-help-card-image {
  width: 155px;
  height: 100%;
  flex-shrink: 0;
  background: #F5F5F5;
}

.jing-help-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jing-help-card-content {
  flex: 1;
  padding: 30px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.jing-help-card-title {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 39px;
  color: #24335B;
  text-transform: uppercase;
  margin: 0;
}

.jing-help-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #555555;
  line-height: 18px;
  margin: 16px 0;
}

.jing-help-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.jing-help-link-icon {
  width: 35px;
  height: 16px;
  background: url('../images/down-right.svg') no-repeat center;
  background-size: contain;
  /* 如果是作为背景图的 SVG，通常需要在 SVG 文件内部修改 fill 属性。
     如果是想通过 CSS 滤镜强制转为黑色（假设原图不是黑色）： */
  filter: brightness(0); 
}

.jing-help-link-text {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  color: #00437A;
}

/* Responsive Help Section */
@media screen and (max-width: 1280px) {
  .jing-help-container {
    max-width: 622px;
  }
  .jing-help-grid {
    flex-direction: column;
    gap: 18px;
  }
  .jing-help-card {
    height: auto;
    min-height: 232px;
  }
}

@media screen and (max-width: 768px) {
  .jing-help {
    padding: 20px;
  }
  .jing-help-container {
    width: 100%;
    padding: 10px 0;
  }
  .jing-help-grid {
    flex-direction: column;
    gap: 60px; /* 准确还原 768 稿件中的 60px 间距 */
  }
  .jing-help-card {
    flex-direction: column;
    height: auto;
    width: 100%;
    align-items: flex-start;
  }
  .jing-help-card-image {
    width: 100%;
    height: 232px;
    display: flex;
    align-items: center;
    padding: 0 50px; /* 准确还原 768 稿件中图片的左右 50px padding */
    box-sizing: border-box;
    background: #F5F5F5;
  }
  .jing-help-card-image img {
    width: 155px; /* 准确还原图片原始宽度 */
    height: 100%;
    object-fit: contain;
  }
  .jing-help-card-content {
    padding: 30px 50px; /* 准确还原 768 稿件中文字区域的 padding */
    width: 100%;
    box-sizing: border-box;
  }
}

/* ===================================
  首页样式 - News Card Hover (Figma: 2953:1130)
  =================================== */

.jing-news-card {
  position: relative;
  overflow: hidden;
}

.jing-news-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 67, 122, 0.8); /* Figma: #00437a opacity 80% */
  display: flex;
  flex-direction: column;
  padding: 45px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none; /* 防止遮罩层干扰点击 */
}

.jing-news-card:hover .jing-news-card-overlay {
  opacity: 1;
}

.jing-news-overlay-tag {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-style: italic;
  font-size: 22px;
  color: #E7581A;
  line-height: 40px;
  margin-bottom: 9px;
}

.jing-news-overlay-title {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  line-height: 40px;
  margin-bottom: 62px;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jing-news-overlay-desc {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  color: #FFFFFF;
  line-height: 40px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jing-news-overlay-link {
  margin-top: auto;
}

.jing-news-overlay-icon {
  display: block;
  width: 35px;
  height: 16px;
  background: url('../images/down-right-white.svg') no-repeat center;
  background-size: contain;
  /* 如果没有白色版 SVG，可以使用滤镜转白 */
  filter: brightness(0) invert(1);
}

/* 移动端禁用此悬停效果或保持默认状态 */
@media screen and (max-width: 768px) {
  .jing-news-card-overlay {
    display: none;
  }
}
