﻿:root {
      --primary: rgb(241, 250, 140);
      --primary-dark: #d2db6a;
      --bg-dark: #121214;
      --bg-light: #f8f9fa;
      --text-dark: #1a1a1e;
      --text-light: #f5f5f7;
      --text-gray: #6e6e73;
      --border-color: #e5e5ea;
      --accent-color: #ff3e6c;
      --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }

    * { 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-light); color: var(--text-dark); line-height: 1.6; }
    a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

    
    .site-header { background: var(--bg-dark); color: var(--text-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .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; border-radius: 6px; }
    .logo span { display: inline-block; font-size: 20px; font-weight: 800; line-height: 1; color: var(--primary); white-space: nowrap; letter-spacing: 0.5px; }

    .desktop-nav { display: flex; align-items: center; gap: 24px; }
    .desktop-nav a { font-size: 15px; font-weight: 600; color: #d1d1d6; padding: 6px 12px; border-radius: 4px; }
    .desktop-nav a:hover, .desktop-nav a.active { color: var(--text-dark); background: var(--primary); }

    .drawer-trigger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 5px; }
    .drawer-trigger span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: 0.3s; }

    
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 101; display: none; opacity: 0; transition: opacity 0.3s; }
    .drawer-overlay.active { display: block; opacity: 1; }
    .drawer-menu { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--bg-dark); color: var(--text-light); z-index: 102; padding: 20px; transition: left 0.3s ease; display: flex; flex-direction: column; gap: 30px; }
    .drawer-menu.active { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
    .drawer-close { background: none; border: none; color: var(--text-light); font-size: 28px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }
    .drawer-nav a { font-size: 16px; font-weight: 600; padding: 10px; border-radius: 4px; color: #d1d1d6; }
    .drawer-nav a:hover { background: var(--primary); color: var(--text-dark); }

    
    .breadcrumb-wrapper { background: #fff; border-bottom: 1px solid var(--border-color); padding: 12px 0; }
    .breadcrumb-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; font-size: 13px; color: var(--text-gray); }
    .breadcrumb-container a { color: var(--text-dark); }
    .breadcrumb-container a:hover { color: var(--accent-color); }

    
    .main-container { max-width: 1200px; margin: 40px auto 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
    
    
    .article-wrap { background: #fff; border-radius: 12px; padding: 35px; box-shadow: var(--card-shadow); }
    .article-header { border-bottom: 1px solid var(--border-color); padding-bottom: 25px; margin-bottom: 25px; }
    .article-header h1 { font-size: 28px; font-weight: 800; color: var(--text-dark); line-height: 1.4; margin-bottom: 15px; }
    .article-meta-info { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-gray); flex-wrap: wrap; }
    .article-meta-info span { display: inline-flex; align-items: center; gap: 6px; }

    .article-featured-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
    
    .article-content { font-size: 16px; color: #1c1c1e; line-height: 1.8; }
    .article-content p { margin-bottom: 20px; }
    .article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

    
    .article-tags-block { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .article-tags-block .label { font-size: 13px; font-weight: bold; color: var(--text-dark); }
    .article-tags-block a { background: var(--bg-light); border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
    .article-tags-block a:hover { background: var(--primary); border-color: var(--primary-dark); }

    
    .article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border-color); }
    .neighbor-item { display: flex; flex-direction: column; gap: 6px; }
    .neighbor-item .hint { font-size: 11px; text-transform: uppercase; color: var(--text-gray); font-weight: bold; }
    .neighbor-item .title { font-size: 14px; font-weight: 600; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .neighbor-item .title:hover { color: var(--accent-color); }
    .neighbor-item.right { text-align: right; }

    
    .related-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--primary-dark); }
    .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .related-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.3s; display: flex; flex-direction: column; }
    .related-card:hover { transform: translateY(-3px); }
    .related-thumb { height: 140px; overflow: hidden; }
    .related-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .related-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .related-body h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
    .related-body h3 a:hover { color: var(--accent-color); }
    .related-meta { font-size: 11px; color: var(--text-gray); }

    
    .sidebar { display: flex; flex-direction: column; gap: 30px; }
    .sidebar-widget { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--card-shadow); }
    .widget-title { font-size: 18px; font-weight: 800; color: var(--text-dark); padding-bottom: 12px; border-bottom: 2px solid var(--primary-dark); margin-bottom: 15px; position: relative; }
    
    .hot-list { display: flex; flex-direction: column; gap: 15px; }
    .hot-item { display: flex; gap: 12px; 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-rank { font-size: 16px; font-weight: 800; color: var(--text-gray); min-width: 24px; text-align: center; }
    .hot-item:nth-child(1) .hot-rank { color: #ff3b30; }
    .hot-item:nth-child(2) .hot-rank { color: #ff9500; }
    .hot-item:nth-child(3) .hot-rank { color: #ffcc00; }
    .hot-info { display: flex; flex-direction: column; gap: 4px; }
    .hot-info h3 { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-info h3 a:hover { color: var(--accent-color); }
    .hot-meta { font-size: 11px; color: var(--text-gray); }

    
    .site-footer { background: var(--bg-dark); color: #8e8e93; font-size: 14px; margin-top: 60px; border-top: 5px solid var(--primary); }
    .footer-container { max-width: 1200px; margin: 0 auto; padding: 50px 20px 20px 20px; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 30px; }
    .footer-brand .logo { margin-bottom: 15px; }
    .footer-brand .brand-desc { font-size: 13px; line-height: 1.6; color: #aeaeb2; }
    .footer-grid h4 { color: var(--text-light); font-size: 16px; margin-bottom: 20px; font-weight: 700; position: relative; }
    .footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-grid ul a:hover { color: var(--primary); }
    
    .friend-links { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; }
    .friend-title { font-size: 15px; font-weight: bold; color: var(--text-light); margin-bottom: 10px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 15px; }
    .friend-content a { color: #8e8e93; font-size: 13px; }
    .friend-content a:hover { color: var(--primary); }

    .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 12px; color: #636366; }

    @media (max-width: 992px) {
      .main-container { grid-template-columns: 1fr; }
      .drawer-trigger { display: flex; }
      .desktop-nav { display: none; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .article-neighbors { grid-template-columns: 1fr; }
      .article-neighbors .neighbor-item.right { text-align: left; }
      .footer-grid { grid-template-columns: 1fr; gap: 30px; }
      .footer-bottom { flex-direction: column; text-align: center; }
    }