/* ============================================================
   Orin · 个人安全主页  共享样式
   深色科技风：深蓝黑底 + 青色荧光点缀 + 终端元素
   ============================================================ */

:root {
  --bg: #f6f8fc;
  --bg-soft: #eef2f9;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(2, 132, 199, 0.14);
  --border-strong: rgba(2, 132, 199, 0.38);
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.10);
  --green: #059669;
  --purple: #7c3aed;
  --amber: #b45309;
  --red: #dc2626;
  --text: #1e293b;
  --text-dim: #52627a;
  --text-faint: #8593a8;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --radius: 14px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(8, 145, 178, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .prefix { color: var(--accent); }
.nav-logo .cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(8, 145, 178, 0.08); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.nav-links a.nav-cta {
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: #0e7490; color: #ffffff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------------- 通用排版 ---------------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker::before { content: "//"; color: var(--text-faint); }

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 8px 0 10px;
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
}

.page-hero {
  padding: 84px 0 40px;
}

.page-hero .section-title { font-size: 2.3rem; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.25);
}
.btn-primary:hover { background: #0e7490; color: #ffffff; box-shadow: 0 6px 24px rgba(8, 145, 178, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.93rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  background: var(--accent-soft);
  margin: 4px 4px 4px 0;
}
.tag.tag-green { color: var(--green); border-color: rgba(5, 150, 105, 0.35); background: rgba(5, 150, 105, 0.08); }
.tag.tag-purple { color: var(--purple); border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.07); }
.tag.tag-amber { color: var(--amber); border-color: rgba(180, 83, 9, 0.35); background: rgba(180, 83, 9, 0.08); }
.tag.tag-plain { color: var(--text-dim); border-color: var(--border); background: transparent; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.badge-green { color: var(--green); background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.35); }
.badge-amber { color: var(--amber); background: rgba(180, 83, 9, 0.08); border: 1px solid rgba(180, 83, 9, 0.35); }
.badge-cyan { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border-strong); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  padding: 110px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.07);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .typing-line {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 18px 0 26px;
  min-height: 1.8em;
}
.hero .typing-line .prompt { color: var(--green); }
.hero .typing-line .typed { color: var(--text); }
.hero .typing-line .caret {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

.hero-sub {
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 终端窗口 */
.terminal {
  /* 终端保持深色，作为浅色页面上的点缀元素 */
  --text: #e2e8f0;
  --text-dim: #8ba3c2;
  --text-faint: #5b7191;
  --accent: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  background: #0a0f1c;
  border: 1px solid rgba(8, 145, 178, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot-r, .terminal-bar .dot-y, .terminal-bar .dot-g {
  width: 11px; height: 11px; border-radius: 50%;
}
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.terminal-bar .title {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 18px 20px 22px;
  line-height: 1.9;
  color: var(--text-dim);
}
.terminal-body .cmd { color: var(--green); }
.terminal-body .cmd::before { content: "$ "; color: var(--text-faint); }
.terminal-body .out-strong { color: var(--text); }
.terminal-body .out-accent { color: var(--accent); }
.terminal-body .out-green { color: var(--green); }
.terminal-body .out-amber { color: var(--amber); }

/* ---------------- 数据统计 ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  transition: border-color 0.25s, transform 0.25s;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.stat .num {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(8, 145, 178, 0.2);
}
.stat .num .unit { font-size: 1.1rem; color: var(--text-dim); margin-left: 2px; }
.stat .label { color: var(--text-dim); font-size: 0.88rem; margin-top: 6px; }

/* ---------------- 时间线 ---------------- */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(8, 145, 178, 0.05));
}

.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.timeline-item .period {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-item h3 { font-size: 1.15rem; }
.timeline-item h3 .company { color: var(--text-dim); font-weight: 400; font-size: 0.95rem; margin-left: 10px; }

.timeline-item ul { margin: 10px 0 0 18px; color: var(--text-dim); font-size: 0.93rem; }
.timeline-item ul li { margin-bottom: 6px; }
.timeline-item ul li::marker { color: var(--accent); }

/* ---------------- 项目 / 文章卡片 ---------------- */
.post-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.link-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.link-more::after { content: " →"; }

/* ---------------- 技能条 ---------------- */
.skill-item { margin-bottom: 22px; }
.skill-item:last-child { margin-bottom: 0; }

.skill-item .skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.skill-item .skill-head .pct { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.10);
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  box-shadow: 0 0 12px rgba(8, 145, 178, 0.3);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- 表格 ---------------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  background: var(--card);
}

table { width: 100%; border-collapse: collapse; min-width: 560px; }

th, td {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--text-faint);
  background: rgba(8, 145, 178, 0.045);
  text-transform: uppercase;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(8, 145, 178, 0.05); }
td .rank { font-family: var(--mono); color: var(--accent); font-weight: 700; }

/* ---------------- 通知条 ---------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(180, 83, 9, 0.06);
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 40px;
}
.notice .icon { color: var(--amber); font-size: 1.05rem; line-height: 1.6; }
.notice strong { color: var(--amber); }
.notice code {
  font-family: var(--mono);
  background: rgba(15, 23, 42, 0.07);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.82rem;
  color: var(--text);
}

/* ---------------- 联系页 ---------------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color 0.25s, transform 0.25s;
}
.contact-row:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-row + .contact-row { margin-top: 16px; }

.contact-row .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-row .info { flex: 1; min-width: 0; }
.contact-row .info .label { font-size: 0.8rem; color: var(--text-faint); font-family: var(--mono); letter-spacing: 1px; }
.contact-row .info .value { color: var(--text); font-weight: 600; word-break: break-all; }
.contact-row .info .desc { color: var(--text-dim); font-size: 0.85rem; }

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--accent-soft); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-inner .mono { font-family: var(--mono); }
.footer-inner a { color: var(--text-dim); }

/* ---------------- 滚动淡入动画 ---------------- */
/* 仅在 JS 可用时启用隐藏初态，避免无 JS 环境下内容不可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 2.4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(246, 248, 252, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 52px 0; }
  .section-title { font-size: 1.5rem; }
  .page-hero { padding: 56px 0 30px; }
  .page-hero .section-title { font-size: 1.7rem; }
  .card { padding: 20px; }
  .contact-row { flex-wrap: wrap; }
}

/* ============================================================
   博客模块：筛选、文章列表、文章页排版、上传占位
   ============================================================ */

/* ---------------- 筛选 chips ---------------- */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }

