/* ==========================================================================
   BLOG EDITION 04: 钛金协议 · Ferro Protocol (html[data-edition="titan"])
   Hard-Surface Mecha / Industrial Gunmetal Sci-Fi · Signal Amber + Chamfered Plates
   ========================================================================== */

html[data-edition="titan"] {
  --bg: #0c0e12;
  --bg-elevated: #151920;
  --surface: #161a22;
  --surface-hover: #1e2430;
  --code-bg: #0a0c10;
  --border: #282f3d;
  --border-strong: #3d475c;
  --ink: #f3f5f8;
  --ink-body: #dce2ec;
  --ink-secondary: #9aa4b5;
  --ink-muted: #657084;
  --accent: #ff6b1a;
  --accent-soft: rgba(255, 107, 26, 0.13);
  --accent-ink: #0f0904;
  --brand-dot: #ff6b1a;

  --tok-kw: #ff8542;
  --tok-str: #34d399;
  --tok-cmt: #64748b;
  --tok-num: #fbbf24;
}

html[data-edition="titan"] .ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(255, 107, 26, 0.08), transparent 44%),
    radial-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

html[data-edition="titan"] .blog-shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 26px;
}

html[data-edition="titan"] .titan-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

html[data-edition="titan"] .titan-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 140px;
  height: 2px;
  background: var(--accent);
}

html[data-edition="titan"] .titan-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

html[data-edition="titan"] .titan-nav a:hover,
html[data-edition="titan"] .titan-nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

html[data-edition="titan"] .titan-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

html[data-edition="titan"] .titan-post-plate {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #3c4659;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

html[data-edition="titan"] .titan-post-plate:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-left-color: var(--accent);
}

html[data-edition="titan"] .titan-reader-box {
  max-width: 800px;
  margin: 28px auto 0;
  padding: 34px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

@media (max-width: 860px) {
  html[data-edition="titan"] .blog-shell {
    padding: 0 16px;
  }
  html[data-edition="titan"] .titan-post-list {
    grid-template-columns: 1fr;
  }
  html[data-edition="titan"] .titan-reader-box {
    padding: 22px 16px;
  }
}
