/* 飞羽软件导航站 —— 公共样式（对齐 Typecho TechShare 主题的蓝色科技风） */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-2: #475569;
  --muted: #94a3b8;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --border: #e2e8f0;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; line-height: 1.3; color: var(--text); }

/* ---------- 顶部导航栏（蓝紫渐变 + 科技感） ---------- */
.site-header {
  background: linear-gradient(to right, #9c9aef 0%, #4055e8 50%, #5644ec 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(64, 85, 232, 0.3), 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}
.navbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.navbar-brand {
  display: flex; align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all .3s ease;
}
.navbar-brand:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.4); }
.site-title { display: block; }
.site-title h1 {
  font-size: 1.35rem; margin: 0; color: #fff; font-weight: 700; letter-spacing: .5px;
  text-shadow: 0 1px 3px rgba(30, 27, 75, 0.35);
}
.site-title:hover { text-decoration: none; }
.site-description { font-size: .85rem; color: #eef2ff; margin-top: 2px; }
.navbar-menu { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-links { display: flex; list-style: none; gap: 12px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.92); padding: 8px 16px; font-weight: 500;
  border-radius: var(--radius-md); border: 1px solid transparent; transition: all .3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); transform: translateY(-2px);
}
.nav-links a.active { background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.15)); border-color: rgba(255, 255, 255, 0.6); }
.navbar-search .input-group { display: flex; gap: 8px; }
.navbar-search .form-control {
  padding: 8px 16px; border: 1px solid rgba(37, 99, 235, 0.3); border-radius: var(--radius-md);
  font-size: .875rem; min-width: 200px; background: rgba(15, 23, 42, 0.7); color: #cbd5e1;
  transition: all .3s ease; outline: none;
}
.navbar-search .form-control:focus {
  border-color: rgba(37, 99, 235, 0.8); background: rgba(15, 23, 42, 0.9); color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 15px rgba(37, 99, 235, 0.4);
}
.navbar-search .form-control::placeholder { color: #94a3b8; }
.navbar-search .btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6); border: 1px solid rgba(37, 99, 235, 0.5);
  color: #fff; font-weight: 500; padding: 8px 20px; border-radius: var(--radius-md);
  cursor: pointer; box-shadow: 0 0 10px rgba(37, 99, 235, 0.3); transition: all .3s ease;
}
.navbar-search .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

/* ---------- 主要内容区 ---------- */
.site-main { padding: 32px 0; min-height: 60vh; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 1.75rem; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: var(--bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img-link { display: block; }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-img-ph {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #534ab7;
  font-size: 3rem; font-weight: 500;
}
.card-body { padding: 20px; }
.card-title { font-size: 1.15rem; margin: 0 0 6px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-text { color: var(--text-2); font-size: .875rem; margin-bottom: 12px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.card-stretched { position: absolute; inset: 0; z-index: 1; }

/* ---------- 空状态 ---------- */
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }

/* ---------- 关于页 / 单页 ---------- */
.page-container { max-width: 760px; margin: 0 auto; }
.page-single {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.page-single h1 { font-size: 1.5rem; margin-bottom: 20px; }
.page-content p { margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.footer-notice {
  font-size: 12px; color: #666; text-align: center; padding: 16px 0;
  line-height: 1.7; border-top: 1px solid #eee; margin-top: 32px;
}
.footer-notice a { color: #666; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .navbar-search .form-control { min-width: 140px; }
  .page-title { font-size: 1.4rem; }
  .container { padding: 0 16px; }
}

/* ---------- 详情页 ---------- */
.detail { max-width: 820px; margin: 0 auto; }
.detail-title {
  font-size: 1.9rem; margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--bg-2); color: var(--text); line-height: 1.3;
}
.detail-content {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
  color: var(--text); line-height: 1.8; word-wrap: break-word;
}
.detail-content h2 { font-size: 1.3rem; margin: 1.4em 0 .6em; padding-bottom: 8px; border-bottom: 2px solid var(--bg-2); }
.detail-content h3 { font-size: 1.1rem; margin: 1.2em 0 .5em; }
.detail-content p { margin: .8em 0; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 12px 0; }
.detail-content a { color: var(--primary); text-decoration: underline; }
.detail-content ul, .detail-content ol { margin: .8em 0; padding-left: 1.6em; }
.detail-content li { margin: .3em 0; }
.detail-content blockquote {
  border-left: 3px solid var(--primary); margin: 1em 0; padding: .4em 1.2em;
  color: var(--text-2); background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.detail-content code {
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em;
}
.detail-content pre {
  background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: var(--radius-md);
  overflow-x: auto; margin: 1em 0; line-height: 1.6;
}
.detail-content pre code { background: transparent; color: inherit; padding: 0; }
.detail-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.detail-content th, .detail-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.detail-content th { background: var(--bg-2); font-weight: 600; }
