:root {
  --blue-dark: #07529b;
  --blue-main: #126fbd;
  --blue-nav: #1d66b7;
  --blue-light: #22a7e6;
  --cyan: #20c7dd;
  --sky: #dff5ff;
  --text: #173861;
  --muted: #5e7790;
  --line: #d7e8f5;
  --white: #fff;
  --shadow: 0 8px 22px rgba(12, 87, 159, .13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #e8f8ff 0%, #ffffff 46%, #f7fbff 100%);
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site,
.wrap {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.nav-bar {
  background: linear-gradient(90deg, #0d56a8, #1a72c8);
  box-shadow: 0 5px 16px rgba(6, 76, 145, .22);
}

.nav-top-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-top-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  flex: 0 0 auto;
  text-shadow: 0 2px 8px rgba(0, 50, 110, .25);
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 50, 110, .22);
  flex: 0 0 auto;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-brand-name {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-brand-img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-brand-sub {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.96;
  text-shadow: 0 2px 8px rgba(0, 47, 92, .35);
}

.nav-bottom-row {
  background: rgba(0, 0, 0, .08);
}

.nav-bottom-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  flex: 0 0 auto;
  position: relative;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 4px;
  transition: all .2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, .16);
}

.nav-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-icon.home {
  border: 2px solid currentColor;
  border-top: none;
  width: 18px;
  height: 15px;
  margin-top: 5px;
}

.nav-icon.home::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -8px;
  width: 18px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 代码尖括号 < > */
.nav-icon.mail::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(225deg);
}

.nav-icon.mail::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

/* 芯片 */
.nav-icon.grid {
  width: 16px;
  height: 16px;
  margin: 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon.grid::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.nav-icon.grid::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -4px;
  width: 2px;
  height: 4px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor, 0 18px 0 currentColor, 8px 18px 0 currentColor;
}

/* 终端窗口 */
.nav-icon.list {
  width: 20px;
  height: 16px;
  margin: 3px 1px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-icon.list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: currentColor;
}

.nav-icon.list::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

/* 数据库圆柱 */
.nav-icon.chat {
  width: 18px;
  height: 16px;
  margin: 3px 2px;
  border: 2px solid currentColor;
  border-radius: 50% / 22%;
}

.nav-icon.chat::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 3px;
  height: 0;
  border-top: 2px solid currentColor;
}

/* 信息学院：电路板网格 + 点阵科技纹理（改用海洋蓝色调） */
.info-section {
  position: relative;
  padding: 24px 0 28px;
  background-color: #eaf3fb;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(234, 243, 251, .80) 56%, rgba(206, 226, 240, .50) 100%),
    radial-gradient(rgba(18, 111, 189, .12) 1.4px, transparent 1.6px),
    repeating-linear-gradient(0deg, rgba(18, 111, 189, .05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(18, 111, 189, .05) 0 1px, transparent 1px 28px);
  background-size: cover, 28px 28px, auto, auto;
  background-position: center, 0 0, 0 0, 0 0;
  border-bottom: 1px solid #dcecf6;
  overflow: hidden;
}

/* 电路连线角标 */
.info-section::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 22px;
  width: 150px;
  height: 90px;
  border: 2px solid rgba(12, 87, 159, .22);
  border-radius: 6px;
  background:
    linear-gradient(rgba(32, 167, 198, .9), rgba(32, 167, 198, .9)) 18px 50% / 44px 2px no-repeat,
    radial-gradient(circle, rgba(32, 167, 198, .9) 0 4px, transparent 5px) 18px 50% / 9px 9px no-repeat,
    radial-gradient(circle, rgba(12, 87, 159, .9) 0 4px, transparent 5px) 62px 50% / 9px 9px no-repeat;
  opacity: .6;
}

.result-info {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(12, 87, 159, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--blue-dark);
  font-size: 28px;
  font-weight: 800;
}

/* 芯片图标 */
.section-wheel {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 3px solid var(--blue-main);
  position: relative;
}

.section-wheel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  border: 2px solid var(--blue-main);
}

.section-wheel::after {
  content: "";
  position: absolute;
  left: 8px;
  top: -7px;
  width: 3px;
  height: 7px;
  background: var(--blue-main);
  box-shadow: 13px 0 0 var(--blue-main), 0 39px 0 var(--blue-main), 13px 39px 0 var(--blue-main);
}

.info-row {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
  margin-top: 11px;
  font-size: 17px;
  line-height: 1.9;
}

.info-label {
  color: var(--blue-dark);
  font-weight: 800;
  text-align: right;
}

