﻿:root {
      --primary: rgb(244, 63, 94);
      --primary-hover: rgb(225, 29, 72);
      --glacier: #1D7BFF;
      --glacier-hover: #1066df;
      --dark-ink: #0a0f1d;
      --slate-800: #1e293b;
      --slate-900: #0f172a;
      --silver: #f1f5f9;
      --text-gray: #64748b;
      --border-color: rgba(226, 232, 240, 0.8);
      --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: var(--font-sans); background-color: #f8fafc; color: #1e293b; line-height: 1.6; }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
    .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    
    
    .header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
    .header-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
    .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: 18px; font-weight: 800; line-height: 1; color: var(--slate-900); white-space: nowrap; }
    .nav-menu { display: flex; align-items: center; gap: 16px; }
    .nav-menu a { font-weight: 600; color: var(--slate-800); font-size: 15px; padding: 8px 16px; border-radius: 6px; }
    .nav-menu a:hover { color: var(--primary); background: rgba(244,63,94,0.05); }
    .nav-btn { background: var(--primary); color: #fff !important; padding: 10px 20px !important; border-radius: 8px; font-weight: 600; }
    .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
    .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--slate-900); margin: 5px 0; }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; }
    .drawer-overlay.active { opacity: 1; pointer-events: auto; }
    .drawer { position: fixed; top: 0; left: -300px; width: 300px; height: 100%; background: #fff; z-index: 1001; transition: 0.3s ease; display: flex; flex-direction: column; }
    .drawer.active { left: 0; }
    .drawer-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
    .drawer-content { flex: 1; overflow-y: auto; padding: 20px; }
    .drawer-menu { display: flex; flex-direction: column; gap: 16px; }
    .drawer-menu a { font-size: 16px; font-weight: 600; padding: 10px 14px; border-radius: 8px; }
    .drawer-menu a:hover { color: var(--primary); }

    
    .breadcrumbs { padding: 20px 0; background: #fff; border-bottom: 1px solid var(--border-color); font-size: 14px; color: var(--text-gray); }
    .breadcrumbs a { color: var(--slate-900); font-weight: 500; }

    
    .tag-container { padding: 50px 0; display: grid; grid-template-columns: 8fr 4fr; gap: 40px; }
    .tag-title-area { margin-bottom: 30px; }
    .tag-title-area h1 { font-size: 28px; font-weight: 800; color: var(--slate-900); display: flex; align-items: center; gap: 10px; }
    .tag-title-area h1::before { content: '#'; color: var(--primary); }
    .tag-desc { font-size: 14px; color: var(--text-gray); margin-top: 8px; }

    
    .article-item { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 24px; display: flex; gap: 24px; transition: all 0.3s ease; }
    .article-item:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.03); border-color: rgba(244,63,94,0.3); }
    .article-item-img { width: 220px; height: 140px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
    .article-item-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .article-item-title { font-size: 20px; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
    .article-item-title a:hover { color: var(--primary); }
    .article-item-desc { font-size: 14px; color: var(--text-gray); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .article-item-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #94a3b8; }
    .article-item-tags a { background: rgba(244,63,94,0.08); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 11px; }

    
    .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
    .pagination-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-color); font-weight: 600; color: var(--slate-800); background: #fff; }
    .pagination-link:hover, .pagination-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

    
    .sidebar { position: sticky; top: 100px; }
    .sidebar-widget { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 30px; }
    .widget-title { font-size: 18px; font-weight: 700; color: var(--slate-900); margin-bottom: 20px; border-left: 4px solid var(--primary); padding-left: 10px; }
    .tag-cloud-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .tag-cloud-list a { background: #f1f5f9; color: var(--slate-800); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; }
    .tag-cloud-list a:hover { background: var(--primary); color: #fff; }

    
    .footer { background: var(--dark-ink); color: #94a3b8; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
    .footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 45px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 280px; }
    .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 { font-size: 14px; color: #94a3b8; }
    .footer-links a:hover { color: var(--primary); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
    .footer-copyright { font-size: 13px; }
    .footer-extra { font-size: 13px; display: flex; gap: 16px; }

    @media (max-width: 992px) {
      .tag-container { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .nav-menu { display: none; }
      .menu-toggle { display: block; }
      .article-item { flex-direction: column; }
      .article-item-img { width: 100%; height: 200px; }
    }