﻿@charset "utf-8";

body.sf-page {
  background: #ffffff;
  color: #22314e;
}

.sf-main { overflow: hidden; }

.sf-page .section {
  padding: 80px 0;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.sf-section--one { background-image: url("../images/bg1.png"); }
.sf-section--two { background-image: url("../images/bg2.png"); }
.sf-section--three { background-image: url("../images/bg3.png"); }

.sf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 219px;
  gap: 0;
  align-items: stretch;
}

.sf-card--reverse {
  grid-template-columns: 219px minmax(0, 1fr);
}

.sf-main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.sf-main-window {
  position: relative;
  height: 100%;
}

.sf-main-window > div:first-child {
  height: 100%;
}

.sf-main-panel {
  display: grid;
  grid-template-columns: 574px minmax(0, 1fr);
  gap: 0;
  min-height: 402px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sf-main-panel--reverse {
  grid-template-columns: minmax(0, 1fr) 574px;
}

.sf-visual {
  width: 574px;
  min-height: 402px;
}

.sf-visual-box {
  width: 100%;
  height: 402px;
  overflow: hidden;
  background: #dfe7f4;
}

.sf-visual-box,
.sf-visual-box img,
.sf-visual-box a {
  display: block;
  width: 100%;
  /* height: 100%; */
}

.sf-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
  will-change: transform;
}

.sf-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
}

.sf-title {
  color: var(--color-primary-2);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.sf-summary {
  margin-top: 30px;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-primary-3);
  text-indent: 2em;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 138px;
  width: 138px;
  height: 48px;
  margin-top: auto;
  padding: 8px 14px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.sf-action-window {
  cursor: pointer;
  transition: transform 0.35s ease;
}

.sf-action-window > div,
.sf-action-window .wp_column {
  display: block;
}

.sf-main-window .sf-action-window {
  position: absolute;
  left: 604px;
  bottom: 28px;
  z-index: 2;
}

.sf-action-window--history {
  position: absolute;
  left: 758px;
  bottom: 28px;
  z-index: 2;
  display: block;
  min-width: 0;
  width: 138px;
  height: 48px;
  margin: 0;
  padding: 0;
}

.sf-main-wrap--reverse .sf-main-window .sf-action-window {
  left: 30px;
}

.sf-main-wrap--reverse .sf-action-window--history {
  left: 184px;
}

.sf-action-content {
  display: none;
}

.sf-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  white-space: nowrap;
}

.sf-action a,
.sf-action a:hover,
.sf-action a:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #ffffff;
}

.sf-action-window--history > a,
.sf-action-window--history td > a,
.sf-action-window--history > div > a,
.sf-action-window--history .Column_Name a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 138px;
  width: 138px;
  height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.sf-action-window--history > a:hover,
.sf-action-window--history td > a:hover,
.sf-action-window--history > a:focus,
.sf-action-window--history td > a:focus,
.sf-action-window--history > div > a:hover,
.sf-action-window--history > div > a:focus,
.sf-action-window--history .Column_Name a:hover,
.sf-action-window--history .Column_Name a:focus {
  color: #ffffff;
}

.sf-action a::after,
.sf-action-window--history > a::after,
.sf-action-window--history td > a::after,
.sf-action-window--history > div > a::after,
.sf-action-window--history .Column_Name a::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 40%, 0 60%, 58% 60%, 58% 86%, 100% 50%, 58% 14%, 58% 40%);
}

.sf-action:hover,
.sf-action:focus-within,
.sf-action:hover a,
.sf-action:focus-within a,
.sf-action-window--history > a:hover,
.sf-action-window--history > a:focus,
.sf-action-window--history td > a:hover,
.sf-action-window--history td > a:focus,
.sf-action-window--history > div > a:hover,
.sf-action-window--history > div > a:focus,
.sf-action-window--history .Column_Name a:hover,
.sf-action-window--history .Column_Name a:focus {
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
  color: #ffffff;
}

.sf-main-panel:hover,
.sf-main-window:focus-within .sf-main-panel {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(19, 58, 102, 0.12);
}

