:root {
  --brand: #3b82f6;
  --brand-hover: #2563eb;
  --brand-light: #60a5fa;
  --brand-dark: #1d4ed8;
  --brand-glow: rgba(59, 130, 246, 0.15);
  --brand-glow-strong: rgba(59, 130, 246, 0.25);
  --bg-primary: #07070d;
  --bg-secondary: #0b0b14;
  --bg-card: #0f0f1a;
  --bg-card-hover: #141420;
  --bg-elevated: #1a1a2e;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.3);
  --gradient-hero: linear-gradient(135deg, var(--brand), var(--brand-light), #a78bfa);
  --gradient-card: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  --max-width: 1120px;
  --nav-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-accent {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(59, 130, 246, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 700px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-light);
  margin-bottom: 4px;
}

.hero-stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.services {
  background: var(--bg-secondary);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: 32px;
  padding: 36px 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.06);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.15);
  line-height: 1;
  min-width: 60px;
}

.service-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-content > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-icon-wrapper {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-light);
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.service-features li {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--brand);
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  gap: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.06);
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.portfolio-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.portfolio-metric {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.portfolio-cta {
  text-align: center;
  margin-top: 40px;
}

.tech-stack {
  background: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-align: center;
}

.tech-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tech-icon {
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.06);
}

.tech-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.process {
  background: var(--bg-primary);
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-step {
  display: flex;
  gap: 28px;
  padding: 32px 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.process-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.process-step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  min-width: 50px;
  line-height: 1;
}

.process-step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.blog-posts {
  background: var(--bg-secondary);
}

.faq {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--brand-light);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact {
  text-align: center;
  background: var(--bg-primary);
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-image: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-btn {
  gap: 10px;
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.contact-social-link:hover {
  border-color: var(--brand);
  color: var(--brand-light);
  background: rgba(59, 130, 246, 0.05);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--brand-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }

.kg-width-wide {
  max-width: 880px;
  margin-left: calc(50% - 440px);
  margin-right: calc(50% - 440px);
}

.kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-gallery-card {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.kg-gallery-card img {
  flex: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.kg-embed-card {
  margin: 24px 0;
}

.kg-embed-card iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.kg-bookmark-card {
  margin: 24px 0;
}

.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
  background: var(--bg-card);
}

.kg-bookmark-container:hover {
  border-color: var(--border-hover);
}

.kg-bookmark-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-bookmark-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.kg-bookmark-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.kg-bookmark-author::after {
  content: '\00B7';
  margin-left: 8px;
}

.kg-bookmark-thumbnail {
  flex-shrink: 0;
  width: 200px;
  overflow: hidden;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .kg-bookmark-container {
    flex-direction: column;
  }
  .kg-bookmark-thumbnail {
    width: 100%;
    height: 180px;
  }
  .kg-width-wide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .kg-width-full {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 3rem; }

  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .hero-stat-divider { display: none; }

  section { padding: 64px 0; }
  h2 { font-size: 1.75rem; }

  .section-header { margin-bottom: 40px; }

  .service-item { flex-direction: column; gap: 16px; padding: 28px; }
  .service-number { font-size: 1.75rem; }

  .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tech-item { padding: 16px 12px; }
  .tech-name { font-size: 0.78rem; }

  .process-step { flex-direction: column; gap: 12px; padding: 24px; }

  .contact-card { padding: 36px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-social { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 300px; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card { padding: 24px; }

  .faq-question { padding: 16px; font-size: 0.95rem; }
  .faq-answer { padding: 0 16px 16px; }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 4.5rem; }
  h2 { font-size: 2.75rem; }
  .hero-glow { width: 900px; height: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (hover: none) {
  .service-item:hover, .portfolio-card:hover, .tech-item:hover, .process-step:hover {
    transform: none;
  }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}

.page-container {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 80vh;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-excerpt {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-body {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-body h2 { font-size: 1.75rem; }
.page-body h3 { font-size: 1.35rem; }
.page-body h4 { font-size: 1.1rem; }

.page-body p {
  margin-bottom: 20px;
}

.page-body strong {
  color: var(--text-primary);
}

.page-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.page-body ul,
.page-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--brand);
}

.page-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.page-body blockquote p {
  margin-bottom: 0;
}

.page-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border);
}

.page-body code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--brand-light);
  border: 1px solid var(--border);
}

.page-body pre {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 24px 0;
}

.page-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
}

.post-container {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

.post-reading-time::before {
  content: '\00B7';
  margin-right: 16px;
}

.post-image {
  max-width: 860px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-image img {
  width: 100%;
  display: block;
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-body h2 { font-size: 1.75rem; }
.post-body h3 { font-size: 1.35rem; }
.post-body h4 { font-size: 1.1rem; }

.post-body p { margin-bottom: 20px; }
.post-body strong { color: var(--text-primary); }
.post-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}
.post-body ul, .post-body ol { margin-bottom: 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--brand); }

.post-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-body blockquote p { margin-bottom: 0; }

.post-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border);
  max-width: 100%;
}

.post-body code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--brand-light);
  border: 1px solid var(--border);
}

.post-body pre {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 24px 0;
}

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

.post-comments {
  max-width: 780px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.archive-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 40px;
  text-align: center;
}

.archive-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.archive-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: 24px;
  border: 2px solid var(--border);
}

.archive-posts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
  max-width: 720px;
  margin: 0 auto;
}

.archive-post {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.archive-post:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.archive-post-image {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.archive-post-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.archive-post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 8px;
}

.archive-post-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.archive-post-content h2 a:hover {
  color: var(--brand-light);
}

.archive-post-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.archive-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.error-page {
  padding-top: calc(var(--nav-height) + 120px);
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 40px 0 80px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand-light);
}

.page-number {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .page-header h1 { font-size: 2rem; }
  .post-header h1 { font-size: 1.85rem; }
  .archive-header h1 { font-size: 1.85rem; }
  .archive-post { flex-direction: column; }
  .archive-post-image { width: 100%; }
  .archive-post-image img { height: 180px; }
  .page-body { font-size: 1rem; }
  .post-body { font-size: 1rem; }
}

@media (max-width: 480px) {
  .post-meta { flex-direction: column; gap: 4px; }
  .post-reading-time::before { content: none; }
  .page-header h1 { font-size: 1.65rem; }
  .post-header h1 { font-size: 1.5rem; }
}
