/* ============================================================
   Webplus3 Template Stylesheet
   新西伯利亚数智学院 (Novosibirsk Digital Intelligence Academy)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary-red: #a12e2f;
  --primary-red-dark: #7A1526;
  --primary-red-light: #B82840;
  --dark-blue: #1B3A5C;
  --dark-blue-light: #254D75;
  --accent-gold: #D4A847;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --border-light: #EEEEEE;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.18);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --page-width: 1200px;
  --nav-height: 110px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
  /* Offset for fixed sticky nav */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-red);
}

ul,
ol,
li {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

input,
button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Layout --- */
.inner {
  width: var(--page-width);
  margin: 0 auto;
  position: relative;
}

.inner::after {
  content: "";
  display: table;
  clear: both;
}

#header {
  width: 100%;
  position: relative;
  z-index: 100;
}

#container {
  width: 100%;
  min-height: 400px;
}

#footer {
  width: 100%;
}

/* ============================================================
   STICKY NAVIGATION BAR — Fixed Top, Logo Left, Nav Right
   ============================================================ */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: linear-gradient(to bottom, #8A1021 0%, #FFFFFF 100%);
  z-index: 9999;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.18);
  border-bottom: none;
}

.sticky-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  left: -24px;
}

/* Logo Area (Left) */
.sticky-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  margin-right: 28px;
}

.sticky-nav-logo a {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.sticky-nav-logo img {
  width: auto;
  max-height: 62px;
  object-fit: contain;
  display: block;
}

.sticky-nav-logo .nav-logo-mark {
  max-height: 70px;
}

.sticky-nav-logo .nav-logo-college {
  max-height: 64px;
}

.sticky-nav-logo .site-name-text {
  display: none !important;
  /* Logo already contains site name, hide text */
}

/* Right Section: Two rows for Search and Nav */
.sticky-nav-right-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 40px;
  align-items: flex-end;
  height: 100%;
  flex: 1;
}

/* Top Row: Search Box */
.sticky-nav-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 38px;
  margin-bottom: 6px;
}

/* Bottom Row: Navigation Menu */
.sticky-nav-bottom-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 45px;
}

