﻿:root { --primary: rgb(26,115,232); --bg-body: #f4f7fe; --text-main: #334155; --border: #e2e8f0; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        .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(--primary); white-space: nowrap; }

        .header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
        .desktop-nav { display: flex; gap: 28px; align-items: center; }
        .desktop-nav a:hover { color: var(--primary); }
        .mobile-btn { display: none; cursor: pointer; color: #333; }

        .drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s; }
        .drawer-mask.active { opacity: 1; visibility: visible; }
        .drawer { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #fff; z-index: 999; transition: 0.3s; display: flex; flex-direction: column; }
        .drawer.active { left: 0; }
        .drawer-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
        .drawer-nav { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
        .drawer-nav a { padding: 12px 0; border-bottom: 1px dashed var(--border); }

        .tag-header { background: #fff; padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; }
        .tag-title { font-size: 28px; color: #0f172a; display: flex; align-items: center; gap: 10px; }
        .tag-title::before { content: '#'; color: var(--primary); font-size: 32px; }
        .tag-count { font-size: 15px; color: #64748b; background: var(--bg-body); padding: 5px 15px; border-radius: 20px; }

        .art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
        .art-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s; background: #fff; }
        .art-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); transform: translateY(-4px); }
        .art-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
        .art-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .art-card:hover .art-img img { transform: scale(1.05); }
        .art-body { padding: 24px; }
        .art-title { font-size: 18px; margin-bottom: 12px; line-height: 1.4; }
        .art-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1e293b; }
        .art-desc { font-size: 14px; color: #64748b; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .art-meta { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; }

        .pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 60px; }
        .pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-weight: 500; }
        .pagination .active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
        .pagination .disabled { color: #cbd5e1; pointer-events: none; }

        .footer { background: #0f172a; color: #94a3b8; padding: 70px 0 20px; }
        .footer .logo span { color: #fff; }
        .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
        .footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 25px; }
        .footer-col ul { display: flex; flex-direction: column; gap: 12px; }
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; font-size: 14px; }

        @media(max-width: 992px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
        @media(max-width: 768px) { .desktop-nav { display: none; } .mobile-btn { display: block; } .art-grid, .footer-inner { grid-template-columns: 1fr; } .tag-header { flex-direction: column; gap: 15px; text-align: center; } }