.info-label::after {
  content: "：";
}

.info-value {
  color: #263f55;
  font-weight: 600;
}

.cards-section {
  padding: 36px 0 42px;
  background:
    radial-gradient(circle at 16% 18%, rgba(32, 199, 221, .10), transparent 28%),
    linear-gradient(180deg, #fff, #f5fbff);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
  perspective: 1200px;
}

.card {
  --bookmark-start: #154fa5;
  --bookmark-end: #226fe1;
  --paper-glow: rgba(32, 199, 221, .08);
  min-height: 150px;
  background-color: rgba(255, 255, 255, .98);
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, .96) 0%, rgba(238, 248, 255, .92) 100%),
    repeating-linear-gradient(135deg, rgba(18, 111, 189, .055) 0 1px, transparent 1px 15px);
  border: 1px solid #c9e1f1;
  border-radius: 8px;
  box-shadow:
    0 18px 34px rgba(12, 87, 159, .15),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  padding: 62px 22px 18px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  transform-style: preserve-3d;
  transition: .2s ease;
}

.card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow:
    0 24px 42px rgba(6, 76, 145, .20),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  border-color: #b5d8f2;
}

.card::before {
  content: "";
  position: absolute;
  inset: 12px -9px -12px 11px;
  border: 1px solid rgba(144, 194, 226, .56);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(225, 243, 255, .92), rgba(255, 255, 255, .75)),
    repeating-linear-gradient(135deg, rgba(7, 82, 155, .04) 0 1px, transparent 1px 14px);
  box-shadow:
    0 12px 24px rgba(12, 87, 159, .11),
    inset 0 1px 0 rgba(255, 255, 255, .82);
  transform: translateZ(-24px) rotate(1deg);
  z-index: -1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(7, 82, 155, .075) 0 10px, transparent 10px 100%),
    radial-gradient(circle at 88% 16%, var(--paper-glow), transparent 30%),
    repeating-linear-gradient(0deg, rgba(7, 82, 155, .040) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 2;
}

.card-title-bookmark {
  position: absolute;
  left: 22px;
  top: -1px;
  width: calc(100% - 92px);
  margin: 0;
  padding: 13px 46px 13px 18px;
  border-left: 4px solid #e7b34d;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(135deg, var(--bookmark-start), var(--bookmark-end));
  box-shadow:
    0 10px 18px rgba(6, 76, 145, .20),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 2px 7px rgba(0, 47, 92, .28);
  z-index: 4;
}

.card-title-bookmark::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid #06447f;
  border-left: 8px solid transparent;
}

.card-title-bookmark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 100%;
  border-radius: 0 0 8px 0;
  background: rgba(255, 255, 255, .16);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 78%, 0 50%, 12px 22%);
}

.card-index {
  position: absolute;
  top: 16px;
  right: 22px;
  color: rgba(7, 82, 155, .18);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  z-index: 3;
}

.card p,
.card li {
  color: #405c74;
  font-size: 15px;
  line-height: 1.82;
}