/* Navigation inside bottom row */
.sticky-nav-bottom-row .nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.sticky-nav-bottom-row .wp-menu {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.sticky-nav-bottom-row .wp-menu .menu-item {
  position: relative;
  height: 100%;
}

.sticky-nav-bottom-row .menu-link {
  display: block;
  height: 100%;
  line-height: 45px;
  padding: 0 14px;
  color: #8A1021 !important;
  /* Dark red text for visibility on white background */
  font-size: 16px !important;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background var(--transition-normal), color var(--transition-normal);
  white-space: nowrap;
  text-decoration: none;
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover .menu-link,
.sticky-nav-bottom-row .menu-link:hover,
.sticky-nav-bottom-row .menu-link.selected {
  background: #8A1021;
  border-radius: 4px;
  color: #ffffff !important;
}

/* Dropdown submenu in sticky nav */
.sticky-nav-bottom-row .sub-menu {
  position: absolute;
  top: 100%;
  /* Center the submenu horizontally under the parent nav item */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  right: auto;
  min-width: 160px;
  width: max-content;
  background: #8A1021;
  list-style: none;
  padding: 0;
  margin: 0;

  /* Smooth fade + slide animation */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;

  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 6px 6px;
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover>.sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Each sub-link has an independent slow transition for background color */
.sticky-nav-bottom-row .sub-link {
  display: block;
  height: 44px;
  line-height: 44px;
  padding: 0 22px;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  /* Only transition background-color and color — no layout properties, prevents any jitter */
  background-color: transparent;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.sticky-nav-bottom-row .sub-link:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #D4A847 !important;
  /* Gold color on hover */
}

.sticky-nav-bottom-row .sub-item:last-child .sub-link {
  border-bottom: none;
}

/* Search Box Container */
.sticky-nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  overflow: hidden;
  padding: 2px 4px 2px 12px;
  transition: all var(--transition-fast);
  width: 220px;
  height: 32px;
}

.sticky-nav-search:hover,
.sticky-nav-search:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Form, table resetting inside search window to stretch across full 220px */
.sticky-nav-search form,
.sticky-nav-search table {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.sticky-nav-search tbody,
.sticky-nav-search tr {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
}

.sticky-nav-search td {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.sticky-nav-search td:first-child {
  flex-grow: 1 !important;
}

.sticky-nav-search td:last-child {
  flex-shrink: 0 !important;
  margin-left: 6px !important;
}

/* Input element: robust selector to catch all types of text/search fields */
.sticky-nav-search input:not([type="submit"]):not([type="button"]):not([type="image"]) {
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  height: 100% !important;
  width: 140px !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.sticky-nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.sticky-nav-search input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Button/Submit element: robust selector for all search button representations */
.sticky-nav-search button,
.sticky-nav-search input[type="submit"],
.sticky-nav-search input[type="button"],
.sticky-nav-search input[type="image"],
.sticky-nav-search .wp_search_btn,
.sticky-nav-search .searchBtn {
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;

  /* Hide any text inside the button */
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
  text-shadow: none !important;

  /* SVG Magnifying glass icon in white */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  transition: opacity var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sticky-nav-search button:hover,
.sticky-nav-search input[type="submit"]:hover,
.sticky-nav-search input[type="button"]:hover,
.sticky-nav-search input[type="image"]:hover,
.sticky-nav-search .wp_search_btn:hover,
.sticky-nav-search .searchBtn:hover {
  opacity: 0.8 !important;
}

/* ============================================================
   HEADER TOP — Logo + Search (List & Article Pages) - Legacy
   ============================================================ */
.header-top {
  background: var(--bg-white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.header-top .inner {
  overflow: hidden;
}

.logo-area {
  float: left;
}

.logo-area img {
  max-height: 65px;
  margin-right: 15px;
  float: left;
}

.logo-area .site-title-box {
  float: left;
  margin-top: 5px;
}

.logo-area .site-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-dark);
  letter-spacing: 2px;
  display: block;
}

.logo-area .site-title-en {
  font-size: 12px;
  color: var(--text-gray);
  letter-spacing: 1px;
  margin-top: 2px;
  display: block;
}

.logo-area .divider {
  float: left;
  width: 1px;
  height: 45px;
  background: var(--border-color);
  margin: 10px 20px 0;
}

.logo-area .college-name {
  float: left;
  font-size: 22px;
  color: var(--primary-red);
  font-weight: bold;
  letter-spacing: 3px;
  margin-top: 15px;
}

.search-area {
  float: right;
  margin-top: 15px;
}

.search-box {
  float: left;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-right: 10px;
}

.search-box input[type="text"] {
  float: left;
  width: 200px;
  height: 34px;
  padding: 0 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-dark);
}

.search-box input[type="text"]::placeholder {
  color: var(--text-light);
}

.search-box button {
  float: left;
  width: 60px;
  height: 34px;
  background: var(--primary-red);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--transition-fast);
}

.search-box button:hover {
  background: var(--primary-red-dark);
}

.lang-switch {
  float: left;
}

.lang-switch a {
  float: left;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 3px;
  margin-left: 6px;
  transition: all var(--transition-fast);
}

.lang-switch a.active {
  background: var(--primary-red);
  color: #fff;
}

.lang-switch a:not(.active) {
  background: var(--bg-light);
  color: var(--text-gray);
}

.lang-switch a:not(.active):hover {
  background: var(--border-color);
}

/* ============================================================
   NAVIGATION BAR — Red Theme, Centered, Larger Font
   ============================================================ */
.nav-bar {
  background: var(--primary-red);
  width: 100%;
  height: var(--nav-height);
  position: relative;
  z-index: 99;
  border-top: 4px solid #4A0D1A;
}

.nav-bar .inner {
  height: 100%;
}

.nav-bar .nav {
  height: 100%;
  display: flex;
  justify-content: center;
}

/* Main menu container */
.wp-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Top level items */
.wp-menu .menu-item {
  position: relative;
  height: 100%;
}

/* Top level links */
.menu-link {
  display: block;
  height: var(--nav-height);
  line-height: var(--nav-height);
  padding: 0 24px;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: bold;
  letter-spacing: 3px;
  transition: background var(--transition-normal);
  white-space: nowrap;
  text-decoration: none;
}

.wp-menu .menu-item:hover .menu-link,
.menu-link:hover,
.menu-link.selected {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

/* Dropdown submenu container */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  background: var(--primary-red-dark);
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.wp-menu .menu-item:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub level links */
.sub-link {
  display: block;
  height: 42px;
  line-height: 42px;
  padding: 0 20px;
  font-size: 16px !important;
  color: #ffffff !important;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sub-link:hover {
  background: rgba(255, 255, 255, 0.2);
  padding-left: 25px;
}

/* ============================================================
   BANNER CAROUSEL — Homepage Hero (Full-width & Ken Burns Effect)
   ============================================================ */
.banner-full-width {
  width: 100% !important;
  min-width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.banner-carousel {
  position: relative !important;
  width: 100% !important;
  height: 560px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 260px !important;
  }
}

.carousel-track {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

/* Ensure Webplus injected container has 100% height and width */
.carousel-track>div,
.carousel-track [frag="窗口内容"] {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: block !important;
}

/* Carousel slide items - visible by default in visual editor */
.carousel-item {
  position: relative !important;
  width: 100% !important;
  height: 560px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* Stacking & fading only enabled under initialization class when JS is active */
.hero-carousel-init .carousel-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out !important;
  z-index: 1 !important;
}

.hero-carousel-init .carousel-item.active {
  position: absolute !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

.carousel-item a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  outline: none !important;
}

/* Ken Burns progressive subtle zooming-in effect */
.carousel-item .imgBox.sc {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  transition: transform 7s linear !important;
  transform: scale(1) !important;
}

.carousel-item.active .imgBox.sc {
  transform: scale(1.08) !important;
}

.carousel-item .imgBox.sc .img {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/*
  图片以100%宽度显示，高度自动（保持原始比例），不强制拉伸
  这样不会因为缩放导致模糊，清晰度最高
  Banner容器 overflow:hidden 负责裁掉超出部分
*/
.carousel-item .imgBox.sc .img img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Fallback: if Webplus wraps image differently */
.carousel-item>a>img,
.carousel-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* 视频幻灯片：铺满整个 Banner 区域，与图片效果一致 */
.carousel-item video.banner-video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  outline: none !important;
  border: none !important;
  background: #000 !important;
}

/* Pagination Dots */
.carousel-pagination {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  display: flex !important;
  gap: 12px !important;
}

.carousel-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.carousel-dot.active {
  background: var(--accent-gold) !important;
  /* Gold accent color */
  transform: scale(1.2) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 8px var(--accent-gold) !important;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  z-index: 10 !important;
  user-select: none !important;
}

.carousel-arrow:hover {
  background: rgba(155, 27, 48, 0.8) !important;
  /* Gold or Red hover background */
  box-shadow: var(--shadow-sm) !important;
}

.carousel-arrow.prev {
  left: 20px !important;
}

.carousel-arrow.next {
  right: 20px !important;
}

.carousel-arrow .arrow-icon {
  font-size: 20px !important;
  font-family: Consolas, Monaco, monospace !important;
  font-weight: bold !important;
}

/* ============================================================
   SECTION COMMON STYLES
   ============================================================ */
.section-title-bar {
  text-align: center;
  padding: 50px 0 10px;
}

.section-title-bar h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-red);
  position: relative;
  display: inline-block;
}

.section-title-bar h3::before,
.section-title-bar h3::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--primary-red);
}

.section-title-bar h3::before {
  right: calc(100% + 20px);
}

.section-title-bar h3::after {
  left: calc(100% + 20px);
}

.section-title-bar .subtitle {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* Module title with red dot */
.module-title {
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
  overflow: hidden;
}

.module-title h3 {
  float: left;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-red);
}

.module-title h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.module-title .more-link {
  float: right;
  font-size: 13px;
  color: var(--text-light);
  transition: color var(--transition-fast);
  margin-top: 5px;
}

.module-title .more-link:hover {
  color: var(--primary-red);
}

/* ============================================================
   NEWS & NOTICES SECTION (New Layout based on reference)
   ============================================================ */
.news-notice-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 48px 0 32px 0;
  background: var(--bg-white);
}

.news-notice-flex {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
}

/* 三栏不等分：新闻动态更宽 */
.news-main-col {
  flex: 1.8 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.notice-col {
  flex: 1.2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 新闻动态内部两栏 */
.news-img-list-flex {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex: 1 1 0;
}

/* 图片固定宽度，新闻列表自适应 */
.news-img-col {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  height: 340px;
  flex: 0 0 380px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-img-col>div,
.news-img-col [frag="窗口内容"] {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  display: block;
}

/* 适配JS轮播到图片区域 */
.featured-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-slide {
  display: block !important;
  width: 100%;
  height: 100%;
  position: relative;
}

.news-carousel-init .featured-slide {
  display: none !important;
}

.news-carousel-init .featured-slide.active {
  display: block !important;
}

.featured-slide .featured-img {
  width: 100%;
  height: 100%;
}

.featured-slide .featured-img a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.featured-slide .featured-img:hover a {
  transform: scale(1.05);
}

.featured-slide .featured-img img {
  display: none;
}

.featured-slide .featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  padding-right: 70px;
}

.featured-slide .featured-title-box {
  display: block;
  color: #fff;
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-pagination {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.news-pagination .page-num {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 2px 6px;
}

.news-pagination .page-num.active {
  font-weight: bold;
  color: #fff;
}

.news-pagination .page-sep {
  display: inline-block;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

.news-list-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 标题区域 */
.news-main-col .tt,
.notice-col .tt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  gap: 32px;
}

.news-main-col .tit,
.notice-col .tit {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 800;
  color: #a12e2f;
  position: relative;
  padding-left: 16px;
  letter-spacing: 1px;
}

.news-main-col .title::before,
.notice-col .title::before {
  content: "";
  display: block;
  width: 4px;
  height: 28px;
  background: #a12e2f;
  border-radius: 2px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.more_btn {
  margin-left: auto;
}

.more_btn a,
.w5_more {
  font-size: 16px;
  color: #143a63;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.more_btn a:hover,
.w5_more:hover {
  color: #a12e2f;
}

.more_text::after {
  content: " ➔";
  font-size: 18px;
  margin-left: 4px;
  transition: transform 0.2s;
}

/* 暴力重置：新闻与通知区域内所有列表样式 */
.news-list-col ul,
.news-list-col ol,
.news-list-col li,
.notice-col ul,
.notice-col ol,
.notice-col li,
.news-notice-row ul,
.news-notice-row ol,
.news-notice-row li,
.con ul,
.con ol,
.con li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.news-list-items li,
.notice-list-items li {
  padding: 12px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px dashed var(--border-color);
  color: #a12e2f;
  font-size: 15px;
}

.news-list-items li:last-child,
.notice-list-items li:last-child {
  border-bottom: none;
}

/* 隐藏CMS注入的非文本元素（图片、span等），保留裸文本圆点 */
.news-list-items li>*:not(a):not(.date),
.notice-list-items li>*:not(a):not(.date) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


.news-list-items li a,
.notice-list-items li a {
  color: var(--text-dark);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 0;
  transition: color 0.2s;
}

.news-list-items li a:hover,
.notice-list-items li a:hover {
  color: #a12e2f;
}

.news-list-items .date,
.notice-list-items .date {
  margin-left: auto;
  min-width: 90px;
  text-align: right;
  color: #888;
  font-size: 15px;
  flex-shrink: 0;
}


/* 隐藏站群系统自动生成的额外“更多”图标或列表前缀点 */
.con>[class*="more"],
.con>img,
.con>a>img,
.news-list-items~[class*="more"],
.notice-list-items~[class*="more"],
.news-list-items li>img,
.notice-list-items li>img,
.news-list-items li>span:not(.date),
.notice-list-items li>span:not(.date) {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .news-notice-flex {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 16px;
  }

  .news-img-list-flex {
    flex-direction: column;
  }

  .news-img-col {
    width: 100%;
    max-width: 100%;
    height: 240px;
    flex: 0 0 240px;
    margin-right: 0;
    margin-bottom: 16px;
  }
}

/* ============================================================
   数智办学 — Education Section (Card Grid + Modal)
   ============================================================ */
.edu-section {
  padding: 20px 0 40px;
  background: #f8f8f8;
  clear: both;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.edu-card {
  aspect-ratio: 580 / 380;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
}

.edu-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s;
}

.edu-card:hover img {
  transform: scale(1.05);
}

/* Modal Overlay */
.edu-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.edu-modal-overlay.active {
  display: flex;
}

.edu-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 36px 36px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  animation: eduModalIn 0.3s ease-out;
}

@keyframes eduModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.edu-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.edu-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.edu-modal-body h2 {
  font-size: 22px;
  font-weight: bold;
  color: #a12e2f;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #a12e2f;
}

.edu-modal-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 14px;
  text-indent: 2em;
}

.edu-modal-body ul {
  padding-left: 1.5em;
  margin-bottom: 14px;
}

.edu-modal-body ul li {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 6px;
  list-style: disc !important;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .edu-modal {
    padding: 30px 20px 24px;
    max-height: 90vh;
  }
}

/* ============================================================
   FACULTY SECTION — 数智师资 Scrolling Cards
   ============================================================ */
.faculty-section {
  padding: 20px 0 50px;
  background: var(--bg-white);
  clear: both;
}

/* Row: one per major */
.faculty-row {
  margin-bottom: 30px;
}

.faculty-row:last-child {
  margin-bottom: 0;
}

/* Row header: major name */
.faculty-row-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #a12e2f;
}

.faculty-major-name {
  font-size: 20px;
  font-weight: bold;
  color: #a12e2f;
  letter-spacing: 2px;
}

.faculty-major-en {
  font-size: 13px;
  color: #999;
  letter-spacing: 1px;
}

.faculty-slider-container {
  position: relative;
  width: 100%;
}

.fc-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-family: monospace;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fc-slider-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(161, 46, 47, 0.3);
}

.fc-slider-btn.fc-prev {
  left: -20px;
}

.fc-slider-btn.fc-next {
  right: -20px;
}

/* Scroll wrapper: hides overflow */
.faculty-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  padding: 10px 0;
}

.faculty-scroll-wrapper::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Gradient fade edges */
.faculty-scroll-wrapper::before,
.faculty-scroll-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.faculty-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.faculty-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

/* Track: holds all cards in a row, animated by JS */
.faculty-scroll-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

/* Hide CMS raw data container (JS processes it and builds proper cards) */
.faculty-source {
  /* Removed display: none so Webplus editor can bind to it. 
     Inner raw cards are hidden via CSS/JS instead. */
}

/* Fallback: if JS fails, show raw cards vertically */
.faculty-card-raw {
  display: none;
}

/* Single teacher card */
.faculty-card {
  flex: 0 0 400px;
  width: 400px;
  min-height: 190px;
  display: flex;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Left side: photo + name + title (50%) */
.faculty-card-left {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  background: #fafafa;
  border-right: 1px solid #f0f0f0;
}

.faculty-photo {
  width: 100px;
  height: 125px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 2px solid #e8e8e8;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faculty-photo a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 无图片时的占位符 */
.faculty-photo-empty {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-photo-empty::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: #ccc;
  border-radius: 50%;
}

.faculty-name-cn {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2px;
}

.faculty-name-en-box,
.faculty-title-box {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 2px;
}

/* Right side: intro (50%) */
.faculty-card-right {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.faculty-intro-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.faculty-intro {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.faculty-card:hover .faculty-intro {
  color: #333;
}

/* Scrolling animation */
@keyframes facultyScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.faculty-scroll-track.scrolling {
  animation: facultyScroll var(--scroll-duration, 30s) linear infinite;
}

.faculty-scroll-track.scrolling:hover {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .faculty-card {
    flex: 0 0 280px;
    width: 280px;
    min-height: 140px;
  }

  .faculty-card-left {
    flex: 0 0 100px;
    width: 100px;
    padding: 8px 6px;
  }

  .faculty-photo {
    width: 80px;
    height: 100px;
  }

  .faculty-row-header {
    flex-direction: column;
    gap: 4px;
  }
}

/* ============================================================
   FOOTER — RED Background, White Text
   ============================================================ */
.footer {
  background: #a12e2f;
  color: #fff;
  padding: 32px 0 16px 0;
  font-size: 15px;
  margin-top: 40px;
  clear: both;
}

.footer table {
  margin: 0 auto;
  text-align: center;
}

.footer td {
  padding: 5px 10px;
  line-height: 1.8;
}

.footer a {
  color: #fff;
  text-decoration: underline;
  margin: 0 5px;
}

.footer a:hover {
  color: #ffd700;
}

/* ============================================================
   走近新西 — NSU Section (Centered Circular Video)
   ============================================================ */
.nsu-section {
  padding: 40px 0 60px;
  background: #f8f8f8;
  clear: both;
}

.nsu-section .inner {
  overflow: hidden;
  padding-bottom: 8px;
}

.nsu-section .inner::before,
.nsu-section .inner::after {
  content: "";
  position: absolute;
  top: 305px;
  width: 250px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161, 46, 47, 0.45), transparent);
}

.nsu-section .inner::before {
  left: 80px;
}

.nsu-section .inner::after {
  right: 80px;
}

/* Centered video wrapper */
.nsu-video-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 0 auto;
  z-index: 1;
}

.nsu-video-wrap::before,
.nsu-video-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.nsu-video-wrap::before {
  left: -72px;
  right: -72px;
  top: 76px;
  bottom: 76px;
  border-top: 1px solid rgba(161, 46, 47, 0.22);
  border-bottom: 1px solid rgba(161, 46, 47, 0.22);
}

.nsu-video-wrap::after {
  left: 76px;
  right: 76px;
  top: -72px;
  bottom: -72px;
  border-left: 1px solid rgba(161, 46, 47, 0.18);
  border-right: 1px solid rgba(161, 46, 47, 0.18);
}

/* Decorative rings */
.nsu-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.nsu-ring-outer {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1.5px solid #cfcfcf;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.45);
}

.nsu-ring-inner {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1.5px dashed #d9d9d9;
}

/* Decorative accent dots */
.nsu-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #a12e2f;
  border-radius: 50%;
  z-index: 3;
}

.nsu-dot-t {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nsu-dot-b {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nsu-dot-l {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.nsu-dot-r {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

/* Circular video */
.nsu-video-circle {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.13);
  z-index: 2;
}

.nsu-video-poster {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.nsu-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.nsu-video-poster:hover img {
  transform: scale(1.05);
}

.nsu-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s;
}

.nsu-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.nsu-video-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .nsu-video-wrap {
    width: 320px;
    height: 320px;
  }
}

/* Video playback modal */
.nsu-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.nsu-video-modal.active {
  display: flex;
}

.nsu-vm-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
  animation: eduModalIn 0.3s ease-out;
}

.nsu-vm-inner video {
  width: 100%;
  display: block;
}

.nsu-vm-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nsu-vm-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   LIST PAGE — Sidebar + Content Layout
   ============================================================ */
.list-page-content {
  padding: 25px 0 40px;
  background: var(--bg-white);
}

.list-page-content .inner {
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  float: left;
  width: 240px;
}

.sidebar-header {
  background: var(--primary-red);
  color: #fff;
  padding: 15px 20px;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Column list system styles override */
.sidebar .wp_listcolumn {
  border: 1px solid var(--border-light);
  border-top: none;
}

.sidebar .wp_listcolumn .wp_column a {
  display: block;
  padding: 12px 20px;
  font-size: 19px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar .wp_listcolumn .wp_column a:hover,
.sidebar .wp_listcolumn .wp_column a.selected {
  color: var(--primary-red);
  background: rgba(155, 27, 48, 0.05);
  padding-left: 25px;
}

.sidebar .wp_listcolumn .wp_column a.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-red);
}

/* Sub columns */
.sidebar .wp_listcolumn .wp_column .wp_column a {
  padding-left: 35px;
  font-size: 17px;
  color: var(--text-gray);
}

.sidebar .wp_listcolumn .wp_column .wp_column a:hover,
.sidebar .wp_listcolumn .wp_column .wp_column a.selected {
  padding-left: 40px;
}

/* Main content area */
.main-content {
  float: right;
  width: 920px;
}

/* Breadcrumb & Column Title */
.content-header {
  overflow: hidden;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 20px;
}

.content-header .col-title {
  float: left;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-red);
}

.content-header .breadcrumb {
  float: right;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

.content-header .breadcrumb a {
  color: var(--text-light);
}

.content-header .breadcrumb a:hover {
  color: var(--primary-red);
}

/* Article List on List Page */
.article-list {
  width: 100%;
}

/* Style the main outer table outputted by simpleList */
.article-list table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

.article-list table tr {
  transition: background var(--transition-fast);
}

.article-list table tr:hover {
  background: var(--bg-light) !important;
}

/* Cells of the outer table */
.article-list>div>table>tbody>tr>td,
.article-list>table>tbody>tr>td {
  padding: 14px 10px !important;
  border-bottom: 1px dashed var(--border-color) !important;
  font-size: 15px !important;
  vertical-align: middle !important;
  background: transparent !important;
}

/* Style the bullet td (usually the first td in outer table) */
.article-list>div>table>tbody>tr>td:first-child,
.article-list>table>tbody>tr>td:first-child {
  width: 24px !important;
  padding-right: 0 !important;
  text-align: center !important;
}

.article-list>div>table>tbody>tr>td:first-child img,
.article-list>table>tbody>tr>td:first-child img {
  vertical-align: middle !important;
}

/* Reset styles of the inner nested table containing title + date */
.article-list table table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

.article-list table table tr:hover {
  background: transparent !important;
}

.article-list table table td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  vertical-align: middle !important;
}

/* Title link styled beautifully */
.article-list table table td a {
  color: var(--text-dark) !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: color var(--transition-fast) !important;
  display: inline-block !important;
  max-width: 680px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  float: none !important;
}

.article-list table table td a:hover {
  color: var(--primary-red) !important;
}

/* Date (last td in inner table) aligned to the right */
.article-list table table td:last-child {
  text-align: right !important;
  width: 100px !important;
  min-width: 100px !important;
  color: var(--text-light) !important;
  font-size: 14px !important;
}

.article-list table table td:last-child div {
  text-align: right !important;
  display: block !important;
}

/* Fallback list-item styles if Webplus is configured to use divs */
.article-list .wp_article_list .list_item,
.article-list-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 10px;
  border-bottom: 1px dashed var(--border-color);
  transition: background var(--transition-fast);
}

.article-list .wp_article_list .list_item:hover,
.article-list-item:hover {
  background: var(--bg-light);
}

/* Ensure table-based lists don't get double bullets */
.article-list table a::before {
  content: "" !important;
  display: none !important;
}

.article-list .wp_article_list .list_item a,
.article-list-item a.item-title {
  font-size: 15px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  max-width: 80%;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-list .wp_article_list .list_item a:hover,
.article-list-item a.item-title:hover {
  color: var(--primary-red);
}

.article-list .wp_article_list .list_item .date,
.article-list-item .item-date {
  font-size: 13px;
  color: var(--text-light);
  margin-left: auto;
  flex-shrink: 0;
}

.article-list .wp_article_list .list_item a::before,
.article-list-item a.item-title::before {
  content: "›";
  display: inline-block;
  margin-right: 10px;
  color: var(--text-light);
  font-size: 16px;
  font-weight: bold;
}


/* Article Card Grid Layout */
.article-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.article-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  background: #fff;
}

.article-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card-img {
  flex: 0 0 160px;
  width: 160px;
  min-height: 110px;
  overflow: hidden;
  background: #f5f5f5;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-card-info {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.article-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin: 0 0 10px;
  /* 最多3行 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-card-title {
  color: var(--primary-red);
}

.article-card-date {
  font-size: 13px;
  color: #999;
}

/* 没有缩略图时的兼容 */
.article-card-img img[src=""],
.article-card-img img:not([src]) {
  display: none;
}

.article-card-img.no-img {
  display: none;
}

@media (max-width: 900px) {
  .article-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Page navigation / pagination */
.wp_paging {
  text-align: center !important;
  padding: 25px 0 10px !important;
  font-size: 14px !important;
  color: var(--text-gray) !important;
}

/* Style all paging links cleanly without borders or box backgrounds */
.wp_paging a,
.wp_paging a:link,
.wp_paging a:visited,
.wp_paging a:hover,
.wp_paging a:active,
.wp_paging span,
.wp_paging .page_info,
.wp_paging .first,
.wp_paging .prev,
.wp_paging .next,
.wp_paging .last,
.wp_paging .jump {
  display: inline-block !important;
  padding: 4px 8px !important;
  margin: 0 4px !important;
  color: var(--text-gray) !important;
  text-decoration: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: color var(--transition-fast);
}

.wp_paging a:hover,
.wp_paging a:hover span,
.wp_paging a:active {
  color: var(--primary-red) !important;
  text-decoration: underline !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.wp_paging .current,
.wp_paging span.current,
.wp_paging span.active,
.wp_paging a.active {
  color: var(--primary-red) !important;
  font-weight: bold !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

/* Keep the page number input box (跳转到第几页的输入框) bordered as a box */
.wp_paging input,
.wp_paging input[type="text"],
.wp_paging .pageNum,
.wp_paging input.pageNum,
.wp_paging .wp_paging_pageNum {
  display: inline-block !important;
  width: 45px !important;
  height: 24px !important;
  line-height: 22px !important;
  border: 1px solid #ccc !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  text-align: center !important;
  margin: 0 4px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  vertical-align: middle !important;
}

/* ============================================================
   ARTICLE PAGE — Centered Layout
   ============================================================ */
.article-page {
  padding: 25px 0 50px;
}

.article-page .inner {
  max-width: 960px;
}

/* Breadcrumb on article page */
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
}

.article-breadcrumb a {
  color: var(--text-light);
}

.article-breadcrumb a:hover {
  color: var(--primary-red);
}

/* Article Header */
.article-wrapper {}

.article-wrapper .arti_title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 10px 40px 20px;
}

.article-wrapper .arti_metas {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.article-wrapper .arti_metas span {
  margin: 0 12px;
}

/* Article Body */
.article-wrapper .entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-wrapper .entry .read {
  font-family: "FZFangSong-Z02S", "FZFangSong-Z02", "FangSong", "FangSong_GB2312", "\4EFF\5B8B", serif;
  font-size: 16px;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
}

.article-wrapper .entry .read p {
  text-indent: 2em;
  margin-bottom: 16px;
}

.article-wrapper .entry .read img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto;
  border-radius: 2px;
}

.article-wrapper .entry .read table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  table-layout: fixed; /* 强制表格按照设定的列宽显示，忽略内容长度 */
  word-wrap: break-word; /* 允许长文本自动换行 */
}

.article-wrapper .entry .read table td,
.article-wrapper .entry .read table th {
  padding: 8px 12px;
  border: 1px solid #ccc;
  word-break: break-all; /* 允许长单词或长中文字符强制换行 */
  vertical-align: middle;
}

.article-wrapper .entry .read h2,
.article-wrapper .entry .read h3,
.article-wrapper .entry .read h4 {
  font-weight: bold;
  margin: 20px 0 10px;
  color: var(--text-dark);
}

.article-wrapper .entry .read h2 {
  font-size: 20px;
}

.article-wrapper .entry .read h3 {
  font-size: 18px;
}

.article-wrapper .entry .read h4 {
  font-size: 16px;
}

.article-wrapper .entry .read a {
  color: var(--primary-red);
  text-decoration: underline;
}

.article-wrapper .entry .read a:hover {
  color: var(--primary-red-dark);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll fade elements - visible by default in visual editor */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* Animation behavior only enabled when JS adds js-scroll-animate to body */
.js-scroll-animate .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll-animate .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   WEBPLUS SYSTEM CLASS OVERRIDES
   ============================================================ */
.wp_article_list_table {
  width: 100%;
}

.wp_article_list_table tr td {
  padding: 14px 10px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15px;
}

.wp_article_list_table tr td a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.wp_article_list_table tr td a:hover {
  color: var(--primary-red);
}

.wp_article_list_table tr:hover td {
  background: var(--bg-light);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* ============================================================
   CAROUSEL CONTROLS
   ============================================================ */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0;
}

.wp_paging input,
.wp_paging input[type="text"],
.wp_paging .pageNum,
.wp_paging input.pageNum,
.wp_paging .wp_paging_pageNum {
  display: inline-block !important;
  width: 45px !important;
  height: 24px !important;
  line-height: 22px !important;
  border: 1px solid #ccc !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
  text-align: center !important;
  margin: 0 4px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  vertical-align: middle !important;
}

/* ============================================================
   ARTICLE PAGE — Centered Layout
   ============================================================ */
.article-page {
  padding: 25px 0 50px;
}

.article-page .inner {
  max-width: 960px;
}

/* Breadcrumb on article page */
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
}

.article-breadcrumb a {
  color: var(--text-light);
}

.article-breadcrumb a:hover {
  color: var(--primary-red);
}

/* Article Header */
.article-wrapper {}

.article-wrapper .arti_title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 10px 40px 20px;
}

.article-wrapper .arti_metas {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

.article-wrapper .arti_metas span {
  margin: 0 12px;
}

/* Article Body */
.article-wrapper .entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-wrapper .entry .read {
  font-family: "FZFangSong-Z02S", "FZFangSong-Z02", "FangSong", "FangSong_GB2312", "\4EFF\5B8B", serif;
  font-size: 16px;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
}

.article-wrapper .entry .read p {
  text-indent: 2em;
  margin-bottom: 16px;
}

.article-wrapper .entry .read img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto;
  border-radius: 2px;
}

.article-wrapper .entry .read table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  table-layout: fixed; /* 强制表格按照设定的列宽显示，忽略内容长度 */
  word-wrap: break-word; /* 允许长文本自动换行 */
}

