@charset "utf-8";

body.lc-page {
  background: #ffffff;
  color: #22314e;
}

.lc-main { overflow: hidden; }

.lc-page .section.lc-section {
  padding: 0 0 80px;
  background: url("../images/bg.png") center top / cover no-repeat;
}

.lc-panel {
  min-height: calc(100vh - 970px);
  padding: 40px 32px;
  background: #ffffff;
  box-sizing: border-box;
}

.lc-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

.lc-sidebar {
  width: 272px;
}

.lc-nav-window {
  width: 272px;
}

.lc-nav-head-window {
  background-image: url("../images/list-top.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.lc-nav-window,
.lc-nav-window > div[frag] {
  width: 100%;
  background: #fafafa;
}

.lc-nav-head {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 32px 24px;
  background: transparent;
  background-image: url("../images/list-top.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.45;
  box-sizing: border-box;
}

.lc-nav-list,
.lc-subnav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-nav-list {
  padding: 0 24px 146px;
  background: transparent;
}

.lc-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
  color: var(--color-primary-2);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
}

.lc-nav-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}

.lc-nav-arrow {
  position: relative;
  display: none;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 16px;
  color: var(--color-primary);
}

.lc-nav-arrow::before,
.lc-nav-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  transform-origin: right center;
}

.lc-nav-arrow::before {
  transform: translateY(-50%) rotate(45deg);
}

.lc-nav-arrow::after {
  transform: translateY(-50%) rotate(-45deg);
}

.lc-subnav-list {
  padding: 0;
  background: transparent;
}

.lc-subnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  width: 100%;
  max-width: 100%;
  padding: 10px 0 10px 48px;
  border-bottom: 1px solid #eeeeee;
  color: var(--color-primary-2);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
}

.lc-subnav-text {
  display: block;
  width: 144px;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}

.lc-nav-item.has-subnav {
  border-bottom: 1px solid #eeeeee;
}

.lc-nav-item.has-subnav .lc-subnav-item:last-child > .lc-subnav-link,
.lc-nav-item:last-child:not(.has-subnav) > .lc-nav-link,
.lc-nav-item:last-child.has-subnav {
  border-bottom: 0;
}

.lc-nav-item.selected > .lc-nav-link,
.lc-nav-link.selected,
.lc-nav-item.is-ancestor-selected > .lc-nav-link,
.lc-nav-link.is-ancestor-selected,
.lc-subnav-link.selected,
.lc-subnav-item.selected > .lc-subnav-link {
  color: var(--color-primary);
  font-weight: 700;
  background: transparent;
}

.lc-nav-item.selected:not(.is-ancestor-selected) > .lc-nav-link .lc-nav-arrow,
.lc-nav-link.selected:not(.is-ancestor-selected) .lc-nav-arrow {
  display: block;
}

.lc-nav-item.is-ancestor-selected > .lc-nav-link .lc-nav-arrow,
.lc-nav-link.is-ancestor-selected .lc-nav-arrow {
  display: none;
}

.lc-content {
  min-width: 0;
}

.lc-content .wp-position-window {
  margin-bottom: 20px;
}

.lc-content-main {
  padding: 30px 0;
  border-top: 1px solid #BACAE0;
  min-height: 520px;
}

.lc-content-window,
.lc-content-window > [frag="窗口内容"],
.lc-content-placeholder {
  min-height: inherit;
}

.no-content-main {
  padding: 30px 0;
}

/* 培养方案窗口高度由内容撑开，不继承父级 min-height */
.no-list-window,
.no-list-window > [frag="窗口内容"] {
  min-height: 0;
}

.no-list-window .ld-plan-wrap {
  width: 100%;
}

.no-list-window .ld-plan-title {
  margin: 0;
  color: var(--color-primary-2);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.no-list-window .ld-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.no-list-window .ld-plan-card {
  display: block;
  min-height: 108px;
  padding: 24px 20px;
  background: #f7f7f7;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.no-list-window .ld-plan-card:hover {
  background: #eef3fa;
}

.no-list-window .ld-plan-card a {
  cursor: pointer;
  text-decoration: none;
}

.no-list-window .ld-plan-card-title,
.no-list-window .ld-plan-card-title a {
  display: block;
  color: var(--color-primary-2);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.no-list-window .ld-plan-card-more {
  margin-top: 8px;
  color: #4d6f9f;
  font-size: 14px;
  line-height: 1.4;
}

.no-list-window .ld-plan-card-more a {
  color: inherit;
}

/* 培养方案页底部说明文字（静态 HTML，段落字号/缩进由行内样式控制） */
.no-intro-text {
  padding: 40px 0 44px;
  color: #000;
  box-sizing: border-box;
}

.no-intro-text a {
  color: inherit;
}

.no-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.no-notice-item {
  margin: 0 0 10px;
}

.no-notice-item:last-child {
  margin-bottom: 0;
}

.no-notice-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 122px;
  padding: 24px 24px 18px;
  border-bottom: 1px dashed #999999;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.no-notice-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.no-notice-date,
.no-notice-body {
  position: relative;
  z-index: 2;
}

.no-notice-link:hover {
  background: linear-gradient(270deg, rgba(232, 242, 255, 0.5) 0%, rgba(215, 232, 255, 0.5) 100%);
  border-bottom: 1px solid #ffffff;
  transform: translateX(6px);
  box-shadow: -10px 12px 28px rgba(26, 63, 117, 0.08);
}

.no-notice-link:focus-visible {
  outline: 2px solid rgba(11, 78, 162, 0.35);
  outline-offset: 2px;
}

.no-notice-date {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 70px;
  height: 70px;
  transition: transform 0.28s ease;
}

.no-notice-day {
  color: var(--color-primary);
  font-family: "DIN", "D-DIN", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.28s ease;
}

.no-notice-month {
  color: #788393;
  font-family: "D-DIN Exp", "D-DIN", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
  transition: color 0.28s ease;
}

.no-notice-body {
  display: block;
  min-width: 0;
  margin-left: 15px;
  transition: transform 0.28s ease;
}

.no-notice-title {
  display: block;
  color: var(--color-primary-2);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.28s ease;
}

.no-notice-summary {
  display: -webkit-box;
  margin-top: 10px;
  color: var(--color-primary-3);
  font-size: 16px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.28s ease;
}

.no-notice-link:hover .no-notice-date {
  transform: translateX(-4px) scale(1.03);
}

.no-notice-link:hover .no-notice-body {
  transform: translateX(8px);
}

.no-notice-link:hover .no-notice-day,
.no-notice-link:hover .no-notice-title {
  color: #0b4ea2;
}

.no-notice-link:hover .no-notice-month,
.no-notice-link:hover .no-notice-summary,
.no-notice-link:focus-visible .no-notice-month,
.no-notice-link:focus-visible .no-notice-summary {
  color: #5e718c;
}

.no-notice-link:focus-visible .no-notice-date {
  transform: translateX(-4px) scale(1.03);
}

.no-notice-link:focus-visible .no-notice-body {
  transform: translateX(8px);
}

.no-notice-link:focus-visible .no-notice-day,
.no-notice-link:focus-visible .no-notice-title {
  color: #0b4ea2;
}

@media (max-width: 1320px) {
  .lc-page .container,
  .lc-page .inner { max-width: calc(100% - 40px); }
}

@media (max-width: 1140px) {
  .lc-panel {
    min-height: calc(100vh - 900px);
    padding: 32px 28px;
  }

  .lc-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    column-gap: 32px;
  }
}

@media (max-width: 960px) {
  .lc-page .container,
  .lc-page .inner { max-width: calc(100% - 28px); }

  .lc-panel {
    min-height: calc(100vh - 820px);
    padding: 28px 24px;
  }

  .lc-layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .lc-sidebar,
  .lc-nav-window {
    width: 100%;
  }

  .lc-nav-head {
    min-height: 96px;
    padding: 24px 20px;
    font-size: 28px;
  }

  .lc-nav-list {
    padding: 0 20px 120px;
  }

  .lc-content-main {
    padding: 28px 0;
  }

  .no-content-main {
    padding: 28px 0;
  }

  .no-list-window .ld-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
  }

  .no-intro-text {
    padding: 28px 0 32px;
  }

  .no-list-window .ld-plan-card {
    min-height: 100px;
    padding: 20px 18px;
  }

  .no-notice-link {
    min-height: 0;
    padding: 22px 20px 18px;
  }
}

