/* 文件描述：服务公告文档中心样式（列表 + 详情，前缀 sn-） */

body.sn-page {
  padding-top: var(--nav-height);
  background: #f8fafc;
}

body.sn-page .nav:not(.is-scrolled) {
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── 顶栏 ── */
.sn-title-bar {
  position: relative;
  width: 100%;
  background-color: #f1f4fb;
  overflow: hidden;
  border-bottom: 1px solid #c1c7d2;
}

.sn-title-bar .container {
  position: relative;
  padding: clamp(32px, calc(100vw * 48 / 1920), 48px) var(--container-px);
}

.sn-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-14, 14px);
  line-height: 1.5;
  margin-bottom: clamp(12px, calc(100vw * 16 / 1920), 16px);
  color: #777c85;
}

.sn-crumb a {
  color: var(--primary, #115391);
  text-decoration: none;
}

.sn-crumb a:hover {
  text-decoration: underline;
}

.sn-crumb-sep {
  margin: 0 0.45em;
  color: var(--on-surface-variant, #414752);
}

.sn-crumb-current {
  color: #777c85;
}

.sn-title {
  margin: 0;
  font-size: var(--fs-block-head, 28px);
  font-weight: 700;
  color: var(--primary, #115391);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sn-meta {
  margin: clamp(10px, calc(100vw * 14 / 1920), 14px) 0 0;
  font-size: var(--fs-12, 12px);
  color: #777c85;
  line-height: 1.5;
}

/* ── 双栏主区 ── */
.sn-main {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, calc(100vw * 52 / 1920), 52px);
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: clamp(28px, calc(100vw * 40 / 1920), 40px) var(--container-px, 24px)
    clamp(56px, calc(100vw * 80 / 1920), 80px);
}

.sn-side {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-height, 64px) + 12px);
}

.sn-side-title {
  margin: 0 0 12px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400, #94a3b8);
}

.sn-side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sn-side-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: var(--fs-14, 14px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-surface-variant, #414752);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.sn-side-link:hover {
  color: var(--primary, #115391);
  background: rgba(17, 83, 145, 0.04);
}

.sn-side-link.is-active {
  color: var(--primary, #115391);
  background: #e5e8ef;
  font-weight: 600;
}

.sn-side-help {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 87, 156, 0.05);
  border: 1px solid rgba(0, 64, 116, 0.1);
}

.sn-side-help-title {
  margin: 0 0 8px;
  font-size: var(--fs-14, 14px);
  font-weight: 600;
  color: var(--primary, #115391);
}

.sn-side-help-desc {
  margin: 0 0 10px;
  font-size: var(--fs-12, 12px);
  color: var(--on-surface-variant, #414752);
  line-height: 1.65;
}

.sn-side-help-link {
  font-size: var(--fs-14, 14px);
  font-weight: 500;
  color: var(--primary, #115391);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sn-body {
  flex: 1;
  min-width: 0;
}

/* ── 列表卡片 ── */
.sn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sn-card {
  display: block;
  padding: clamp(20px, calc(100vw * 28 / 1920), 28px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 87, 156, 0.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sn-card:hover {
  box-shadow: 0 8px 24px rgba(0, 87, 156, 0.1);
  transform: translateY(-1px);
}

.sn-card-title {
  margin: 0 0 8px;
  font-size: var(--fs-18, 18px);
  font-weight: 700;
  color: var(--on-surface, #181c21);
  line-height: 1.35;
}

.sn-card:hover .sn-card-title {
  color: var(--primary, #115391);
}

.sn-card-sum {
  margin: 0 0 12px;
  font-size: var(--fs-14, 14px);
  color: var(--on-surface-variant, #414752);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sn-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-12, 12px);
  color: #777c85;
}

.sn-card-more {
  color: var(--primary, #115391);
  font-weight: 600;
}

.sn-empty {
  margin: 0;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  color: var(--on-surface-variant, #414752);
  font-size: var(--fs-14, 14px);
}

/* ── 详情正文 ── */
.sn-article {
  background: #fff;
  border-radius: 12px;
  padding: clamp(28px, calc(100vw * 40 / 1920), 40px)
    clamp(28px, calc(100vw * 48 / 1920), 48px);
  box-shadow: 0 2px 12px rgba(0, 87, 156, 0.04);
}

.sn-article-title {
  margin: 0 0 10px;
  font-size: clamp(22px, calc(100vw * 28 / 1920), 28px);
  font-weight: 700;
  color: var(--on-surface, #181c21);
  line-height: 1.35;
}

.sn-article-meta {
  margin: 0 0 clamp(20px, calc(100vw * 28 / 1920), 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: var(--fs-13, 13px);
  color: #777c85;
}

.sn-article-body {
  font-size: var(--fs-14, 14px);
  color: var(--on-surface-variant, #414752);
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sn-article-body h1,
.sn-article-body h2,
.sn-article-body h3,
.sn-article-body h4 {
  margin: 1.4em 0 0.6em;
  color: var(--on-surface, #181c21);
  font-weight: 700;
  line-height: 1.35;
}

.sn-article-body h2 {
  font-size: clamp(18px, calc(100vw * 22 / 1920), 22px);
}

.sn-article-body h3 {
  font-size: clamp(16px, calc(100vw * 18 / 1920), 18px);
}

.sn-article-body p {
  margin: 0 0 1em;
}

.sn-article-body ul,
.sn-article-body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.sn-article-body li {
  margin-bottom: 0.35em;
}

.sn-article-body img,
.sn-article-body video,
.sn-article-body iframe,
.sn-article-body table {
  max-width: 100%;
  height: auto;
}

.sn-article-body img {
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}

.sn-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.sn-article-body th,
.sn-article-body td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
}

.sn-article-body a {
  color: var(--primary, #115391);
}

.sn-article-foot {
  margin-top: clamp(28px, calc(100vw * 36 / 1920), 36px);
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sn-article-contact-label {
  margin: 0 0 4px;
  font-size: var(--fs-12, 12px);
  color: #777c85;
}

.sn-article-contact-val {
  margin: 0;
  font-size: var(--fs-14, 14px);
  color: var(--on-surface, #181c21);
}

.sn-article-contact-val a {
  color: var(--primary, #115391);
}

.sn-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #c1c7d2;
  border-radius: 8px;
  background: #fff;
  color: var(--on-surface, #181c21);
  font-size: var(--fs-14, 14px);
  cursor: pointer;
  text-decoration: none;
}

.sn-action-btn:hover {
  border-color: var(--primary, #115391);
  color: var(--primary, #115391);
}

@media (max-width: 900px) {
  .sn-main {
    flex-direction: column;
    gap: 20px;
  }

  .sn-side {
    position: static;
    width: 100%;
  }

  .sn-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sn-side-link {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    white-space: nowrap;
  }

  .sn-side-link.is-active {
    border-color: var(--primary, #115391);
  }

  .sn-side-help {
    display: none;
  }
}

@media print {
  body.sn-page .nav,
  .sn-side,
  .sn-article-foot {
    display: none !important;
  }

  .sn-main {
    display: block;
    padding: 0;
  }

  .sn-article {
    box-shadow: none;
    padding: 0;
  }
}