.article-wrapper .entry .read table td,
.article-wrapper .entry .read table th {
  padding: 8px 12px;
  border: 1px solid #ccc;
  word-break: break-all; /* 允许长单词或长中文字符强制换行 */
  vertical-align: middle;
}

.article-wrapper .entry .read h2,
.article-wrapper .entry .read h3,
.article-wrapper .entry .read h4 {
  font-weight: bold;
  margin: 20px 0 10px;
  color: var(--text-dark);
}

.article-wrapper .entry .read h2 {
  font-size: 20px;
}

.article-wrapper .entry .read h3 {
  font-size: 18px;
}

.article-wrapper .entry .read h4 {
  font-size: 16px;
}

.article-wrapper .entry .read a {
  color: var(--primary-red);
  text-decoration: underline;
}

.article-wrapper .entry .read a:hover {
  color: var(--primary-red-dark);
}

/* Unified rich-text typography for article detail pages and one-item list pages */
.article-wrapper .entry .read,
.main-content .article-list .wp_articlecontent,
.main-content .article-list .wp_article_content,
.main-content .article-list .article-content,
.main-content .article-list .article-con,
.main-content .article-list .entry,
.main-content .article-list .read,
.main-content .article-list .wp_entry {
  font-family: "FZFangSong-Z02S", "FZFangSong-Z02", "FangSong", "FangSong_GB2312", "\4EFF\5B8B", serif;
  font-size: 21px;
  line-height: 2.2;
  color: var(--text-dark);
  text-align: justify;
}

