/* ========================================
   模板专用样式 - 不影响首页和全局代码
   ======================================== */

/* ========== 面包屑导航 ========== */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: #555;
  line-height: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: var(--primary-blue); }
.breadcrumb .current { color: var(--text-muted); }

/* ========== 通用文章模板 ========== */
.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}
body.acc-care-mode .article-detail {
  max-width: 960px !important;
}
.article-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}
.article-header h1 {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 15px;
}
body.acc-care-mode .article-header h1 {
  font-size: 32px !important;
  line-height: 1.5 !important;
  color: #00284d !important;
  font-weight: 700 !important;
}
.article-meta {
  color: var(--text-muted);
  font-size: 14px;
}
.article-meta .author {
  margin-right: 25px;
  color: var(--primary-blue);
  font-weight: 500;
}
.article-meta .time {
  margin-right: 20px;
}
body.acc-care-mode .article-meta,
body.acc-care-mode .article-meta .time,
body.acc-care-mode .article-meta .author {
  font-size: 16px !important;
  color: #555 !important;
}

/* 原生嵌入式 PDF 阅读器容器 */
.pk-pdf-reader-box {
  margin: 25px 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 94, 165, 0.06);
}
.pk-pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}
.pk-pdf-bar-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pk-pdf-bar-tools {
  display: flex;
  gap: 10px;
}
.pk-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.pk-pdf-btn:hover {
  border-color: #005ea5;
  color: #005ea5;
  text-decoration: none;
}
.pk-pdf-btn-down {
  background: #005ea5;
  border-color: #005ea5;
  color: #ffffff !important;
}
.pk-pdf-btn-down:hover {
  background: #004b85;
  border-color: #004b85;
}
.pk-pdf-iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: none;
  background: #525659;
}
@media (max-width: 768px) {
  .pk-pdf-iframe {
    height: 480px;
  }
}
.article-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  font-size: 14px;
}
.article-actions .fonts i {
  cursor: pointer;
  padding: 0 2px;
}
.article-actions .fonts i:hover { color: var(--primary-blue); }
.article-actions .print-btn a { color: var(--text-secondary); }
.article-actions .print-btn a:hover { color: var(--primary-blue); }

/* 语言切换按钮 */
.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-btn {
  display: inline-block;
  width: 30px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 3px;
}
.lang-btn:hover {
  background: var(--primary-blue-dark);
  color: #fff;
  text-decoration: none;
}

/* 文章正文 */
.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}
body.acc-care-mode .article-body {
  font-size: 21px !important;
  line-height: 2.2 !important;
  color: #1a1a1a !important;
}
.article-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}
body.acc-care-mode .article-body p {
  font-size: 21px !important;
  line-height: 2.2 !important;
  margin-bottom: 26px !important;
  color: #1a1a1a !important;
}

