﻿:root {
      --bg-main: #F6F8FC;
      --bg-white: #FFFFFF;
      --bg-dark: #061525;
      --text-main: #0F172A;
      --text-muted: #64748B;
      --prism-blue: #2563EB;
      --border-color: rgba(15,23,42,0.08);
      --card-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html, body {
      width: 100%;
      margin: 0;
      overflow-x: hidden;
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-main);
      color: var(--text-main);
    }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

    
    .site-header { position: sticky; top: 0; z-index: 1000; background: rgba(246, 248, 252, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
    .header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
    .logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
    .logo img { height: 32px; width: auto; }
    .desktop-nav { display: flex; align-items: center; gap: 2rem; }
    .desktop-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
    .desktop-nav a:hover, .desktop-nav a.active { color: var(--prism-blue); }
    .mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
    .mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }
    
    .mobile-nav-mask { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; }
    .mobile-drawer { position: fixed; top: 0; right: -320px; width: 320px; height: 100dvh; background: var(--bg-white); z-index: 999; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.3s ease; display: flex; flex-direction: column; }
    body.drawer-open .mobile-drawer { right: 0; }
    .drawer-head { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
    .drawer-close { background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--text-muted); }
    .drawer-body { padding: 2rem 1.5rem; overflow-y: auto; }
    .drawer-nav { display: flex; flex-direction: column; gap: 1.5rem; }
    .drawer-nav a { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }

    
    .breadcrumb-wrap {
      max-width: 1200px;
      margin: 1.5rem auto 0;
      padding: 0 1.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .breadcrumb-wrap a { color: var(--text-muted); }

    
    .article-hero {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 1.5rem;
    }
    .article-title-text {
      font-size: 2.75rem;
      font-weight: 800;
      line-height: 1.2;
      margin: 0 0 1rem;
    }
    
    
    .article-meta-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      font-size: 0.9rem;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 1.5rem;
      margin-bottom: 2rem;
    }
    .article-meta-row span strong {
      color: var(--text-main);
    }
    .article-cover {
      width: 100%;
      max-height: 500px;
      object-fit: cover;
      border-radius: 12px;
      margin-bottom: 2.5rem;
      box-shadow: var(--card-shadow);
    }

    
    .reading-desk-grid {
      max-width: 1200px;
      margin: 0 auto 5rem;
      padding: 0 1.5rem;
      display: grid;
      grid-template-columns: 2.5fr 1fr;
      gap: 3rem;
    }

    
    .article-content {
      background: var(--bg-white);
      padding: 3rem;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      font-size: 1.1rem;
      line-height: 1.75;
      color: #334155;
    }
    .article-content h2 {
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--text-main);
      margin: 2rem 0 1rem;
    }
    .article-content h3 {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text-main);
      margin: 1.5rem 0 1rem;
    }
    .article-content p {
      margin: 0 0 1.5rem;
    }
    .article-content ul, .article-content ol {
      margin: 0 0 1.5rem;
      padding-left: 1.5rem;
    }
    .article-content img {
      max-width: 100%;
      border-radius: 8px;
      margin: 1.5rem 0;
    }
    .article-content table {
      width: 100%;
      border-collapse: collapse;
      margin: 2rem 0;
      font-size: 0.95rem;
    }
    .article-content th, .article-content td {
      border: 1px solid var(--border-color);
      padding: 0.75rem 1rem;
      text-align: left;
    }
    .article-content th {
      background: var(--bg-main);
      color: var(--text-main);
      font-weight: 700;
    }
    .article-content blockquote {
      border-left: 4px solid var(--prism-blue);
      padding-left: 1.5rem;
      margin: 2rem 0;
      font-style: italic;
      color: var(--text-muted);
    }

    
    .article-tags-block {
      border-top: 1px solid var(--border-color);
      padding-top: 1.5rem;
      margin-top: 3rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .article-tags-block a {
      background: #EDF3FF;
      color: var(--prism-blue);
      padding: 0.3rem 0.75rem;
      font-size: 0.8rem;
      border-radius: 4px;
      font-weight: 600;
    }

    
    .prev-next-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .nav-card {
      background: var(--bg-white);
      padding: 1.5rem;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .nav-card-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: bold;
      text-transform: uppercase;
    }
    .nav-card-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--prism-blue);
    }

    
    .related-section {
      background: #EDF3FF;
      padding: 5rem 1.5rem;
      border-top: 1px solid var(--border-color);
    }
    .related-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2.5rem;
    }
    .related-card {
      background: var(--bg-white);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
    }
    .related-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      background: #CBD5E1;
    }
    .related-card-body {
      padding: 1.5rem;
    }

    
    .right-rail-box {
      background: var(--bg-white);
      border-radius: 12px;
      padding: 1.5rem;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      position: sticky;
      top: 100px;
    }

    
    .article-bottom-block-wrap {
      margin-top: 2rem;
    }

    
    .site-footer { background: #030a12; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.05); padding: 4rem 1.5rem 2rem; font-size: 0.9rem; }
    .footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
    .footer-brand { display: flex; flex-direction: column; gap: 1rem; }
    .footer-logo { color: #FFFFFF; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
    .footer-logo img { height: 32px; }
    .footer-column h3 { color: #FFFFFF; font-size: 1rem; margin: 0 0 1.25rem; }
    .footer-column ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
    .footer-column a:hover { color: #FFFFFF; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

    @media (max-width: 900px) {
      .mobile-menu-btn { display: flex; }
      .desktop-nav-wrap { display: none; }
      .reading-desk-grid { grid-template-columns: 1fr; }
      .article-content { padding: 1.5rem; }
      .prev-next-nav { grid-template-columns: 1fr; }
      .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    }