/*
 * Theme Name:  Farallon Cyber
 * Description: Farallon 科技神经网络风子主题
 * Author:      你的名字
 * Template:    Farallon
 * Version:     1.0.1
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --bg: #020b18;
  --cyan: #00d4ff;
  --cyan2: #00ffcc;
  --blue: #0066ff;
  --text: #c8e8ff;
  --dim: #4a7a99;
  --border: rgba(0,212,255,0.18);
}

/* ── 核心背景 全力覆盖 ── */
html { background: #020b18 !important; }

body,
#page,
.site,
#wrapper,
#site-wrapper,
.site-bg,
.bg,
#content,
#primary,
#main,
.site-content,
.content-area,
main {
  background: #020b18 !important;
  background-color: #020b18 !important;
  background-image: none !important;
  color: #c8e8ff !important;
}

/* ── 去掉扫描线 ── */
body::after { display: none !important; }

/* ── 顶部青色线 ── */
body::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff 30%, #00ffcc 70%, transparent);
  box-shadow: 0 0 20px #00d4ff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  pointer-events: none;
}

/* ── 神经网络画布 ── */
#neural-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  opacity: 0.55 !important;
  pointer-events: none !important;
}

/* ── 所有内容层级高于canvas ── */
.site-header, header, #masthead,
#content, #primary, #main,
.site-content, .content-area, main,
article, .post, .entry, .hentry,
#secondary, .widget-area,
footer, #colophon, .site-footer {
  position: relative !important;
  z-index: 10 !important;
}

/* ── 头部 ── */
.site-header, header, #masthead {
  background: rgba(2,11,24,0.93) !important;
  border-bottom: 1px solid rgba(0,212,255,0.18) !important;
  backdrop-filter: blur(12px) !important;
}

.site-title a, .site-title,
#site-title a, #site-title {
  font-family: 'Orbitron', monospace !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  background: linear-gradient(135deg,#fff,#00d4ff,#00ffcc) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-decoration: none !important;
}

.site-description {
  color: #4a7a99 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
}

/* ── 导航 ── */
.main-navigation a, #site-navigation a,
nav a {
  color: #4a7a99 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}
.main-navigation a:hover, #site-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #00d4ff !important;
  text-shadow: 0 0 12px rgba(0,212,255,0.6) !important;
}

/* ── 文章卡片 ── */
article, .post, .entry, .hentry {
  background: rgba(4,20,36,0.8) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  border-radius: 10px !important;
  padding: 22px 24px !important;
  margin-bottom: 18px !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

article:hover, .post:hover, .entry:hover, .hentry:hover {
  border-color: rgba(0,212,255,0.5) !important;
  box-shadow: 0 0 24px rgba(0,212,255,0.1) !important;
  transform: translateY(-2px) !important;
}

/* 卡片角装饰 */
article::before, .post::before,
.entry::before, .hentry::before {
  content: '' !important;
  position: absolute !important;
  top: 8px; left: 8px !important;
  width: 12px; height: 12px !important;
  border-top: 1.5px solid #00d4ff !important;
  border-left: 1.5px solid #00d4ff !important;
  opacity: 0.6 !important;
}

/* ── 标题 ── */
.entry-title a, .post-title a,
h1, h2, h3 {
  color: #e0f4ff !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}
.entry-title a:hover, .post-title a:hover {
  color: #00d4ff !important;
  text-shadow: 0 0 12px rgba(0,212,255,0.5) !important;
}

/* ── 正文 ── */
.entry-content, .post-content, p {
  color: #c8e8ff !important;
  line-height: 1.8 !important;
}

.entry-content a, .post-content a {
  color: #00d4ff !important;
  border-bottom: 1px solid rgba(0,212,255,0.3) !important;
  text-decoration: none !important;
}

blockquote {
  border-left: 2px solid #00d4ff !important;
  background: rgba(0,212,255,0.05) !important;
  padding: 12px 18px !important;
  border-radius: 0 8px 8px 0 !important;
  color: #4a7a99 !important;
}

pre, code {
  background: rgba(0,212,255,0.06) !important;
  border: 1px solid rgba(0,212,255,0.18) !important;
  border-radius: 6px !important;
  color: #00ffcc !important;
}

/* ── 元信息 ── */
.entry-meta, .post-meta,
.posted-on, .byline, .cat-links,
time {
  color: #4a7a99 !important;
  font-size: 11px !important;
  font-family: 'Orbitron', monospace !important;
  letter-spacing: 0.1em !important;
}

/* ── 侧边栏 ── */
#secondary, .widget-area { background: transparent !important; }

.widget {
  background: rgba(4,20,36,0.75) !important;
  border: 1px solid rgba(0,212,255,0.18) !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
}

.widget-title {
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  color: #00d4ff !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(0,212,255,0.18) !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
}

.widget a { color: #c8e8ff !important; text-decoration: none !important; }
.widget a:hover { color: #00d4ff !important; }

/* ── 分页 ── */
.page-numbers, .nav-links a {
  display: inline-block !important;
  background: rgba(0,212,255,0.06) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  color: #c8e8ff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  margin: 2px !important;
}
.page-numbers:hover, .nav-links a:hover,
.page-numbers.current {
  border-color: #00d4ff !important;
  color: #00d4ff !important;
  box-shadow: 0 0 10px rgba(0,212,255,0.3) !important;
}

/* ── 评论 ── */
#comments {
  background: rgba(4,20,36,0.75) !important;
  border: 1px solid rgba(0,212,255,0.18) !important;
  border-radius: 10px !important;
  padding: 22px !important;
  margin-top: 20px !important;
}

.comment-content, .comment-body { color: #c8e8ff !important; }
.comment-metadata, .comment-meta {
  color: #4a7a99 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
}

#comment, input[type="text"],
input[type="email"], input[type="url"], textarea {
  background: rgba(0,212,255,0.05) !important;
  border: 1px solid rgba(0,212,255,0.2) !important;
  border-radius: 6px !important;
  color: #c8e8ff !important;
  padding: 10px 14px !important;
  width: 100% !important;
  outline: none !important;
  font-family: 'Noto Sans SC', sans-serif !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}
#comment:focus, input[type="text"]:focus,
input[type="email"]:focus, textarea:focus {
  border-color: #00d4ff !important;
  box-shadow: 0 0 12px rgba(0,212,255,0.2) !important;
}

input[type="submit"], .submit, button[type="submit"] {
  background: rgba(0,212,255,0.08) !important;
  border: 1px solid #00d4ff !important;
  color: #00d4ff !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
}
input[type="submit"]:hover, .submit:hover {
  background: rgba(0,212,255,0.2) !important;
  box-shadow: 0 0 16px rgba(0,212,255,0.4) !important;
}

/* ── 底部 ── */
footer, #colophon, .site-footer {
  background: rgba(1,5,12,0.97) !important;
  border-top: 1px solid rgba(0,212,255,0.15) !important;
  padding: 24px 0 !important;
  text-align: center !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  color: #4a7a99 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
footer a, .site-footer a { color: #4a7a99 !important; text-decoration: none !important; }
footer a:hover, .site-footer a:hover { color: #00d4ff !important; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #020b18; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d4ff, #0066ff);
  border-radius: 4px;
}

/* ── 选中文字 ── */
::selection {
  background: rgba(0,212,255,0.25);
  color: #fff;
}

/* ── 链接通用 ── */
a { color: #00d4ff !important; }
a:hover { color: #00ffcc !important; }
