/* ============================================================
   昕岩科技 · 文章 / 列表 / 提交页 / 404 排版
   复用首页 :root 变量（main.css 中定义）
   ============================================================ */

/* ---------- 通用窄栏 ---------- */
.wrap-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

/* fixed 导航避让 */
.article-main,
.insights-page,
.thanks-main,
.error-main {
  padding-top: 132px;
  padding-bottom: 110px;
  background: var(--paper);
}
@media (max-width: 768px) {
  .article-main,
  .insights-page,
  .thanks-main,
  .error-main {
    padding-top: 104px;
    padding-bottom: 72px;
  }
}

/* ============================================================
   文章详情
   ============================================================ */
.article-head { margin-bottom: 40px; }
.article-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-eyebrow::before {
  content: '';
  width: 28px;
  height: 0.5px;
  background: var(--gold);
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-meta {
  font-size: 14px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta .article-author { color: var(--ink); font-weight: 500; }
.article-meta .article-dot { color: var(--text-4); }
.article-meta time { font-family: var(--mono); font-size: 13px; }

.article-cover {
  margin: 44px auto 8px;
}
.article-cover img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 0.5px solid var(--rule);
}

.article-body { margin-top: 44px; }

/* ---------- 正文排版（编辑器内容自动套用） ---------- */
.entry-content {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 24px; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 137, 63, 0.35);
  transition: border-color .25s, color .25s;
}
.entry-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.entry-content h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 8px;
  position: relative;
}
.entry-content h2::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.entry-content h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 40px 0 16px;
}
.entry-content h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 32px 0 14px;
}

.entry-content ul,
.entry-content ol { margin: 0 0 24px; padding-left: 1.4em; }
.entry-content li { margin-bottom: 10px; padding-left: 6px; }
.entry-content ul li::marker { color: var(--gold-deep); }
.entry-content ol li::marker { color: var(--gold-deep); font-family: var(--mono); }

.entry-content blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--gold);
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-soft);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--ink-soft);
}
.entry-content pre {
  background: var(--ink-deep);
  color: #E6EDF5;
  padding: 20px 22px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }

.entry-content img { max-width: 100%; height: auto; border-radius: 3px; }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: 10px;
  font-family: var(--mono);
}

.entry-content hr {
  border: none;
  height: 0.5px;
  background: var(--rule-strong);
  margin: 48px 0;
}

/* ---------- 表格（判断表 / 对照表的核心） ---------- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.65;
  border: 0.5px solid var(--rule-strong);
}
.entry-content thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  text-align: left;
  padding: 13px 16px;
  letter-spacing: 0.02em;
}
.entry-content tbody td {
  padding: 13px 16px;
  border-top: 0.5px solid var(--rule);
  color: var(--text-2);
  vertical-align: top;
}
.entry-content tbody tr:nth-child(even) { background: var(--paper-soft); }
.entry-content tbody td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) {
  .entry-content table { font-size: 13.5px; }
  .entry-content thead th,
  .entry-content tbody td { padding: 10px 11px; }
}

/* ---------- 标签 ---------- */
.article-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 40px 0 0;
}
.article-tags li a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-3);
  border: 0.5px solid var(--rule-strong);
  padding: 5px 12px;
  border-radius: 2px;
  transition: all .25s;
}
.article-tags li a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 文末 CTA ---------- */
.article-cta-wrap { margin-top: 64px; }
.article-cta {
  background: var(--ink-deep);
  border-radius: 3px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(212,169,104,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.article-cta-text { position: relative; z-index: 2; }
.article-cta-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.article-cta-line {
  color: rgba(251, 249, 244, 0.82);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 460px;
}
.article-cta-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all .3s;
}
.article-cta-btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.article-cta-btn .arrow { transition: transform .3s; }
.article-cta-btn:hover .arrow { transform: translateX(4px); }
@media (max-width: 680px) {
  .article-cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}

/* ---------- 上一篇 / 下一篇 ---------- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 0.5px solid var(--rule-strong);
  border-radius: 3px;
  transition: all .3s;
}
.article-nav-item:hover { border-color: var(--gold); background: var(--white); }
.article-nav-item.next { text-align: right; }
.article-nav-label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--gold-deep); }
.article-nav-title { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
@media (max-width: 600px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; }
}

/* ============================================================
   文章列表 /insights/
   ============================================================ */
.insights-page-head { margin-bottom: 56px; max-width: 760px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  border: 0.5px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--white);
  transition: all .35s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px -28px rgba(10,31,54,0.35);
}
.post-card-link { display: flex; flex-direction: column; height: 100%; padding: 28px 26px 26px; }
.post-card-date { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--gold-deep); margin-bottom: 16px; }
.post-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 14px;
}
.post-card-excerpt { font-size: 14.5px; line-height: 1.75; color: var(--text-3); margin: 0 0 22px; flex-grow: 1; }
.post-card-more { font-size: 13.5px; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.post-card-more .arrow { color: var(--gold-deep); transition: transform .3s; }
.post-card:hover .post-card-more .arrow { transform: translateX(4px); }

/* 分页 */
.post-pagination { margin-top: 56px; }
.post-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; justify-content: center; }
.post-pagination a,
.post-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  border: 0.5px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--text-2);
  transition: all .25s;
}
.post-pagination a:hover { border-color: var(--ink); color: var(--ink); }
.post-pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-empty { padding: 60px 0; color: var(--text-3); font-size: 16px; }

