﻿:root {
      --primary-color: #1D7BFF;
      --secondary-color: rgb(168,85,247);
      --bg-dark: #070B14;
      --bg-card: #0F1626;
      --text-main: #E2E8F0;
      --text-muted: #94A3B8;
      --border-color: #1E293B;
      --glacier-white: #F8FAFC;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
    
    header {
      background: rgba(15, 22, 38, 0.95);
      border-bottom: 1px solid var(--border-color);
      position: sticky; top: 0; z-index: 100;
      backdrop-filter: blur(8px);
    }
    .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; }
    .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(--glacier-white); white-space: nowrap;
      background: linear-gradient(135deg, #1D7BFF, rgb(168,85,247));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    nav.nav-desktop { display: flex; align-items: center; gap: 24px; }
    nav.nav-desktop a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
    nav.nav-desktop a:hover { color: var(--primary-color); }
    .menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }

    
    .breadcrumb-wrap { background: rgba(15,22,38,0.5); border-bottom: 1px solid var(--border-color); padding: 15px 20px; }
    .breadcrumbs { max-width: 1200px; margin: 0 auto; font-size: 14px; color: var(--text-muted); }
    .breadcrumbs a { margin: 0 5px; }
    .breadcrumbs a:hover { color: var(--primary-color); }

    .tag-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; }
    .tag-header-box { background: linear-gradient(135deg, rgba(29, 123, 255, 0.1), rgba(168,85,247,0.1)); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px; margin-bottom: 30px; }
    .tag-header-box h1 { font-size: 28px; color: var(--glacier-white); margin-bottom: 10px; }

    .article-list { display: flex; flex-direction: column; gap: 24px; }
    .article-item {
      background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px;
      overflow: hidden; display: flex; transition: all 0.3s ease;
    }
    .article-item:hover { transform: translateY(-3px); border-color: rgba(29, 123, 255, 0.3); }
    .article-item-img { width: 240px; height: 160px; object-fit: cover; flex-shrink: 0; background: #161F30; }
    .article-item-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
    .article-item-tag { font-size: 12px; color: var(--primary-color); font-weight: 600; margin-bottom: 8px; }
    .article-item-title { font-size: 20px; color: var(--glacier-white); margin-bottom: 10px; font-weight: 700; }
    .article-item-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; line-height: 1.5; flex-grow: 1; }
    .article-item-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 12px; font-size: 12px; color: var(--text-muted); }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
    .widget-title { font-size: 18px; color: var(--glacier-white); font-weight: 700; margin-bottom: 18px; border-left: 3px solid var(--primary-color); padding-left: 10px; }
    .tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-btn { display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 6px; font-size: 12px; color: var(--text-muted); }
    .tag-btn:hover { background: rgba(29, 123, 255, 0.1); border-color: var(--primary-color); color: var(--glacier-white); }

    
    .pagination-wrap { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
    .pagination-item { display: inline-block; padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-muted); font-size: 14px; background: var(--bg-card); }
    .pagination-item:hover, .pagination-item.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999; display: none; backdrop-filter: blur(4px); }
    .drawer-overlay.active { display: block; }
    .drawer { position: fixed; top: 0; left: -300px; width: 300px; height: 100%; background: var(--bg-card); border-right: 1px solid var(--border-color); z-index: 1000; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 30px 20px; display: flex; flex-direction: column; }
    .drawer.active { left: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .drawer-close { background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 20px; }
    .drawer-nav a { font-size: 18px; color: var(--text-muted); font-weight: 500; }
    .drawer-nav a:hover, .drawer-nav a.active { color: var(--primary-color); }

    
    footer { background: #070B14; border-top: 1px solid var(--border-color); padding: 60px 20px 30px; margin-top: 60px; }
    .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
    .footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 15px; line-height: 1.6; }
    .footer-title { font-size: 16px; color: var(--glacier-white); font-weight: 600; margin-bottom: 20px; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { color: var(--text-muted); font-size: 14px; }
    .footer-links a:hover { color: var(--primary-color); }
    .footer-info { color: var(--text-muted); font-size: 14px; }
    .footer-info p { margin-bottom: 10px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border-color); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }

    @media (max-width: 992px) {
      .tag-container { grid-template-columns: 1fr; }
      .article-item { flex-direction: column; }
      .article-item-img { width: 100%; height: 200px; }
    }
    @media (max-width: 768px) {
      nav.nav-desktop { display: none; }
      .menu-toggle { display: block; }
      .footer-container { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    }