:root {
            --primary: #1a365d;
            --secondary: #d4af37;
            --accent: #c53030;
            --light: #f7fafc;
            --dark: #2d3748;
            --gray: #718096;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.7;
            color: var(--dark);
            background-color: #f8f9fa;
            overflow-x: hidden;
        }
        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }
        ul {
            list-style: none;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .btn {
            display: inline-block;
            background: linear-gradient(to right, var(--secondary), #b8860b);
            color: white;
            padding: 12px 28px;
            border-radius: 50px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow);
            background: linear-gradient(to right, #b8860b, var(--secondary));
        }
        header {
            background-color: var(--primary);
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        .logo a {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .logo i {
            font-size: 2rem;
        }
        .search-box {
            display: flex;
            background: white;
            border-radius: 50px;
            overflow: hidden;
            flex: 0 1 400px;
        }
        .search-box input {
            flex: 1;
            padding: 12px 20px;
            border: none;
            outline: none;
            font-size: 1rem;
        }
        .search-box button {
            background: var(--secondary);
            color: white;
            border: none;
            padding: 0 25px;
            cursor: pointer;
            font-size: 1.1rem;
        }
        .hamburger {
            display: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--secondary);
        }
        nav ul {
            display: flex;
            background: rgba(255,255,255,0.05);
            justify-content: center;
            gap: 2px;
        }
        nav ul li a {
            display: block;
            padding: 18px 24px;
            font-weight: 500;
            position: relative;
        }
        nav ul li a:hover,
        nav ul li a.active {
            background-color: rgba(212, 175, 55, 0.15);
            color: var(--secondary);
        }
        nav ul li a:hover::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            width: 60%;
            height: 3px;
            background: var(--secondary);
        }
        .breadcrumb {
            padding: 12px 20px;
            background: rgba(0,0,0,0.2);
            font-size: 0.9rem;
        }
        .breadcrumb a {
            color: #cbd5e0;
        }
        .breadcrumb a:hover {
            color: var(--secondary);
        }
        .breadcrumb i {
            margin: 0 8px;
            font-size: 0.7rem;
        }
        main {
            padding: 40px 0;
            background: white;
        }
        .article-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 2px dashed #e2e8f0;
        }
        .article-header h1 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 15px;
            line-height: 1.2;
        }
        .meta {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            color: var(--gray);
            font-size: 0.95rem;
            flex-wrap: wrap;
        }
        .meta i {
            color: var(--secondary);
            margin-right: 5px;
        }
        .content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
        }
        .article-content {
            font-size: 1.1rem;
        }
        .article-content h2 {
            font-size: 2rem;
            color: var(--primary);
            margin: 40px 0 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--secondary);
        }
        .article-content h3 {
            font-size: 1.6rem;
            color: var(--dark);
            margin: 30px 0 15px;
        }
        .article-content p {
            margin-bottom: 20px;
            text-align: justify;
        }
        .article-content ul, .article-content ol {
            margin: 20px 0 20px 30px;
        }
        .article-content li {
            margin-bottom: 10px;
            position: relative;
        }
        .highlight {
            background-color: #fff9db;
            border-left: 4px solid var(--secondary);
            padding: 25px;
            margin: 30px 0;
            border-radius: 0 8px 8px 0;
        }
        .code-list {
            background: #f8f9fa;
            border: 2px dashed var(--primary);
            border-radius: 10px;
            padding: 25px;
            margin: 30px 0;
        }
        .code-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: white;
            margin-bottom: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: var(--transition);
        }
        .code-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .code-text {
            font-family: monospace;
            font-size: 1.4rem;
            font-weight: bold;
            color: var(--accent);
            letter-spacing: 1px;
        }
        .copy-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            transition: var(--transition);
        }
        .copy-btn:hover {
            background: var(--accent);
        }
        .feature-img {
            margin: 30px 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        .feature-img img {
            width: 100%;
            transition: transform 0.5s ease;
        }
        .feature-img img:hover {
            transform: scale(1.03);
        }
        .sidebar {
            position: sticky;
            top: 120px;
            height: fit-content;
        }
        .widget {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid #e2e8f0;
        }
        .widget h3 {
            font-size: 1.4rem;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--secondary);
        }
        .rating-widget {
            text-align: center;
        }
        .stars {
            font-size: 2rem;
            color: #e2e8f0;
            margin: 15px 0;
            cursor: pointer;
        }
        .stars i {
            margin: 0 3px;
            transition: var(--transition);
        }
        .stars i:hover,
        .stars i.active {
            color: #fbbf24;
        }
        .rating-result {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary);
            margin-top: 10px;
        }
        .comment-form textarea {
            width: 100%;
            height: 120px;
            padding: 15px;
            border: 1px solid #cbd5e0;
            border-radius: 8px;
            resize: vertical;
            font-family: inherit;
            margin-bottom: 15px;
        }
        .comment-form button {
            width: 100%;
        }
        .toc ul {
            margin-left: 0;
        }
        .toc li {
            margin-bottom: 12px;
        }
        .toc a {
            display: block;
            padding: 10px 15px;
            background: white;
            border-radius: 5px;
            border-left: 3px solid transparent;
        }
        .toc a:hover {
            background: var(--secondary);
            color: white;
            border-left-color: var(--primary);
        }
        .footer-links {
            background: #edf2f7;
            padding: 40px 0;
        }
        .links-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        .web-link {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: var(--transition);
        }
        .web-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .web-link a {
            color: var(--primary);
            font-weight: 500;
            display: flex;
            align-items: center;
        }
        .web-link a:hover {
            color: var(--accent);
        }
        .web-link i {
            color: var(--secondary);
            margin-right: 10px;
            font-size: 0.9rem;
        }
        footer {
            background: var(--primary);
            color: #cbd5e0;
            padding: 40px 0 20px;
            text-align: center;
        }
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--secondary);
            margin-bottom: 20px;
        }
        .copyright {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            color: #a0aec0;
        }
        @media (max-width: 992px) {
            .content {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: static;
            }
            .article-header h1 {
                font-size: 2.3rem;
            }
        }
        @media (max-width: 768px) {
            .header-top {
                flex-wrap: wrap;
            }
            .search-box {
                order: 3;
                flex: 1 0 100%;
                margin-top: 15px;
            }
            .hamburger {
                display: block;
            }
            nav ul {
                display: none;
                flex-direction: column;
                background: var(--primary);
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                box-shadow: var(--shadow);
            }
            nav ul.active {
                display: flex;
            }
            nav ul li a {
                padding: 15px 20px;
                border-bottom: 1px solid rgba(255,255,255,0.05);
            }
            .article-header h1 {
                font-size: 2rem;
            }
            .meta {
                flex-direction: column;
                gap: 10px;
            }
            .code-item {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }
