:root {
  --brand-primary: #6f42c1;
  --brand-accent: #0dcaf0;
  --brand-dark: #12141c;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.hero-section {
  background: linear-gradient(135deg, #6f42c1 0%, #0d6efd 50%, #12141c 100%);
  color: #fff;
  padding: 5rem 0;
}

#homeCarousel .carousel-item {
  height: 520px;
  position: relative;
}

#homeCarousel .carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

#homeCarousel .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.about-visual {
  min-height: 280px;
  background: linear-gradient(135deg, #6f42c1, #0d6efd);
}

.service-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(111, 66, 193, 0.15) !important;
}

.service-highlight {
  background: linear-gradient(135deg, #6f42c1, #495057);
}

.service-highlight.bg-info {
  background: linear-gradient(135deg, #0dcaf0, #0d6efd) !important;
}

.news-content {
  line-height: 1.9;
  word-wrap: break-word;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.news-content video,
.news-video-player,
.news-video-wrap video {
  max-width: 100%;
  height: auto;
  background: #000;
  border-radius: 0.375rem;
}

.news-content video.rich-video,
.news-content .content-video-protected,
.news-video-wrap video,
.news-video-player {
  -webkit-user-select: none;
  user-select: none;
}

.news-video-wrap {
  max-width: 100%;
}

.news-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.news-content table th,
.news-content table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.news-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
  color: #6c757d;
  margin: 1rem 0;
}

.news-content pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
}

.news-content pre[class*="language-"] {
  background: #282c34;
  color: #abb2bf;
  padding: 1rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.news-content pre[class*="language-"] code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.news-content code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: #f1f3f5;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.news-content pre code {
  background: transparent;
  padding: 0;
}

.news-content .token.comment,
.news-content .token.prolog,
.news-content .token.doctype,
.news-content .token.cdata {
  color: #7f848e;
}

.news-content .token.punctuation {
  color: #abb2bf;
}

.news-content .token.property,
.news-content .token.tag,
.news-content .token.boolean,
.news-content .token.number,
.news-content .token.constant,
.news-content .token.symbol {
  color: #d19a66;
}

.news-content .token.selector,
.news-content .token.attr-name,
.news-content .token.string,
.news-content .token.char,
.news-content .token.builtin {
  color: #98c379;
}

.news-content .token.operator,
.news-content .token.entity,
.news-content .token.url,
.news-content .token.variable {
  color: #56b6c2;
}

.news-content .token.atrule,
.news-content .token.attr-value,
.news-content .token.keyword {
  color: #c678dd;
}

.news-content .token.function,
.news-content .token.class-name {
  color: #61afef;
}

/* Wiki 知识库 */
.wiki-page .lead-sm {
  font-size: 1.05rem;
  line-height: 1.6;
}

.wiki-sidebar {
  position: sticky;
  top: 5.5rem;
}

.wiki-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.wiki-category-nav .nav-link {
  color: #495057;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s, color 0.15s;
}

.wiki-category-nav .nav-link:hover {
  background: rgba(111, 66, 193, 0.08);
  color: var(--brand-primary);
}

.wiki-category-nav .nav-link.active {
  background: var(--brand-primary);
  color: #fff;
}

.wiki-doc-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.wiki-doc-card-link:hover .wiki-doc-card {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(111, 66, 193, 0.12) !important;
}

.wiki-doc-card-link:hover .wiki-doc-card-more {
  color: var(--brand-primary);
}

.wiki-doc-card .card-title {
  font-size: 1rem;
  color: #212529;
  line-height: 1.45;
}

.wiki-doc-card-more {
  color: #6c757d;
}

.wiki-section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(111, 66, 193, 0.1);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.wiki-list-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.wiki-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

.wiki-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.wiki-breadcrumb a:hover {
  color: var(--brand-primary);
}

.wiki-nav-panel .wiki-nav-group {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.wiki-nav-panel .wiki-nav-group:last-child {
  border-bottom: none;
}

.wiki-nav-group-label {
  padding: 0.35rem 1rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #868e96;
}

.wiki-nav-link {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  color: #495057;
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.45;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.wiki-nav-link:hover {
  background: #f8f9fa;
  color: var(--brand-primary);
}

.wiki-nav-link.active {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border-left-color: #0d6efd;
  font-weight: 600;
}

.content-detail-page,
.content-detail-page .news-content {
  user-select: text;
  -webkit-user-select: text;
}

.wiki-article {
  min-height: 12rem;
  user-select: text;
  -webkit-user-select: text;
}

.wiki-content {
  user-select: text;
  -webkit-user-select: text;
}

.wiki-content h2,
.wiki-content h3,
.wiki-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.wiki-content h2:first-child,
.wiki-content h3:first-child,
.wiki-content h4:first-child {
  margin-top: 0;
}

.wiki-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .wiki-sidebar {
    position: static;
  }

  .wiki-category-nav .nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.35rem !important;
  }

  .wiki-category-nav .nav-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
  }

  .wiki-category-nav .nav-link i {
    display: none;
  }
}

.wiki-nav-card .list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* —— 新闻列表 / 详情 —— */
.news-sidebar {
  position: sticky;
  top: 5.5rem;
}

.news-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.news-category-nav .nav-link {
  color: #495057;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s, color 0.15s;
}

