/*
Theme Name: iFreeLume Prism (棱镜纪元)
Theme URI: https://blog.ifreelume.com
Author: iFreeLume Team
Description: 专为【棱镜纪元 iFreeLume】定制的深空极客与调查媒体主题，支持奇闻秘境、硬核教程、内幕曝光与AI前沿四大专栏。
Version: 2.0.0
Text Domain: ifreelume-prism
*/
:root {
  --bg: #070b14;
  --bg-card: #0f172a;
  --bg-hover: #16223be6;
  --border: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #10b981;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --danger: #f43f5e;
  --amber: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: radial-gradient(circle at 50% 0%, #0f243c 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 16px; flex-wrap: wrap; padding: 10px 0;
}
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.nav-menu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-menu a {
  padding: 7px 14px; border-radius: 9px; font-size: 0.93rem; font-weight: 600;
  color: #cbd5e1; border: 1px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3);
}
.hero-banner {
  padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 850;
  background: linear-gradient(95deg, #fff 0%, #93c5fd 55%, #10b981 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cat-pill {
  padding: 7px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: #cbd5e1;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 22px;
}
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, border-color 0.18s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-thumb {
  width: 100%; height: 205px; object-fit: cover; background: #090f1d; border-bottom: 1px solid var(--border);
}
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.cat-badge {
  padding: 2px 9px; border-radius: 6px; font-weight: 700; font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15); color: var(--accent);
}
.post-card h2 { font-size: 1.15rem; font-weight: 750; line-height: 1.45; margin-bottom: 10px; color: #f8fafc; }
.post-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.single-wrap {
  display: grid; grid-template-columns: 1fr 330px; gap: 28px; margin-top: 28px;
}
@media (max-width: 960px) { .single-wrap { grid-template-columns: 1fr; } }
.article-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 34px;
}
.article-box h1 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.38; margin-bottom: 16px; color: #fff; }
.article-content { font-size: 1.04rem; color: #e2e8f0; line-height: 1.85; }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { color: #38bdf8; margin: 28px 0 12px; font-weight: 750; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; border: 1px solid var(--border); }
.article-content blockquote {
  border-left: 4px solid var(--accent); background: rgba(16, 185, 129, 0.08);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; color: #cbd5e1;
}
.article-content pre {
  background: #060911; border: 1px solid var(--border); padding: 14px; border-radius: 10px;
  overflow-x: auto; font-family: monospace; font-size: 0.9rem; margin: 16px 0;
}
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.side-list { list-style: none; }
.side-list li { margin-bottom: 11px; padding-bottom: 11px; border-bottom: 1px dashed #1e293b; font-size: 0.9rem; }
.side-list li:last-child { border-bottom: none; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 15px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-weight: 600;
}
.pagination .current { background: var(--accent); color: #04130e; border-color: var(--accent); }
footer.site-footer {
  margin-top: 64px; padding: 38px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem;
}