.article-wrapper .entry .read p,
.main-content .article-list .wp_articlecontent p,
.main-content .article-list .wp_article_content p,
.main-content .article-list .article-content p,
.main-content .article-list .article-con p,
.main-content .article-list .entry p,
.main-content .article-list .read p,
.main-content .article-list .wp_entry p {
  font-size: inherit;
  line-height: inherit;
  text-indent: 2em;
  margin-bottom: 24px;
}

.article-wrapper .entry .read span,
.article-wrapper .entry .read div,
.main-content .article-list .wp_articlecontent span,
.main-content .article-list .wp_articlecontent div,
.main-content .article-list .wp_article_content span,
.main-content .article-list .wp_article_content div,
.main-content .article-list .article-content span,
.main-content .article-list .article-content div,
.main-content .article-list .article-con span,
.main-content .article-list .article-con div,
.main-content .article-list .entry span,
.main-content .article-list .entry div,
.main-content .article-list .read span,
.main-content .article-list .read div,
.main-content .article-list .wp_entry span,
.main-content .article-list .wp_entry div {
  font-size: inherit;
  line-height: inherit;
}

.list-page-content .main-content .article-list>table,
.list-page-content .main-content .article-list>div>table,
.list-page-content .main-content .article-list>table *,
.list-page-content .main-content .article-list>div>table * {
  font-family: "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, Helvetica, sans-serif;
}

