﻿:root {
      --primary: rgb(255, 121, 198);
      --primary-hover: rgb(255, 80, 170);
      --dark-bg: #090615;
      --dark-card: #120e2e;
      --dark-border: rgba(255, 255, 255, 0.08);
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--dark-bg);
      color: var(--text-main);
      line-height: 1.6;
    }
    .site-header { position: sticky; top: 0; z-index: 900; background: rgba(9, 6, 21, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--dark-border); }
    .header-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
    .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
    .logo img { height: 40px; }
    .logo span { font-size: 18px; font-weight: 800; color: #ffffff; }
    .desktop-nav { display: flex; gap: 8px; }
    .desktop-nav a { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; }
    .desktop-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
    .mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.08); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
    .mobile-menu-btn span { display: block; width: 20px; height: 2px; background: #ffffff; }

    .mobile-nav-mask { position: fixed; inset: 0; z-index: 998; background: rgba(9, 6, 21, 0.8); opacity: 0; visibility: hidden; }
    .mobile-drawer { position: fixed; top: 0; left: 0; z-index: 999; width: min(86vw, 360px); height: 100vh; background: #0f0b24; transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; }
    .drawer-head { min-height: 76px; padding: 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dark-border); }
    .drawer-logo img { height: 36px; }
    .drawer-logo span { font-size: 17px; color: #ffffff; }
    .drawer-close { width: 40px; height: 40px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 26px; }
    .drawer-body { padding: 14px; }
    .drawer-nav { display: flex; flex-direction: column; gap: 8px; }
    .drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--text-main); text-decoration: none; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; pointer-events: auto; }
    body.drawer-open .mobile-drawer { transform: translateX(0); }

    
    .container { width: min(1200px, calc(100% - 32px)); margin: 40px auto; }
    .tag-hero {
      background: var(--dark-card);
      border: 1px solid var(--dark-border);
      border-radius: 20px;
      padding: 40px;
      margin-bottom: 40px;
    }
    .tag-hero h1 { font-size: 28px; color: #ffffff; margin-bottom: 12px; }
    .tag-hero h1 span { color: var(--primary); }
    .tag-hero p { font-size: 15px; color: var(--text-muted); }

    .grid-layout {
      display: grid;
      grid-template-columns: 2.2fr 1fr;
      gap: 36px;
    }

    .article-card {
      background: var(--dark-card);
      border: 1px solid var(--dark-border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
    }
    .article-img {
      width: 180px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .article-img img { width: 100%; height: 100%; object-fit: cover; }
    .article-content { display: flex; flex-direction: column; justify-content: space-between; }
    .article-content h2 { font-size: 18px; margin-bottom: 8px; }
    .article-content h2 a { color: #ffffff; text-decoration: none; }
    .article-content h2 a:hover { color: var(--primary); }
    .article-summary { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
    .article-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; }

    .sidebar-widget {
      background: var(--dark-card);
      border: 1px solid var(--dark-border);
      border-radius: 16px;
      padding: 24px;
    }
    .widget-title { font-size: 16px; font-weight: 800; color: #ffffff; margin-bottom: 18px; }

    .pagination-bar {
      margin-top: 40px;
      display: flex;
      justify-content: center;
      gap: 8px;
    }
    .page-item {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 14px;
      border-radius: 8px;
      background: var(--dark-card);
      border: 1px solid var(--dark-border);
      color: var(--text-main);
      text-decoration: none;
      font-size: 14px;
    }
    .page-item.active {
      background: var(--primary);
      color: #000000;
      border-color: var(--primary);
    }

    
    .site-footer { width: 100%; background: #060410; color: var(--text-muted); border-top: 1px solid var(--dark-border); margin-top: 80px; }
    .footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 34px; display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .8fr)); gap: 28px; }
    .footer-logo span { color: #ffffff; }
    .footer-column h3 { color: #ffffff; font-size: 15px; margin-bottom: 14px; }
    .footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-column a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
    .footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid var(--dark-border); display: flex; justify-content: space-between; font-size: 13px; }

    @media (max-width: 900px) {
      .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .grid-layout { grid-template-columns: 1fr; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
      .article-card { flex-direction: column; }
      .article-img { width: 100%; height: 160px; }
    }