﻿:root {
      --primary-color: rgb(98, 114, 164);
      --primary-hover: rgba(98, 114, 164, 0.85);
      --bg-color: #f8f9fc;
      --card-bg: #ffffff;
      --text-main: #2d3748;
      --text-muted: #718096;
      --border-color: #e2e8f0;
      --max-width: 1200px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
    a:hover { color: var(--primary-color); }
    img { max-width: 100%; height: auto; display: block; }
    .container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
    
    header { background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
    .header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
    .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; }
    .nav-desktop { display: flex; gap: 24px; align-items: center; }
    .nav-desktop a { font-weight: 500; font-size: 15px; color: var(--text-main); }
    .nav-desktop a.active, .nav-desktop a:hover { color: var(--primary-color); }
    .menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); }
    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .drawer-overlay.open { opacity: 1; visibility: visible; }
    .drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--card-bg); z-index: 1000; box-shadow: 2px 0 10px rgba(0,0,0,0.1); transition: all 0.3s ease; display: flex; flex-direction: column; padding: 20px; }
    .drawer.open { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 20px; }
    .drawer-nav a { font-size: 16px; font-weight: 500; }

    
    .breadcrumbs-bar { background: var(--card-bg); border-bottom: 1px solid var(--border-color); padding: 15px 0; }
    .breadcrumbs { font-size: 14px; color: var(--text-muted); }
    .breadcrumbs a:hover { color: var(--primary-color); }

    
    .cat-banner { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
    .cat-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
    .cat-desc { font-size: 14px; color: var(--text-muted); }

    
    .portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; padding-bottom: 50px; }
    .section-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; padding-left: 12px; border-left: 4px solid var(--primary-color); }
    .article-stream { display: flex; flex-direction: column; gap: 20px; }
    .post-card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; display: flex; transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
    .post-thumb { width: 240px; min-width: 240px; position: relative; overflow: hidden; background: #e2e8f0; }
    .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
    .post-card:hover .post-thumb img { transform: scale(1.05); }
    .post-body { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
    .post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
    .post-body h2 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text-main); }
    .post-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .read-more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--primary-color); }

    
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
    .pagination a, .pagination 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); background: #fff; font-size: 14px; }
    .pagination a:hover, .pagination .is-current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
    .pagination .is-disabled { opacity: 0.5; cursor: not-allowed; }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); padding: 24px; }
    .widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); position: relative; }
    .widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--primary-color); }
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-cloud a { font-size: 12px; background: #f1f3f9; color: var(--text-main); padding: 4px 10px; border-radius: 4px; }
    .tag-cloud a:hover { background: var(--primary-color); color: #fff; }
    .side-download { background: linear-gradient(135deg, var(--primary-color) 0%, #4a5568 100%); color: #fff; text-align: center; }
    .side-download .widget-title::after { background: #fff; }
    .side-download p { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
    .side-btn { display: block; background: #fff; color: var(--primary-color); font-weight: 600; padding: 10px; border-radius: 6px; font-size: 14px; }

    footer { background: #1a202c; color: #a0aec0; padding: 60px 0 20px; font-size: 14px; margin-top: auto; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand p { margin-top: 15px; line-height: 1.6; }
    .footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
    .footer-col ul { list-style: none; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul a:hover { color: #fff; }
    .friend-links { border-top: 1px solid #2d3748; padding: 20px 0; margin-bottom: 20px; }
    .friend-title { font-weight: 600; color: #fff; margin-bottom: 10px; font-size: 13px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
    .friend-content a { color: #a0aec0; }
    .friend-content a:hover { color: #fff; }
    .footer-bottom { border-top: 1px solid #2d3748; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; font-size: 12px; }

    @media (max-width: 992px) {
      .portal-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .nav-desktop { display: none; }
      .menu-toggle { display: block; }
      .post-card { flex-direction: column; }
      .post-thumb { width: 100%; height: 180px; }
      .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    }