﻿:root { --primary-color: rgb(189,147,249); --primary-hover: #cda8fa; --bg-base: #111116; --bg-card: #1a1a24; --text-main: #f8f8f2; --text-muted: #8b8b9f; --border-color: rgba(255, 255, 255, 0.08); --radius-md: 12px; --transition: all 0.3s ease; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background-color: var(--bg-base); color: var(--text-main); line-height: 1.8; }
        a { text-decoration: none; color: inherit; transition: var(--transition); }
        ul, li { list-style: none; }
        img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
        .container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
        
        .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); }
        .btn-primary { background-color: var(--primary-color); color: #000; }

        
        .header { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: rgba(17, 17, 22, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 100; display: flex; align-items: center; }
        .header-inner { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 24px; 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: 36px; 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; }
        .nav-desktop { display: flex; align-items: center; gap: 32px; }
        .nav-desktop a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
        .nav-desktop a:hover { color: var(--primary-color); }
        .header-actions { display: flex; align-items: center; gap: 16px; }
        .menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }

        
        .drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); }
        .drawer { position: fixed; top: 0; left: -300px; bottom: 0; width: 280px; background: var(--bg-base); border-right: 1px solid var(--border-color); z-index: 1000; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
        .drawer.active { transform: translateX(300px); }
        .drawer-overlay.active { opacity: 1; visibility: visible; }
        .drawer-header { padding: 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .drawer-close { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; }
        .drawer-nav { padding: 24px; overflow-y: auto; flex: 1; }
        .drawer-nav a { display: block; padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--border-color); color: var(--text-main); }

        
        .article-wrap { margin-top: 100px; padding-bottom: 60px; }
        .breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
        .breadcrumb a:hover { color: var(--primary-color); }
        
        .article-header { border-bottom: 1px solid var(--border-color); padding-bottom: 24px; margin-bottom: 32px; }
        .article-title { font-size: 36px; font-weight: bold; margin-bottom: 16px; line-height: 1.3; }
        .article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-muted); align-items: center; }
        .article-meta-item { display: flex; align-items: center; gap: 6px; }
        .article-tags { display: flex; gap: 8px; }
        .article-tags a { padding: 4px 10px; background: rgba(189,147,249,0.1); color: var(--primary-color); border-radius: 4px; font-size: 12px; }

        .article-content { font-size: 16px; color: #ddd; }
        .article-content p { margin-bottom: 24px; }
        .article-content h2, .article-content h3 { color: var(--text-main); margin: 40px 0 20px; }
        .article-content img { margin: 32px auto; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
        .article-content blockquote { border-left: 4px solid var(--primary-color); padding-left: 16px; color: var(--text-muted); font-style: italic; background: var(--bg-card); padding: 16px; border-radius: 0 8px 8px 0; }

        .article-footer { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border-color); }
        .prev-next { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
        .prev-next a { flex: 1; padding: 20px; background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .prev-next a:hover { border-color: var(--primary-color); }
        .pn-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
        .pn-title { font-size: 16px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .pn-right { text-align: right; }

        
        .related-section { margin-top: 40px; }
        .related-title { font-size: 24px; margin-bottom: 24px; padding-left: 12px; border-left: 4px solid var(--primary-color); }
        .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .rel-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .rel-card:hover { border-color: var(--primary-color); transform: translateY(-4px); }
        .rel-img { width: 100%; height: 160px; object-fit: cover; }
        .rel-body { padding: 16px; }
        .rel-title { font-size: 16px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        
        .footer { background: #0a0a0f; border-top: 1px solid var(--border-color); padding: 80px 0 40px; margin-top: 60px; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto 64px; padding: 0 24px; }
        .footer-brand p { color: var(--text-muted); margin-top: 20px; font-size: 14px; max-width: 320px; }
        .footer-title { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
        .footer-links a:hover { color: var(--primary-color); }
        .footer-bottom { padding-top: 32px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); max-width: 1280px; margin: 0 auto; padding: 32px 24px 0; }

        @media (max-width: 768px) {
            .nav-desktop, .header-actions .btn { display: none; }
            .menu-toggle { display: block; }
            .article-title { font-size: 28px; }
            .prev-next { flex-direction: column; }
            .pn-right { text-align: left; }
            .related-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; gap: 32px; }
        }