@media (max-width: 720px) {
  .lc-page .container,
  .lc-page .inner { max-width: calc(100% - 20px); }

  .lc-page .section.lc-section {
    padding: 0 0 80px;
  }

  .lc-panel {
    min-height: calc(100vh - 760px);
    padding: 24px 20px;
  }

  .lc-nav-head {
    min-height: 88px;
    padding: 20px 18px;
    font-size: 24px;
  }

  .lc-nav-list {
    padding: 0 18px 94px;
  }

  .lc-nav-link {
    font-size: 18px;
    min-height: 58px;
  }

  .lc-subnav-link {
    min-height: 58px;
    padding-left: 36px;
    font-size: 17px;
  }

  .lc-subnav-text {
    width: auto;
  }

  .no-content-main {
    padding: 24px 0;
  }

  .no-list-window .ld-plan-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  .no-list-window .ld-plan-card {
    min-height: 0;
    padding: 16px 14px;
  }

  .no-list-window .ld-plan-card-title,
  .no-list-window .ld-plan-card-title a {
    font-size: 16px;
  }

  .no-notice-link {
    align-items: center;
    padding: 18px 16px 16px;
  }

  .no-notice-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
  }

  .no-notice-day {
    font-size: 32px;
  }

  .no-notice-month {
    font-size: 14px;
    line-height: 22px;
  }

  .no-notice-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .no-notice-summary {
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 540px) {
  .lc-page .container,
  .lc-page .inner { max-width: calc(100% - 16px); }

  .lc-panel {
    min-height: calc(100vh - 700px);
    padding: 20px 16px;
  }

  .lc-nav-head {
    min-height: 80px;
    padding: 18px 16px;
    font-size: 22px;
  }

  .lc-nav-list {
    padding: 0 16px 80px;
  }

  .lc-nav-link {
    padding: 10px 0;
    min-height: 54px;
    font-size: 17px;
  }

  .lc-subnav-link {
    min-height: 54px;
    padding: 10px 0 10px 28px;
    font-size: 16px;
  }

  .lc-content-main {
    padding: 24px 0;
  }

  .no-content-main {
    padding: 22px 0;
  }

  .no-list-window .ld-plan-title {
    font-size: 22px;
  }

  .no-notice-link {
    align-items: center;
    padding: 16px 0 14px;
  }

  .no-notice-date {
    width: 56px;
    height: 56px;
    justify-content: center;
  }

  .no-notice-body {
    margin-left: 12px;
  }

  .no-notice-day {
    font-size: 28px;
  }

  .no-notice-month {
    font-size: 12px;
    line-height: 18px;
  }

  .no-notice-title {
    font-size: 16px;
    line-height: 1.5;
  }

  .no-notice-summary {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 1;
  }
}

.lng-content-main {
  padding: 30px 0;
}

.lng-list-window,
.lng-list-window > [frag="窗口内容"] {
  min-height: inherit;
}

.lng-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lng-news-item {
  display: flex;
  min-width: 0;
}

.lng-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: #dfe9f6;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 54, 104, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.lng-news-cover-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.lng-news-thumb,
.lng-news-title {
  position: relative;
  z-index: 2;
}

.lng-news-thumb {
  position: relative;
  display: block;
  aspect-ratio: 380 / 250;
  overflow: hidden;
  background: #dfe9f6;
}

.lng-news-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lng-news-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 46px;
  padding: 8px 12px;
  background: #003277;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}

.lng-news-title a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.lng-news-card:hover,
.lng-news-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(17, 54, 104, 0.16);
}

.lng-news-card:hover .lng-news-image,
.lng-news-card:focus-within .lng-news-image {
  transform: scale(1.06);
}

@media (max-width: 1140px) {
  .lng-news-grid {
    gap: 20px 18px;
  }
}

@media (max-width: 960px) {
  .lng-content-main {
    padding: 28px 0;
  }

  .lng-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 720px) {
  .lng-content-main {
    padding: 24px 0;
  }

  .lng-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lng-news-title {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .lng-content-main {
    padding: 22px 0;
  }

  .lng-news-title {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 15px;
  }
}

/* 正文内双栏卡片表格（普通类/强基计划）：移动端改为上下堆叠 */
@media (max-width: 768px) {
  .lc-content-main table[style*="table-layout"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-spacing: 0 !important;
  }

  .lc-content-main table[style*="table-layout"] colgroup {
    display: none !important;
  }

  .lc-content-main table[style*="table-layout"] > tbody {
    display: grid !important;
    grid-template-columns: 100%;
  }

  /* tr 不参与布局，td 成为 grid 子项，便于重排顺序 */
  .lc-content-main table[style*="table-layout"] tr {
    display: contents !important;
  }

  .lc-content-main table[style*="table-layout"] td {
    display: block !important;
    width: auto !important;
    box-sizing: border-box;
  }

  /* 顺序：表头1 → 内容1 → 表头2 → 内容2 */
  .lc-content-main table[style*="table-layout"] tr:nth-child(1) td:nth-child(1) { order: 1; }
  .lc-content-main table[style*="table-layout"] tr:nth-child(2) td:nth-child(1) { order: 2; }
  .lc-content-main table[style*="table-layout"] tr:nth-child(1) td:nth-child(2) { order: 3; margin-top: 20px; }
  .lc-content-main table[style*="table-layout"] tr:nth-child(2) td:nth-child(2) { order: 4; }

  .lc-content-main table[style*="table-layout"] tr:nth-child(2) td {
    padding: 20px 16px 22px !important;
  }
}
