:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1c2b39;
  --ink-soft: #47566b;
  --accent: #0b5fff;
  --accent-soft: #e8f0ff;
  --gold: #c8920a;
  --gold-soft: #fdf6e3;
  --teal: #00867d;
  --teal-soft: #e6f7f5;
  --muted: #7c8794;
  --line: #e3e9f2;
  --shadow: 0 1px 3px rgba(20, 40, 80, .06), 0 6px 18px rgba(20, 40, 80, .05);
  --shadow-hover: 0 2px 6px rgba(20, 40, 80, .10), 0 12px 30px rgba(20, 40, 80, .10);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
}

/* ---------- 头部 ---------- */
.site-header {
  background: linear-gradient(135deg, #0a1a3c 0%, #123a75 55%, #0b5fff 130%);
  color: #fff;
  text-align: center;
  padding: 44px 20px 34px;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(500px 180px at 85% 100%, rgba(11,95,255,.45), transparent 60%);
  pointer-events: none;
}
.site-header h1 { margin: 0; font-size: 30px; letter-spacing: 2px; font-weight: 800; position: relative; }
.site-header p { margin: 10px 0 0; opacity: .88; font-size: 14px; font-weight: 300; position: relative; }

/* ---------- 导航 ---------- */
.site-nav {
  display: flex; justify-content: center; gap: 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  position: sticky; top: 0; z-index: 50;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--accent); }

/* ---------- 三栏布局 ---------- */
.cols {
  max-width: 1300px;
  margin: 26px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 1080px) { .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .cols { grid-template-columns: 1fr; } }

.col { min-width: 0; }
.col-body { display: flex; flex-direction: column; gap: 16px; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 46px; height: 2px; background: var(--accent);
}
.col-company .section-title { color: var(--gold); }
.col-company .section-title::after { background: var(--gold); }
.col-tech .section-title { color: var(--teal); }
.col-tech .section-title::after { background: var(--teal); }
.col-news .section-title { color: var(--accent); }
.col-news .section-title::after { background: var(--accent); }
.empty { color: var(--muted); font-size: 13px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.company-card { border-top: 3px solid var(--gold); background: linear-gradient(180deg, #fffef9, #fff); }
.tech-card { border-top: 3px solid var(--teal); background: linear-gradient(180deg, #f8fffe, #fff); }
.card h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: 12px; margin: 6px 0; }
.summary {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags { margin: 0 0 8px; }
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  padding: 1px 9px;
  border-radius: 20px;
  margin: 0 4px 3px 0;
}
.tech-card .tag { background: var(--teal-soft); color: var(--teal); }
.more { color: var(--accent); font-size: 13px; text-decoration: none; font-weight: 500; }
.more:hover { text-decoration: underline; }

.badge-company, .badge-tech {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  color: #fff;
  vertical-align: middle;
  margin-right: 5px;
  font-weight: 600;
}
.badge-company { background: var(--gold); }
.badge-tech { background: var(--teal); }

/* ---------- 文章页 ---------- */
main > article {
  max-width: 780px;
  margin: 26px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow);
}
article h1 { font-size: 24px; margin: 0 0 10px; line-height: 1.4; }
article .meta { font-size: 13px; }
article .body { font-size: 15.5px; color: var(--ink); margin-top: 8px; }
article .body p { margin: 12px 0; }
article .body h2 { font-size: 19px; color: var(--ink); margin: 22px 0 8px; border-left: 4px solid var(--accent); padding-left: 10px; }
article .body h3 { font-size: 16px; margin: 18px 0 6px; }
article .body blockquote {
  margin: 14px 0; padding: 10px 16px;
  border-left: 3px solid #c9d6e8; background: #f4f7fb; color: var(--ink-soft);
  border-radius: 0 8px 8px 0;
}
article .body code { background: #eef2f7; padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
article .body ul { margin: 8px 0; padding-left: 24px; }
article .body li { margin: 4px 0; }
article .body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
article .body th, article .body td { border: 1px solid var(--line); padding: 7px 10px; }
article .body th { background: #f0f4fa; }
article .body hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 30px 16px 40px;
  border-top: 1px solid var(--line);
}