:root {
            --primary: #1e3a8a;
            --secondary: #dc2626;
            --accent: #f59e0b;
            --light: #f8fafc;
            --dark: #0f172a;
            --gray: #64748b;
            --success: #10b981;
            --shadow: 0 4px 6px -1px 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', system-ui, -apple-system, sans-serif;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background-color: #f1f5f9;
            color: #334155;
            line-height: 1.7;
            overflow-x: hidden;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
            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 a {
            font-size: 1.8rem;
            font-weight: 900;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .logo i {
            color: var(--accent);
        }
        nav {
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        .nav-links {
            display: flex;
            gap: 1.5rem;
            list-style: none;
        }
        .nav-links a {
            color: #e2e8f0;
            text-decoration: none;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: var(--radius);
            transition: var(--transition);
            position: relative;
        }
        .nav-links a:hover, .nav-links a.active {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            transform: translateY(-2px);
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: var(--transition);
            transform: translateX(-50%);
        }
        .nav-links a:hover::after {
            width: 80%;
        }
        .hamburger {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }
        .breadcrumb {
            background: var(--light);
            padding: 1rem 0;
            border-bottom: 1px solid #e2e8f0;
            font-size: 0.9rem;
        }
        .breadcrumb a {
            color: var(--primary);
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        .breadcrumb span {
            color: var(--gray);
        }
        .search-container {
            max-width: 600px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        .search-box {
            position: relative;
            background: white;
            border-radius: 50px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 2px solid #e2e8f0;
            transition: var(--transition);
        }
        .search-box:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
        }
        .search-box input {
            width: 100%;
            padding: 1rem 1.5rem;
            border: none;
            outline: none;
            font-size: 1rem;
        }
        .search-box button {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 1.5rem;
            cursor: pointer;
            transition: var(--transition);
        }
        .search-box button:hover {
            background: var(--secondary);
        }
        main {
            padding: 2rem 0;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
        }
        article {
            background: white;
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: var(--shadow);
        }
        article > * + * {
            margin-top: 1.5rem;
        }
        h1 {
            color: var(--dark);
            font-size: 2.5rem;
            line-height: 1.2;
            margin-bottom: 1rem;
            border-bottom: 3px solid var(--accent);
            padding-bottom: 1rem;
        }
        h2 {
            color: var(--primary);
            font-size: 1.8rem;
            margin: 2.5rem 0 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
        }
        h3 {
            color: var(--secondary);
            font-size: 1.4rem;
            margin: 2rem 0 1rem;
        }
        p {
            margin-bottom: 1.2rem;
            text-align: justify;
        }
        .intro {
            font-size: 1.1rem;
            background: linear-gradient(to right, #f0f9ff, #ffffff);
            padding: 1.5rem;
            border-radius: var(--radius);
            border-left: 4px solid var(--primary);
        }
        .code-highlight {
            background: #fef3c7;
            border: 1px dashed #f59e0b;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            font-family: monospace;
            font-weight: bold;
            color: var(--dark);
        }
        .feature-box {
            background: #f8fafc;
            border-radius: var(--radius);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 4px solid var(--success);
        }
        .content-image {
            width: 100%;
            max-width: 800px;
            height: auto;
            border-radius: var(--radius);
            margin: 1.5rem auto;
            display: block;
            box-shadow: var(--shadow);
        }
        ul, ol {
            padding-left: 1.5rem;
            margin: 1rem 0;
        }
        li {
            margin-bottom: 0.5rem;
        }
        a.content-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            border-bottom: 1px dotted;
            transition: var(--transition);
        }
        a.content-link:hover {
            color: var(--secondary);
            border-bottom-style: solid;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        .stat-card {
            background: white;
            padding: 1.5rem;
            border-radius: var(--radius);
            text-align: center;
            box-shadow: var(--shadow);
            border-top: 4px solid var(--primary);
            transition: var(--transition);
        }
        .stat-card:hover {
            transform: translateY(-5px);
        }
        .stat-card i {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }
        .stat-card h4 {
            font-size: 2.5rem;
            color: var(--secondary);
            margin: 0.5rem 0;
        }
        aside {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .sidebar-widget {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }
        .widget-title {
            color: var(--primary);
            font-size: 1.2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
        }
        .code-list {
            list-style: none;
            padding: 0;
        }
        .code-list li {
            padding: 0.8rem;
            background: #f8fafc;
            margin-bottom: 0.5rem;
            border-radius: 5px;
            border-left: 3px solid var(--success);
            font-family: monospace;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .copy-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.3rem 0.8rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: var(--transition);
        }
        .copy-btn:hover {
            background: var(--secondary);
        }
        .related-links a {
            display: block;
            padding: 0.8rem;
            color: var(--dark);
            text-decoration: none;
            border-radius: 5px;
            transition: var(--transition);
            margin-bottom: 0.5rem;
        }
        .related-links a:hover {
            background: #f1f5f9;
            color: var(--primary);
            padding-left: 1.2rem;
        }
        .user-interaction {
            background: white;
            border-radius: var(--radius);
            padding: 2rem;
            margin-top: 2rem;
            box-shadow: var(--shadow);
        }
        .interaction-title {
            color: var(--primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .rating-system {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .stars {
            display: flex;
            gap: 0.5rem;
            font-size: 1.5rem;
            color: #cbd5e1;
        }
        .stars i {
            cursor: pointer;
            transition: var(--transition);
        }
        .stars i:hover, .stars i.active {
            color: var(--accent);
        }
        .comment-form, .rating-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .form-group label {
            font-weight: 600;
            color: var(--dark);
        }
        .form-group input, .form-group textarea {
            padding: 0.8rem;
            border: 1px solid #cbd5e1;
            border-radius: var(--radius);
            font-size: 1rem;
            transition: var(--transition);
        }
        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
        }
        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            align-self: flex-start;
        }
        .submit-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }
        footer {
            background: var(--dark);
            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;
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            position: relative;
        }
        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 50px;
            height: 2px;
            background: var(--accent);
        }
        friend-link {
            display: block;
            margin-bottom: 1rem;
        }
        friend-link a {
            color: #cbd5e1;
            text-decoration: none;
            transition: var(--transition);
            display: block;
            padding: 0.3rem 0;
        }
        friend-link a:hover {
            color: white;
            padding-left: 5px;
        }
        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 0.9rem;
        }
        @media (max-width: 992px) {
            main {
                grid-template-columns: 1fr;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--dark);
                flex-direction: column;
                padding: 1rem;
                box-shadow: var(--shadow);
            }
            .nav-links.active {
                display: flex;
            }
            .hamburger {
                display: block;
            }
            h1 {
                font-size: 2rem;
            }
        }
        @media (max-width: 576px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }
            .stat-card h4 {
                font-size: 2rem;
            }
            article, .sidebar-widget {
                padding: 1.5rem;
            }
        }