/* 文章图片占位 */
.article-img {
  text-align: center;
  margin: 30px 0;
}
.article-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.article-img .img-caption,
.article-video .video-caption {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.article-img.img-left { text-align: left; }
.article-img.img-left img { margin: 0; }
.article-img.img-right { text-align: right; }
.article-img.img-right img { margin: 0 0 0 auto; }

/* 文章视频占位 */
.article-video {
  text-align: center;
  margin: 30px 0;
}
.article-video video,
.article-video iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* 附件 / 相关文章 */
.article-foot {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 30px;
}

/* ========== 文件公开模板 ========== */
.gk-container {
  width: var(--wrapper-width);
  margin: 0 auto;
  padding-bottom: 40px;
}
.gk-title {
  font-size: 60px;
  font-weight: bold;
  color: var(--primary-blue);
  text-align: center;
  padding: 40px 0 20px;
  letter-spacing: 8px;
}
.breadcrumb-gk {
  padding-left: 20px;
  background: url("data:image/gif;base64,R0lGODlhCwALAIAAAP///8zMzCH5BAAAAAAALAAAAAALAAsAAAIRhI+py+0Po5y02ouz3rz7rxUAOw==") no-repeat 0 5px;
  margin-bottom: 20px;
}
.gk-body {
  display: flex;
  gap: 30px;
}

/* 左侧分类 */
.gk-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.gk-category { margin-bottom: 0; }
.gk-category dt {
  border: 1px solid #ccc;
  line-height: 60px;
  margin-top: 12px;
  cursor: pointer;
  position: relative;
  text-align: center;
}
.gk-category dt a {
  font-size: 20px;
  color: var(--primary-blue);
  font-weight: bold;
  display: inline;
}
.gk-category dt.open {
  background: var(--primary-blue);
}
.gk-category dt.open a { color: #fff; }
.gk-category dd {
  line-height: 40px;
  border-bottom: 1px solid #f0f0f0;
}
.gk-category dd a {
  display: block;
  padding: 0 10px 0 36px;
  font-size: 15px;
  color: var(--text-color);
  font-weight: bold;
}
.gk-category dd:hover,
.gk-category dd.on {
  background-color: var(--primary-blue-light);
}
.gk-category dd.on a { color: var(--primary-blue); }

/* 右侧文件列表 */
.gk-content {
  flex: 1;
  min-width: 0;
}
.gk-content-header {
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.gk-content-header p {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color);
}
.gk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gk-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 48px;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 10px;
}
.gk-list li:hover { background: #fafafa; }
.gk-list li a {
  flex: 1;
  color: var(--text-color);
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gk-list li a:hover { color: var(--primary-blue); }
.gk-date {
  color: var(--text-light);
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 20px;
}

/* 分页 */
.gk-pagination {
  text-align: center;
  padding: 30px 0;
}
.gk-pagination a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  color: var(--text-secondary);
  font-size: 14px;
}
.gk-pagination a:hover,
.gk-pagination a.active {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  text-decoration: none;
}

/* ========== 日程模板 ========== */
.schedule-container {
  display: flex;
  gap: 40px;
  padding: 20px 0 60px;
}

/* 日历面板 */
.schedule-calendar {
  width: 320px;
  flex-shrink: 0;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 10px;
}
.cal-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
}
.cal-prev, .cal-next {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 30px;
  text-align: center;
}
.cal-prev:hover, .cal-next:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
.cal-table {
  width: 100%;
  border-collapse: collapse;
}
.cal-table th {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: normal;
  border-bottom: 1px solid #eee;
}
.cal-table td {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.cal-day {
  cursor: pointer;
  border-radius: 4px;
}
.cal-day:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}
.cal-day.has-schedule {
  font-weight: bold;
  color: var(--primary-blue);
  position: relative;
}
.cal-day.has-schedule::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--primary-blue);
  border-radius: 50%;
  margin: 2px auto 0;
}
.cal-today {
  background: #fffbe6;
  font-weight: bold;
}
.cal-selected {
  background: var(--primary-blue) !important;
  color: #fff !important;
}
.cal-selected::after {
  background: #fff !important;
}

/* 时间轴 */
.schedule-timeline {
  flex: 1;
  min-width: 0;
}
.schedule-date-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-blue);
  margin-bottom: 20px;
}
.timeline-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}
/* 时间轴与文章分类标记 */
.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-left: 2px solid #ddd;
  margin-left: 10px;
  padding-left: 25px;
  position: relative;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-blue);
  border-radius: 50%;
  position: absolute;
  left: -7px;
  top: 18px;
}
.timeline-content {
  flex: 1;
}
.timeline-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 10px;
  border-radius: 3px;
  background: #e8f3ff;
  color: #005ea5;
  font-size: 12px;
  font-weight: bold;
}
.timeline-time {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
  margin-right: 15px;
  min-width: 50px;
}
.timeline-title {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}
a.timeline-title:hover { color: var(--primary-blue); }

/* ========== 模板响应式 ========== */
@media screen and (max-width: 768px) {
  .gk-container { width: auto; padding: 0 15px; }
  .gk-title { font-size: 36px; padding: 20px 0 10px; }
  .gk-body { flex-direction: column; gap: 15px; }
  .gk-sidebar { width: 100%; }
  .schedule-container { flex-direction: column; gap: 20px; }
  .schedule-calendar { width: 100%; }
  .article-header h1 { font-size: 20px; }
  .article-actions { flex-wrap: wrap; gap: 10px; }
}

/* ========================================================
   国家标准公文与红头文件规范排版样式 (GB/T 9704-2012)
   涵盖：红头版头、发文字号、红线、标题、下划线小标题、
   右空四字落款、预留盖章空白、以及谱空科技数字化防伪追溯专码
   ======================================================== */
.gov-redhead-doc {
  max-width: 820px;
  margin: 24px auto;
  padding: 48px 56px 40px 56px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  font-family: '仿宋_GB2312', '方正公文仿宋', 'FangSong_GB2312', 'FangSong', 'STFangsong', serif;
  color: #1a202c;
  line-height: 1.8;
  position: relative;
  box-sizing: border-box;
}

.gov-doc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
  font-family: '黑体', 'SimHei', sans-serif;
}
.gov-doc-topbar .gov-secret {
  color: #c51d24;
  font-weight: bold;
  letter-spacing: 1px;
}

