/* 科技芯前沿 - 科技感主题 v2 */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-white: #ffffff;
  --bg-light: #f1f5f9;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --text-on-dark: #e2e8f0;
  --border: #e2e8f0;
  --border-dark: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px 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);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 860px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

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

/* ========== Header ========== */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav { display: flex; gap: 6px; }
.nav-link {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(37,99,235,0.06);
}

.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: white;
  margin: 0 -24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
}

.hero-desc {
  font-size: 17px;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* ========== Section ========== */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  letter-spacing: -0.5px;
}

/* ========== Post Card ========== */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary-light);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.post-date { color: var(--text-muted); }
.post-category {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }

.post-summary {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more::after { content: '→'; transition: var(--transition); }
.post-card:hover .read-more::after { transform: translateX(4px); }

/* ========== Single Post ========== */
.single-post { padding: 48px 0; }

.post-header { margin-bottom: 40px; }
.post-header .post-title {
  font-size: 32px;
  margin: 16px 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(37,99,235,0.15);
}

.post-content {
  line-height: 1.9;
  font-size: 16px;
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.3px;
}
.post-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--primary-dark);
}
.post-content p { margin-bottom: 18px; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: rgba(37,99,235,0.04);
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}
.post-content code {
  background: rgba(37,99,235,0.08);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content ul, .post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.post-content li { margin-bottom: 8px; }

/* Share & CTA */
.post-share {
  margin-top: 40px;
  padding: 20px;
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.wechat-cta {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: white;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 20px rgba(7,193,96,0.3);
}
.wechat-cta h3 { margin-bottom: 10px; font-size: 20px; }
.wechat-cta p { margin-bottom: 20px; opacity: 0.9; font-size: 15px; }
.wechat-cta img { border-radius: 8px; }

/* Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  flex: 1;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.post-nav a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ========== List Page ========== */
.list-page { padding: 48px 0; }
.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

/* ========== About Page ========== */
.about-content { padding: 48px 0; }
.about-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--primary-dark);
}
.about-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-on-dark);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 40px;
}

.footer-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-slogan {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.footer-qr { text-align: center; }
.footer-qr p { margin-bottom: 10px; font-size: 14px; color: var(--text-muted); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-on-dark); }
.footer-bottom a:hover { color: var(--accent); }

.no-posts {
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-link { padding: 10px 12px; }

  .menu-toggle { display: block; }

  .hero {
    padding: 60px 16px 48px;
    margin: 0 -16px;
  }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 15px; }

  .post-card { padding: 20px; }
  .post-title { font-size: 18px; }
  .post-header .post-title { font-size: 24px; }

  .post-nav { flex-direction: column; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
}