.card p {
  margin: 0 0 10px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li::marker {
  color: var(--bookmark-end);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(18, 111, 189, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: var(--blue-main);
  font-size: 14px;
  font-weight: 700;
}

.more::after {
  content: ">";
}

.practice-card {
  margin-top: 24px;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px;
  background: linear-gradient(135deg, #154fa5, #226fe1);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(10, 87, 158, .22);
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
  transition: .2s ease;
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(6, 76, 145, .28);
}

.practice-label {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 15px;
  letter-spacing: 1px;
}

.practice-text {
  flex: 1 1 auto;
  font-size: 20px;
  text-shadow: 0 2px 7px rgba(0, 47, 92, .25);
}

.practice-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.main {
  padding: 30px 0 44px;
  min-height: 620px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.content-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.sidebar {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-layout.no-sidebar .sidebar {
  display: none;
}

.side-title {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0d56a8, #1a72c8);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.side-title::before {
  content: "";
  width: 8px;
  height: 26px;
  background: rgba(255, 255, 255, .9);
  margin-right: 10px;
}

.side-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.side-menu li {
  padding: 12px 12px;
  line-height: 1.45;
  border-radius: 6px;
  color: #31566a;
  cursor: pointer;
  transition: .16s;
  margin-bottom: 6px;
}

.side-menu li:hover,
.side-menu li.active {
  background: #eaf5ff;
  color: var(--blue-dark);
  font-weight: 800;
}

.side-menu li a {
  display: block;
  color: inherit;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0 28px 32px;
  min-height: 560px;
}

.article-head {
  min-height: 70px;
  border-bottom: 2px solid #e0eff8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.article-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
}

.article-head h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 23px;
  line-height: 1.45;
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}

.crumb a {
  color: var(--blue-main);
}

.meta {
  padding: 14px 0 16px;
  color: var(--muted);
  border-bottom: 1px dashed #d4eaf0;
}

.rich {
  padding-top: 18px;
  line-height: 2;
  color: #354f5e;
  font-size: 15px;
}

.rich h3 {
  margin: 20px 0 8px;
  color: var(--blue-dark);
  font-size: 18px;
  border-left: 4px solid var(--blue-light);
  padding-left: 10px;
  line-height: 1.45;
}

.rich p {
  margin: 0 0 12px;
}

.rich img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: #fff;
}

.rich th,
.rich td {
  border: 1px solid #d3e7ee;
  padding: 10px 12px;
  text-align: left;
}

.rich th {
  background: #eaf5ff;
  color: var(--blue-dark);
}

.attach {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f5fbff;
  border: 1px solid #d6ebf1;
  color: #496879;
}

.attach b {
  color: var(--blue-dark);
}

.article-news-title {
  margin: 18px 0 6px;
  font-size: 20px;
  color: var(--blue-dark);
  text-align: center;
  font-weight: 800;
  line-height: 1.5;
}

.empty-tip {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

.footer {
  background: linear-gradient(90deg, #003978, #0b5aa8);
  color: rgba(255, 255, 255, .88);
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.footer-info {
  text-align: center;
  line-height: 1.9;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 8px 0;
  }

  .nav-list {
    flex-wrap: wrap;
    min-height: 0;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list a {
    min-height: 46px;
    padding: 0 18px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
  }

  .card-title-bookmark {
    font-size: 19px;
  }
}

@media (max-width: 720px) {
  .site,
  .wrap {
    max-width: calc(100% - 22px);
  }

  .nav-logo {
    width: 38px;
    height: 38px;
  }

  .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .nav-brand-name {
    font-size: 16px;
    white-space: normal;
  }

  .nav-icon {
    display: none;
  }

  .nav-list a {
    min-height: 44px;
    font-size: 15px;
  }

  .info-section {
    padding: 30px 0;
    background: #fff;
  }

  .info-section::after {
    display: none;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .card-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 194px;
    padding: 76px 20px 22px;
  }

  .card::before {
    inset: 10px -6px -10px 8px;
  }

  .card-title-bookmark {
    left: 18px;
    max-width: calc(100% - 68px);
    padding: 12px 38px 12px 16px;
    font-size: 18px;
  }

  .card-index {
    top: 17px;
    right: 18px;
    font-size: 30px;
  }

  .practice {
    padding-left: 108px;
    font-size: 18px;
  }

  .article-head {
    display: block;
    padding: 16px 0;
  }

  .crumb {
    text-align: left;
    margin-top: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    justify-content: center;
  }
}

/* 完成单位横排单行 */
.unit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  font-size: 14px;
}

.unit-grid li {
  position: relative;
  padding-left: 14px;
  line-height: 1.7;
  flex: 0 0 auto;
}

.unit-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-main);
}

/* 视频卡：海报+三角示意（点击整卡跳详情页） */
.card-video-poster {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #0a2845 url("/img/video-poster.jpg") center / cover no-repeat;
  border: 1px solid rgba(18, 111, 189, .22);
  transition: transform .2s ease;
}

.card-video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .22);
  transition: background .2s ease;
}

.card-video:hover .card-video-poster::before {
  background: rgba(0, 0, 0, .34);
}

.card-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .32);
  z-index: 2;
}

.card-video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-left: 13px solid #154fa5;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* 新闻详情页：视频播放器 */
.video-player {
  margin: 22px 0 8px;
}

.video-player video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(12, 87, 159, .18);
}

/* 子栏目链接 hover 效果 */
.card li a {
  display: inline-block;
  color: inherit;
  transition: color .15s ease;
}

.card li a:hover {
  color: var(--blue-main);
  text-decoration: underline;
}

.card-title-bookmark:hover {
  filter: brightness(1.08);
}

/* PDF 内嵌查看器（column 页面 latestNews 为 PDF 时使用） */
.pdf-viewer {
  margin: 18px 0 8px;
}

.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f5;
}

.pdf-fallback {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.pdf-fallback a {
  color: var(--blue-main);
  text-decoration: underline;
}
