﻿:root {
      --primary: rgb(202,138,4);
      --primary-hover: rgb(161,110,3);
      --primary-light: rgba(202,138,4,0.08);
      --bg: #f8fafc;
      --card-bg: #ffffff;
      --text: #1e293b;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
    a { color: inherit; text-decoration: none; }
    
    .header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
    .header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
    .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); white-space: nowrap; }
    .nav-desktop { display: flex; gap: 24px; align-items: center; }
    .nav-desktop a { font-weight: 500; font-size: 15px; }
    .nav-desktop a:hover { color: var(--primary); }
    .menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

    .drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; 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: 999; transition: 0.3s; padding: 20px; display: flex; flex-direction: column; }
    .drawer.active { left: 0; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }
    .drawer-nav a { font-size: 16px; font-weight: 500; }

    .breadcrumb { max-width: 1200px; margin: 20px auto 0; padding: 0 20px; font-size: 14px; color: var(--text-muted); }
    .breadcrumb a:hover { color: var(--primary); }

    .category-intro { max-width: 1200px; margin: 15px auto 25px; padding: 0 20px; }
    .intro-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 25px; }
    .intro-box h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
    .post-stream { display: flex; flex-direction: column; gap: 20px; }
    .post-card { background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border); padding: 20px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; box-shadow: var(--shadow); }
    .post-thumb { width: 100%; height: 130px; border-radius: 6px; overflow: hidden; background: #eee; }
    .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .post-body { display: flex; flex-direction: column; justify-content: space-between; }
    .post-meta { display: flex; gap: 15px; font-size: 13px; color: var(--text-muted); }
    .post-title { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; margin: 6px 0; }
    .post-title a:hover { color: var(--primary); }
    .post-summary { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
    .read-more { color: var(--primary); font-size: 14px; font-weight: 600; }

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

    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .widget { background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow); }
    .widget-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--primary); }
    
    .hot-list { display: flex; flex-direction: column; gap: 12px; }
    .hot-item { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
    .hot-item-title { font-size: 14px; font-weight: 500; }
    .hot-item-title:hover { color: var(--primary); }
    .hot-item-meta { font-size: 12px; color: var(--text-muted); }

    .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-cloud a { background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; font-size: 12px; color: var(--text-muted); }

    .footer { background: #0f172a; color: #94a3b8; margin-top: 50px; padding: 50px 0 20px; }
    .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
    .footer-brand .logo span { color: #fff; }
    .footer-brand p { margin-top: 15px; font-size: 14px; line-height: 1.6; }
    .footer-nav h4 { color: #fff; font-size: 16px; margin-bottom: 15px; }
    .footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
    .footer-nav a:hover { color: #fff; }
    
    .friend-links { max-width: 1200px; margin: 30px auto 0; padding: 20px 20px 0; border-top: 1px solid #1e293b; }
    .friend-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; }
    .friend-content a { color: #94a3b8; }
    .friend-content a:hover { color: #fff; }

    .copyright { max-width: 1200px; margin: 30px auto 0; padding: 20px 20px 0; border-top: 1px solid #1e293b; text-align: center; font-size: 13px; }

    @media (max-width: 768px) {
      .nav-desktop { display: none; }
      .menu-btn { display: block; }
      .container { grid-template-columns: 1fr; }
      .post-card { grid-template-columns: 1fr; }
      .post-thumb { height: 180px; }
      .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    }