:root {
            --primary: #1a365d;
            --secondary: #e53e3e;
            --accent: #f6ad55;
            --light: #f7fafc;
            --dark: #2d3748;
            --gray: #a0aec0;
            --shadow: 0 4px 6px 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.8;
            color: var(--dark);
            background-color: #f8f9fa;
            overflow-x: hidden;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        header {
            background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
            transition: var(--transition);
        }
        .logo:hover {
            color: var(--accent);
            transform: scale(1.02);
        }
        .logo i {
            color: var(--accent);
        }
        .nav-desktop {
            display: flex;
            gap: 2rem;
        }
        @media (max-width: 768px) {
            .nav-desktop {
                display: none;
            }
        }
        .nav-desktop a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: var(--transition);
        }
        .nav-desktop a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--accent);
        }
        .hamburger {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
        }
        .nav-mobile {
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            background-color: var(--primary);
            padding: 1rem;
            display: none;
            flex-direction: column;
            gap: 1rem;
            box-shadow: var(--shadow);
            z-index: 999;
        }
        .nav-mobile.active {
            display: flex;
        }
        .nav-mobile a {
            color: white;
            text-decoration: none;
            padding: 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition);
        }
        .nav-mobile a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            padding-left: 1.5rem;
        }
        .breadcrumb {
            background-color: var(--light);
            padding: 1rem 0;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 2rem;
        }
        .breadcrumb ol {
            display: flex;
            list-style: none;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .breadcrumb li:not(:last-child)::after {
            content: "›";
            margin-left: 0.5rem;
            color: var(--gray);
        }
        .breadcrumb a {
            color: var(--primary);
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        main {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 3rem;
            padding: 2rem 0;
        }
        @media (max-width: 992px) {
            main {
                grid-template-columns: 1fr;
            }
        }
        .content {
            background-color: white;
            padding: 2.5rem;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }
        .article-header {
            margin-bottom: 2.5rem;
            border-bottom: 3px solid var(--secondary);
            padding-bottom: 1.5rem;
        }
        .article-header h1 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        .meta {
            display: flex;
            gap: 1.5rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        .meta span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        section {
            margin-bottom: 3rem;
            scroll-margin-top: 100px;
        }
        h2 {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        h2 i {
            color: var(--secondary);
        }
        h3 {
            font-size: 1.5rem;
            color: var(--dark);
            margin: 1.5rem 0 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        h3 i {
            color: var(--accent);
        }
        p {
            margin-bottom: 1.5rem;
            text-align: justify;
        }
        .highlight {
            background-color: #fffaf0;
            border-left: 4px solid var(--accent);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
        }
        .code-box {
            background-color: #2d3748;
            color: #e2e8f0;
            padding: 1.5rem;
            border-radius: 8px;
            font-family: monospace;
            margin: 1.5rem 0;
            overflow-x: auto;
        }
        .code-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background-color: #4a5568;
            margin-bottom: 0.5rem;
            border-radius: 5px;
            transition: var(--transition);
        }
        .code-item:hover {
            background-color: #5a6578;
        }
        .code-copy {
            background-color: var(--accent);
            color: var(--dark);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: var(--transition);
        }
        .code-copy:hover {
            background-color: #feebc8;
        }
        .article-img {
            width: 100%;
            max-width: 800px;
            height: auto;
            border-radius: 10px;
            margin: 2rem auto;
            display: block;
            box-shadow: var(--shadow);
            transition: transform 0.5s ease;
        }
        .article-img:hover {
            transform: scale(1.01);
        }
        .img-caption {
            text-align: center;
            color: var(--gray);
            font-style: italic;
            margin-top: 0.5rem;
            font-size: 0.9rem;
        }
        .content a {
            color: var(--secondary);
            text-decoration: none;
            font-weight: 600;
            border-bottom: 1px dotted transparent;
            transition: var(--transition);
        }
        .content a:hover {
            border-bottom-color: var(--secondary);
        }
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .widget {
            background-color: white;
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }
        .widget h3 {
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .search-form {
            display: flex;
        }
        .search-form input {
            flex-grow: 1;
            padding: 0.8rem;
            border: 2px solid #e2e8f0;
            border-right: none;
            border-radius: 6px 0 0 6px;
            font-size: 1rem;
        }
        .search-form button {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0 1.5rem;
            border-radius: 0 6px 6px 0;
            cursor: pointer;
            transition: var(--transition);
        }
        .search-form button:hover {
            background-color: #2c5282;
        }
        .rating-widget {
            text-align: center;
        }
        .stars {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin: 1rem 0;
            font-size: 1.8rem;
            color: #e2e8f0;
        }
        .star {
            cursor: pointer;
            transition: var(--transition);
        }
        .star:hover,
        .star.active {
            color: #f6ad55;
        }
        .rating-form button {
            background-color: var(--secondary);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
            transition: var(--transition);
            margin-top: 1rem;
        }
        .rating-form button:hover {
            background-color: #c53030;
        }
        .comment-form input,
        .comment-form textarea {
            width: 100%;
            padding: 0.8rem;
            margin-bottom: 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            font-family: inherit;
        }
        .comment-form textarea {
            min-height: 120px;
            resize: vertical;
        }
        .comment-form button {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
            transition: var(--transition);
        }
        .comment-form button:hover {
            background-color: #2c5282;
        }
        .related-links {
            list-style: none;
        }
        .related-links li {
            margin-bottom: 0.8rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid #e2e8f0;
        }
        .related-links a {
            color: var(--dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        .related-links a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }
        footer {
            background-color: var(--primary);
            color: white;
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        .footer-section h3 {
            color: white;
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
        }
        .footer-links {
            list-style: none;
        }
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: var(--transition);
        }
        .footer-links a:hover {
            color: var(--accent);
            padding-left: 5px;
        }
        friend-link {
            display: block;
            margin: 2rem 0;
        }
        .friend-link-title {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--accent);
        }
        .friend-link-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .friend-link-list a {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            text-decoration: none;
            transition: var(--transition);
        }
        .friend-link-list a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }
        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #a0aec0;
            font-size: 0.9rem;
        }
        @media (max-width: 768px) {
            .article-header h1 {
                font-size: 2.2rem;
            }
            h2 {
                font-size: 1.7rem;
            }
            h3 {
                font-size: 1.3rem;
            }
            .content {
                padding: 1.5rem;
            }
            .footer-content {
                grid-template-columns: 1fr;
            }
        }
        .tag {
            display: inline-block;
            background-color: #e2e8f0;
            color: var(--dark);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .btn {
            display: inline-block;
            background-color: var(--secondary);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            transition: var(--transition);
            border: none;
            cursor: pointer;
        }
        .btn:hover {
            background-color: #c53030;
            transform: translateY(-3px);
        }
