﻿:root {
            --primary-color: rgb(79, 70, 229);
            --primary-hover: rgb(67, 56, 202);
            --text-main: #1F2937;
            --text-muted: #6B7280;
            --bg-light: #F9FAFB;
            --border-color: #E5E7EB;
            --container-width: 1200px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--text-main);
            background-color: #fff;
            line-height: 1.8;
        }

        a {
            color: inherit;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        .container {
            width: 100%;
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 20px;
        }

        
        header {
            background-color: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(8px);
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

        .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: #111;
            white-space: nowrap;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .nav-menu a {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-main);
        }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .nav-action {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-1px);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
        }

        .mobile-menu-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--text-main);
            margin: 5px 0;
            transition: 0.3s;
        }

        
        .drawer {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background-color: white;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: left 0.3s ease;
            display: flex;
            flex-direction: column;
            padding: 30px 20px;
        }

        .drawer.open {
            left: 0;
        }

        .drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 40px;
        }

        .drawer-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .drawer-menu {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .drawer-menu a {
            font-size: 18px;
            font-weight: 500;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }

        .drawer-overlay.show {
            display: block;
        }

        
        .breadcrumb-wrapper {
            background-color: var(--bg-light);
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .breadcrumb {
            display: flex;
            gap: 8px;
            font-size: 14px;
            color: var(--text-muted);
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        
        .detail-layout {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 40px;
            margin: 60px 0;
        }

        .article-main {
            background: white;
            padding-right: 20px;
        }

        .article-header {
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 30px;
            margin-bottom: 30px;
        }

        .article-header h1 {
            font-size: 32px;
            font-weight: 800;
            line-height: 1.4;
            margin-bottom: 20px;
            color: #111827;
        }

        .article-head-meta {
            display: flex;
            gap: 20px;
            color: var(--text-muted);
            font-size: 14px;
            flex-wrap: wrap;
        }

        
        .content-body {
            color: #374151;
            font-size: 16px;
            margin-bottom: 50px;
        }

        .content-body p {
            margin-bottom: 25px;
        }

        .content-body h2 {
            font-size: 24px;
            font-weight: 700;
            color: #111827;
            margin: 40px 0 20px 0;
        }

        .content-body img {
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        
        .article-tags {
            display: flex;
            gap: 10px;
            align-items: center;
            border-top: 1px solid var(--border-color);
            padding-top: 25px;
            margin-bottom: 40px;
        }

        .article-tags span {
            font-weight: bold;
            font-size: 14px;
        }

        .tag-btn {
            background-color: var(--bg-light);
            border: 1px solid var(--border-color);
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 13px;
        }

        .tag-btn:hover {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        
        .post-nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            padding: 30px 0;
            margin-bottom: 50px;
        }

        .post-nav-item span {
            display: block;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 5px;
        }

        .post-nav-item a {
            font-weight: bold;
            font-size: 15px;
        }

        .post-nav-item a:hover {
            color: var(--primary-color);
        }

        .post-nav-item.next {
            text-align: right;
        }

        
        .related-section {
            margin-bottom: 60px;
        }

        .related-title {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 30px;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

        .related-card {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            gap: 15px;
            padding: 15px;
            align-items: center;
        }

        .related-img {
            width: 100px;
            height: 75px;
            background-color: #eee;
            border-radius: 4px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .related-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .related-info h4 {
            font-size: 14px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .related-info h4 a:hover {
            color: var(--primary-color);
        }

        
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .widget {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 25px;
        }

        .widget-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .widget-title::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-color);
        }

        .widget-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .widget-list li a {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }

        .widget-list li a:hover {
            color: var(--primary-color);
        }

        
        footer {
            background-color: #0b0f19;
            color: #9ca3af;
            padding: 80px 0 40px 0;
            font-size: 14px;
            border-top: 1px solid #1f2937;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr repeat(3, 1fr);
            gap: 40px;
            margin-bottom: 60px;
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .footer-brand .logo span {
            color: white;
        }

        .footer-brand p {
            line-height: 1.8;
            max-width: 320px;
        }

        .footer-group h4 {
            color: white;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .footer-group ul {
            list-style: none;
        }

        .footer-group ul li {
            margin-bottom: 12px;
        }

        .footer-group ul li a:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #1f2937;
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-links {
            display: flex;
            gap: 20px;
        }

        
        @media (max-width: 992px) {
            .detail-layout {
                grid-template-columns: 1fr;
            }
            .sidebar {
                margin-top: 40px;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .nav-menu, .nav-action {
                display: none;
            }
            .mobile-menu-toggle {
                display: block;
            }
            .article-header h1 {
                font-size: 24px;
            }
            .related-grid {
                grid-template-columns: 1fr;
            }
        }