/* ============================================================
   提交成功页
   ============================================================ */
.thanks-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 0.5px solid var(--rule);
  border-radius: 3px;
  padding: 56px 52px 48px;
  box-shadow: 0 30px 70px -36px rgba(10,31,54,0.30);
}
.thanks-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.thanks-mark svg { width: 20px; height: 20px; }
.thanks-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.thanks-eyebrow::before { content: ''; width: 28px; height: 0.5px; background: var(--gold); }
.thanks-h1 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 18px; }
.thanks-h1 .accent { color: var(--gold-deep); }
.thanks-lead { font-size: 15px; line-height: 1.85; color: var(--text-3); margin-bottom: 32px; }
.thanks-next { border-top: 0.5px solid var(--rule); padding-top: 26px; margin-bottom: 32px; }
.thanks-next-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2.5px; color: var(--gold-deep); margin-bottom: 16px; }
.thanks-next-row { display: flex; gap: 14px; font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.thanks-next-row:last-child { margin-bottom: 0; }
.thanks-next-row .n { font-family: var(--mono); color: var(--gold-deep); font-size: 12px; padding-top: 2px; }
.thanks-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; color: var(--text-3); margin-bottom: 34px; }
.thanks-contact a { color: var(--ink); }
.thanks-contact a:hover { color: var(--gold-deep); }
.thanks-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  padding: 12px 26px; border-radius: 2px; font-size: 13.5px; letter-spacing: 1px;
  transition: all .3s;
}
.thanks-back:hover { background: var(--gold); color: var(--ink); }
.thanks-back .arrow { transition: transform .3s; }
.thanks-back:hover .arrow { transform: translateX(4px); }
@media (max-width: 560px) { .thanks-card { padding: 40px 28px 36px; } .thanks-h1 { font-size: 24px; } }

/* ============================================================
   404
   ============================================================ */
.error-inner { max-width: 620px; }
.error-code { font-family: var(--mono); font-size: 64px; font-weight: 500; color: var(--gold); letter-spacing: 4px; line-height: 1; margin-bottom: 24px; }
.error-h1 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; color: var(--ink); margin-bottom: 18px; }
.error-lead { font-size: 16px; line-height: 1.8; color: var(--text-3); margin-bottom: 36px; }
.error-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ---------- 首页「行业观察」全部入口 ---------- */
.insights-all {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}
.insights-all a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
  border: 0.5px solid rgba(212,169,104,0.4);
  padding: 13px 28px;
  border-radius: 2px;
  transition: all .3s;
}
.insights-all a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.insights-all a .arrow { transition: transform .3s; }
.insights-all a:hover .arrow { transform: translateX(4px); }
