﻿:root {
      --primary-color: rgb(220, 38, 38);
      --glacier-blue: #0EA5E9;
      --deep-sea: #0B1329;
      --silver-white: #F8FAFC;
      --slate-700: #334155;
      --slate-900: #0F172A;
      --border-color: #E2E8F0;
      --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); background-color: var(--silver-white); color: var(--slate-900); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
    .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    
    header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
    .nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; }
    .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
    .logo img { display: block; height: 44px; 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(--slate-900); white-space: nowrap; }
    .nav-menu { display: flex; align-items: center; gap: 32px; }
    .nav-menu a { font-size: 16px; font-weight: 600; color: var(--slate-700); padding: 8px 0; position: relative; }
    .nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }
    .nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
    .nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
    .burger-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--slate-900); padding: 8px; }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .mobile-drawer { position: fixed; top: 0; left: 0; width: 320px; height: 100vh; background: white; z-index: 2000; box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15); transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; padding: 24px; }
    .drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
    .drawer-open .mobile-drawer { transform: translateX(0); }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .drawer-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--slate-700); }
    .drawer-menu { display: flex; flex-direction: column; gap: 20px; }
    .drawer-menu a { font-size: 18px; font-weight: 600; color: var(--slate-700); padding: 12px 16px; border-radius: 8px; background: var(--silver-white); }
    .drawer-menu a:hover, .drawer-menu a.active { background: var(--primary-color); color: white; }

    
    .category-hero { background: radial-gradient(circle at center, var(--deep-sea) 0%, #111827 100%); color: white; padding: 60px 0; text-align: center; }
    .category-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
    .category-hero p { font-size: 16px; color: var(--slate-300); max-width: 600px; margin: 0 auto; }

    
    .main-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; padding: 60px 0; }

    
    .list-articles { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .article-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; gap: 24px; transition: all 0.3s ease; }
    .article-card:hover { transform: translateY(-4px); border-color: var(--glacier-blue); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .article-card img { width: 240px; height: 160px; object-fit: cover; flex-shrink: 0; }
    .article-info { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
    .article-info h2 { font-size: 20px; font-weight: 800; color: var(--slate-900); margin-bottom: 10px; }
    .article-info h2 a:hover { color: var(--primary-color); }
    .article-summary { font-size: 14px; color: var(--slate-700); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .article-meta { display: flex; gap: 16px; font-size: 12px; color: var(--slate-700); align-items: center; }
    .article-meta span { display: inline-flex; align-items: center; gap: 4px; }
    .tag-pill { background: var(--glacier-light); color: #1D7BFF; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

    
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
    .page-link { padding: 10px 16px; border: 1px solid var(--border-color); background: white; border-radius: 8px; font-weight: 600; font-size: 14px; }
    .page-link:hover, .page-link.is-current { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

    
    .sidebar { display: flex; flex-direction: column; gap: 32px; }
    .widget { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
    .widget-title { font-size: 18px; font-weight: 800; color: var(--slate-900); margin-bottom: 16px; border-left: 4px solid var(--primary-color); padding-left: 12px; }
    .sidebar-hot-list { display: flex; flex-direction: column; gap: 16px; }
    .sidebar-hot-item { display: flex; gap: 12px; align-items: center; }
    .sidebar-hot-rank { font-size: 16px; font-weight: 800; color: var(--primary-color); width: 20px; }
    .sidebar-hot-title { font-size: 14px; font-weight: 600; }

    
    footer { background: var(--deep-sea); color: var(--slate-300); padding: 80px 0 30px; border-top: 4px solid var(--primary-color); }
    .footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 60px; }
    .footer-brand .logo span { color: white; }
    .footer-desc { margin-top: 20px; font-size: 14px; line-height: 1.8; color: var(--slate-300); }
    .footer-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 24px; position: relative; }
    .footer-col h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background-color: var(--primary-color); }
    .footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; }
    .footer-links a { font-size: 14px; }
    .footer-links a:hover { color: white; padding-left: 4px; }
    .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

    @media (max-width: 992px) {
      .main-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .nav-menu { display: none; }
      .burger-btn { display: block; }
      .article-card { flex-direction: column; }
      .article-card img { width: 100%; height: 200px; }
      .footer-grid { grid-template-columns: 1fr; gap: 32px; }
      .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    }