:root {
            --primary: #c62828;
            --primary-dark: #8e0000;
            --secondary: #212121;
            --accent: #ff9800;
            --light: #f5f5f5;
            --gray: #757575;
            --dark: #121212;
            --success: #2e7d32;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            --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: #111;
            color: #e0e0e0;
            line-height: 1.7;
            overflow-x: hidden;
        }
        a {
            color: var(--accent);
            text-decoration: none;
            transition: var(--transition);
        }
        a:hover {
            color: #ffb74d;
            text-decoration: underline;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .site-header {
            background: linear-gradient(to right, var(--dark), var(--secondary));
            border-bottom: 3px solid var(--primary);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .my-logo {
            font-size: 2.2rem;
            font-weight: 900;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .my-logo span {
            color: var(--light);
            font-size: 1.8rem;
        }
        .my-logo:hover {
            color: #ff5252;
        }
        .search-form {
            display: flex;
            max-width: 400px;
            flex-grow: 1;
            margin: 0 30px;
        }
        .search-input {
            flex-grow: 1;
            padding: 12px 20px;
            border: 2px solid var(--gray);
            border-radius: 30px 0 0 30px;
            background: #333;
            color: white;
            font-size: 1rem;
        }
        .search-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            font-weight: bold;
            transition: var(--transition);
        }
        .search-btn:hover {
            background: var(--primary-dark);
        }
        .main-nav {
            display: flex;
            gap: 25px;
        }
        .nav-link {
            color: #ccc;
            font-weight: 600;
            padding: 8px 5px;
            position: relative;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s;
        }
        .nav-link:hover::after {
            width: 100%;
        }
        .nav-link.active {
            color: var(--accent);
        }
        .hamburger {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }
        .breadcrumb {
            padding: 15px 0;
            background: #1a1a1a;
            border-bottom: 1px solid #333;
            font-size: 0.9rem;
        }
        .breadcrumb a {
            color: #aaa;
        }
        .breadcrumb i {
            margin: 0 8px;
            color: var(--gray);
        }
        .main-content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            padding: 30px 0;
        }
        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }
        article {
            background: #1e1e1e;
            border-radius: 10px;
            padding: 35px;
            box-shadow: var(--shadow);
        }
        h1 {
            color: var(--primary);
            font-size: 2.8rem;
            margin-bottom: 20px;
            line-height: 1.2;
            border-bottom: 3px solid var(--accent);
            padding-bottom: 15px;
        }
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px dashed #444;
            color: #aaa;
            font-size: 0.95rem;
        }
        .update-time {
            color: var(--accent);
            font-weight: bold;
        }
        h2 {
            color: #ffcc80;
            font-size: 2rem;
            margin: 35px 0 20px;
            padding-left: 15px;
            border-left: 5px solid var(--primary);
        }
        h3 {
            color: #bdbdbd;
            font-size: 1.6rem;
            margin: 28px 0 15px;
        }
        h4 {
            color: #9e9e9e;
            font-size: 1.3rem;
            margin: 25px 0 12px;
        }
        p {
            margin-bottom: 20px;
            text-align: justify;
            font-size: 1.1rem;
        }
        .highlight {
            background: linear-gradient(90deg, #c62828, #ff9800);
            color: white;
            padding: 25px;
            border-radius: 10px;
            margin: 30px 0;
            border-left: 8px solid #ffcc80;
            box-shadow: var(--shadow);
        }
        .highlight h3 {
            color: white;
            margin-top: 0;
            border-left: none;
            padding-left: 0;
        }
        .code-list {
            background: #121212;
            border: 2px dashed var(--accent);
            border-radius: 10px;
            padding: 25px;
            margin: 25px 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }
        .code-item {
            background: #263238;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            font-family: monospace;
            font-size: 1.4rem;
            color: #69f0ae;
            font-weight: bold;
            letter-spacing: 1px;
            transition: transform 0.3s;
            cursor: pointer;
            border: 1px solid #37474f;
        }
        .code-item:hover {
            transform: translateY(-5px);
            background: #2c3e42;
            border-color: var(--accent);
        }
        .code-item.copied {
            background: var(--success);
            color: white;
        }
        .cta-button {
            display: inline-block;
            background: linear-gradient(to right, var(--primary), var(--accent));
            color: white;
            padding: 16px 35px;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1.2rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 20px 0;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
        }
        .cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 152, 0, 0.6);
            text-decoration: none;
        }
        img.responsive-img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            border: 3px solid #333;
            margin: 25px 0;
            display: block;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        }
        .img-caption {
            text-align: center;
            font-style: italic;
            color: #aaa;
            margin-top: -15px;
            margin-bottom: 25px;
            font-size: 0.95rem;
        }
        .sidebar {
            background: #1a1a1a;
            border-radius: 10px;
            padding: 25px;
            box-shadow: var(--shadow);
            align-self: start;
            position: sticky;
            top: 120px;
        }
        .sidebar-widget {
            margin-bottom: 30px;
            padding-bottom: 25px;
            border-bottom: 1px solid #333;
        }
        .sidebar-title {
            color: var(--accent);
            font-size: 1.5rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary);
        }
        .related-links {
            list-style: none;
        }
        .related-links li {
            margin-bottom: 12px;
            padding-left: 20px;
            position: relative;
        }
        .related-links li::before {
            content: '➤';
            color: var(--primary);
            position: absolute;
            left: 0;
        }
        .rating-widget {
            text-align: center;
        }
        .stars {
            font-size: 2rem;
            color: #ffc107;
            margin: 15px 0;
        }
        .stars i {
            cursor: pointer;
            margin: 0 3px;
            transition: var(--transition);
        }
        .stars i:hover {
            transform: scale(1.2);
        }
        .rating-result {
            font-size: 1.3rem;
            margin-top: 10px;
            color: #4caf50;
            font-weight: bold;
        }
        .comments-section {
            margin-top: 50px;
            background: #1a1a1a;
            border-radius: 10px;
            padding: 30px;
        }
        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 40px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
        }
        .form-label {
            margin-bottom: 8px;
            font-weight: bold;
            color: #ccc;
        }
        .form-input, .form-textarea {
            padding: 15px;
            background: #2a2a2a;
            border: 1px solid #444;
            border-radius: 8px;
            color: white;
            font-size: 1rem;
        }
        .form-textarea {
            min-height: 150px;
            resize: vertical;
        }
        .submit-btn {
            align-self: flex-start;
            background: var(--primary);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: var(--transition);
        }
        .submit-btn:hover {
            background: var(--primary-dark);
        }
        .comment {
            background: #252525;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            border-left: 4px solid #444;
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #aaa;
            font-size: 0.9rem;
        }
        .comment-author {
            color: var(--accent);
            font-weight: bold;
        }
        .site-footer {
            background: #0a0a0a;
            padding: 50px 0 20px;
            margin-top: 60px;
            border-top: 3px solid var(--primary);
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-links a {
            display: block;
            color: #aaa;
            margin-bottom: 10px;
        }
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        friend-link {
            display: block;
            background: #1a1a1a;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border: 1px solid #333;
            transition: var(--transition);
        }
        friend-link:hover {
            border-color: var(--accent);
            background: #222;
        }
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #333;
            color: #777;
            font-size: 0.9rem;
        }
        @media (max-width: 768px) {
            .header-content {
                flex-wrap: wrap;
            }
            .search-form {
                order: 3;
                width: 100%;
                margin: 20px 0 0;
            }
            .main-nav {
                display: none;
                flex-direction: column;
                width: 100%;
                background: var(--secondary);
                position: absolute;
                top: 100%;
                left: 0;
                padding: 20px;
                box-shadow: var(--shadow);
            }
            .main-nav.active {
                display: flex;
            }
            .hamburger {
                display: block;
            }
            h1 {
                font-size: 2.2rem;
            }
            h2 {
                font-size: 1.8rem;
            }
            article, .sidebar {
                padding: 25px 20px;
            }
        }
