﻿:root {
      --primary-color: rgb(66,70,81);
      --primary-hover: #1e2025;
      --accent-color: #1D7BFF;
      --text-dark: #1F2937;
      --text-muted: #6B7280;
      --bg-light: #F9FAFB;
      --white: #FFFFFF;
      --border-color: #E5E7EB;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --max-width: 1200px;
      --border-radius: 12px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--white); color: var(--text-dark); line-height: 1.6; }
    a { text-decoration: none; color: inherit; transition: var(--transition); }
    ul { list-style: none; }
    .container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

    
    header { background-color: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; height: 70px; }
    .header-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
    .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(--text-dark); white-space: nowrap; }
    .nav-list { display: flex; align-items: center; gap: 24px; }
    .nav-list a { font-size: 15px; font-weight: 500; color: var(--text-dark); }
    .nav-list a:hover { color: var(--accent-color); }
    .menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

    
    .drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background-color: var(--white); z-index: 200; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: var(--transition); display: flex; flex-direction: column; padding: 24px; }
    .drawer.active { left: 0; }
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 150; opacity: 0; pointer-events: none; transition: var(--transition); }
    .drawer-overlay.active { opacity: 1; pointer-events: auto; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 18px; }
    .drawer-nav a { font-size: 16px; font-weight: 500; }

    
    .breadcrumbs-wrap { background-color: var(--bg-light); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
    .breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
    .breadcrumbs a:hover { color: var(--accent-color); }

    
    .tag-main { padding: 80px 0; }
    .tag-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
    .tag-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: var(--primary-color); }
    .tag-header span.badge { display: inline-block; padding: 6px 14px; background: rgba(29,123,255,0.1); color: var(--accent-color); font-weight: 700; border-radius: 50px; font-size: 14px; }

    .tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .article-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; height: 100%; }
    .article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
    .article-img { position: relative; width: 100%; padding-bottom: 56.25%; background: var(--border-color); overflow: hidden; }
    .article-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
    .article-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
    .article-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
    .article-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 50px; }
    .article-summary { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 60px; flex-grow: 1; }
    .article-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 14px; margin-top: auto; }
    .article-author { font-size: 13px; font-weight: 500; color: var(--text-dark); }
    .read-more { font-size: 13px; font-weight: 600; color: var(--accent-color); }

    
    .pagination-wrap { margin-top: 50px; display: flex; justify-content: center; gap: 8px; }
    .pagination-item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--white); font-weight: 500; font-size: 14px; }
    .pagination-item.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
    .pagination-item:hover:not(.active) { border-color: var(--accent-color); color: var(--accent-color); }

    
    footer { background-color: #111827; color: #BAC7D5; 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: 50px; }
    .footer-brand .logo span { color: var(--white); }
    .footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; }
    .footer-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { font-size: 14px; }
    .footer-links a:hover { color: var(--accent-color); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 15px; }
    .footer-bottom-links { display: flex; gap: 20px; }

    @media (max-width: 991px) {
      .tag-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .nav-list { display: none; }
      .menu-btn { display: block; }
      .tag-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
    }