.news-category-nav .nav-link:hover {
  background: rgba(111, 66, 193, 0.08);
  color: var(--brand-primary);
}

.news-category-nav .nav-link.active {
  background: var(--brand-primary);
  color: #fff;
}

.news-list-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.news-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

.news-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.news-breadcrumb a:hover {
  color: var(--brand-primary);
}

.lead-sm {
  font-size: 1.05rem;
  line-height: 1.6;
}

.news-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card-link:hover .news-card {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(111, 66, 193, 0.12) !important;
}

.news-card-link:hover .news-card-more {
  color: var(--brand-primary);
}

.news-card-cover-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f3f5;
}

.news-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card-link:hover .news-card-cover {
  transform: scale(1.03);
}

.news-card-title {
  font-size: 1.05rem;
  color: #212529;
  line-height: 1.45;
  transition: color 0.15s;
}

.news-card-link:hover .news-card-title {
  color: var(--brand-primary);
}

.news-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-category {
  background: rgba(111, 66, 193, 0.1);
  color: var(--brand-primary);
  font-weight: 500;
}

.news-card-more {
  color: #6c757d;
}

.news-featured {
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-featured-link:hover .news-featured {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(111, 66, 193, 0.14) !important;
}

.news-featured-link:hover .news-featured-title {
  color: var(--brand-primary);
}

.news-featured-link:hover .news-card-more {
  color: var(--brand-primary);
}

.news-featured-title {
  color: #212529;
  line-height: 1.4;
  transition: color 0.15s;
}

.news-featured-cover-wrap {
  min-height: 220px;
  background: #f1f3f5;
}

.news-featured-cover {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-featured-link:hover .news-featured-cover {
  transform: scale(1.02);
}

.news-detail-hero {
  background: #f1f3f5;
}

.news-detail-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-article {
  min-height: 12rem;
}

.news-meta-list li:last-child {
  border-bottom: none !important;
}

.news-detail-sidebar .card {
  position: sticky;
  top: 5.5rem;
}

.news-attachment-image img {
  transition: opacity 0.15s;
}

.news-attachment-image:hover img {
  opacity: 0.92;
}

@media (max-width: 991.98px) {
  .news-sidebar,
  .news-detail-sidebar .card {
    position: static;
  }

  .news-category-nav .nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.35rem !important;
  }

  .news-category-nav .nav-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
  }

  .news-category-nav .nav-link i {
    display: none;
  }

  .news-featured-cover-wrap {
    min-height: 180px;
  }

  .news-featured-cover {
    min-height: 180px;
  }
}

.hero-section .lead {
  opacity: 0.92;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #6c757d;
  margin-bottom: 2.5rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(111, 66, 193, 0.12);
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-beian {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-beian img {
  vertical-align: middle;
  margin-right: 4px;
}

.page-header-banner {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 3rem 0;
}

.contact-info-card {
  border: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.error-page-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #f8f9fc 0%, #eef1f8 100%);
}

.error-page-card {
  border-radius: 1rem;
}

.error-page-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.error-page-code {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-primary);
  letter-spacing: -0.04em;
}

.support-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-card-link:hover .support-card {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.12) !important;
}

.support-card-cover-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f3f5;
}

.support-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.support-card-link:hover .support-card-cover {
  transform: scale(1.03);
}

.support-card-title {
  color: #212529;
  transition: color 0.15s;
}

.support-card-link:hover .support-card-title {
  color: var(--brand-primary);
}

.support-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-detail-cover-wrap {
  background: #f1f3f5;
  max-width: 420px;
}

.support-detail-cover-link {
  display: block;
}

.support-detail-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.support-detail-cover-link:hover .support-detail-cover {
  opacity: 0.92;
}

.support-detail-page .news-content img {
  max-width: min(100%, 320px);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  cursor: zoom-in;
}

.support-list-thumb {
  width: 40px;
  height: 28px;
  object-fit: cover;
}

.list-search-form .input-group {
  max-width: 520px;
}

.list-pagination .page-link {
  min-width: 2.5rem;
  text-align: center;
}

.custom-page-standalone {
  margin: 0;
}

.custom-page-back-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 12px 16px;
  pointer-events: none;
}

.custom-page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #212529;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.custom-page-back-btn::before {
  content: "←";
  font-weight: 600;
}

.custom-page-back-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #212529;
}

button.custom-page-back-btn {
  font-family: inherit;
}

.news-contact-sidebar .news-sidebar-title {
  font-size: 1rem;
}

.news-contact-float {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 10001;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3rem;
  padding: 0.85rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--brand-primary, #0d6efd);
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: -2px 2px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, box-shadow 0.15s ease, padding-right 0.15s ease;
}

.news-contact-float i {
  writing-mode: horizontal-tb;
  font-size: 1.1rem;
}

.news-contact-float:hover {
  color: #fff;
  background: var(--brand-primary-dark, #0b5ed7);
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
  padding-right: 0.85rem;
}

@media (max-width: 767.98px) {
  .news-contact-float {
    top: auto;
    bottom: 1.25rem;
    right: 1rem;
    transform: none;
    writing-mode: horizontal-tb;
    flex-direction: row;
    min-width: auto;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    letter-spacing: normal;
  }

  .news-contact-float-text {
    writing-mode: horizontal-tb;
  }
}
