/* ===========================
   Tech Blue Modern Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-main: #0d1117;
  --bg-panel: #161b22;
  --bg-panel-soft: #1c2128;

  --text-main: #c9d1d9;
  --text-subtle: #8b949e;
  --text-faint: #6e7681;

  --accent: #3399ff;
  --accent-hover: #66b3ff;
  --accent-soft: rgba(51,153,255,0.25);

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-soft: 0 0 18px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 18px rgba(51,153,255,0.35);

  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.25s ease-out;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
}

/* ===========================
   TOP HEADER (科技风顶栏)
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  padding: 14px 22px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
      135deg,
      rgba(30, 60, 120, 0.4),
      rgba(20, 30, 50, 0.4)
    )
    backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80, 120, 200, 0.28);
  box-shadow: 0 2px 18px rgba(0,0,0,0.4);
  z-index: 10;
}

.site-title a {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.4px;
}

.top-nav {
  display: flex;
  gap: 18px;
}

.top-nav a {
  font-size: 14px;
  color: var(--text-subtle);
  transition: var(--transition-fast);
}

.top-nav a:hover {
  color: var(--accent-hover);
  text-shadow: var(--shadow-glow);
}

/* 下拉选择器科技风 */
.lang-switch select {
  background: #0f141a;
  border: 1px solid rgba(51,153,255,0.35);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch select:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* ===========================
   LAYOUT
   =========================== */

.layout-3col {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 22px;
  padding: 20px;
}

/* ===========================
   SIDEBARS
   =========================== */

.sidebar {
  background: var(--bg-panel);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51,153,255,0.18);
  box-shadow: var(--shadow-soft);
}

.sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-list li {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 4px 0;
}

.sidebar-list a {
  color: var(--text-subtle);
}

.sidebar-list a:hover {
  color: var(--accent-hover);
}

/* ===========================
   MAIN CONTENT AREA
   =========================== */

.content {
  background: var(--bg-panel-soft);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51,153,255,0.22);
  box-shadow: var(--shadow-soft);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}

/* ===========================
   POSTS LIST
   =========================== */

.post-list {
  list-style: none;
  padding-left: 0;
}

.post-item {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #121821;
  border: 1px solid rgba(51,153,255,0.22);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.post-item:hover {
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  background: #1b242f;
}

.post-date {
  font-size: 12px;
  color: var(--text-faint);
}

.post-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.post-link:hover {
  color: var(--accent-hover);
}

/* Category inline */
.post-cats a {
  font-size: 12px;
  color: var(--text-subtle);
}

.post-cats a:hover {
  color: var(--accent-hover);
}

/* ===========================
   TAG CLOUD
   =========================== */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud .tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 4px;
  font-size: 13px;
  border-radius: 6px;

  /* 柔和霓虹蓝 */
  color: #9cc7ff;
  background: rgba(40, 80, 120, 0.25);
  border: 1px solid rgba(100, 160, 220, 0.4);

  transition: all 0.25s ease;
}

/* hover 效果：轻微亮度增加 + 外发光 */
.tag-cloud .tag:hover {
  color: #d6e8ff;
  background: rgba(80, 140, 200, 0.35);
  border-color: rgba(150, 200, 255, 0.75);
  box-shadow: 0 0 6px rgba(100, 180, 255, 0.35);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
}

/* === Tag page link style - Softer Tech Blue === */
.tags-page .content a,
.tag-cloud a,
.sidebar-right .tag-cloud a {
  color: #7aa7ff;               /* 柔和科技蓝 */
  text-decoration: none;        /* 去掉默认下划线 */
  font-weight: 500;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.tags-page .content a:hover,
.tag-cloud a:hover,
.sidebar-right .tag-cloud a:hover {
  color: #a8c5ff;               /* 悬停微亮 */
  text-shadow: 0 0 6px #5a8cff; /* 科技感光晕 */
}