.chip {
  font-family: var(--mono);
  font-size: 0.84rem;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---------------- 文章列表（行式，博客感） ---------------- */
.post-list { display: flex; flex-direction: column; }

.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 22px 14px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  border-radius: 8px;
  transition: background 0.2s;
}
.post-row:hover { background: rgba(8, 145, 178, 0.05); text-decoration: none; }
.post-row:hover .post-row-title { color: var(--accent); }

.post-row-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.post-row-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-row-excerpt {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.cat-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.cat-notes { color: var(--green); background: rgba(5, 150, 105, 0.08); border: 1px solid rgba(5, 150, 105, 0.35); }
.cat-learned { color: var(--purple); background: rgba(124, 58, 237, 0.07); border: 1px solid rgba(124, 58, 237, 0.3); }

.list-hint {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 14px;
  color: var(--text-faint);
  font-size: 0.86rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  margin-top: 18px;
  background: #ffffff;
}

/* ---------------- 预留补充位（ghost）：新内容直接在虚线框里填 ---------------- */
.supplement-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin: 30px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.supplement-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.post-row.ghost {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-faint);
  margin-top: 10px;
  cursor: default;
}
.post-row.ghost:hover { background: var(--bg-soft); }
.post-row.ghost:hover .post-row-title { color: var(--text-faint); }
.post-row.ghost .post-row-title,
.post-row.ghost .post-row-excerpt { color: var(--text-faint); }

