﻿:root {
      --primary: #0EA5E9;
      --secondary: #14B8A6;
      --accent: #2563EB;
      --bg-dark: #03111F;
      --bg-deep: #050B16;
      --bg-card: rgba(15, 32, 55, 0.65);
      --border-cyan: rgba(14, 165, 233, 0.24);
      --text-main: #F8FAFC;
      --text-muted: #94A3B8;
      --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-family); overflow-x: hidden; line-height: 1.6; }
    a { color: inherit; text-decoration: none; }

    
    .site-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: rgba(3, 17, 31, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-cyan); }
    .header-inner { width: min(1200px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; text-decoration: none; flex-shrink: 0; }
    .logo img { display: block; height: 40px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
    .logo span { display: inline-block; font-size: 18px; font-weight: 800; color: #e5eefc; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
    .desktop-nav-wrap { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; }
    .desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
    .desktop-nav::-webkit-scrollbar { display: none; }
    .desktop-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border-radius: 999px; color: #cbd5e1; font-size: 14px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; transition: all 0.3s ease; }
    .desktop-nav a:hover { color: #fff; background: rgba(14, 165, 233, 0.15); }
    .mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(6, 182, 212, 0.14); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
    .mobile-menu-btn span { display: block; width: 20px; height: 2px; background: #e5eefc; }

    
    .mobile-nav-mask { position: fixed; inset: 0; z-index: 1100; background: rgba(2, 6, 23, 0.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
    .mobile-drawer { position: fixed; top: 0; left: 0; z-index: 1110; width: min(86vw, 360px); height: 100vh; background: #07111F; color: #E5EEFC; transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; overflow: hidden; }
    .drawer-head { min-height: 76px; padding: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(6,182,212,0.18); }
    .drawer-logo img { height: 34px; }
    .drawer-close { width: 40px; height: 40px; border: 0; border-radius: 14px; background: rgba(6, 182, 212, 0.14); color: #E5EEFC; font-size: 26px; cursor: pointer; }
    .drawer-body { flex: 1; overflow-y: auto; 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(148, 163, 184, 0.10); color: #F8FAFC; font-size: 15px; font-weight: 700; word-break: break-word; }
    body.drawer-open { overflow: hidden; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; pointer-events: auto; }
    body.drawer-open .mobile-drawer { transform: translateX(0); }

    
    .breadcrumbs {
      width: min(1200px, calc(100% - 32px));
      margin: 24px auto 0;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .breadcrumbs a:hover {
      color: var(--primary);
    }

    
    .article-page {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      margin-top: 24px;
    }

    .article-shell {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
      gap: 28px;
      align-items: start;
    }

    .article-main,
    .article-sidebar {
      min-width: 0;
      max-width: 100%;
    }

    .article-head {
      margin-bottom: 24px;
    }

    .article-head h1 {
      font-size: clamp(22px, 4vw, 36px);
      font-weight: 850;
      color: #fff;
      line-height: 1.25;
      margin-bottom: 16px;
    }

    .article-head-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .article-head-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .article-cover {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      border-radius: 20px;
      margin-bottom: 32px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .article-cover img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
    }

    .article-content {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow-x: hidden;
      word-break: break-word;
      overflow-wrap: anywhere;
      line-height: 1.8;
      font-size: 16px;
      color: #E2E8F0;
    }

    .article-content *,
    .article-content *::before,
    .article-content *::after {
      box-sizing: border-box;
      max-width: 100%;
    }

    .article-content p,
    .article-content div,
    .article-content section,
    .article-content article,
    .article-content blockquote,
    .article-content li,
    .article-content span {
      max-width: 100%;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    .article-content p {
      margin-bottom: 20px;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
      color: #fff;
      margin: 32px 0 16px;
      font-weight: 800;
    }

    .article-content img,
    .article-content video,
    .article-content canvas,
    .article-content svg {
      max-width: 100% !important;
      height: auto !important;
      display: block;
      margin: 24px auto;
      border-radius: 12px;
    }

    .article-content table {
      display: block;
      width: 100% !important;
      max-width: 100% !important;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      border-collapse: collapse;
      margin: 24px 0;
    }

    .article-content thead,
    .article-content tbody,
    .article-content tr {
      width: 100%;
    }

    .article-content th,
    .article-content td {
      word-break: break-word;
      overflow-wrap: anywhere;
      white-space: normal;
      padding: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      text-align: left;
    }

    .article-content th {
      background: rgba(14, 165, 233, 0.1);
      color: #fff;
    }

    .article-content pre {
      max-width: 100%;
      overflow-x: auto;
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
      -webkit-overflow-scrolling: touch;
      background: #020813;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 16px;
      margin: 24px 0;
    }

    .article-content code {
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
      font-family: Courier, monospace;
      color: #38BDF8;
    }

    .article-content a {
      word-break: break-word;
      overflow-wrap: anywhere;
      color: var(--primary);
      text-decoration: underline;
    }

    .article-content [style*="width"],
    .article-content [width] {
      max-width: 100% !important;
    }

    .article-content [style*="min-width"] {
      min-width: 0 !important;
    }

    .article-content [style*="margin-left"] {
      margin-left: 0 !important;
    }

    .article-content [style*="left"] {
      max-width: 100% !important;
    }

    .article-nav {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      justify-content: space-between;
      gap: 20px;
    }

    .article-nav a {
      flex: 1;
      background: var(--bg-card);
      border: 1px solid rgba(255, 255, 255, 0.05);
      padding: 16px;
      border-radius: 12px;
      font-size: 14px;
      transition: all 0.2s ease;
    }

    .article-nav a:hover {
      border-color: var(--primary);
    }

    
    .article-sidebar {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .sidebar-widget {
      background: var(--bg-card);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      padding: 24px;
    }

    .sidebar-widget h3 {
      font-size: 16px;
      color: #fff;
      margin-bottom: 16px;
      border-left: 3px solid var(--secondary);
      padding-left: 10px;
    }

    .sidebar-widget ul {
      list-style: none;
    }

    .sidebar-widget li {
      margin-bottom: 12px;
      font-size: 14px;
    }

    .sidebar-widget li a {
      color: var(--text-muted);
      transition: color 0.2s ease;
    }

    .sidebar-widget li a:hover {
      color: #fff;
    }

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

    .tag-cloud-item {
      background: rgba(14, 165, 233, 0.08);
      border: 1px solid rgba(14, 165, 233, 0.2);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12px;
      color: var(--primary);
      transition: all 0.2s ease;
    }

    .tag-cloud-item:hover {
      background: var(--primary);
      color: #fff;
    }

    
    .related-wrap {
      width: min(1200px, calc(100% - 32px));
      margin: 56px auto 0;
      padding-top: 48px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .related-title {
      font-size: 22px;
      color: #fff;
      margin-bottom: 24px;
    }

    
    .site-footer { position: relative; z-index: 1; width: 100%; background: #050B16; color: #e5e7eb; padding: 56px 0 24px; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.04); }
    .footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(260px,1.35fr) repeat(3, minmax(150px,1fr)); gap: 28px; align-items: start; }
    .footer-brand p { margin: 16px 0 0; color: rgba(229,231,235,.74); line-height: 1.8; font-size: 14px; word-break: break-word; }
    .footer-column h3 { margin: 0 0 14px; font-size: 15px; color: #ffffff; }
    .footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .footer-column a, .footer-column span { color: rgba(229,231,235,.74); font-size: 14px; word-break: break-word; }
    .footer-column a:hover { color: #ffffff; }
    .footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: space-between; color: rgba(229,231,235,.62); font-size: 13px; }
    .footer-bottom p { margin: 0; }

    @media (max-width: 900px) {
      .header-inner { width: min(100% - 24px, 1200px); min-height: 64px; }
      .desktop-nav-wrap, .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .article-shell { grid-template-columns: 1fr; gap: 24px; }
      .article-sidebar { order: 2; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 640px) {
      .footer-inner { grid-template-columns: 1fr; }
    }