﻿:root {
      --primary: #1D7BFF;
      --accent: rgb(225,29,72);
      --bg-dark: #0B0F19;
      --bg-card: rgba(17, 24, 39, 0.7);
      --border-color: rgba(29, 123, 255, 0.15);
      --text-main: #E2E8F0;
      --text-muted: #94A3B8;
      --glacier-white: #F8FAFC;
      --max-width: 1200px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { background-color: var(--bg-dark); color: var(--text-main); font-family: -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: 0.3s; }
    header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
    .nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
    .logo { display: inline-flex; align-items: center; gap: 12px; }
    .logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
    .logo span { font-size: 20px; font-weight: 800; color: var(--glacier-white); }
    .nav-menu { display: flex; align-items: center; gap: 28px; }
    .nav-menu a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
    .btn-download { background: linear-gradient(135deg, var(--primary), #0052D4); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; }
    
    .menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; }
    .menu-toggle span { display: block; width: 24px; height: 2px; background-color: var(--text-main); }
    .drawer-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 199; opacity: 0; pointer-events: none; transition: 0.3s; }
    .drawer-backdrop.active { opacity: 1; pointer-events: auto; }
    .mobile-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--bg-dark); border-right: 1px solid var(--border-color); z-index: 200; padding: 24px; display: flex; flex-direction: column; gap: 32px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .mobile-drawer.active { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; }
    .drawer-close { background: none; border: none; color: var(--text-muted); font-size: 24px; }

    
    .tag-hero { padding: 140px 0 60px 0; background: linear-gradient(180deg, rgba(29, 123, 255, 0.08) 0%, transparent 100%); text-align: center; }
    .tag-hero h1 { font-size: 38px; color: var(--glacier-white); margin-bottom: 12px; }
    .tag-hero p { font-size: 14px; color: var(--text-muted); }

    .tag-content-layout { max-width: 900px; margin: 60px auto 100px auto; padding: 0 20px; }
    .grid-articles { display: flex; flex-direction: column; gap: 24px; }

    .article-item { background: rgba(17, 24, 39, 0.4); border: 1px solid var(--border-color); border-radius: 12px; display: flex; overflow: hidden; transition: 0.3s; }
    .article-item:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
    .item-img-box { width: 220px; position: relative; overflow: hidden; flex-shrink: 0; }
    .item-img-box img { width: 100%; height: 100%; object-fit: cover; }
    .item-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
    .item-title { font-size: 18px; color: var(--glacier-white); margin-bottom: 10px; font-weight: 700; }
    .item-title:hover { color: var(--primary); }
    .item-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex-grow: 1; }
    .item-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
    .item-tag { background: rgba(29,123,255,0.1); color: var(--primary); padding: 2px 8px; border-radius: 4px; }

    
    .pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
    .pagination-wrap a, .pagination-wrap span { padding: 8px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; font-size: 14px; }
    .pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }
    .pagination-wrap .current { background: var(--primary); color: white; border-color: var(--primary); }

    
    footer { background: #06090F; border-top: 1px solid var(--border-color); padding: 80px 0 40px 0; color: var(--text-muted); }
    .footer-grid { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
    .footer-brand p { margin-top: 16px; font-size: 14px; max-width: 280px; }
    .footer-links h4 { color: var(--glacier-white); font-size: 16px; margin-bottom: 20px; }
    .footer-links ul { list-style: none; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { font-size: 14px; }
    .footer-links a:hover { color: var(--primary); }
    .footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px 0 20px; 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; }

    @media (max-width: 768px) {
      .nav-menu, .nav-actions { display: none; }
      .menu-toggle { display: flex; }
      .article-item { flex-direction: column; }
      .item-img-box { width: 100%; height: 160px; }
    }