/* ===== Precimold Blog Styles ===== */
:root {
  --navy: #1a3a6b;
  --navy-dark: #0f2a52;
  --navy-deep: #0a1f3d;
  --orange: #ff7a1a;
  --orange-dark: #e56a0f;
  --text: #33415c;
  --text-light: #6b7a95;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f2;
  --radius: 12px;
  --font: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
.container { max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.blog-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 20px 0;
}
.blog-header .container {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.brand-name span { color: var(--orange); }
.blog-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.blog-nav a { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; }
.blog-nav a:hover { color: var(--orange); }

/* ===== Hero strip ===== */
.blog-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 46px 0 52px;
  text-align: center;
}
.blog-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.blog-hero p { color: rgba(255,255,255,.78); font-size: 16px; max-width: 640px; margin: 0 auto; }

/* ===== Blog listing ===== */
.blog-list { padding: 44px 0 70px; background: var(--bg-soft); min-height: 60vh; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,42,82,.10); }
.post-date {
  font-size: 12.5px; color: var(--orange);
  font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 8px;
}
.post-card h2 { font-size: 19px; line-height: 1.45; margin-bottom: 10px; }
.post-card h2 a { color: var(--navy-dark); }
.post-card h2 a:hover { color: var(--orange); }
.post-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.post-more { font-size: 13.5px; font-weight: 600; color: var(--orange); }
.post-more:hover { color: var(--orange-dark); }
.empty-state { text-align: center; padding: 60px 0; color: var(--text-light); }

/* ===== Article page ===== */
.article { padding: 46px 0 80px; }
.article-head { margin-bottom: 34px; }
.article-head .crumb {
  font-size: 13px; color: var(--text-light); margin-bottom: 14px;
}
.article-head .crumb a { color: var(--navy); font-weight: 500; }
.article-head h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.32; color: var(--navy-dark); margin-bottom: 14px; font-weight: 800; }
.article-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 13px; color: var(--text-light); flex-wrap: wrap;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c3cddd; }
.article-body { font-size: 16px; }
.article-body p { margin-bottom: 18px; }
.article-body h2 {
  font-size: 22px; color: var(--navy-dark); margin: 36px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line); font-weight: 700;
}
.article-body h3 { font-size: 17.5px; color: var(--navy); margin: 26px 0 10px; font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy-dark); }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0 24px;
  font-size: 14.5px; background: #fff;
}
.article-body th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 11px 14px; font-weight: 600; font-size: 13.5px;
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.article-body tr:nth-child(even) td { background: var(--bg-soft); }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  background: var(--bg-soft);
  padding: 16px 20px; margin: 22px 0;
  border-radius: 0 8px 8px 0;
  color: var(--text); font-style: italic;
}
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* CTA box */
.article-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  color: #fff; text-align: center;
}
.article-cta h3 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.article-cta p { color: rgba(255,255,255,.8); font-size: 14.5px; margin-bottom: 18px; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; background: var(--orange); color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ===== 2026-09-20 补齐：文章使用的 .cta-box / .btn-primary（此前无样式，CTA 呈现为裸文本） ===== */
.cta-box {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  color: #fff; text-align: center;
}
.cta-box h3 { font-size: 21px; margin-bottom: 8px; color: #fff; }
.cta-box p { color: rgba(255,255,255,.8); font-size: 14.5px; margin-bottom: 18px; }
.btn-primary {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; background: var(--orange); color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }

/* 博客导航中的语言切换链接（RU / EN） */
.blog-nav a[hreflang] {
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 3px 11px; border-radius: 999px; font-weight: 600;
}
.blog-nav a[hreflang]:hover { border-color: var(--orange); }

/* ===== Footer ===== */
.blog-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.65);
  padding: 30px 0; font-size: 13.5px;
}
.blog-footer .container {
  max-width: 1100px; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; flex-wrap: wrap;
}
.blog-footer a { color: rgba(255,255,255,.8); }
.blog-footer a:hover { color: var(--orange); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-header .container { justify-content: center; text-align: center; }
}
