/* Column/article/detail pages */
.category-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.summary-stat { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.summary-stat strong { color: var(--blue); font-size: 22px; }
.summary-stat span { color: var(--muted); font-size: 13px; }
.content-list, .file-list, .hot-news-card ol, .related-reading-list { list-style: none; margin: 0; padding: 0; }
.content-list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; min-height: 96px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.content-list li:last-child { border-bottom: 0; }
.file-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 96px; gap: 12px; align-items: center; min-height: 50px; padding: 0 24px; border-bottom: 1px solid var(--line-soft); }
.file-list li:last-child { border-bottom: 0; }
.file-list i, .file-list [data-icon] { width: 18px; height: 18px; color: var(--blue); font-style: normal; }
.file-list a { overflow: hidden; color: #1f2937; font-size: 15px; line-height: 1.5; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.file-list li > span { color: var(--muted); font-size: 13px; text-align: right; }
.file-list .list-empty-row, .content-list .list-empty-row { display: block; min-height: 0; padding: 18px 24px 24px; border-bottom: 0; }
.file-list .list-empty-row .search-result-empty, .content-list .list-empty-row .search-result-empty { min-height: 150px; }
.content-list a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-list .title_color {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-list .list-label { margin-right: 10px; vertical-align: 1px; }
.content-list p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.content-list time { color: var(--muted); font-size: 13px; text-align: right; }
.article { padding: 28px 30px 32px; }
.article h1 { margin: 0 0 14px; color: #111827; font-size: 28px; line-height: 1.38; font-weight: 800; letter-spacing: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-summary, .notice-box { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fafafa; color: #475569; font-size: 14px; line-height: 1.8; }
.page-article-detail .detail-main { width: var(--container); max-width: none; margin: 0 auto 24px; padding: 24px 34px 0; }
.page-article-detail .detail-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) var(--side); gap: 20px; width: var(--inner); margin: 0 auto; }
.page-article-detail .article-detail-main { min-width: 0; padding: 28px 30px 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.page-article-detail .article-detail-main > h1 { margin: 0 0 14px; color: #111827; font-size: 28px; line-height: 1.38; font-weight: 800; letter-spacing: 0; }
.page-article-detail .article-detail-main > .article-meta { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.page-article-detail .article-detail-main > .article-summary { margin: 0 0 22px; }
.page-article-detail .article-detail-main > .article-body { padding: 0; }
.page-article-detail .detail-sidebar { display: grid; align-content: start; gap: 16px; min-width: 0; }
.page-article-detail .breadcrumb { width: var(--inner); margin: 0 auto 16px; }
.cms-enhance-notice { position: fixed; top: 82px; right: 24px; z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid #dbe7f3; border-radius: 8px; background: #fff; color: #102033; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); font-size: 14px; line-height: 1.5; }
.cms-enhance-notice span { min-width: 0; }
.cms-enhance-notice a { flex: 0 0 auto; color: var(--blue); font-weight: 700; }
.cms-enhance-copy-url { flex: 1 1 180px; min-width: 180px; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #1e293b; font-size: 13px; }
.cms-enhance-notice button { flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 16px; line-height: 24px; cursor: pointer; }
.cms-enhance-notice.is-success { border-color: #bfe6d1; color: #0f5132; }
.cms-enhance-notice.is-warning { border-color: #fed7aa; color: #7c2d12; }
.cms-enhance-notice.is-error { border-color: #fecaca; color: #7f1d1d; }
.article-actions, .article-footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.article-share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.article-actions a, .article-actions button, .collect-link, .share-tools button { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 64px; padding: 0 14px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; color: #334155; font-size: 14px; line-height: 32px; font-weight: 700; }
.article-actions a:first-child, .collect-link { border-color: var(--line); background: #fff; color: var(--blue); }
.collect-link.is-saved { border-color: #b7d3ff; background: #eff6ff; color: var(--blue); }
.share-tools { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.share-tools button { min-width: 38px; width: 38px; padding: 0; }
.share-tools button [data-icon] { margin: 0; }
.share-tools [data-icon], .collect-link [data-icon] { display: inline-block; width: 15px; height: 15px; color: currentColor; }
.collect-link { gap: 6px; }
.collect-link [data-icon] { margin-right: 0; }
.collect-link em { font-style: normal; }
.article-body { color: #243145; font-size: 16px; line-height: 1.95; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { margin: 30px 0 14px; font-size: 22px; line-height: 1.4; }
.article-body .detail-data-list { margin: 0 0 18px; padding: 0; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: #fff; }
.article-body .detail-data-list li { padding: 12px 16px; }
.article-body .detail-field-list { margin: 0 0 18px; }
.detail-info-list a { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); font-size: 13px; line-height: 28px; font-weight: 800; white-space: nowrap; }
.detail-hero { width: auto; margin: 0 0 18px; border-radius: 8px; }
.detail-title { grid-column: 1 / 3; }
.detail-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.detail-stat span { display: grid; gap: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.detail-stat strong { color: var(--blue); font-size: 18px; line-height: 1.2; }
.inner-layout > article { display: grid; gap: 18px; min-width: 0; }
.inner-card > p { margin: 0; padding: 20px 24px; color: #334155; font-size: 16px; line-height: 1.8; }
.inner-card > a { display: inline-flex; align-items: center; justify-content: center; width: max-content; min-width: 96px; height: 34px; margin: 0 24px 20px; padding: 0 14px; border: 1px solid #cfd8e3; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 800; }
.data-list { display: grid; gap: 0; margin: 0; padding: 8px 24px 18px; list-style: none; }
.data-list p, .data-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; min-height: 40px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: #334155; line-height: 1.6; }
.data-list li:last-child { border-bottom: 0; }
.data-list span { color: var(--muted); }
.data-list strong { font-weight: 700; }
.inner-card .side-links { padding: 14px 24px 18px; }
.inner-card .side-links strong { display: block; margin-bottom: 10px; font-size: 16px; }
.inner-card .side-links span { display: inline-flex; align-items: center; height: 30px; margin: 0 8px 8px 0; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: 999px; background: #fafafa; color: #334155; font-size: 13px; font-weight: 700; }
.side-card { padding-bottom: 14px; }
.page-column-list .rich-sidebar { gap: 16px; }
.page-column-list .rich-sidebar .side-card { padding-bottom: 12px; overflow: hidden; }
.page-column-list .rich-sidebar .side-card > h3 { min-height: 56px; padding: 16px 20px; font-size: 20px; }
.page-column-list .side-tool-grid { gap: 10px; padding: 14px; }
.page-column-list .side-tool-grid a { grid-template-rows: 32px auto; min-height: 74px; gap: 6px; }
.page-column-list .side-tool-grid [data-icon] { width: 32px; height: 32px; }
.page-column-list .side-tool-grid [data-icon]::after { width: 17px; height: 17px; }
.phpcms-page .detail-sidebar { gap: 16px; }
.phpcms-page .detail-sidebar .side-card { padding-bottom: 12px; overflow: hidden; }
.phpcms-page .detail-sidebar .side-card > h3,
.phpcms-page .detail-sidebar .side-card-head { min-height: 56px; padding: 16px 20px; }
.phpcms-page .detail-sidebar .side-card > h3,
.phpcms-page .detail-sidebar .side-card-head h3 { font-size: 20px; }
.phpcms-page .detail-sidebar .side-tool-grid { gap: 10px; padding: 14px; }
.phpcms-page .detail-sidebar .side-tool-grid a { grid-template-rows: 32px auto; min-height: 74px; gap: 6px; }
.phpcms-page .detail-sidebar .side-tool-grid [data-icon] { width: 32px; height: 32px; }
.phpcms-page .detail-sidebar .side-tool-grid [data-icon]::after { width: 17px; height: 17px; }
.page-column-list .side-links,
.page-column-list .side-links-dense { padding: 6px 16px 10px; }
.page-column-list .side-links a { min-height: 36px; font-size: 14px; }
.page-column-list .side-links a span { min-width: 34px; text-align: right; color: #64748b; font-weight: 700; }
.page-column-list .side-links a.is-active span { color: var(--blue); }
.page-column-list .side-category-card .side-group { display: grid; gap: 0; margin: 4px 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; background: #fafafa; }
.page-column-list .side-category-card .side-group a { min-height: 32px; padding-right: 10px; border-bottom: 0; font-size: 13px; }
.page-column-list .side-category-card .side-group > a:first-child { min-height: 36px; color: var(--blue); font-size: 14px; font-weight: 800; }
.side-material-banner { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #0f172a; }
.side-material-banner strong { font-size: 18px; line-height: 1.35; }
.side-material-banner span { color: #64748b; font-size: 13px; line-height: 1.6; }
.side-material-banner b { display: inline-flex; align-items: center; justify-content: center; width: max-content; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; line-height: 30px; }
.hot-news-card ol { display: grid; gap: 0; padding: 8px 16px 12px; }
.hot-news-card li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-height: 38px; border-bottom: 1px solid var(--line-soft); color: #334155; }
.hot-news-card li:last-child { border-bottom: 0; }
.hot-news-card li a { overflow: hidden; color: #334155; font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.hot-news-card li time { color: #64748b; font-size: 12px; text-align: right; }
.hot-news-empty { display: flex !important; align-items: center; min-height: 42px; color: var(--muted); font-size: 14px; }
.side-card > p { margin: 0; padding: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.article-toc > a { display: flex; align-items: center; min-height: 38px; margin: 0 16px; border-bottom: 1px solid var(--line-soft); color: #334155; font-size: 14px; font-weight: 700; }
.article-toc > a:last-child { border-bottom: 0; }
.side-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.side-tool-grid a { display: grid; grid-template-rows: 34px auto; place-items: center; gap: 8px; min-height: 86px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #334155; font-weight: 800; }
.side-tool-grid [data-icon] { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f8fafc; color: #1269f3; mask: none; -webkit-mask: none; }
.side-tool-grid [data-icon]::after { content: ""; display: block; width: 18px; height: 18px; background: currentColor; mask: var(--icon-url) center / contain no-repeat; -webkit-mask: var(--icon-url) center / contain no-repeat; }
.side-tool-grid a:nth-child(1) [data-icon] { background: #f8fafc; color: #1269f3; }
.side-tool-grid a:nth-child(2) [data-icon] { background: #f8fafc; color: #dc2626; }
.side-tool-grid a:nth-child(3) [data-icon] { background: #f8fafc; color: #db2777; }
.side-tool-grid a:nth-child(4) [data-icon] { background: #f8fafc; color: #0e7490; }
.side-links, .side-links-dense { display: grid; gap: 0; padding: 8px 16px 12px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; border-bottom: 1px solid var(--line-soft); color: #334155; font-size: 14px; }
.side-links a:last-child { border-bottom: 0; }
.side-links a.is-active { color: var(--blue); font-weight: 800; }

/* Unified attachment/download cards */
.download-grid {
  gap: 12px;
  padding: 18px 22px 22px;
}

.download-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 16px;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #fff;
}

.download-card:last-child {
  border-bottom: 1px solid #e3ebf5;
}

.download-card:hover,
.article-attachment-item:hover {
  border-color: #bfdbfe;
  background: #fbfdff;
}

.download-card-icon,
.article-attachment-item .attachment-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #1269f3;
  color: #fff;
  flex: 0 0 auto;
}

.download-card-main,
.article-attachment-item .attachment-main {
  min-width: 0;
}

.download-card strong,
.article-attachment-item strong {
  display: block;
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.download-card p,
.article-attachment-item p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.download-card-meta,
.attachment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.download-card-meta em,
.attachment-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 24px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 22px;
  font-style: normal;
  font-weight: 700;
}

.download-card-actions,
.article-download-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-self: center;
  justify-self: stretch;
}

.download-card .member-primary-action,
.download-card button[data-download-resource],
.article-attachment-item button[data-download-resource] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  line-height: 36px;
  font-weight: 800;
  white-space: nowrap;
}

.download-card .collect-link,
.article-attachment-item .collect-link,
.article-download-actions button[data-save-resource] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  line-height: 32px;
  font-weight: 800;
  white-space: nowrap;
}

.download-card .collect-link.is-saved,
.article-attachment-item .collect-link.is-saved,
.article-download-actions button[data-save-resource].is-saved {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.download-card [data-icon],
.article-attachment-item [data-icon] {
  width: 16px;
  height: 16px;
  color: currentColor;
}

/* Attachment list visual cleanup */
.article-downloads,
.related-reading.down-url {
  box-shadow: none;
}

.article-download-list {
  gap: 10px;
}

.article-attachment-item {
  border-color: #e8eef6;
  background: #fbfdff;
}

.article-attachment-item:hover {
  border-color: #d6e6fb;
  background: #f8fbff;
}

.article-attachment-item .attachment-icon {
  width: 40px;
  height: 40px;
  background: #1269f3;
  color: #fff;
  opacity: 1;
}

.article-attachment-item .attachment-icon[data-icon]::after {
  background: currentColor;
}

.article-attachment-item .attachment-main {
  padding-left: 0;
}

.article-downloads-head p {
  color: #64748b;
}
