﻿:root {
      --primary: rgb(255,149,0);
      --primary-hover: rgb(230,135,0);
      --primary-light: rgba(255,149,0,0.1);
      --bg: #f8f9fa;
      --card-bg: #ffffff;
      --text-main: #212529;
      --text-muted: #6c757d;
      --border: #e9ecef;
      --shadow: 0 4px 20px rgba(0,0,0,0.05);
      --radius: 12px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text-main); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
    img { max-width: 100%; height: auto; }
    ul { list-style: none; }

    
    .header { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
    .header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 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: 18px; font-weight: 800; line-height: 1; color: var(--text-main); white-space: nowrap; }
    .nav-desktop { display: flex; align-items: center; gap: 24px; }
    .nav-desktop a { font-weight: 500; font-size: 15px; color: var(--text-main); padding: 6px 0; border-bottom: 2px solid transparent; }
    .nav-desktop a:hover { color: var(--primary); border-bottom-color: var(--primary); }
    .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; pointer-events: none; transition: opacity 0.3s ease; }
    .drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--card-bg); z-index: 1000; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 25px 20px; box-shadow: 4px 0 20px rgba(0,0,0,0.15); display: flex; flex-direction: column; gap: 30px; }
    .drawer.active { left: 0; }
    .drawer-overlay.active { opacity: 1; pointer-events: auto; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
    .drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
    .drawer-nav { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
    .drawer-nav a { font-size: 16px; font-weight: 500; padding: 10px 12px; border-radius: var(--radius); }
    .drawer-nav a:hover { background: var(--primary-light); color: var(--primary); }

    
    .site-info-bar { background: linear-gradient(135deg, #111, #222); color: #fff; padding: 40px 20px; text-align: center; border-bottom: 4px solid var(--primary); }
    .site-info-container { max-width: 800px; margin: 0 auto; }
    .site-info-bar h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
    .site-info-bar p { font-size: 16px; color: #ccc; max-width: 600px; margin: 0 auto 20px; }
    .site-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .site-tags span { background: rgba(255,149,0,0.15); border: 1px solid var(--primary); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 13px; }

    
    .main-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
    .content-area { display: flex; flex-direction: column; gap: 30px; }
    .section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--primary); display: flex; align-items: center; justify-content: space-between; }
    
    
    .article-list { display: flex; flex-direction: column; gap: 24px; }
    .post-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; grid-template-columns: 240px 1fr; transition: transform 0.3s ease; }
    .post-card:hover { transform: translateY(-3px); }
    .post-thumb { position: relative; height: 100%; min-height: 180px; overflow: hidden; display: block; }
    .post-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; left: 0; top: 0; }
    .post-body { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
    .post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
    .post-meta span { display: flex; align-items: center; gap: 4px; }
    .post-meta a { color: var(--primary); }
    .post-body h2 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
    .post-body h2 a:hover { color: var(--primary); }
    .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 { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
    .read-more:hover { color: var(--primary-hover); }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
    .widget-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; position: relative; }
    .widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--primary); }
    
    
    .hot-list { display: flex; flex-direction: column; gap: 15px; }
    .hot-item { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
    .hot-item:last-child { border: none; padding-bottom: 0; }
    .hot-item span { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-item:hover span { color: var(--primary); }
    .hot-item small { font-size: 11px; color: var(--text-muted); }

    
    .tag-cloud-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-cloud-list a { display: inline-block; font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; color: var(--text-main); }
    .tag-cloud-list a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

    
    .promo-widget { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; border: none; }
    .promo-widget .widget-title::after { background: #fff; }
    .promo-widget p { font-size: 14px; opacity: 0.9; margin-bottom: 15px; }
    .promo-btn { display: block; text-align: center; background: #fff; color: var(--primary); font-weight: 700; padding: 10px; border-radius: 6px; font-size: 14px; transition: transform 0.3s; }
    .promo-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

    
    .footer { background: #111; color: #888; padding: 60px 20px 20px; font-size: 14px; border-top: 4px solid var(--primary); }
    .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; border-bottom: 1px solid #222; padding-bottom: 40px; }
    .footer-brand { display: flex; flex-direction: column; gap: 15px; }
    .footer-brand .logo span { color: #fff; }
    .footer-section h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
    .footer-section h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
    .footer-links a:hover { color: #fff; padding-left: 4px; }
    .footer-contact p { margin-bottom: 8px; font-size: 13px; }
    .friend-links { max-width: 1200px; margin: 20px auto; padding: 20px 0; border-bottom: 1px solid #222; }
    .friend-title { font-weight: 700; color: #fff; margin-bottom: 10px; font-size: 14px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 15px; }
    .friend-content a { color: #888; font-size: 13px; }
    .friend-content a:hover { color: var(--primary); }
    .footer-bottom { max-width: 1200px; margin: 20px auto 0; text-align: center; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }

    
    @media (max-width: 992px) {
      .main-wrapper { grid-template-columns: 1fr; gap: 40px; }
      .post-card { grid-template-columns: 1fr; }
      .post-thumb { height: 200px; min-height: auto; }
      .footer-container { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .nav-desktop { display: none; }
      .menu-toggle { display: block; }
      .footer-container { grid-template-columns: 1fr; gap: 30px; }
      .footer-bottom { flex-direction: column; text-align: center; }
    }