﻿: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: 900px; margin: 40px auto; padding: 0 20px; }
    .tag-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; }
    .tag-header { text-align: center; margin-bottom: 35px; }
    .tag-header h1 { font-size: 28px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
    .tag-header p { color: var(--text-muted); }
    
    .tags-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
    .tag-large-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 30px; font-size: 15px; font-weight: 500; color: var(--text-main); }
    .tag-large-item:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
    .tag-large-item span { font-size: 12px; color: var(--text-muted); }
    .tag-large-item:hover span { color: rgba(255,255,255,0.8); }

    
    .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: 768px) {
      .desktop-nav { display: none; }
      .drawer-toggle { display: block; }
      .tag-container { padding: 20px; }
      .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    }