﻿:root {
      --primary-color: rgb(14, 116, 144);
      --primary-hover: rgb(15, 118, 110);
      --text-main: #1F2937;
      --text-muted: #6B7280;
      --bg-light: #F9FAFB;
      --border-color: #E5E7EB;
      --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main); line-height: 1.6; background: #fff; }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
    
    
    header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
    .header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
    .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: 20px; font-weight: 800; line-height: 1; color: var(--text-main); white-space: nowrap; }
    .logo .fallback-txt { display: none; font-size: 18px; font-weight: 800; color: var(--primary-color); }
    
    nav.nav-desktop { display: flex; align-items: center; gap: 24px; }
    nav.nav-desktop a { font-size: 15px; font-weight: 500; color: var(--text-main); }
    nav.nav-desktop a:hover { color: var(--primary-color); }
    
    .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
    .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-main); margin: 5px 0; transition: 0.3s; }
    
    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 199; opacity: 0; visibility: hidden; transition: 0.3s; }
    .drawer-overlay.active { opacity: 1; visibility: visible; }
    .drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 200; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: 0.3s ease-in-out; display: flex; flex-direction: column; padding: 20px; }
    .drawer.active { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
    .drawer-nav { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; flex-grow: 1; }
    .drawer-nav a { font-size: 16px; font-weight: 500; color: var(--text-main); padding: 8px 0; border-bottom: 1px dashed var(--bg-light); }
    .drawer-nav a:hover { color: var(--primary-color); }

    
    .tags-hero { background: linear-gradient(135deg, var(--primary-color) 0%, #155e75 100%); color: #fff; padding: 60px 20px; text-align: center; }
    .tags-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
    .tags-hero p { font-size: 16px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

    
    .tag-stream-padding { padding: 60px 20px; }
    .tag-stream-container { max-width: 1200px; margin: 0 auto; }
    
    .tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .article-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: 0.3s; }
    .article-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
    .article-img { width: 100%; height: 200px; object-fit: cover; background: #e5e7eb; }
    .article-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
    .article-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
    .article-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; line-height: 1.4; }
    .article-card h3 a:hover { color: var(--primary-color); }
    .article-summary { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
    
    
    .pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
    .pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border-color); font-size: 14px; font-weight: 500; }
    .pagination-wrap a:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .pagination-wrap .current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

    
    footer { background: #111827; color: #9CA3AF; padding: 60px 20px 30px; font-size: 14px; }
    .footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand p { margin-top: 15px; line-height: 1.6; }
    .footer-column h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
    .footer-column ul { list-style: none; }
    .footer-column ul li { margin-bottom: 10px; }
    .footer-column ul li a:hover { color: #fff; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid #1F2937; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
    .footer-links { display: flex; gap: 20px; }
    .footer-links a:hover { color: #fff; }

    
    @media (max-width: 1024px) {
      .tag-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .nav-desktop { display: none; }
      .nav-toggle { display: block; }
      .tag-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; text-align: center; }
    }