﻿:root {
      --primary-color: rgb(96,165,250);
      --primary-hover: rgb(59,130,246);
      --text-main: #1e293b;
      --text-muted: #64748b;
      --bg-main: #f8fafc;
      --bg-card: #ffffff;
      --border-color: #e2e8f0;
      --max-width: 1200px;
    }
    * { 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(--bg-main); color: var(--text-main); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
    img { max-width: 100%; height: auto; }
    
    
    .site-header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
    .header-container { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 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; }
    .desktop-nav { display: flex; gap: 24px; align-items: center; }
    .desktop-nav a { font-weight: 500; font-size: 15px; color: var(--text-muted); }
    .desktop-nav a:hover, .desktop-nav a.active { color: var(--primary-color); }
    .drawer-toggle { display: none; background: none; border: none; 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; pointer-events: none; transition: opacity 0.3s ease; }
    .drawer-overlay.active { opacity: 1; pointer-events: auto; }
    .drawer-menu { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--bg-card); z-index: 1000; box-shadow: 2px 0 8px rgba(0,0,0,0.15); transition: left 0.3s ease; display: flex; flex-direction: column; }
    .drawer-menu.active { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border-color); }
    .drawer-close { background: none; border: none; cursor: pointer; color: var(--text-muted); }
    .drawer-nav { display: flex; flex-direction: column; padding: 20px 0; overflow-y: auto; }
    .drawer-nav a { padding: 12px 24px; font-size: 16px; font-weight: 500; border-left: 4px solid transparent; }
    .drawer-nav a:hover, .drawer-nav a.active { background: #f1f5f9; color: var(--primary-color); border-left-color: var(--primary-color); }

    
    .main-wrapper { max-width: var(--max-width); margin: 30px auto; padding: 0 20px; }
    .portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
    
    
    .intro-bar { background: linear-gradient(135deg, rgba(96,165,250,0.1) 0%, rgba(96,165,250,0.02) 100%); border: 1px solid rgba(96,165,250,0.2); border-radius: 12px; padding: 24px; margin-bottom: 30px; position: relative; overflow: hidden; }
    .intro-bar h1 { font-size: 24px; color: var(--text-main); margin-bottom: 8px; }
    .intro-bar p { color: var(--text-muted); font-size: 15px; max-width: 800px; }
    
    
    .section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); position: relative; }
    .section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--primary-color); }
    
    .article-list { display: flex; flex-direction: column; gap: 20px; }
    .post-card { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; padding: 16px; 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: 220px; height: 140px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: block; }
    .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 { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; min-width: 0; }
    .post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); align-items: center; }
    .post-meta span { display: inline-flex; align-items: center; gap: 4px; }
    .post-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 8px 0; }
    .post-title a:hover { color: var(--primary-color); }
    .post-desc { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
    .post-footer { display: flex; justify-content: space-between; align-items: center; }
    .read-more { font-size: 13px; font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; gap: 4px; }
    .read-more:hover { color: var(--primary-hover); }
    
    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
    .widget-title { font-size: 16px; font-weight: 700; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; }
    
    
    .hot-list { display: flex; flex-direction: column; gap: 12px; }
    .hot-item { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; padding-bottom: 10px; border-bottom: 1px dashed var(--border-color); }
    .hot-item:last-child { padding-bottom: 0; border: none; }
    .hot-num { width: 20px; height: 20px; border-radius: 4px; background: #e2e8f0; color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
    .hot-item:nth-child(1) .hot-num { background: rgba(96,165,250,0.2); color: var(--primary-color); }
    .hot-item:nth-child(2) .hot-num { background: rgba(96,165,250,0.15); color: var(--primary-color); }
    .hot-item:nth-child(3) .hot-num { background: rgba(96,165,250,0.1); color: var(--primary-color); }
    .hot-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .hot-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-title:hover { color: var(--primary-color); }
    .hot-meta { font-size: 11px; color: var(--text-muted); }

    
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-item { display: inline-block; padding: 6px 12px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 20px; font-size: 12px; color: var(--text-muted); }
    .tag-item:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
    
    
    .support-widget { background: linear-gradient(to bottom, #ffffff, #f0f7ff); text-align: center; }
    .support-widget p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
    .btn-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px; background: var(--primary-color); color: white; border-radius: 8px; font-weight: 600; text-align: center; }
    .btn-action:hover { background: var(--primary-hover); }

    
    .site-footer { background: #0f172a; color: #94a3b8; border-top: 1px solid #1e293b; padding: 60px 0 20px 0; margin-top: 60px; font-size: 14px; }
    .footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
    .footer-brand .logo span { color: #ffffff; }
    .footer-brand .brand-desc { margin-top: 15px; line-height: 1.6; color: #64748b; }
    .footer-links h4, .footer-info h4 { color: #f8fafc; font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; }
    .footer-links ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .footer-links a:hover { color: var(--primary-color); }
    .footer-info p { margin-bottom: 10px; }
    
    
    .friend-links { border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; padding: 20px 0; margin-bottom: 25px; }
    .friend-title { font-size: 14px; font-weight: 700; color: #f8fafc; margin-bottom: 12px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 15px; }
    .friend-content a { color: #64748b; transition: color 0.2s; }
    .friend-content a:hover { color: var(--primary-color); }
    
    .footer-bottom { text-align: center; font-size: 13px; color: #475569; border-top: 1px solid #1e293b; padding-top: 20px; }
    
    @media (max-width: 992px) {
      .portal-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .desktop-nav { display: none; }
      .drawer-toggle { display: block; }
      .post-card { flex-direction: column; }
      .post-thumb { width: 100%; height: 180px; }
      .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    }