﻿:root {
      --primary: rgb(99,102,241);
      --primary-hover: #4f46e5;
      --dark-bg: #0b0f19;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --border-color: rgba(255,255,255,0.08);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--dark-bg);
      color: var(--text-main);
      line-height: 1.8;
      overflow-x: hidden;
    }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
    ul { list-style: none; }
    .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    
    .logo { display: inline-flex; align-items: center; gap: 12px; }
    .logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
    .logo span { display: inline-block; font-size: 20px; font-weight: 800; line-height: 1; color: var(--text-main); white-space: nowrap; }

    
    .header { position: sticky; top: 0; z-index: 100; background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
    .header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .nav-desktop { display: flex; gap: 32px; align-items: center; }
    .nav-desktop a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
    .nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }
    .header-actions { display: flex; align-items: center; gap: 16px; }
    .btn-primary-sm { background-color: var(--primary); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }
    .btn-primary-sm:hover { background-color: var(--primary-hover); transform: translateY(-1px); }
    .menu-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; }
    .menu-toggle span { display: block; width: 24px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .drawer-overlay.active { opacity: 1; visibility: visible; }
    .drawer { position: fixed; top: 0; left: -300px; width: 300px; height: 100%; background-color: var(--dark-bg); border-right: 1px solid var(--border-color); z-index: 999; padding: 30px 24px; display: flex; flex-direction: column; gap: 40px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .drawer.active { left: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; }
    .drawer-close { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 20px; }
    .drawer-nav a { font-size: 16px; font-weight: 500; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border-color); }
    .drawer-nav a:hover { color: var(--primary); }

    
    .article-wrap { padding: 60px 0 100px 0; }
    .breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
    .breadcrumbs a:hover { color: var(--primary); }
    .breadcrumbs span { margin: 0 8px; }

    .article-header-meta { margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
    .article-h1 { font-size: 36px; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 20px; }
    .post-info-line { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-muted); }
    .post-info-line span { display: flex; align-items: center; gap: 6px; }

    .article-body { font-size: 16px; color: #e2e8f0; margin-bottom: 60px; }
    .article-body p { margin-bottom: 24px; }
    .article-body h2 { font-size: 24px; font-weight: 700; color: #fff; margin: 40px 0 20px 0; }
    .article-body img { border-radius: 8px; margin: 20px 0; border: 1px solid var(--border-color); }

    
    .article-footer-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
    .article-tag-btn { font-size: 13px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: var(--primary); padding: 4px 12px; border-radius: 4px; }
    .article-tag-btn:hover { background: var(--primary); color: #fff; }

    .prev-next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 60px; }
    @media (max-width: 576px) { .prev-next-links { grid-template-columns: 1fr; } }
    .nav-link-card { background: #111827; border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
    .nav-link-card:hover { border-color: rgba(99,102,241,0.3); }
    .nav-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
    .nav-title { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    
    .related-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 30px; position: relative; padding-left: 12px; }
    .related-title::before { content: ''; position: absolute; left: 0; top: 6px; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
    .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
    .related-item { background: #111827; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: all 0.3s ease; }
    .related-item:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.3); }
    .related-h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; line-height: 1.4; }
    .related-desc { font-size: 13px; color: var(--text-muted); }

    
    .footer {
      background: #06080e;
      border-top: 1px solid var(--border-color);
      padding: 80px 0 40px 0;
      font-size: 14px;
      color: var(--text-muted);
    }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
    .footer-brand { grid-column: span 2; }
    @media (max-width: 992px) { .footer-brand { grid-column: span 1; } }
    .footer-desc { margin-top: 20px; margin-bottom: 20px; line-height: 1.7; }
    .footer-contact { font-size: 13px; color: var(--text-main); }
    .footer-links h4, .footer-risk h4 { color: var(--text-main); font-size: 16px; font-weight: 700; margin-bottom: 24px; }
    .footer-links ul { display: flex; flex-direction: column; gap: 12px; }
    .footer-links a:hover { color: var(--primary); }
    .footer-risk p { line-height: 1.7; font-size: 12px; }
    .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

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