/* 同创云 · 质量管理与精益六西格玛行业门户 */
:root {
  --primary: #1a4f9c;
  --primary-dark: #123c78;
  --primary-light: #eaf1fb;
  --accent: #c8322c;
  --text: #1f2329;
  --text-2: #5c6570;
  --text-3: #9aa4af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --maxw: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 顶部 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2f7dd8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}
.logo .name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.logo .name small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text);
  transition: background .2s, color .2s;
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.header-cta a {
  display: inline-block; padding: 9px 20px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
}
.header-cta a:hover { color: #fff; background: #a92721; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #123c78 0%, #1a4f9c 55%, #2f7dd8 100%);
  color: #fff; padding: 64px 0 60px;
}
.hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 38px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.hero p.sub { margin: 14px 0 30px; font-size: 16px; opacity: .88; max-width: 640px; }
.hero .stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero .stats .item { }
.hero .stats b { font-size: 28px; font-weight: 700; display: block; }
.hero .stats span { font-size: 13px; opacity: .8; }

/* ---------- 内容区块 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-gray { background: var(--bg-gray); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-head h2 .bar { width: 5px; height: 20px; border-radius: 3px; background: var(--primary); }
.section-head .more { font-size: 13px; color: var(--text-2); }
.section-head .more:hover { color: var(--primary); }

/* 资讯卡片（首页） */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 6px 18px rgba(26,79,156,.10); transform: translateY(-2px); }
.news-card .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-gray); }
.news-card .body { padding: 16px 18px 18px; }
.news-card .cat {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--primary-light); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.news-card h3 { font-size: 15px; line-height: 1.5; font-weight: 600; margin-bottom: 8px; height: 44px; overflow: hidden; }
.news-card .meta { font-size: 12px; color: var(--text-3); }

/* 知识列表（首页） */
.know-list .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 1px dashed var(--border); gap: 16px;
}
.know-list .row:last-child { border-bottom: none; }
.know-list .row a { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.know-list .row .tag { flex-shrink: 0; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 4px; }

/* 问答列表（首页） */
.qa-list .row { padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.qa-list .row:last-child { border-bottom: none; }
.qa-list .row .q { font-size: 15px; font-weight: 500; }
.qa-list .row .q::before { content: "问"; color: #fff; background: var(--primary); font-size: 11px; border-radius: 4px; padding: 1px 5px; margin-right: 8px; vertical-align: 2px; }
.qa-list .row .a { color: var(--text-2); font-size: 13px; margin-top: 4px; padding-left: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 报告列表（首页） */
.report-list .row { padding: 12px 4px; border-bottom: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-list .row:last-child { border-bottom: none; }
.report-list .row a { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-list .row .btn {
  flex-shrink: 0; font-size: 12px; color: var(--primary); border: 1px solid var(--primary);
  padding: 3px 10px; border-radius: 5px;
}
.report-list .row .btn:hover { background: var(--primary); color: #fff; }

/* ---------- 首页双栏图文卡片（知识方法/数据报告） ---------- */
.dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dcard {
  display: flex; gap: 16px; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;
  transition: box-shadow .2s, transform .2s;
}
.dcard:hover { box-shadow: 0 6px 18px rgba(26,79,156,.10); transform: translateY(-2px); }
.dcard .cover { width: 136px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-gray); }
.dcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.dcard .cat { align-self: flex-start; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 4px; }
.dcard h3 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 10px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .meta { font-size: 12px; color: var(--text-3); margin-top: auto; }

/* ---------- 首页问答卡片 ---------- */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qcard { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; transition: box-shadow .2s; }
.qcard:hover { box-shadow: 0 6px 18px rgba(26,79,156,.10); }
.qcard .q { font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qcard .q::before { content: "问"; color: #fff; background: var(--primary); font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 2px; }
.qcard .a { color: var(--text-2); font-size: 13px; margin-top: 8px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 列表页通用 ---------- */
.page-band {
  background: linear-gradient(135deg, #123c78, #1a4f9c);
  color: #fff; padding: 36px 0;
}
.page-band h1 { font-size: 26px; font-weight: 700; }
.page-band p { font-size: 14px; opacity: .85; margin-top: 6px; }

.list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 32px 0 60px; }
.list-main { }
.searchbar { display: flex; gap: 8px; margin-bottom: 18px; }
.searchbar input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; }
.searchbar input:focus { border-color: var(--primary); }
.searchbar button { padding: 10px 22px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-tabs a { padding: 5px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-2); }
.cat-tabs a.active, .cat-tabs a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.list-items { }
.list-item { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.list-item .thumb { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-gray); }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info h3 { font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.list-item .info h3 a:hover { color: var(--primary); }
.list-item .info .summary { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .info .meta { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; gap: 16px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text-2);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .disabled { color: #ccc; cursor: not-allowed; }

/* 侧栏 */
.list-side { }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.side-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-hot .row { padding: 8px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-hot .row:last-child { border-bottom: none; }
.side-hot .row a:hover { color: var(--primary); }

/* ---------- 详情页 ---------- */
.detail { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.crumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.crumb a:hover { color: var(--primary); }
.detail h1 { font-size: 26px; line-height: 1.4; font-weight: 700; margin-bottom: 14px; }
.detail .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.detail .cover { border-radius: 10px; margin-bottom: 20px; }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); word-break: break-word; }
.article-body p { margin-bottom: 16px; }
.article-body img { margin: 8px auto; border-radius: 8px; }
.article-body h1,.article-body h2,.article-body h3,.article-body h4 { margin: 18px 0 10px; }
.article-body pre { background: #f5f7fa; padding: 14px; border-radius: 8px; overflow-x: auto; margin-bottom: 16px; font-size: 13px; }
.article-body blockquote { border-left: 3px solid var(--primary); padding: 8px 14px; color: var(--text-2); background: var(--bg-gray); margin-bottom: 16px; }
.article-body table { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 8px 10px; font-size: 14px; }
.article-body th { background: var(--bg-gray); }
.attach { margin-top: 10px; }
.attach a { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); padding: 8px 16px; border-radius: 8px; font-size: 14px; }
.attach a:hover { background: var(--primary); color: #fff; }
.pn-nav { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); display: flex; justify-content: space-between; gap: 20px; }
.pn-nav a:hover { color: var(--primary); }
.pn-nav .none { color: #ccc; }

/* 空态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- 底部 ---------- */
.site-footer { background: #101a2c; color: #aeb9c8; font-size: 13px; padding: 40px 0 28px; }
.site-footer .cols { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer .about p { color: #8fa0b4; line-height: 1.8; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: #8fa0b4; }
.site-footer ul a:hover { color: #fff; }
.site-footer .copy { text-align: center; color: #5f6d80; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .hero h1 { font-size: 28px; }
  .list-item .thumb { width: 130px; height: 90px; }
  .dgrid, .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .site-header .bar { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 6px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .dcard .cover { width: 112px; height: 84px; }
}
