/* ALPHA MFG. Blog — 与主站一致的设计规范:墨色 #101416、橙 #ed6735、米色纸面、22px 圆角、Manrope/DM Sans */
:root {
  --ink: #101416;
  --ink-soft: #171d20;
  --paper: #f3f2ed;
  --paper-deep: #e9e8e2;
  --white: #ffffff;
  --blue: #176ead;
  --orange: #ed6735;
  --orange-dark: #dc5627;
  --orange-cta: #c94c20;
  --orange-cta-hover: #b9431b;
  --muted: #596267;
  --line: rgba(16, 20, 22, 0.14);
  --radius: 22px;
  --font-display: 'Manrope', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.blog {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang='zh-CN'] h1, html[lang='zh-CN'] h2, html[lang='zh-CN'] h3 { letter-spacing: -0.035em; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

a { color: inherit; }

/* ---------- 页头 ---------- */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 22, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.blog-brand img { width: 40px; height: 40px; border-radius: 9px; }

.blog-brand__text {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.blog-brand__text small {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.blog-header__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.blog-header__nav a {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.blog-header__nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

.blog-header__nav a.is-active { color: var(--white); background: rgba(237, 103, 53, 0.16); }

.blog-header__langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.blog-header__langs a {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.blog-header__langs a:hover { color: var(--white); }

.blog-header__langs a.is-active { color: var(--white); background: var(--orange); }

/* ---------- 列表页 hero ---------- */
.blog-hero {
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(23, 110, 173, 0.28), transparent 65%),
    radial-gradient(700px 300px at 8% 110%, rgba(237, 103, 53, 0.2), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: 96px 0 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow span { width: 8px; height: 8px; flex: none; background: var(--orange); }

.blog-hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.blog-hero__lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 文章卡片 ---------- */
.blog-index { padding: 64px 0 96px; }

.blog-index__count {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 110, 173, 0.4);
  box-shadow: 0 18px 44px rgba(16, 20, 22, 0.1);
}

.blog-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
  text-decoration: none;
}

.blog-card__index {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(16, 20, 22, 0.22);
  margin-bottom: 20px;
}

.blog-card:hover .blog-card__index {
  color: var(--orange);
  -webkit-text-stroke: 1.4px var(--orange);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.blog-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.blog-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.blog-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.blog-card__more {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
}

.blog-card__more span { display: inline-block; transition: transform 180ms ease; }

.blog-card:hover .blog-card__more span { transform: translateX(5px); }

/* ---------- 详情页 ---------- */
.blog-main { padding: 48px 0 96px; }

.blog-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.blog-breadcrumb a { color: var(--blue); text-decoration: none; }

.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}

.blog-article__head h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.blog-article__body {
  padding-top: 30px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #2a3237;
}

.blog-article__body h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.blog-article__body h2:first-child { margin-top: 0; }

.blog-article__body p { margin: 0 0 18px; }

.blog-article__body ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.blog-article__body li { margin-bottom: 10px; }

.blog-article__body li::marker { color: var(--orange); font-weight: 700; }

.blog-article__body strong { color: var(--ink); }

.blog-article__body a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(23, 110, 173, 0.35);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.blog-article__body a:hover { color: var(--orange-dark); text-decoration-color: var(--orange-dark); }

/* ---------- 文末 CTA ---------- */
.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 44px;
  padding: 30px 32px;
  background: var(--ink);
  border-radius: 18px;
  color: var(--white);
}

.blog-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.blog-cta p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.blog-cta__btn {
  flex: none;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--orange-cta);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.blog-cta__btn:hover { background: var(--orange-cta-hover); transform: translateY(-1px); }

/* ---------- 相关文章 ---------- */
.blog-related { max-width: 760px; margin: 64px auto 0; }

.blog-related h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.blog-related .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

.blog-related .blog-card > a { padding: 22px; }

.blog-related .blog-card h2 { font-size: 16.5px; }

.blog-related .blog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}

.blog-related .blog-card__index { font-size: 24px; margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.blog-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.62);
}

.blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.blog-footer a { color: var(--orange); text-decoration: none; }

.blog-footer a:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }

  .blog-header__nav { display: none; }

  .blog-related .blog-grid { grid-template-columns: 1fr; }

  .blog-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }

  .blog-hero { padding: 64px 0 60px; }

  .blog-header__langs a { padding: 4px 6px; }
}