.article-wrapper .entry .read table td,
.article-wrapper .entry .read table th,
.main-content .article-list .wp_articlecontent table td,
.main-content .article-list .wp_articlecontent table th,
.main-content .article-list .wp_article_content table td,
.main-content .article-list .wp_article_content table th,
.main-content .article-list .article-content table td,
.main-content .article-list .article-content table th,
.main-content .article-list .article-con table td,
.main-content .article-list .article-con table th,
.main-content .article-list .entry table td,
.main-content .article-list .entry table th,
.main-content .article-list .read table td,
.main-content .article-list .read table th,
.main-content .article-list .wp_entry table td,
.main-content .article-list .wp_entry table th {
  font-size: inherit;
  line-height: 1.85;
}

.article-wrapper .entry .read h2,
.main-content .article-list .wp_articlecontent h2,
.main-content .article-list .wp_article_content h2,
.main-content .article-list .article-content h2,
.main-content .article-list .article-con h2,
.main-content .article-list .entry h2,
.main-content .article-list .read h2,
.main-content .article-list .wp_entry h2 {
  font-size: 28px !important;
}

.article-wrapper .entry .read h3,
.main-content .article-list .wp_articlecontent h3,
.main-content .article-list .wp_article_content h3,
.main-content .article-list .article-content h3,
.main-content .article-list .article-con h3,
.main-content .article-list .entry h3,
.main-content .article-list .read h3,
.main-content .article-list .wp_entry h3 {
  font-size: 25px !important;
}

.article-wrapper .entry .read h4,
.main-content .article-list .wp_articlecontent h4,
.main-content .article-list .wp_article_content h4,
.main-content .article-list .article-content h4,
.main-content .article-list .article-con h4,
.main-content .article-list .entry h4,
.main-content .article-list .read h4,
.main-content .article-list .wp_entry h4 {
  font-size: 23px !important;
}

