﻿:root {
      --primary: #A855F7;
      --secondary: #F472B6;
      --bg-dark: #101828;
      --bg-light: #FAF5FF;
      --text-dark: #111827;
      --text-muted: rgb(75,85,99);
      --accent: #FBCFE8;
      --white: #ffffff;
      --border-color: rgba(15,23,42,0.08);
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--text-dark);
      background-color: var(--bg-light);
      line-height: 1.6;
    }

    
    .site-header {
      position: sticky;
      top: 0;
      z-index: 900;
      width: 100%;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-color);
    }
    .header-inner {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      min-width: 0;
      flex-shrink: 0;
    }
    .logo img {
      display: block;
      height: 40px;
      width: auto;
      max-width: 160px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .logo span {
      display: inline-block;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.2;
      color: var(--text-dark);
      white-space: nowrap;
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .desktop-nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-width: 0;
    }
    .desktop-nav a {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .desktop-nav a:hover, .desktop-nav a.active {
      color: var(--primary);
      background: rgba(168,85,247,0.08);
    }
    .mobile-menu-btn {
      display: none;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 14px;
      background: rgba(15,23,42,0.08);
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      flex-shrink: 0;
    }
    .mobile-menu-btn span {
      display: block;
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: var(--text-dark);
    }

    
    .mobile-nav-mask {
      position: fixed;
      inset: 0;
      z-index: 998;
      background: rgba(15,23,42,0.54);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .mobile-drawer {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 999;
      width: min(86vw, 360px);
      height: 100vh;
      height: 100dvh;
      background: #ffffff;
      color: var(--text-dark);
      transform: translateX(-105%);
      transition: transform 0.28s ease;
      box-shadow: 24px 0 60px rgba(15,23,42,0.22);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .drawer-head {
      min-height: 76px;
      padding: 18px 18px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid var(--border-color);
      flex-shrink: 0;
    }
    .drawer-logo img {
      height: 36px;
      max-width: 130px;
    }
    .drawer-logo span {
      max-width: 150px;
      font-size: 17px;
    }
    .drawer-close {
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 14px;
      background: rgba(15,23,42,0.08);
      color: var(--text-dark);
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      flex-shrink: 0;
    }
    .drawer-body {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 14px;
    }
    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .drawer-nav a {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 48px;
      padding: 13px 14px;
      border-radius: 14px;
      background: rgba(15,23,42,0.04);
      color: var(--text-dark);
      text-decoration: none;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.35;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .drawer-nav a:hover {
      background: rgba(168,85,247,0.12);
      color: #7e22ce;
    }
    body.drawer-open {
      overflow: hidden;
      touch-action: none;
    }
    body.drawer-open .mobile-nav-mask {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    body.drawer-open .mobile-drawer {
      transform: translateX(0);
    }

    
    .container {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
    }

    .breadcrumbs {
      padding: 24px 0;
      font-size: 14px;
      color: var(--text-muted);
    }
    .breadcrumbs a {
      color: var(--text-muted);
      text-decoration: none;
    }
    .breadcrumbs a:hover {
      color: var(--primary);
    }

    .article-container {
      background: var(--white);
      border-radius: 24px;
      padding: 48px;
      border: 1px solid var(--border-color);
      max-width: 860px;
      margin: 0 auto 60px;
    }
    
    .article-header {
      margin-bottom: 32px;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 24px;
    }
    .article-header h1 {
      font-size: clamp(24px, 4vw, 36px);
      font-weight: 800;
      line-height: 1.3;
      margin-bottom: 16px;
    }
    .post-meta-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .post-meta-strip span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .article-body-content {
      font-size: 16px;
      line-height: 1.8;
      color: #334155;
    }
    .article-body-content p {
      margin-bottom: 24px;
    }
    .article-body-content img {
      max-width: 100%;
      height: auto;
      border-radius: 12px;
      margin: 24px 0;
    }

    
    .article-tags-links {
      margin: 40px 0 24px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .article-tags-links a {
      background: rgba(168,85,247,0.08);
      color: var(--primary);
      text-decoration: none;
      font-size: 13px;
      padding: 6px 14px;
      border-radius: 999px;
      font-weight: 600;
    }

    
    .prev-next-posts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      border-top: 1px solid var(--border-color);
      padding-top: 24px;
      margin-top: 40px;
    }
    .pn-link {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: var(--text-dark);
    }
    .pn-link span.label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 4px;
    }
    .pn-link span.title {
      font-weight: 700;
      font-size: 14px;
    }
    .pn-link:hover span.title {
      color: var(--primary);
    }

    
    .related-section {
      padding: 60px 0 80px;
      border-top: 1px solid var(--border-color);
    }
    .related-title {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 24px;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }

    
    .site-footer {
      background: #0b0f19;
      color: #94a3b8;
      padding: 80px 0 32px;
      border-top: 1px solid rgba(255,255,255,0.05);
    }
    .footer-top {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 40px;
      margin-bottom: 48px;
    }
    .footer-info p {
      font-size: 14px;
      margin: 16px 0 24px;
      line-height: 1.6;
    }
    .footer-nav-col h4 {
      color: var(--white);
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 20px;
    }
    .footer-nav-col ul {
      list-style: none;
    }
    .footer-nav-col ul li {
      margin-bottom: 12px;
    }
    .footer-nav-col ul li a {
      color: #94a3b8;
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }
    .footer-nav-col ul li a:hover {
      color: var(--primary);
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.05);
      padding-top: 32px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
    }

    @media (max-width: 900px) {
      .header-inner {
        width: min(100% - 24px, 1200px);
        min-height: 64px;
        gap: 12px;
      }
      .desktop-nav {
        display: none !important;
      }
      .mobile-menu-btn {
        display: inline-flex !important;
      }
      .logo img {
        height: 34px;
        max-width: 120px;
      }
      .logo span {
        font-size: 16px;
        max-width: 150px;
      }
      .article-container {
        padding: 24px;
      }
      .prev-next-posts {
        grid-template-columns: 1fr;
      }
    }