/* ConcxAI 资讯网 · 单文件样式，零外部资源 */

:root {
  --ink: #16181d;
  --ink-2: #3d434d;
  --muted: #69707d;
  --line: #e5e7eb;
  --line-soft: #f1f2f5;
  --bg-soft: #f7f8fa;
  --brand: #14506b;
  --brand-dark: #0e3a4e;
  --brand-soft: #eef4f7;
  --accent: #b45309;
  --radius: 10px;
  --maxw: 1080px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 页头 ---------- */

.site-header { border-bottom: 1px solid var(--line); position: relative; }
.site-header::before {
  content: ""; display: block; height: 3px; background: var(--brand);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--brand); color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  padding: 7px 13px; border-radius: 6px; font-size: 14.5px;
  color: var(--ink-2); transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

/* ---------- 首页 Hero ---------- */

.hero {
  margin-top: 34px; padding: 50px 46px 54px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hero-kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 15px;
}
.hero-title {
  font-size: clamp(27px, 4vw, 39px); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 18px;
}
.hero-desc { font-size: 16px; line-height: 1.82; color: var(--ink-2); max-width: 660px; }

/* ---------- 栏目卡 ---------- */

.section-grid-wrap { padding: 40px 0 4px; }
.section-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.section-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 21px 19px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.18s, transform 0.18s;
}
.section-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.section-card-name { font-size: 16px; font-weight: 600; color: var(--brand); }
.section-card-desc { font-size: 13px; line-height: 1.68; color: var(--muted); flex: 1; }
.section-card-count { font-size: 12px; color: var(--muted); }

/* ---------- 区块标题 ---------- */

.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 13px; border-bottom: 1.5px solid var(--ink);
}
.block-title { font-size: 17px; font-weight: 600; }
.block-note { font-size: 13px; color: var(--muted); }

.latest { padding: 44px 0 10px; }

/* ---------- 文章列表 ---------- */

.article-list { display: flex; flex-direction: column; }
.article-item { border-bottom: 1px solid var(--line-soft); }
.article-link { display: block; padding: 24px 0; }
.article-section {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.06em; margin-bottom: 8px;
}
.article-title {
  font-size: 18.5px; font-weight: 600; line-height: 1.5;
  margin-bottom: 9px; transition: color 0.15s;
}
.article-link:hover .article-title { color: var(--brand); }
.article-summary {
  font-size: 14.5px; line-height: 1.72; color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 页面头 ---------- */

.page-head { padding: 42px 0 26px; border-bottom: 1.5px solid var(--ink); }
.page-title {
  font-size: clamp(24px, 3.2vw, 30px); font-weight: 700;
  margin: 12px 0 12px; letter-spacing: -0.015em;
}
.page-desc { font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 660px; }
.page-count { font-size: 12.5px; color: var(--muted); margin-top: 13px; }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb-sep { margin: 0 8px; color: #c8ccd4; }

/* ---------- 文章页 ---------- */

.post { max-width: var(--read); margin: 0 auto; padding: 40px 0 0; }
.post .crumb { margin-bottom: 22px; }
.post-title {
  font-size: clamp(24px, 3.3vw, 32px); font-weight: 700;
  line-height: 1.4; letter-spacing: -0.015em; margin-bottom: 18px;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding-bottom: 25px; border-bottom: 1px solid var(--line);
}
.meta-sep { color: #c8ccd4; }

.post-body { padding: 32px 0 6px; font-size: 16.5px; line-height: 1.92; color: var(--ink-2); }
.post-body p { margin: 0 0 21px; }
.post-body h2 {
  font-size: 20.5px; color: var(--ink);
  margin: 40px 0 16px; padding-left: 13px;
  border-left: 3px solid var(--brand);
}
.post-body h3 { font-size: 17.5px; color: var(--ink); margin: 30px 0 12px; }
.post-body h4 { font-size: 16.5px; color: var(--ink); margin: 24px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 21px; padding-left: 24px; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body li { margin-bottom: 9px; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.post-body code {
  font-family: "SF Mono", Consolas, "Cascadia Code", monospace;
  font-size: 0.88em; background: var(--bg-soft);
  padding: 2px 6px; border-radius: 4px; color: #8a4b1a;
}
.post-body blockquote {
  margin: 0 0 21px; padding: 15px 21px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 7px 7px 0;
}
.post-body blockquote p { margin: 0; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

.post-disclaimer {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.8; color: var(--muted);
}

.more-block {
  max-width: var(--read); margin: 50px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
}

/* ---------- 关于页 ---------- */

.prose { max-width: 760px; padding: 34px 0 16px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.prose p { margin: 0 0 19px; }
.prose h2 {
  font-size: 19px; color: var(--ink);
  margin: 34px 0 14px; padding-left: 13px;
  border-left: 3px solid var(--brand);
}
.prose h3 { font-size: 16.5px; color: var(--ink); margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 19px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.info-card {
  margin: 34px 0 0; padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.info-card h2 { margin: 0 0 12px; padding: 0; border: none; font-size: 16px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th {
  text-align: left; width: 92px; padding: 8px 0;
  color: var(--muted); font-weight: 400; vertical-align: top;
}
.info-table td { padding: 8px 0; color: var(--ink-2); }
.info-table a { color: var(--brand); }

.btn {
  display: inline-block; padding: 11px 22px;
  background: var(--brand); color: #fff;
  border-radius: 7px; font-size: 14.5px; margin-top: 6px;
}
.btn:hover { background: var(--brand-dark); }

/* ---------- 页脚 ---------- */

.site-footer { background: var(--ink); color: #a9b0bb; margin-top: 66px; font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px; padding-top: 46px; padding-bottom: 34px;
}
.footer-name { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; line-height: 1.78; color: #8d95a1; max-width: 340px; }
.footer-icp { margin-top: 14px; font-size: 13px; }
.footer-icp a { color: #8d95a1; }
.footer-icp a:hover { color: #fff; }
.footer-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-col p { font-size: 13.5px; line-height: 1.72; margin-bottom: 8px; }
.footer-col a { color: #a9b0bb; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 19px; padding-bottom: 26px;
  border-top: 1px solid #2a2e36;
  font-size: 12.5px; color: #767e8b;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-inner {
    min-height: auto; flex-direction: column;
    align-items: flex-start; gap: 10px; padding: 15px 0 11px;
  }
  .brand-name { font-size: 16.5px; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 2px 0; padding-bottom: 2px; }
  .nav-link { padding: 6px 11px; font-size: 14px; white-space: nowrap; }

  .hero { margin-top: 24px; padding: 34px 22px 36px; border-radius: 12px; }
  .hero-title { font-size: 25px; line-height: 1.38; }
  .hero-desc { font-size: 15px; }

  .section-grid { grid-template-columns: 1fr; gap: 10px; }
  .section-card { padding: 17px 17px 15px; gap: 7px; }

  .latest { padding-top: 36px; }
  .article-title { font-size: 17px; }
  .article-summary { font-size: 14px; }
  .article-link { padding: 21px 0; }

  .post { padding-top: 32px; }
  .post-body { font-size: 16px; line-height: 1.9; }
  .post-body h2 { font-size: 19px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .info-card { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .site-nav, .more-block, .section-grid-wrap { display: none; }
  body { font-size: 12pt; }
  .post { max-width: none; }
}
