﻿:root {
      --primary: rgb(139, 92, 246);
      --primary-hover: rgb(124, 58, 237);
      --glacier-blue: #1D7BFF;
      --silver-white: #F1F5F9;
      --deep-ocean: #0B132B;
      --text-dark: #0F172A;
      --text-light: #64748B;
      --border-color: #E2E8F0;
      --max-width: 1200px;
      --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-family);
      color: var(--text-dark);
      background-color: #F8FAFC;
      line-height: 1.6;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 20px;
      width: 100%;
    }

    
    .header {
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1000;
      height: 70px;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 100%;
    }

    .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: 18px;
      font-weight: 800;
      line-height: 1;
      color: var(--text-dark);
      white-space: nowrap;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 32px;
    }

    .nav-link {
      font-size: 15px;
      font-weight: 500;
      color: var(--text-dark);
    }

    .nav-link:hover {
      color: var(--primary);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 22px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
      border: none;
    }

    .btn-primary {
      background-color: var(--primary);
      color: #fff;
    }

    .btn-primary:hover {
      background-color: var(--primary-hover);
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
    }

    .menu-toggle svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: var(--text-dark);
      stroke-width: 2;
    }

    
    .drawer {
      position: fixed;
      top: 0;
      left: -100%;
      width: 280px;
      height: 100vh;
      background-color: #fff;
      z-index: 2000;
      box-shadow: 4px 0 20px rgba(0,0,0,0.1);
      transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      padding: 24px;
    }

    .drawer.active {
      left: 0;
    }

    .drawer-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0,0,0,0.5);
      z-index: 1999;
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .drawer-overlay.active {
      display: block;
      opacity: 1;
    }

    .drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
    }

    .drawer-close {
      background: none;
      border: none;
      cursor: pointer;
    }

    .drawer-close svg {
      width: 24px;
      height: 24px;
      stroke: var(--text-dark);
      stroke-width: 2;
    }

    .drawer-menu {
      display: flex;
      flex-direction: column;
      gap: 20px;
      overflow-y: auto;
      flex-grow: 1;
    }

    .drawer-link {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-dark);
      padding: 8px 0;
      border-bottom: 1px solid var(--border-color);
    }

    
    .tag-hero {
      background-color: var(--deep-ocean);
      color: #fff;
      padding: 60px 0;
      text-align: center;
    }

    .tag-hero-title {
      font-size: 32px;
      font-weight: 800;
    }

    
    .tags-container-layout {
      padding: 60px 0;
    }

    .tags-main-box {
      background: #fff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 40px;
    }

    .tags-index-title {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 30px;
      border-left: 5px solid var(--primary);
      padding-left: 14px;
    }

    .tags-cloud-large {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .tags-cloud-large a {
      background-color: var(--silver-white);
      color: var(--text-dark);
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 500;
      font-size: 14px;
      border: 1px solid var(--border-color);
    }

    .tags-cloud-large a:hover {
      background-color: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    
    .footer {
      background-color: #0F172A;
      color: #94A3B8;
      padding: 60px 0 30px 0;
      border-top: 1px solid #1E293B;
      font-size: 14px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr repeat(3, 1fr);
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-brand .logo span {
      color: #fff;
    }

    .footer-brand-desc {
      margin-top: 15px;
      line-height: 1.6;
    }

    .footer-title {
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 12px;
    }

    .footer-links a:hover {
      color: #fff;
    }

    .footer-bottom {
      border-top: 1px solid #1E293B;
      padding-top: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    
    @media (max-width: 768px) {
      .nav-menu, .nav-actions {
        display: none;
      }
      .menu-toggle {
        display: block;
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
    }