﻿:root { --primary: rgb(52,199,89); --primary-hover: #29b34a; --primary-light: rgba(52,199,89,0.08); --bg-color: #f8fafc; --text-main: #0f172a; --text-muted: #64748b; --border-color: #e2e8f0; --white: #ffffff; --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: var(--font-main); color: var(--text-main); background-color: var(--bg-color); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
        a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
        
        .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
        .logo img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; flex-shrink: 0; }
        .logo span { display: inline-block; font-size: 22px; font-weight: 800; line-height: 1; color: var(--text-main); white-space: nowrap; letter-spacing: -0.5px;}

        .site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
        .desktop-nav .nav-list { display: flex; gap: 32px; }
        .desktop-nav a { font-size: 16px; font-weight: 500; color: var(--text-muted); position: relative; }
        .desktop-nav a:hover { color: var(--primary); }
        .desktop-nav a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
        .desktop-nav a:hover::after { width: 100%; }
        
        .header-actions { display: flex; align-items: center; gap: 16px; }
        .btn-primary { background: var(--primary); color: var(--white); padding: 10px 24px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 14px rgba(52,199,89,0.3); display: inline-block;}
        .btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52,199,89,0.4); color: var(--white); }
        .btn-outline { border: 1px solid var(--border-color); padding: 10px 24px; border-radius: 8px; font-weight: 600; background: var(--white); color: var(--text-main); display: inline-block;}
        .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

        .mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; width: 30px; }
        .mobile-menu-toggle span { display: block; width: 100%; height: 3px; background: var(--text-main); border-radius: 2px; transition: 0.3s; }
        .mobile-drawer { position: fixed; inset: 0; z-index: 999; visibility: hidden; opacity: 0; transition: 0.3s; }
        .mobile-drawer.active { visibility: visible; opacity: 1; }
        .drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
        .drawer-content { position: absolute; top: 0; left: 0; bottom: 0; width: 280px; background: var(--white); transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
        .mobile-drawer.active .drawer-content { transform: translateX(0); }
        .drawer-header { padding: 24px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .drawer-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); }
        .drawer-nav { padding: 20px; flex: 1; overflow-y: auto; }
        .drawer-nav li { margin-bottom: 16px; }
        .drawer-nav a { display: block; font-size: 18px; font-weight: 500; color: var(--text-main); padding: 8px 0; border-bottom: 1px dashed var(--border-color); }

        .site-footer { background: var(--white); border-top: 1px solid var(--border-color); padding: 80px 0 20px; margin-top: auto; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
        .footer-brand .brand-desc { margin-top: 20px; color: var(--text-muted); font-size: 15px; max-width: 300px; }
        .footer-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; color: var(--text-main); }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a { color: var(--text-muted); font-size: 15px; }
        .footer-links a:hover { color: var(--primary); padding-left: 5px; }
        .footer-contact p { color: var(--text-muted); margin-bottom: 12px; font-size: 15px; }
        .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; text-align: center; color: #94a3b8; font-size: 14px; }

        
        .tag-info-bar { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin: 40px auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
        .tag-name-box { display: flex; align-items: center; gap: 16px; }
        .tag-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
        .tag-name-box h1 { font-size: 28px; font-weight: 800; }
        .tag-name-box h1 span { color: var(--primary); }
        .tag-stat { background: var(--bg-color); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 30px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
        .tag-stat strong { color: var(--primary); font-size: 18px; margin: 0 4px; }

        .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
        .post-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; display: flex; flex-direction: column; }
        .post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--primary-light); }
        .post-img { position: relative; height: 220px; display: block; overflow: hidden; }
        .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .post-card:hover .post-img img { transform: scale(1.05); }
        .post-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
        .post-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .post-title a:hover { color: var(--primary); }
        .post-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
        .post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #94a3b8; border-top: 1px dashed var(--border-color); padding-top: 16px; }

        .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: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--border-color); font-weight: 500; transition: 0.2s; }
        .pagination a:hover { border-color: var(--primary); color: var(--primary); }
        .pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }
        .pagination .disabled { opacity: 0.5; pointer-events: none; }

        @media(max-width: 1024px) {
            .article-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
        }
        @media(max-width: 768px) {
            .desktop-nav, .header-actions .btn-outline { display: none; }
            .mobile-menu-toggle { display: flex; }
            .tag-info-bar { flex-direction: column; text-align: center; }
            .tag-name-box { flex-direction: column; }
            .article-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; text-align: center; }
            .footer-links a:hover { padding-left: 0; }
            .logo { justify-content: center; }
            .drawer-header .logo { justify-content: flex-start; }
        }