﻿:root {
      --primary: rgb(255, 45, 85);
      --primary-hover: rgb(230, 30, 70);
      --bg-dark: #111116;
      --bg-light: #f8f9fa;
      --text-dark: #1f2937;
      --text-light: #f3f4f6;
      --text-muted: #6b7280;
      --border-color: #e5e7eb;
      --card-bg: #ffffff;
      --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: var(--font-main); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: color 0.3s; }
    a:hover { color: var(--primary); }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    
    .site-header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
    .header-container { 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: 18px; font-weight: 800; line-height: 1; color: var(--text-dark); white-space: nowrap; }
    .logo span::after { content: ' 吃瓜网'; color: var(--primary); font-size: 14px; font-weight: 500; }
    .desktop-nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
    .desktop-nav a { padding: 8px 4px; border-bottom: 2px solid transparent; }
    .desktop-nav a:hover { border-bottom-color: var(--primary); }
    .menu-toggle-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-dark); }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; display: none; opacity: 0; transition: opacity 0.3s; }
    .drawer-overlay.active { display: block; opacity: 1; }
    .mobile-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 1000; transition: left 0.3s ease; box-shadow: 4px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
    .mobile-drawer.active { left: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); }
    .drawer-close-btn { background: none; border: none; cursor: pointer; font-size: 24px; color: var(--text-muted); }
    .drawer-body { padding: 20px; overflow-y: auto; flex-grow: 1; }
    .mobile-nav { display: flex; flex-direction: column; gap: 16px; font-size: 16px; font-weight: 600; }
    .mobile-nav a { padding: 8px 0; border-bottom: 1px solid var(--bg-light); }

    
    .sub-nav-bar { background-color: var(--bg-dark); color: #fff; padding: 8px 0; font-size: 14px; }
    .sub-nav-content { display: flex; justify-content: space-between; align-items: center; }
    .sub-nav-keywords span { color: var(--primary); font-weight: bold; margin-right: 8px; }
    .sub-nav-keywords a { color: var(--text-light); margin-right: 12px; font-size: 13px; }

    
    .list-title-header { margin-bottom: 24px; }
    .list-title-header h1 { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
    .list-title-header p { font-size: 14px; color: var(--text-muted); }
    .list-title-header span { color: var(--primary); font-weight: bold; }

    .main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-bottom: 50px; }
    .main-content-flow { display: flex; flex-direction: column; gap: 24px; }

    
    .post-card { display: flex; background: var(--card-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s, box-shadow 0.3s; }
    .post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
    .post-thumb { width: 220px; height: 150px; flex-shrink: 0; overflow: hidden; position: relative; }
    .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .post-card:hover .post-thumb img { transform: scale(1.05); }
    .post-body { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
    .post-meta { display: flex; gap: 15px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; flex-wrap: wrap; }
    .post-meta span { display: flex; align-items: center; gap: 4px; }
    .post-meta a { color: var(--primary); font-weight: 500; }
    .post-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .post-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .post-footer { display: flex; justify-content: space-between; align-items: center; }
    .read-more { font-size: 13px; font-weight: bold; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
    .read-more::after { content: '→'; }

    
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
    .pagination a, .pagination span { display: inline-block; padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; background: #fff; }
    .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
    .pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: bold; }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border-color); padding: 20px; }
    .widget-title { font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
    
    .hot-list { display: flex; flex-direction: column; gap: 12px; }
    .hot-item { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px dashed var(--border-color); }
    .hot-item:last-child { border-bottom: none; padding-bottom: 0; }
    .hot-num { font-size: 13px; font-weight: bold; color: #fff; background: var(--text-muted); width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .hot-item:nth-child(-n+3) .hot-num { background: var(--primary); }
    .hot-info { flex-grow: 1; }
    .hot-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
    .hot-meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }

    
    .site-footer { background-color: var(--bg-dark); color: var(--text-light); padding: 50px 0 20px; border-top: 5px solid var(--primary); font-size: 14px; }
    .footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
    .footer-brand { display: flex; flex-direction: column; gap: 15px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand .logo span::after { content: ' 吃瓜社区'; color: var(--primary); }
    .footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
    .footer-links h4, .footer-info h4 { font-size: 16px; font-weight: bold; margin-bottom: 18px; color: #fff; position: relative; padding-bottom: 8px; }
    .footer-links h4::after, .footer-info h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
    .footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-links a { color: var(--text-muted); }
    .footer-links a:hover { color: #fff; }
    .footer-info p { color: var(--text-muted); margin-bottom: 10px; }
    .footer-info a { color: var(--primary); text-decoration: underline; }

    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; flex-direction: column; gap: 20px; }
    .friend-links { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 6px; }
    .friend-title { font-size: 13px; font-weight: bold; color: #fff; margin-bottom: 10px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 12px; }
    .friend-content a { font-size: 12px; color: var(--text-muted); }
    .friend-content a:hover { color: var(--primary); }
    .copyright { text-align: center; font-size: 12px; color: var(--text-muted); }

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