.goal-item.ghost {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-faint);
  margin-top: 10px;
}
.goal-item.ghost .text { color: var(--text-faint); }

.ghost-box {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-faint);
  font-size: 0.86rem;
  padding: 16px 20px;
}

/* ---------------- 文章页 ---------------- */
.post-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.post-back:hover { color: var(--accent); }

.post-header { margin-bottom: 34px; }
.post-header h1 {
  font-size: 2.1rem;
  line-height: 1.35;
  margin: 14px 0 12px;
  letter-spacing: 0.5px;
}
.post-header .post-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.post-body {
  font-size: 0.98rem;
  color: #c6d2e3;
}
.post-body p { margin: 16px 0; }
.post-body h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.post-body h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin: 28px 0 10px;
}
.post-body ul, .post-body ol { margin: 14px 0 14px 24px; }
.post-body li { margin-bottom: 7px; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--text); }

.post-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--accent);
}

.post-body pre.codeblock {
  background: #0a0f1c;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.8;
}
.post-body pre.codeblock code {
  background: none;
  border: none;
  padding: 0;
  color: #9fe8f5;
  font-size: 0.85rem;
}

.post-body blockquote {
  border-left: 3px solid var(--amber);
  background: rgba(180, 83, 9, 0.05);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  color: var(--text-dim);
}
.post-body blockquote p { margin: 0; }

.img-holder {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 44px 20px;
  margin: 20px 0;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.post-footer a { color: var(--text-dim); }
.post-footer a:hover { color: var(--accent); }

/* ---------------- 证书/图片上传占位 ---------------- */
.upload-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.86rem;
  text-align: center;
  padding: 20px;
}
.upload-box .icon { font-size: 1.8rem; opacity: 0.7; }
.upload-box .mono { font-family: var(--mono); font-size: 0.78rem; }

.award-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.award-line:last-child { border-bottom: none; }
.award-line .year { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; white-space: nowrap; }
.award-line .what { color: var(--text); }
.award-line .src { color: var(--text-faint); font-size: 0.85rem; }

@media (max-width: 700px) {
  .post-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 6px; }
  .post-row-side { flex-direction: row; align-items: center; }
  .post-row-date { order: -1; }
  .post-header h1 { font-size: 1.6rem; }
}

/* ============================================================
   极简首页：橙子 + 大 Orin + 四板块入口
   ============================================================ */
.home-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 40px 0 20px;
}

.home-hero { text-align: center; }

.home-logo {
  font-size: clamp(4.2rem, 9vw, 6rem);
  line-height: 1.1;
  filter: drop-shadow(0 6px 30px rgba(251, 146, 60, 0.35));
  animation: floaty 4s ease-in-out infinite;
  display: inline-block;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-name {
  font-family: var(--mono);
  font-size: clamp(3.4rem, 11vw, 6.2rem);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.15;
  background: linear-gradient(92deg, #ea580c, #f97316 55%, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 26px rgba(251, 146, 60, 0.25));
}

.home-tag {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-top: 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.home-card { text-align: center; padding: 30px 16px; }
.home-card .card-icon { margin: 0 auto 14px; }
.home-card .desc { min-height: 3em; }

.home-footer {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-family: var(--mono);
  padding: 26px 0 8px;
}
.home-footer a { color: var(--text-faint); }

/* ---------------- 目标规划 ---------------- */
.goal-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--text);
}
.goal-item .badge { flex-shrink: 0; white-space: nowrap; }
.goal-item:last-child { border-bottom: none; }
.goal-item .text { color: var(--text-dim); line-height: 1.6; }
.goal-item .text strong { color: var(--text); }
.goal-card .card-icon { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 10px; }
.goal-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.goal-card .period { font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); margin-bottom: 12px; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 44px; }
  .home-card { padding: 20px 10px; }
  .home-card .desc { display: none; }
  .home-card .card-icon { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 10px; }
  .home-card h3 { font-size: 0.98rem; }
}