.sf-main-panel:hover .sf-visual-box img,
.sf-main-window:focus-within .sf-visual-box img {
  transform: scale(1.05);
}

.sf-side-window,
.sf-side-window > div:first-child {
  height: 100%;
}

.sf-side-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  min-height: 402px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-side-item {
  min-height: 0;
}

.sf-side-window .wp_nav {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.sf-side-window .wp_nav tbody {
  display: block;
  width: 100%;
  height: 100%;
}

.sf-side-window .wp_nav tr {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
}

.sf-side-window .wp_nav td {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.sf-side-window > div:first-child {
  display: grid;
  /* grid-template-rows: repeat(4, minmax(0, 1fr)); */
  min-height: 402px;
}

.sf-side-window .wp_nav tr,
.sf-side-window .wp_nav tbody {
  height: 100%;
}

.sf-side-window .wp_nav tr,
.sf-side-window > div:first-child {
  min-height: 402px;
}

.sf-side-window .wp_nav tr {
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.sf-side-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: #1C4F98;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.sf-side-item:nth-child(even) .sf-side-link,
.sf-side-window .wp_nav td:nth-child(even) .sf-side-link,
.sf-side-window > div:first-child > .sf-side-link:nth-child(even) {
  background: #396CB4;
}

.sf-side-link:hover,
.sf-side-link:focus-within {
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

@media (max-width: 1320px) {
  .sf-page .container,
  .sf-page .inner { max-width: calc(100% - 40px); }

  .sf-card,
  .sf-card--reverse {
    grid-template-columns: 1fr;
  }

  .sf-side-list,
  .sf-side-window > div:first-child,
  .sf-side-window .wp_nav tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: auto;
  }

  .sf-side-window .wp_nav {
    height: auto;
  }

  .sf-side-window .wp_nav tbody,
  .sf-side-window .wp_nav tr,
  .sf-side-window .wp_nav td {
    height: auto;
  }

  .sf-side-link {
    min-height: 88px;
    font-size: 16px;
  }

  /* 移动/中屏统一为“第一块”阅读顺序：主内容在前，侧栏在后 */
  .sf-card--reverse .sf-main-wrap--reverse {
    order: 1;
  }

  .sf-card--reverse .sf-side-window {
    order: 2;
  }
}

@media (max-width: 1140px) {
  .sf-page .section {
    padding: 64px 0;
  }

  .sf-main-panel,
  .sf-main-panel--reverse {
    grid-template-columns: 1fr;
  }

  /* 第二块在移动端也保持“图上文下” */
  .sf-main-panel--reverse .sf-visual {
    order: 1;
  }

  .sf-main-panel--reverse .sf-content {
    order: 2;
  }

  .sf-visual {
    width: 100%;
    min-height: auto;
  }

  .sf-visual-box {
    height: 344px;
  }

  .sf-content {
    padding: 26px;
    padding-bottom: 86px;
  }

  .sf-title {
    font-size: 22px;
  }

  .sf-summary {
    margin-top: 24px;
    font-size: 16px;
    line-height: 28px;
  }

  .sf-main-window .sf-action-window,
  .sf-main-wrap--reverse .sf-main-window .sf-action-window {
    left: 26px;
    bottom: 26px;
  }

  .sf-action-window--history,
  .sf-main-wrap--reverse .sf-action-window--history {
    left: 176px;
  }

  .sf-side-window {
    margin-top: 14px;
  }
}

@media (max-width: 960px) {
  .sf-page .container,
  .sf-page .inner { max-width: calc(100% - 28px); }

  .sf-page .section {
    padding: 56px 0;
  }

  .sf-visual-box {
    height: 286px;
  }

  .sf-content {
    padding: 22px;
    padding-bottom: 80px;
  }

  .sf-title {
    font-size: 20px;
  }

  .sf-summary {
    margin-top: 18px;
    font-size: 15px;
    line-height: 26px;
  }

  .sf-action {
    width: 128px;
    min-width: 128px;
    height: 44px;
    font-size: 16px;
  }

  .sf-main-window .sf-action-window,
  .sf-main-wrap--reverse .sf-main-window .sf-action-window {
    left: 22px;
    bottom: 22px;
  }

  .sf-action-window--history,
  .sf-main-wrap--reverse .sf-action-window--history {
    left: 160px;
  }

  .sf-side-list,
  .sf-side-window > div:first-child,
  .sf-side-window .wp_nav tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .sf-side-link {
    min-height: 74px;
    font-size: 14px;
    padding: 14px 10px;
  }
}

@media (max-width: 720px) {
  .sf-page .container,
  .sf-page .inner { max-width: calc(100% - 20px); }

  .sf-page .section {
    padding: 36px 0;
  }

  .sf-visual-box {
    height: 208px;
  }

  .sf-content {
    padding: 16px;
    padding-bottom: 76px;
  }

  .sf-title {
    font-size: 16px;
  }

  .sf-summary {
    margin-top: 12px;
    font-size: 13px;
    line-height: 22px;
    text-indent: 0;
  }

  .sf-action {
    width: 120px;
    min-width: 120px;
    height: 40px;
    font-size: 14px;
  }

  .sf-main-window .sf-action-window,
  .sf-main-wrap--reverse .sf-main-window .sf-action-window {
    left: 16px;
    bottom: 16px;
  }

  .sf-action-window--history,
  .sf-main-wrap--reverse .sf-action-window--history {
    left: 144px;
  }

  .sf-side-link {
    min-height: 60px;
    font-size: 11px;
    padding: 10px 8px;
  }

  .sf-side-window .wp_nav {
    gap: 8px;
  }

  .sf-side-window .wp_nav > .nav-item {
    display: block;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    border-radius: 8px;
  }

  .sf-side-window .wp_nav > .nav-item > a .item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
}

@media (max-width: 540px) {
  .sf-page .container,
  .sf-page .inner { max-width: calc(100% - 16px); }

  .sf-page .section {
    padding: 28px 0;
  }

  .sf-visual-box {
    height: 176px;
  }

  .sf-content {
    padding: 14px 12px;
    padding-bottom: 68px;
  }

  .sf-title {
    font-size: 14px;
  }

  .sf-summary {
    margin-top: 10px;
    font-size: 12px;
    line-height: 20px;
  }

  .sf-action {
    width: 112px;
    min-width: 112px;
    height: 38px;
    font-size: 13px;
  }

  .sf-main-window .sf-action-window,
  .sf-main-wrap--reverse .sf-main-window .sf-action-window {
    left: 12px;
    bottom: 12px;
  }

  .sf-action-window--history,
  .sf-main-wrap--reverse .sf-action-window--history {
    left: 132px;
    bottom: 12px;
  }

  .sf-side-list,
  .sf-side-window > div:first-child,
  .sf-side-window .wp_nav tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-side-link {
    min-height: 52px;
    font-size: 10px;
  }

  .sf-side-window .wp_nav {
    gap: 6px;
  }
}

/* simpleList 缁戝畾鑿滃崟杈撳嚭鍏煎锛歸p_nav > li.nav-item > a */
.sf-side-window ul,
.sf-side-window li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-side-window .wp_nav {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-height: 402px;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.sf-side-window .wp_nav > .nav-item {
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.sf-side-window .wp_nav > .nav-item > a {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 16px;
  border: 0;
  background: #1c4f98;
  color: #ffffff;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.sf-side-window .wp_nav > .nav-item > a .item-name {
  display: block;
  color: inherit;
  font-size: inherit !important;
  line-height: inherit;
}

.sf-side-window .wp_nav > .nav-item:nth-child(even) > a {
  background: #3386d3;
}

.sf-side-window .wp_nav > .nav-item > a:hover,
.sf-side-window .wp_nav > .nav-item > a:focus {
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

@media (hover: none) {
  .sf-main-panel {
    transition: none;
  }

  .sf-main-panel:hover,
  .sf-main-window:focus-within .sf-main-panel {
    transform: none;
    box-shadow: none;
  }

  .sf-visual-box img {
    transition: none;
  }

  .sf-main-panel:hover .sf-visual-box img,
  .sf-main-window:focus-within .sf-visual-box img {
    transform: none;
  }

  .sf-side-link,
  .sf-side-window .wp_nav > .nav-item > a {
    transition: none;
  }

  .sf-side-link:hover,
  .sf-side-link:focus-within,
  .sf-side-window .wp_nav > .nav-item > a:hover,
  .sf-side-window .wp_nav > .nav-item > a:focus {
    filter: none;
    box-shadow: none;
  }

}

.sf-side-window .wp_nav > .nav-item > i.mark,
.sf-side-window .wp_nav > .nav-item > .sub-nav {
  display: none;
}

@media (max-width: 1320px) {
  .sf-side-window .wp_nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: auto;
    height: auto;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 92px;
    font-size: 16px !important;
  }
}

@media (max-width: 960px) {
  .sf-side-window .wp_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 78px;
    font-size: 14px !important;
  }
}

@media (max-width: 720px) {
  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 64px;
    font-size: 11px !important;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .sf-side-window .wp_nav {
    gap: 8px;
  }

  .sf-side-window .wp_nav > .nav-item {
    display: block;
  }

  .sf-side-window .wp_nav > .nav-item > a .item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
}

@media (max-width: 540px) {
  .sf-side-window .wp_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 56px;
    font-size: 10px !important;
  }

  .sf-side-window .wp_nav {
    gap: 6px;
  }
}

/* side-item 响应式美化兜底（放在文件末尾，避免被前文重复规则覆盖） */
@media (max-width: 1320px) {
  .sf-side-window {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .sf-side-window > div[id^="wp_nav_w"],
  .sf-side-window > div:first-child {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .sf-side-window .wp_nav {
    align-items: stretch;
    width: 100% !important;
    gap: 0;
  }

  .sf-side-window .wp_nav > .nav-item {
    min-width: 0;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    position: relative;
    min-height: 88px;
    height: 100%;
    width: 100%;
    padding: 12px 10px;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .sf-side-window .wp_nav > .nav-item > a .item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: balance;
    word-break: break-word;
  }
}

@media (max-width: 960px) {
  .sf-side-window .wp_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 60px;
    font-size: 14px !important;
    line-height: 1.25;
    padding: 8px 6px;
    border-radius: 0;
  }
}

@media (max-width: 720px) {
  .sf-side-window .wp_nav {
    gap: 0;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 54px;
    font-size: 11px !important;
    line-height: 1.22;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 540px) {
  .sf-side-window .wp_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .sf-side-window .wp_nav > .nav-item > a {
    min-height: 50px;
    font-size: 10px !important;
    padding: 6px 4px;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Webplus simpleList 运行态强制铺满（修复移动端仅左侧窄块显示） */
@media (max-width: 960px) {
  .sf-page .sf-card > .sf-side-window.wp-window {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
  }

  .sf-page .sf-side-window > #wp_nav_w12,
  .sf-page .sf-side-window > #wp_nav_w22,
  .sf-page .sf-side-window > #wp_nav_w32,
  .sf-page .sf-side-window > [frag="窗口内容"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
  }

  .sf-page .sf-side-window .wp_nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .sf-page .sf-side-window .wp_nav > .nav-item {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sf-page .sf-side-window .wp_nav > .nav-item > a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
  }

  /* 两列网格按行交错：1深 2浅 / 3浅 4深 */
  .sf-page .sf-side-window .wp_nav > .nav-item:nth-child(4n + 1) > a,
  .sf-page .sf-side-window .wp_nav > .nav-item:nth-child(4n) > a {
    background: #1f56a6 !important;
  }

  .sf-page .sf-side-window .wp_nav > .nav-item:nth-child(4n + 2) > a,
  .sf-page .sf-side-window .wp_nav > .nav-item:nth-child(4n + 3) > a {
    background: #3f73bc !important;
  }
}
