:root {
            --primary: #1a237e;
            --secondary: #ff5722;
            --accent: #4caf50;
            --dark: #121212;
            --light: #f5f5f7;
            --gray: #757575;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.7;
            overflow-x: hidden;
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        ul {
            list-style: none;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .header {
            background: linear-gradient(135deg, var(--primary), #0d1440);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            font-size: 2rem;
            font-weight: 900;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .logo span {
            color: var(--secondary);
        }
        .logo i {
            font-size: 2.5rem;
        }
        .nav-desktop {
            display: flex;
            gap: 2rem;
        }
        @media (max-width: 768px) {
            .nav-desktop {
                display: none;
            }
        }
        .nav-desktop a {
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: var(--radius);
            transition: var(--transition);
        }
        .nav-desktop a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            color: var(--secondary);
        }
        .mobile-toggle {
            display: none;
            font-size: 1.8rem;
            cursor: pointer;
        }
        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
            }
        }
        .nav-mobile {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--primary);
            flex-direction: column;
            padding: 1rem;
            box-shadow: var(--shadow);
            z-index: 999;
        }
        .nav-mobile.active {
            display: flex;
        }
        .nav-mobile a {
            padding: 1rem;
            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: #e8eaf6;
            padding: 0.8rem 0;
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }
        .breadcrumb ul {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .breadcrumb li:not(:last-child)::after {
            content: "›";
            margin-left: 0.5rem;
            color: var(--gray);
        }
        .breadcrumb a:hover {
            color: var(--secondary);
            text-decoration: underline;
        }
        .main-grid {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
            margin-bottom: 3rem;
        }
        @media (max-width: 992px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
        }
        .article {
            background-color: white;
            border-radius: var(--radius);
            padding: 2.5rem;
            box-shadow: var(--shadow);
        }
        .article h1 {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        .article-meta {
            display: flex;
            gap: 1rem;
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .article h2, .article h3 {
            color: var(--primary);
            margin: 2.5rem 0 1rem 0;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--secondary);
        }
        .article h2 {
            font-size: 2rem;
        }
        .article h3 {
            font-size: 1.5rem;
        }
        .article p {
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }
        .article strong {
            color: var(--secondary);
            font-weight: 700;
        }
        .article emoji {
            font-size: 1.2em;
            margin-right: 5px;
        }
        .code-list {
            background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
            border-left: 5px solid var(--accent);
            padding: 1.5rem;
            border-radius: 0 var(--radius) var(--radius) 0;
            margin: 2rem 0;
        }
        .code-list h3 {
            border: none;
            margin-top: 0;
            color: var(--dark);
        }
        .code-item {
            background: white;
            padding: 1rem;
            margin: 1rem 0;
            border-radius: var(--radius);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: var(--transition);
        }
        .code-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .code {
            font-family: monospace;
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--accent);
            background-color: #f1f8e9;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            letter-spacing: 1px;
        }
        .reward {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--primary);
            font-weight: 600;
        }
        .reward i {
            color: gold;
        }
        .highlight-box {
            background-color: #fff8e1;
            border: 2px dashed var(--secondary);
            padding: 1.5rem;
            border-radius: var(--radius);
            margin: 2rem 0;
        }
        .highlight-box h4 {
            color: var(--secondary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .article-image {
            width: 100%;
            max-width: 800px;
            margin: 2rem auto;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        .article-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        .article-image img:hover {
            transform: scale(1.02);
        }
        .image-caption {
            text-align: center;
            font-style: italic;
            color: var(--gray);
            padding: 0.5rem;
            background-color: #fafafa;
        }
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .sidebar-widget {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }
        .sidebar-widget h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--secondary);
        }
        .search-box, .comment-form, .rating-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        input, textarea, select {
            padding: 0.8rem 1rem;
            border: 1px solid #ccc;
            border-radius: var(--radius);
            font-size: 1rem;
            transition: var(--transition);
        }
        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
        }
        button, .btn {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 0.9rem 1.5rem;
            border-radius: var(--radius);
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        button:hover, .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        .stars {
            display: flex;
            gap: 5px;
            font-size: 1.8rem;
            color: #ddd;
            cursor: pointer;
        }
        .stars .active {
            color: gold;
        }
        .comments {
            margin-top: 3rem;
            background: white;
            padding: 2rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        .comment {
            padding: 1.5rem;
            border-bottom: 1px solid #eee;
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.8rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        .comment-author {
            font-weight: bold;
            color: var(--primary);
        }
        .web-links {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin: 3rem 0;
        }
        @media (max-width: 768px) {
            .web-links {
                grid-template-columns: 1fr;
            }
        }
        .web-link {
            background: white;
            padding: 1rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .web-link:hover {
            background-color: var(--primary);
            color: white;
            transform: translateX(5px);
        }
        .footer {
            background-color: var(--dark);
            color: white;
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }
        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 480px) {
            .footer-content {
                grid-template-columns: 1fr;
            }
        }
        .footer-column h4 {
            color: var(--secondary);
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
        }
        .footer-column ul li {
            margin-bottom: 0.8rem;
        }
        .footer-column ul li a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }
        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #aaa;
            font-size: 0.9rem;
        }
        .text-center { text-align: center; }
        .mt-2 { margin-top: 2rem; }
        .mb-2 { margin-bottom: 2rem; }
        .py-2 { padding-top: 2rem; padding-bottom: 2rem; }