.list-page-content .main-content .article-list.single-article-content,
.list-page-content .main-content .article-list.single-article-content > div {
  font-size: 21px;
  line-height: 2.05;
}


.list-page-content .main-content .article-list.single-article-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll fade elements - visible by default in visual editor */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* Animation behavior only enabled when JS adds js-scroll-animate to body */
.js-scroll-animate .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll-animate .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   WEBPLUS SYSTEM CLASS OVERRIDES
   ============================================================ */
.wp_article_list_table {
  width: 100%;
}

.wp_article_list_table tr td {
  padding: 14px 10px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15px;
}

.wp_article_list_table tr td a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.wp_article_list_table tr td a:hover {
  color: var(--primary-red);
}

.wp_article_list_table tr:hover td {
  background: var(--bg-light);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* ============================================================
   CAROUSEL CONTROLS
   ============================================================ */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0;
  /* 默认隐藏，hover显示 */
}

.banner-carousel:hover .carousel-control {
  opacity: 1;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 30px;
}

.carousel-next {
  right: 30px;
}

/* ============================================================
   NEWS GRID LIST PAGE — Custom simpleNews Card Grid Layout
   ============================================================ */
/*
 * Webplus CMS replaces the content of frag="窗口内容" during rendering,
 * stripping any wrapper divs we place inside. So we apply the grid layout
 * to the CMS-generated container using multiple robust selectors:
 *   .news-card-list > div          (CMS renders frag content into a plain div)
 *   .news-card-list [frag]         (if frag attribute is preserved)
 *   .news-card-grid                (fallback if wrapper is preserved)
 */
.news-card-list>div,
.news-card-list [frag="窗口内容"],
.news-card-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  /* Two columns */
  gap: 20px !important;
  margin-bottom: 30px !important;
  width: 100% !important;
}

.news-card-item {
  background: #f8f9fb !important;
  border: 1px solid #eef1f6 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  height: 140px !important;
}

.news-card-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(161, 46, 47, 0.25) !important;
}

.news-card-link {
  display: flex !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Left side: Image (40% width) */
.news-card-img-wrap {
  flex: 0 0 40% !important;
  width: 40% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #eaecf0 !important;
}

.news-card-img {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s ease !important;
  background-color: #e8e8e8 !important;
}

.news-card-item:hover .news-card-img {
  transform: scale(1.05) !important;
}

/* Right side: Title & Date (60% width) */
.news-card-info {
  flex: 0 0 60% !important;
  width: 60% !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.news-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: #333333 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease !important;
}

.news-card-item:hover .news-card-title {
  color: var(--primary-red) !important;
}

.news-card-date {
  font-size: 13px !important;
  color: var(--primary-red) !important;
  font-weight: 500 !important;
  margin-top: 8px !important;
}

/* Responsive news grid */
@media (max-width: 768px) {

  .news-card-list>div,
  .news-card-list [frag="窗口内容"],
  .news-card-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .news-card-item {
    height: 120px !important;
  }
}

/* ============================================================
   Final visual refinements: card pager, nav motion, NSU section
   ============================================================ */
.sticky-nav-bottom-row .menu-link {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease !important;
}

.sticky-nav-bottom-row .menu-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 70%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.sticky-nav-bottom-row .menu-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover .menu-link,
.sticky-nav-bottom-row .menu-link:hover,
.sticky-nav-bottom-row .menu-link.selected {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #8A1021 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(138, 16, 33, 0.16);
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover .menu-link::before,
.sticky-nav-bottom-row .menu-link:hover::before,
.sticky-nav-bottom-row .menu-link.selected::before {
  left: 135%;
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover .menu-link::after,
.sticky-nav-bottom-row .menu-link:hover::after,
.sticky-nav-bottom-row .menu-link.selected::after {
  transform: scaleX(1);
  background: #ffffff;
}

.sticky-nav-bottom-row .sub-menu {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 3px solid #ffffff;
  box-shadow: 0 18px 36px rgba(80, 0, 12, 0.22) !important;
  backdrop-filter: blur(8px);
}

.sticky-nav-bottom-row .sub-link {
  color: #8A1021 !important;
  border-bottom: 1px solid rgba(138, 16, 33, 0.12) !important;
  transition: color 0.24s ease, background-color 0.24s ease, transform 0.24s ease !important;
}

.sticky-nav-bottom-row .sub-link:hover {
  color: #a12e2f !important;
  background: rgba(161, 46, 47, 0.10) !important;
  transform: translateX(5px);
}

.nsu-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent 22%, rgba(161, 46, 47, 0.05) 22.1%, transparent 22.4%, transparent 77.6%, rgba(161, 46, 47, 0.05) 77.9%, transparent 78.2%),
    linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.nsu-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 172px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161, 46, 47, 0.20), transparent);
}

.nsu-section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 198px;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  border: 1px solid rgba(161, 46, 47, 0.11);
  pointer-events: none;
}

.nsu-section .inner {
  z-index: 1;
}

.nsu-video-wrap {
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.08));
}

.nsu-video-wrap::before {
  left: -118px !important;
  right: -118px !important;
  border-top-color: rgba(161, 46, 47, 0.32) !important;
  border-bottom-color: rgba(161, 46, 47, 0.32) !important;
}

.nsu-video-wrap::after {
  top: -104px !important;
  bottom: -104px !important;
  border-left-color: rgba(161, 46, 47, 0.24) !important;
  border-right-color: rgba(161, 46, 47, 0.24) !important;
}

.nsu-ring-outer {
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.65), 0 0 0 28px rgba(161, 46, 47, 0.035) !important;
}

.nsu-video-circle {
  border: 10px solid #ffffff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.nsu-video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%, rgba(0, 0, 0, 0.16));
  z-index: 1;
  pointer-events: none;
}

.nsu-play-btn {
  z-index: 4;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.24);
  animation: nsuPlayPulse 2.4s ease-in-out infinite;
}

@keyframes nsuPlayPulse {

  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22), 0 0 0 18px rgba(161, 46, 47, 0.08);
  }

  50% {
    box-shadow: 0 0 0 13px rgba(255, 255, 255, 0.32), 0 0 0 30px rgba(161, 46, 47, 0.02);
  }
}

/* Real WebPlus pagination card layout: simpleList output */
.paged-card-list {
  width: 100%;
}

.paged-news-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.paged-news-card-grid .paged-news-card,
.paged-card-list .wp_article_list .paged-news-card {
  display: block !important;
  min-height: 140px;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background: #f8f9fb !important;
  border: 1px solid #eef1f6 !important;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.paged-news-card-grid .paged-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(161, 46, 47, 0.26) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.paged-news-card-link {
  display: flex !important;
  height: 100%;
  min-height: 140px;
  color: inherit !important;
  text-decoration: none !important;
}

.paged-news-card-img {
  flex: 0 0 36%;
  width: 36%;
  min-height: 140px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    #dce3ed;
}

.paged-news-card-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 140px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.paged-news-card-img img[src=""],
.paged-news-card-img img:not([src]) {
  display: none !important;
}

.paged-news-card:hover .paged-news-card-img img {
  transform: scale(1.05);
}

.paged-news-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px 18px 18px;
}

.paged-news-card-title,
.paged-news-card-title a {
  display: -webkit-box !important;
  color: #333333;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: none !important;
  white-space: normal !important;
  text-decoration: none !important;
}

.paged-news-card:hover .paged-news-card-title,
.paged-news-card:hover .paged-news-card-title a,
.paged-news-card-title a:hover {
  color: var(--primary-red);
}

.paged-news-card-date {
  display: block !important;
  color: var(--primary-red);
  font-size: 15px;
  font-weight: 500;
  margin-top: 18px;
  text-align: left !important;
}

