﻿:root { --primary: rgb(79,70,229); --primary-hover: rgb(67,56,202); --primary-light: rgba(79,70,229,0.1); --text-dark: #111827; --text-gray: #4B5563; --text-light: #9CA3AF; --bg-body: #F9FAFB; --bg-white: #FFFFFF; --border-color: #E5E7EB; --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05); --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1); --radius-md: 0.5rem; --radius-lg: 1rem; --transition: all 0.3s ease; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background-color: var(--bg-body); color: var(--text-dark); line-height: 1.6; }
        a { text-decoration: none; color: inherit; transition: var(--transition); }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
        
        .header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border-color); }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
        .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: 1.25rem; font-weight: 800; line-height: 1; color: var(--text-dark); white-space: nowrap; }
        .desktop-nav { display: none; }
        .desktop-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-gray); margin-left: 2rem; position: relative; }
        .desktop-nav a:hover { color: var(--primary); }
        .mobile-toggle { display: block; cursor: pointer; color: var(--text-dark); }
        .mobile-toggle svg { width: 28px; height: 28px; }
        
        .drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; opacity: 0; visibility: hidden; transition: var(--transition); }
        .drawer-overlay.active { opacity: 1; visibility: visible; }
        .drawer { position: fixed; top: 0; left: -300px; bottom: 0; width: 280px; background: var(--bg-white); z-index: 100; transition: transform 0.3s ease-in-out; display: flex; flex-direction: column; }
        .drawer.active { transform: translateX(300px); }
        .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
        .drawer-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-gray); }
        .drawer-nav { padding: 1rem 0; overflow-y: auto; }
        .drawer-nav a { display: block; padding: 0.875rem 1.5rem; color: var(--text-dark); font-weight: 500; }
        
        .footer { background: #111827; color: #D1D5DB; padding: 4rem 0 2rem; }
        .footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
        .footer-brand .logo span { color: #fff; }
        .footer-brand p { margin-top: 1rem; font-size: 0.875rem; color: #9CA3AF; max-width: 300px; }
        .footer-links h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
        .footer-links ul li { margin-bottom: 0.75rem; font-size: 0.875rem; color: #9CA3AF; }
        .footer-links ul li a:hover { color: var(--primary); }
        .footer-bottom { border-top: 1px solid #374151; padding-top: 2rem; text-align: center; font-size: 0.875rem; color: #6B7280; }

        @media (min-width: 768px) {
            .desktop-nav { display: block; }
            .mobile-toggle { display: none; }
            .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
        }

        
        .tag-hero { background: var(--bg-white); padding: 4rem 0; text-align: center; border-bottom: 1px solid var(--border-color); }
        .tag-hero h1 { font-size: 2.25rem; color: var(--primary); margin-bottom: 0.5rem; display: inline-flex; align-items: center; gap: 10px; }
        .tag-hero h1::before { content: '#'; color: var(--text-light); }
        .tag-hero p { color: var(--text-gray); font-size: 1rem; }
        
        .tag-list-wrap { padding: 4rem 0; }
        .grid-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
        .card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); display: flex; flex-direction: column; }
        .card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
        .card-img { width: 100%; height: 200px; overflow: hidden; }
        .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .card:hover .card-img img { transform: scale(1.05); }
        .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
        .card-title { font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.4; }
        .card-desc { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-light); border-top: 1px solid var(--border-color); padding-top: 1rem; }

        .pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
        .pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--border-color); background: var(--bg-white); color: var(--text-gray); font-size: 0.875rem; }
        .pagination a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
        .pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

        @media (min-width: 768px) {
            .grid-cards { grid-template-columns: repeat(3, 1fr); }
        }