.gov-doc-header {
  text-align: center;
  margin-bottom: 20px;
}
.gov-doc-header h1.gov-org-title {
  color: #d92626;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  margin: 0 0 14px 0;
  font-family: '方正公文小标宋', '方正小标宋简', '方正小标宋_GBK', '小标宋体', 'SimSun', serif;
  line-height: 1.25;
}

.gov-doc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 2px 8px 2px;
  font-size: 16px;
  color: #222;
  font-family: '仿宋_GB2312', '方正公文仿宋', serif;
}
.gov-doc-meta-row.center-mode {
  justify-content: center;
}
.gov-doc-meta-row .gov-number {
  letter-spacing: 0.5px;
}
.gov-doc-meta-row .gov-issuer {
  font-size: 15px;
}
.gov-doc-meta-row .gov-issuer-name {
  font-family: '楷体_GB2312', '方正公文楷体', 'KaiTi', serif;
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin-left: 2px;
}

.gov-doc-divider {
  border: none;
  height: 3px;
  background: #d92626;
  margin: 0 0 28px 0;
  padding: 0;
  width: 100%;
}

.gov-doc-title {
  text-align: center;
  margin: 28px 0 24px 0;
}
.gov-doc-title h2 {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.5;
  color: #111;
  margin: 0;
  letter-spacing: 1.5px;
  font-family: '方正公文小标宋', '方正小标宋简', '方正公文黑体', '黑体', 'SimHei', sans-serif;
}

.gov-doc-receiver {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #111;
  letter-spacing: 0.5px;
}

.gov-doc-body {
  font-size: 16px;
  color: #2d3748;
  line-height: 2.0;
  margin-bottom: 28px;
  text-align: justify;
}
.gov-doc-body p {
  text-indent: 2em;
  margin-bottom: 14px;
  line-height: 2.0;
}
.gov-doc-body .gov-head-level1 {
  font-weight: bold;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  letter-spacing: 0.5px;
}
.gov-doc-body .gov-head-level2 {
  font-weight: bold;
  color: #222;
  font-family: '楷体_GB2312', '方正公文楷体', 'KaiTi', serif;
}

.gov-doc-sign-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
  margin-bottom: 24px;
  padding-right: 48px;
}
.gov-doc-sign-box {
  width: 280px;
  text-align: center;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.gov-doc-sign-org {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #111;
  font-family: '方正公文仿宋', '仿宋_GB2312', 'FangSong', serif;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.gov-doc-sign-date {
  font-size: 16px;
  color: #2d3748;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}
.gov-doc-seal {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
}

.gov-doc-banji {
  margin-top: 36px;
  padding-top: 12px;
  border-top: 2px solid #334155;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.gov-barcode-section {
  margin-top: 22px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  box-sizing: border-box;
}
.gov-barcode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
  font-family: '方正公文黑体', '黑体', 'SimHei', sans-serif;
  letter-spacing: 0.5px;
}
.gov-barcode-header .gov-badge-gov {
  color: #005ea5;
  font-weight: bold;
}
.gov-barcode-header .gov-barcode-rule-tip {
  color: #64748b;
  font-size: 11px;
}
.gov-barcode-visual {
  width: 100%;
  overflow: hidden;
  margin: 6px 0 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gov-barcode-visual svg {
  width: 100%;
  height: 48px;
  display: block;
}
.gov-barcode-digits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Consolas, 'Courier New', Monaco, monospace;
  font-size: 12px;
  color: #1e293b;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 2px 4px;
  background: #ffffff;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
}
.gov-barcode-digits .gov-b-group {
  display: inline-block;
  padding: 0 4px;
}
.gov-barcode-digits .gov-b-group span.ai {
  color: #005ea5;
  font-weight: normal;
  margin-right: 2px;
}
.gov-barcode-footer {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

/* ========================================================
   前台标准 A4 打印与另存为 PDF 专属规范 (GB/T 9704-2012)
   ======================================================== */
.gov-doc-read-banner {
  background: #eff6ff;
  border-left: 4px solid #005ea5;
  padding: 12px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 20mm;
  }
  *, *:before, *:after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
  }
  body, html {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .header,
  .naver,
  .breadcrumb,
  .article-header,
  .gov-doc-read-banner,
  .article-actions,
  #common-footer,
  .no-print,
  button {
    display: none !important;
  }
  .wrapper,
  .main,
  .article-detail,
  .article-body {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .gov-redhead-doc,
  .gov-a4-paper {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
}