.paged-news-card-date * {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.paged-card-list>table,
.paged-card-list>div>table,
.paged-card-list .wp_article_list_table {
  display: block !important;
  width: 100% !important;
  border-collapse: separate !important;
}

.paged-card-list>table>tbody,
.paged-card-list>div>table>tbody,
.paged-card-list .wp_article_list_table>tbody {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  width: 100% !important;
}

.paged-card-list>table>tbody>tr,
.paged-card-list>div>table>tbody>tr,
.paged-card-list .wp_article_list_table>tbody>tr,
.paged-card-list .wp_article_list .list_item {
  position: relative;
  display: flex !important;
  align-items: stretch !important;
  min-height: 140px;
  overflow: hidden;
  background: #f8f9fb !important;
  border: 1px solid #eef1f6 !important;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.paged-card-list>table>tbody>tr:hover,
.paged-card-list>div>table>tbody>tr:hover,
.paged-card-list .wp_article_list_table>tbody>tr:hover,
.paged-card-list .wp_article_list .list_item:hover {
  transform: translateY(-3px);
  border-color: rgba(161, 46, 47, 0.26) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.paged-card-list>table>tbody>tr::before,
.paged-card-list>div>table>tbody>tr::before,
.paged-card-list .wp_article_list_table>tbody>tr::before {
  content: "";
  flex: 0 0 36%;
  width: 36%;
  min-height: 140px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    #dce3ed;
}

.paged-card-list>table>tbody>tr>td,
.paged-card-list>div>table>tbody>tr>td,
.paged-card-list .wp_article_list_table>tbody>tr>td {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.paged-card-list>table>tbody>tr>td:first-child,
.paged-card-list>div>table>tbody>tr>td:first-child,
.paged-card-list .wp_article_list_table>tbody>tr>td:first-child {
  display: none !important;
}

.paged-card-list>table>tbody>tr>td:last-child,
.paged-card-list>div>table>tbody>tr>td:last-child,
.paged-card-list .wp_article_list_table>tbody>tr>td:last-child {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  padding: 16px 18px !important;
}

.paged-card-list table table,
.paged-card-list table table tbody,
.paged-card-list table table tr {
  display: block !important;
  width: 100% !important;
}

.paged-card-list table table td {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  border: none !important;
  padding: 0 !important;
}

.paged-card-list table table td a,
.paged-card-list .wp_article_list .list_item a {
  display: -webkit-box !important;
  max-width: none !important;
  color: #333333 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.paged-card-list table table td a:hover,
.paged-card-list .wp_article_list .list_item a:hover {
  color: var(--primary-red) !important;
}

.paged-card-list table table td:last-child,
.paged-card-list table table td:last-child div,
.paged-card-list .wp_article_list .list_item .date {
  margin-top: 28px !important;
  color: var(--primary-red) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.paged-card-list img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.paged-card-list .wp_paging {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  margin-top: 22px !important;
  padding: 16px 10px !important;
  border-top: 1px solid #eeeeee;
}

.paged-card-list .wp_paging a,
.paged-card-list .wp_paging span {
  font-size: 14px !important;
}

@media (max-width: 900px) {

  .paged-news-card-grid,
  .paged-card-list>table>tbody,
  .paged-card-list>div>table>tbody,
  .paged-card-list .wp_article_list_table>tbody {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Scrolling Notification Bar
   ============================================================ */
.scroll-notice-bar {
  width: 100%;
  height: 60px;
  background-color: #f6f6f6;
  border-bottom: 1px solid #eaeaea;
  overflow: hidden;
}

.scroll-notice-bar .inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.scroll-notice-left {
  flex-shrink: 0;
  padding-right: 18px;
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-notice-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  background-color: #d8d8d8;
}

.notice-date {
  font-size: 21px;
  color: var(--primary-red);
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.notice-date::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 30px;
  background-color: var(--primary-red);
  margin-right: 12px;
  border-radius: 2px;
}

.scroll-notice-right {
  flex-grow: 1;
  padding-left: 18px;
  overflow: hidden;
  height: 100%;
}

/* Ensure the wrapper respects block formatting so marquee works */
.scroll-notice-right>div,
.scroll-notice-right .con,
.scroll-notice-right .con>div {
  width: 100%;
  height: 100%;
  display: block;
}

.notice-marquee {
  width: 100%;
  display: block;
  line-height: 53px;
  font-size: 20px;
  color: #a12e2f;
}

.notice-marquee a {
  color: #a12e2f;
  text-decoration: none;
  transition: color 0.3s;
}

.notice-marquee a:hover {
  color: var(--primary-red);
}

.notice-separator {
  color: #ccc;
  margin: 0 24px;
}

/* Fudan-inspired layout for the news list page */
.news-card-page .fudan-news-list {
  display: block !important;
}

.news-card-page .fudan-news-card {
  display: block !important;
  min-height: 235px;
  margin: 0 0 34px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.news-card-page .fudan-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

.news-card-page .fudan-news-card .paged-news-card-link {
  min-height: 235px;
}

.news-card-page .fudan-news-card .paged-news-card-img {
  flex: 0 0 34%;
  width: 34%;
  min-height: 235px;
}

.news-card-page .fudan-news-card .paged-news-card-img img {
  min-height: 235px;
}

.news-card-page .fudan-news-card .paged-news-card-body {
  position: relative;
  justify-content: flex-start;
  padding: 34px 36px 28px 34px;
}

.fudan-news-kicker {
  color: #d00000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
}

.news-card-page .fudan-news-card .paged-news-card-title,
.news-card-page .fudan-news-card .paged-news-card-title a {
  display: block !important;
  color: #111;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: initial;
}

.fudan-news-summary {
  margin-top: 18px;
  color: #666;
  font-size: 17px;
  line-height: 1.8;
  white-space: normal;
}

.fudan-news-summary:empty {
  display: none;
}

.fudan-news-content-source {
  display: none !important;
}

.fudan-news-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  color: #666;
  font-size: 15px;
}

.fudan-meta-date,
.fudan-meta-views {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fudan-meta-date::before,
.fudan-meta-views::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #e85b5b;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.fudan-meta-date::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 5v4.4l3.2 1.9-1 1.7L11 12.5V7h2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 5v4.4l3.2 1.9-1 1.7L11 12.5V7h2Z'/%3E%3C/svg%3E");
}

.fudan-meta-views::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.5 5.1 9.8 5.4.3.4.3.9 0 1.2C21.5 11.9 17.5 17 12 17s-9.5-5.1-9.8-5.4a1 1 0 0 1 0-1.2C2.5 10.1 6.5 5 12 5Zm0 2c-3.6 0-6.5 2.8-7.7 4 1.2 1.2 4.1 4 7.7 4s6.5-2.8 7.7-4C18.5 9.8 15.6 7 12 7Zm0 1.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 5c5.5 0 9.5 5.1 9.8 5.4.3.4.3.9 0 1.2C21.5 11.9 17.5 17 12 17s-9.5-5.1-9.8-5.4a1 1 0 0 1 0-1.2C2.5 10.1 6.5 5 12 5Zm0 2c-3.6 0-6.5 2.8-7.7 4 1.2 1.2 4.1 4 7.7 4s6.5-2.8 7.7-4C18.5 9.8 15.6 7 12 7Zm0 1.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .news-card-page .fudan-news-card .paged-news-card-link {
    flex-direction: column;
  }

  .news-card-page .fudan-news-card .paged-news-card-img {
    width: 100%;
    flex-basis: auto;
  }
}

/* Shared header tuning: transparent bar with larger navigation text */
.sticky-nav {

  /* 三段式渐变 (顶部深豆沙红 -> 中间柔和玫瑰 -> 底部浅粉灰)  */
  background: linear-gradient(
    to bottom, 
    rgba(205, 82, 82, 0.95) 0%, 
    rgba(202, 140, 140, 0.7) 45%, 
    rgba(232, 212, 212, 0.5) 100%
  ) !important;

}

.sticky-nav-bottom-row .menu-link {
  padding: 0 15px !important;
  color: #8A1021 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.55);
}

.sticky-nav-bottom-row .menu-link::after {
  bottom: 5px !important;
  height: 4px !important;
  background: #a12e2f !important;
  box-shadow: 0 0 14px rgba(161, 46, 47, 0.35) !important;
}

.sticky-nav-bottom-row .wp-menu .menu-item:hover .menu-link,
.sticky-nav-bottom-row .menu-link:hover,
.sticky-nav-bottom-row .menu-link.selected {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #8A1021 !important;
  box-shadow: 0 12px 26px rgba(138, 16, 33, 0.18) !important;
}

.sticky-nav-bottom-row .sub-link {
  height: 48px !important;
  line-height: 48px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.sticky-nav-search {
  width: 250px !important;
  height: 36px !important;
  background: transparent !important;
  border-color: rgba(138, 16, 33, 0.45) !important;
  border-radius: 20px !important;
  padding-left: 16px !important;
}

.sticky-nav-search:hover,
.sticky-nav-search:focus-within {
  background: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(138, 16, 33, 0.72) !important;
  box-shadow: 0 8px 22px rgba(138, 16, 33, 0.12) !important;
}

.sticky-nav-search input:not([type="submit"]):not([type="button"]):not([type="image"]) {
  width: 170px !important;
  color: #8A1021 !important;
  font-size: 15px !important;
}

.sticky-nav-search input::placeholder,
.sticky-nav-search input::-webkit-input-placeholder {
  color: rgba(138, 16, 33, 0.78) !important;
}

.sticky-nav-search button,
.sticky-nav-search input[type="submit"],
.sticky-nav-search input[type="button"],
.sticky-nav-search input[type="image"],
.sticky-nav-search .wp_search_btn,
.sticky-nav-search .searchBtn {
  width: 28px !important;
  height: 28px !important;
  background-size: 20px 20px !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238A1021'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") !important;
}

/* News-list meta cleanup after removing share buttons */
.fudan-share {
  display: none !important;
}

.fudan-news-meta {
  gap: 28px !important;
  font-size: 17px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.fudan-meta-date,
.fudan-meta-views {
  gap: 10px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1.5 !important;
  flex: 0 0 auto !important;
}

.fudan-meta-date::before,
.fudan-meta-views::before {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

/* Compact news cards so title/summary leave room for one-line meta */
.news-card-page .fudan-news-card {
  min-height: 210px !important;
  margin-bottom: 22px !important;
}

.news-card-page .fudan-news-card .paged-news-card-link {
  min-height: 210px !important;
}

.news-card-page .fudan-news-card .paged-news-card-img,
.news-card-page .fudan-news-card .paged-news-card-img img {
  min-height: 210px !important;
}

.news-card-page .fudan-news-card .paged-news-card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 22px 32px 20px 28px !important;
  min-width: 0 !important;
}

.news-card-page .fudan-news-kicker {
  margin-bottom: 10px !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.news-card-page .fudan-news-card .paged-news-card-title,
.news-card-page .fudan-news-card .paged-news-card-title a {
  display: -webkit-box !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  max-height: 60px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.news-card-page .fudan-news-summary {
  margin-top: 10px !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  max-height: 56px !important;
  overflow: hidden !important;
}

.news-card-page .fudan-news-meta {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: nowrap !important;
  margin-top: 14px !important;
  font-size: 17px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.news-card-page .fudan-meta-date,
.news-card-page .fudan-meta-views {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.news-card-page .fudan-meta-date::before,
.news-card-page .fudan-meta-views::before {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}

.fudan-news-card .paged-news-card-body {
  justify-content: center !important;
  padding-top: 22px !important;
  padding-bottom: 20px !important;
}

.fudan-news-kicker {
  margin-bottom: 10px !important;
}

.fudan-news-summary {
  margin-top: 10px !important;
  max-height: 56px !important;
  overflow: hidden !important;
}

.fudan-news-meta {
  align-items: center !important;
  gap: 30px !important;
  margin-top: 14px !important;
  line-height: 1 !important;
}


/* Faculty list page: two-column teacher cards, no pagination */
.faculty-list-page .faculty-list-card-list {
  width: 100%;
}

.faculty-list-page .faculty-list-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 46px;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 0 0 !important;
  list-style: none !important;
}

.faculty-list-page .faculty-list-card {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  /* 将最小高度稍微提高以适应头像高度 */
  min-height: 160px; 
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* 强制统一并固定左侧头像框的大小 */
.faculty-list-page .faculty-list-photo {
  flex: 0 0 120px !important; /* 强制锁定宽度 120px */
  width: 120px !important;
  height: 160px !important;   /* 强制锁定高度 160px (经典证件照比例) */
  display: flex !important;
  align-items: flex-start !important; /* 让图片靠上对齐，避免下方留白跑到头顶 */
  justify-content: center !important; /* 水平居中 */
  overflow: hidden !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

./* 让图片完整显示，绝对不截断 */
.faculty-list-page .faculty-list-photo img {
  width: 100% !important;
  height: 100% !important;
  /* 保证原图按原比例缩放，直到完整塞进框里，哪怕两边留白也绝不截断人脸 */
  object-fit: contain !important; 
  object-position: center top !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
}

/* 清除从通用文章列表继承来的 "›" 小箭头 */
.faculty-list-page .faculty-list-card a::before,
.faculty-list-grid .list_item a::before {
  display: none !important;
  content: "" !important;
}

.faculty-list-page .faculty-photo-empty::before {
  /* 隐藏了空图片的灰色渐变背景占位符 */
  display: none; 
}
/* --- 修改重点区域结束 --- */

.faculty-list-page .faculty-list-info {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  color: #111;
  font-size: 17px;
  line-height: 1.42;
}

.faculty-list-page .faculty-list-field {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  margin-bottom: 2px;
}

.faculty-list-page .faculty-list-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #111;
}

.faculty-list-page .faculty-list-value {
  min-width: 0;
  color: #111;
  word-break: break-word;
}

.faculty-list-page .faculty-value-name {
  font-weight: 700;
}

.faculty-list-page .faculty-value-email a {
  color: #111;
  text-decoration: none;
}

.faculty-list-page .faculty-value-email a:hover {
  color: var(--primary-red);
}

.faculty-list-page .faculty-list-extra-source {
  display: none !important;
}

.faculty-list-page .wp_paging,
.faculty-list-page .faculty-list-card-list .wp_paging {
  display: none !important;
}

@media (max-width: 900px) {
  .faculty-list-page .faculty-list-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* 1. 恢复表格基础布局，把列宽分配权还给后台 */
.article-list.single-article-content table {
    width: 100% !important;
    margin: 15px 0 !important;
    border-collapse: collapse !important;
    table-layout: auto !important; 
}

/* 2. 恢复所有单元格的标准边框与边距，允许长文换行 */
.article-list.single-article-content table td,
.article-list.single-article-content table th {
    border: 1px solid #a0a0a0 !important; 
    padding: 8px 12px !important; 
    word-break: break-word !important; 
    white-space: normal !important; 
    vertical-align: middle !important;
}

/* 3. 真正的元凶：干掉针对“列表页第一列”的死板宽度和 0 边距 */
.article-list.single-article-content table tr td:first-child,
.article-list.single-article-content table tr th:first-child,
.article-list.single-article-content table tbody tr td:first-child,
.article-list.single-article-content table tbody tr th:first-child {
    width: unset !important;             /* 解除 24px 的死板宽度，让后台设置生效 */
    padding-right: 12px !important;      /* 把被强行清零的右侧留白补回来！ */
    padding-left: 12px !important;
}

/* 4. 清除全局段落首行缩进对表格的误伤，让居中真正居中 */
.article-list.single-article-content table p,
.article-list.single-article-content table div {
    text-indent: 0 !important;
    margin-bottom: 0 !important;
    text-align: inherit; 
}