/*
Theme Name: XP Tech
Theme URI: https://www.xiaopenggegegege.xyz
Author: XP
Author URI: https://www.xiaopenggegegege.xyz
Description: 现代科技感个人博客主题，支持区块编辑，深色/亮色模式，SEO友好
Version: 1.0.0
Requires at at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xptech
Tags: block-patterns, custom-colors, editor-style, one-column, translation-ready
*/

/* ========================================
   XP Tech - CSS Variables
   ======================================== */

:root {
  /* 科技感深色配色 - 浓郁版本 */
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-darker: #0369A1;
  --accent: #22D3EE;
  --accent-bright: #06B6D4;
  --accent-glow: rgba(34, 211, 238, 0.4);
  --accent-glow-strong: rgba(34, 211, 238, 0.6);

  /* 文字色 */
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  /* 背景 - 深色科技感 */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-solid: #1E293B;

  /* 边框 */
  --border: rgba(148, 163, 184, 0.15);
  --border-glow: rgba(34, 211, 238, 0.4);

  /* 阴影 */
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.3);
  --shadow-glow-strong: 0 0 60px rgba(34, 211, 238, 0.5);

  /* 动效 */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ========================================
   Base & Reset
   ======================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ========================================
   动态粒子背景
   ======================================== */

.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(135deg, #0F172A 0%, #0C4A6E 50%, #0F172A 100%);
  background-size: 400% 400%;
  animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 粒子画布 */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 光晕效果 */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.glow-orb-1 {
  top: -20%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  animation: orbFloat1 15s ease-in-out infinite;
}

.glow-orb-2 {
  bottom: -20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}

.glow-orb-3 {
  top: 50%;
  left: 60%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33% { transform: translate(50px, 30px) scale(1.1); opacity: 0.8; }
  66% { transform: translate(-30px, 60px) scale(0.95); opacity: 0.5; }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-60px, -40px) scale(1.15); opacity: 0.7; }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(40px, -50px) scale(1.2); opacity: 0.6; }
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: #67E8F9; }

/* ========================================
   Container
   ======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Header - 透明背景
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  /* 全程保持透明，不变色 */
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 200px;
  flex-shrink: 0;
}

.site-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
}

.site-logo img:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow-strong);
}

/* Navigation */
.main-nav {
  margin-left: 0;
  position: absolute;
  right: 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.15);
}

.main-nav a:hover::before { width: 60%; }

.main-nav .current-menu-item a {
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
}

.main-nav .current-menu-item a::before { width: 60%; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  margin: 6px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .menu-toggle { display: none; }

  .site-logo {
    width: 140px;
  }

  .main-nav {
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: auto;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .site-header .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 1rem 0;
  }
}

/* ========================================
   Main Content Area
   ======================================== */

.site-content {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #67E8F9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  animation: heroTextGlow 3s ease-in-out infinite alternate;
  text-shadow: none;
}

@keyframes heroTextGlow {
  0% { filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.6)); }
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Home Hero (H1 for SEO)
   ======================================== */
.home-hero {
  padding: 3rem 0 1rem;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.home-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ========================================
   Section Title
   ======================================== */

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 36px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}

.section-title h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-title span {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   Category Cards
   ======================================== */

.category-section {
  padding: 2rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.category-card:hover::before { opacity: 1; }

.category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
}

.category-count {
  display: inline-block;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.1));
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.2);
  position: relative;
  z-index: 1;
}

/* ========================================
   Posts Grid
   ======================================== */

.posts-section {
  padding: 2rem 0 4rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(14, 165, 233, 0.15);
}

.post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-thumbnail img { transform: scale(1.1); }

.post-category-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-bright));
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.post-content {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.post-meta svg {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  opacity: 0.6;
}

/* ========================================
   Single Post
   ======================================== */

.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.single-post .post-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.single-post .post-category-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

.single-post h1 {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  animation: fadeInUp 0.6s ease-out;
}

.single-post .post-meta {
  justify-content: center;
  border-top: none;
  padding-top: 0;
  font-size: 0.9rem;
}

/* 文章目录 */
.post-toc-wrap {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.toc-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.toc-toggle:hover {
  background: rgba(14, 165, 233, 0.05);
}

.toc-chevron {
  transform: rotate(180deg);
}

.toc-toggle[aria-expanded="false"] .toc-chevron {
  transform: rotate(0deg);
}

.post-toc {
  padding: 0 1.5rem 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.post-toc[hidden] {
  display: none;
}

.toc-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list,
.toc-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list {
  border-left: 2px solid var(--border);
}

.toc-item {
  margin: 0;
}

.toc-link {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc-link:hover {
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border-left-color: var(--accent);
}

.toc-sub {
  padding-left: 1rem;
}

.toc-sub .toc-link {
  font-size: 0.85rem;
}

.single-post .post-featured-image {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border);
}

.single-post .post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.post-body p { margin-bottom: 1.5rem; }

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.post-body pre {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.post-body code {
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.2em 0.45em;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--accent);
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(14, 165, 233, 0.05);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ========================================
   Tags
   ======================================== */

.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-tags strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-item {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent);
  color: #67E8F9;
}

/* ========================================
   Author Box
   ======================================== */

.author-box {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.author-bio {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ========================================
   Donation Page
   ======================================== */

.donation-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.donation-page h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donation-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.donation-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.donation-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.donation-card.active {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.03);
}

.donation-card .amount {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.donation-card .label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.donation-qr {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.donation-qr h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.donation-qr img {
  max-width: 220px;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.donation-qr p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.qr-tip {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.donation-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(14, 165, 233, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ========================================
   Contact Page
   ======================================== */

.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.contact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.contact-card a {
  color: var(--accent);
}

.contact-card a:hover { color: #67E8F9; }

.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-bright));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.45);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   Footer - 透明最小化
   ======================================== */

.site-footer {
  background: transparent;
  border-top: 1px solid transparent;
  padding: 2rem 0;
  margin-top: 0;
}

.site-footer .footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

.site-footer .footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  text-decoration: none;
}

.pagination a:hover,
.pagination .current {
  border-color: var(--primary);
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
}

/* ========================================
   Utility & Effects
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--slate, #334155);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================
   Related Posts
   ======================================== */

.related-posts {
  margin-top: 3rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
  text-align: center;
  padding: 5rem 0;
  color: var(--text-muted);
}

.empty-state h2 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ========================================
   Donation Page
   ======================================== */

.donation-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.donation-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.donation-intro {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.donation-qr-section {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.donation-qr-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.qr-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qr-item img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  object-fit: contain;
  background: #fff;
}

.qr-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.qr-tip {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.donation-footer {
  margin-top: 2rem;
  color: var(--text-muted);
}

/* ========================================
   Contact Page
   ======================================== */

.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.contact-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.contact-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.contact-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: inline-block;
}

.contact-info p {
  margin: 0;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 600px) {
  .qr-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .qr-item img {
    width: 180px;
  }

  .donation-page, .contact-page {
    padding: 1.5rem 1rem 3rem;
  }

  .donation-page h1, .contact-page h1 {
    font-size: 1.6rem;
  }
}
