﻿:root {
      --primary: rgb(126, 34, 206);
      --primary-hover: rgb(109, 28, 182);
      --tech-blue: #1D7BFF;
      --tech-cyan: #00EBFF;
      --dark-bg: #0A0F1D;
      --silver: #E2E8F0;
      --light-bg: #F8FAFC;
      --text-dark: #0F172A;
      --text-light: #64748B;
      --border: #E2E8F0;
      --glass-border: 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; color: var(--text-dark); background-color: #fff; line-height: 1.5; }
    a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
    img { max-width: 100%; height: auto; }
    
    
    .header { background: var(--dark-bg); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; transition: all 0.3s; }
    .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
    .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
    .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: #fff; white-space: nowrap; letter-spacing: 0.5px; }
    .nav-menu { display: flex; align-items: center; gap: 30px; }
    .nav-menu a { color: var(--silver); font-weight: 500; font-size: 15px; }
    .nav-menu a:hover { color: var(--tech-cyan); }
    .menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 5px; }
    .menu-btn svg { width: 24px; height: 24px; fill: currentColor; }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(4px); }
    .drawer { position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; background: var(--dark-bg); z-index: 999; padding: 30px 20px; display: flex; flex-direction: column; gap: 30px; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-right: 1px solid var(--glass-border); }
    .drawer.active { left: 0; }
    .drawer-overlay.active { opacity: 1; pointer-events: auto; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; }
    .drawer-close { background: none; border: none; color: #fff; cursor: pointer; }
    .drawer-close svg { width: 24px; height: 24px; fill: currentColor; }
    .drawer-menu { display: flex; flex-direction: column; gap: 20px; }
    .drawer-menu a { color: var(--silver); font-size: 16px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .drawer-menu a:hover { color: var(--tech-cyan); }

    
    .content-area { padding: 60px 20px; background: var(--light-bg); }
    .content-container { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
    
    .article-header { margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
    .breadcrumb { display: flex; gap: 10px; font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
    .breadcrumb a:hover { color: var(--primary); }
    .article-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
    .article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-light); }
    
    
    .article-content { font-size: 16px; color: #334155; line-height: 1.8; margin-bottom: 40px; }
    .article-content p { margin-bottom: 20px; }
    .article-content h2, .article-content h3 { font-weight: 800; color: var(--text-dark); margin: 35px 0 15px; }
    .article-content h2 { font-size: 24px; }
    .article-content h3 { font-size: 20px; }
    .article-content img { border-radius: 8px; margin: 25px 0; }
    
    
    .article-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 25px 0; margin-bottom: 40px; gap: 20px; }
    .nav-prev, .nav-next { flex: 1; display: flex; flex-direction: column; gap: 8px; }
    .nav-next { text-align: right; }
    .nav-label { font-size: 13px; font-weight: 700; color: var(--primary); }
    .nav-title { font-size: 15px; font-weight: 500; color: var(--text-dark); }
    .nav-title:hover { color: var(--primary); }

    
    .related-section { margin-top: 60px; }
    .related-title { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 25px; }
    .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
    .related-card { background: var(--light-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; height: 100%; transition: all 0.3s; }
    .related-card:hover { transform: translateY(-3px); border-color: var(--primary); }
    .related-img { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
    .related-img img { width: 100%; height: 100%; object-fit: cover; }
    .related-info { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
    .related-info h4 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    
    .footer { background: #0F172A; color: var(--silver); padding: 80px 20px 40px; border-top: 1px solid rgba(255,255,255,0.05); }
    .footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; margin-bottom: 60px; }
    .footer-brand .logo { margin-bottom: 20px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand p { font-size: 14px; color: #94A3B8; line-height: 1.6; margin-bottom: 20px; }
    .footer-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 24px; position: relative; padding-bottom: 8px; }
    .footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary); }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
    .footer-links a { font-size: 14px; color: #94A3B8; }
    .footer-links a:hover { color: #fff; padding-left: 5px; }
    .footer-contact { font-size: 14px; color: #94A3B8; display: flex; flex-direction: column; gap: 10px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #64748B; }
    .footer-bottom-links { display: flex; gap: 20px; }
    .footer-bottom-links a:hover { color: #fff; }

    @media (max-width: 768px) {
      .nav-menu { display: none; }
      .menu-btn { display: block; }
      .content-container { padding: 25px 20px; }
      .article-nav { flex-direction: column; }
      .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    }