.home-page {
  background: linear-gradient(
    180deg,
    #fff 0%,
    #fff 39%,
    #f4f9f8 62%,
    #e4efed 86%,
    #e9f1f0 100%
  );
}
.home-page::before {
  background-position: center top;
  background-size: 2166px auto;
  opacity: 1;
}

.home-main { padding: 27px 0 0; }

.home-lead {
  --hero-height: 360px;
  --hero-caption-height: 56px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hero-slider { position: relative; overflow: hidden; background: #fff; }
.hero-slides { position: relative; height: var(--hero-height); }
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .55s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide:focus-visible { outline: 3px solid #6bdc53; outline-offset: -3px; }
.hero-media { height: var(--hero-height); }
.hero-media { overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hero-slide:hover .hero-media img { transform: scale(1.015); }
.hero-caption {
  box-sizing: border-box;
  position: absolute;
  inset: auto 0 0;
  height: var(--hero-caption-height);
  display: flex;
  align-items: flex-start;
  padding: 8px 16px;
  color: #fff;
  background: url("../assets/images/hero-caption-gradient.png") center bottom / 100% 100% no-repeat;
}
.hero-caption h1 {
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.3;
  text-overflow: ellipsis;
  transform: translateY(-8px);
  white-space: nowrap;
}
.hero-dots { position: absolute; z-index: 2; right: 16px; bottom: 7px; display: flex; gap: 2px; }
.hero-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.hero-dots button::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 11px;
  height: 2px;
  background: rgba(255,255,255,.55);
}
.hero-dots button.active::before { background: #6bdc53; }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-media img { transition: none; }
}

.notice-panel { height: var(--hero-height); display: flex; flex-direction: column; margin-left: 20px; padding: 0; background: #fff; }
.home-tabs { flex: 0 0 40px; display: flex; align-items: flex-start; gap: 30px; border-bottom: 1px solid #96b0df; }
.home-tabs button { height: 40px; padding: 0 0 8px; border: 0; color: #404040; background: transparent; font-size: 20px; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.home-tabs button.active { color: var(--green-700); font-weight: 700; border-bottom: 3px solid var(--green-700); }
.notice-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  margin: 0;
  padding: 4px 8px 0 0;
  list-style: none;
}
.notice-list[hidden] { display: none; }
.notice-list li { min-width: 0; min-height: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.55; }
.notice-list a { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { flex: 0 0 auto; color: #8c9490; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-caption h1.is-bold, .notice-list a.is-bold, .updates-list a.is-bold, .expert-feature-title.is-bold, .expert-links a.is-bold { font-weight: 700; }
.notice-list a:hover { color: var(--green-600); }
.updates-list a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 13px;
  background: var(--green-600);
}
.tab-panel[hidden] { display: none; }

.updates { margin-top: 27px; }
.updates-tabs { display: flex; border-bottom: 1px solid #d4dad7; overflow-x: auto; }
.updates-tabs button { flex: 0 0 auto; height: 45px; padding: 0 24px; border: 0; color: #333; background: transparent; font-size: 18px; font-weight: 600; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.updates-tabs button:hover, .updates-tabs button:focus-visible { color: var(--green-700); background: #eef7ef; }
.updates-tabs button.active {
  padding-left: 18px;
  padding-right: 38px;
  color: #fff;
  background-color: transparent;
  /* 文字对齐到斜边起点前的矩形区域；右侧多留 20px 给斜切部分。 */
  background-image: linear-gradient(#1f6822, #1f6822), url("../assets/images/updates-tab-active.png");
  background-size: calc(100% - 20px) 100%, auto 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}
.updates-panel { display: grid; grid-template-columns: minmax(0, 1fr) 418px; gap: 24px; padding: 10px 0 0; }
.updates-panel[hidden] { display: none; }
.updates-list { margin: 0; padding: 0; list-style: none; }
.updates-list li { min-height: 41px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 4px 8px; font-size: 18px; }
.updates-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.updates-list time { color: #555; }
.updates-image img { width: 418px; height: 251px; object-fit: cover; }

.conference-banner { display: block; margin-top: 29px; }
.conference-banner img { width: 100%; height: 130px; object-fit: cover; }
.feature-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.feature-links a {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  border-radius: 3px;
  color: #333;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 78, 18, 0);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  transform: translateY(0);
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feature-links a:hover,
.feature-links a:focus-visible {
  color: #fff;
  background-color: #325a16;
  background-image: url("../assets/images/feature-link-hover.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  outline: 0;
}

.home-lower { margin-top: 0; padding: 27px 0 37px; background: transparent; }
.columns-two { display: grid; grid-template-columns: 756px 418px; gap: 26px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: 20px; color: #314054; }
.section-title img { width: 42px; height: 42px; }
.section-title-logo { width: 1em; height: 1em; flex: 0 0 1em; background: url("../assets/images/section-heading-logo.png") center / contain no-repeat; }
.section-title > a { display: inline-flex; align-items: center; gap: 8px; color: inherit; transition: color .18s ease; }
.section-title > a:hover, .section-title > a:focus-visible { color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 241px); gap: 15px 16px; }
.branch-card { position: relative; height: 65px; display: flex; align-items: center; padding: 0 19px; overflow: hidden; border-radius: 4px; color: #294b54; font-size: 18px; font-weight: 600; }
.branch-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.expert-feature { min-width: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.expert-feature img { width: 180px; height: 108px; object-fit: cover; border-radius: 3px; }
.expert-feature p { min-width: 0; margin: 0; }
.expert-feature-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.expert-feature small { display: block; margin-top: 6px; overflow: hidden; color: var(--green-700); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.expert-feature:hover p, .expert-feature:focus-visible p { color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }
.expert-feature:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }
.expert-links { margin: 17px 0 0; padding: 13px 0 0; border-top: 1px solid #d8e4df; list-style: none; font-size: 18px; }
.expert-links li { min-width: 0; margin-top: 8px; }
.expert-links a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.partners { margin-top: 27px; }
.partners .section-title { margin-bottom: 17px; }
.partner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.partner-logo {
  min-width: 0;
  height: 65px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 3px;
  background: #fff;
  transition: box-shadow .2s ease;
}
.partner-logo--dihill { padding: 0; }
.partner-logo-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.partner-logo:hover,
.partner-logo:focus-visible {
  box-shadow: 0 5px 14px rgba(22, 92, 69, .18);
}
.partner-logo:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: -2px;
}

@media (min-width: 781px) and (max-width: 1435px) {
  .home-main { width: min(var(--content-width), calc(100% - 200px)); }
}

@media (max-width: 1100px) {
  .home-lead { --hero-height: clamp(220px, calc(34vw - 48px), 326px); --hero-caption-height: 62px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
  .hero-caption { padding: 6px 12px; }
  .hero-caption h1 { font-size: 14px; }
  .home-tabs { flex-basis: 32px; gap: 20px; }
  .home-tabs button { height: 32px; padding-bottom: 5px; font-size: 16px; }
  .notice-list { padding-top: 4px; }
  .notice-list li { font-size: 14px; line-height: 1.4; gap: 6px; }
  .notice-list time { font-size: 11px; }
  .updates-tabs button { padding-inline: 12px; font-size: 16px; }
  .updates-tabs button.active { padding-left: 10px; padding-right: 30px; }
  .columns-two { grid-template-columns: 1.65fr 1fr; }
  .branch-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-feature { grid-template-columns: 160px 1fr; }
  .expert-feature img { width: 160px; height: 98px; }
}

@media (max-width: 780px) {
  .updates-list a::before { width: 7px; height: 7px; margin-right: 8px; }
  .home-main { padding-top: 14px; }
  .home-lead { --hero-height: clamp(331px, calc(68vw + 71px), 431px); --hero-caption-height: 56px; grid-template-columns: minmax(0, 1fr); }
  .notice-panel { height: auto; display: block; }
  .notice-list { height: auto; display: block; margin-top: 8px; }
  .notice-list[hidden] { display: none; }
  .notice-list li { margin-bottom: 13px; font-size: 18px; line-height: 1.55; }
  .notice-list time { font-size: 14px; }
  .home-tabs { flex-basis: 40px; gap: 22px; }
  .home-tabs button { height: 40px; padding-bottom: 8px; font-size: 20px; }
  .hero-caption { padding: 8px 16px; }
  .hero-caption h1 { font-size: 22px; }
  .updates-panel { grid-template-columns: 1fr; padding-inline: 0; }
  .updates-image { order: -1; }
  .updates-image img { height: 190px; }
  .conference-banner img { height: 86px; }
  .feature-links { grid-template-columns: repeat(2, 1fr); }
  .columns-two { grid-template-columns: 1fr; }
  .home-body .columns-two { min-height: 0; }
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .home-tabs button { font-size: 15px; padding-inline: 3px; }
  .hero-caption h1 { font-size: 17px; }
  .updates-list li { font-size: 14px; }
  .feature-links { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: 1fr; }
  .expert-feature { grid-template-columns: 120px 1fr; }
  .expert-feature img { width: 120px; height: 82px; }
}

@media (max-width: 600px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
