        :root {
            --primary-color: #1e3a8a; 
            --secondary-color: #dc2626; 
            --accent-color: #fbbf24; 
            --dark-bg: #0f172a;
            --light-bg: #f8fafc;
            --text-dark: #1e293b;
            --text-light: #64748b;
            --border-color: #cbd5e1;
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 2rem;
            --spacing-lg: 4rem;
            --font-heading: 'Segoe UI', system-ui, sans-serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: var(--font-body);
            line-height: 1.7;
            color: var(--text-dark);
            background-color: var(--light-bg);
            overflow-x: hidden;
        }
        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        a:hover {
            color: var(--secondary-color);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--spacing-sm);
        }
        .site-header {
            background-color: white;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--spacing-sm) 0;
        }
        .my-logo {
            font-family: var(--font-heading);
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: -0.5px;
        }
        .my-logo span {
            color: var(--secondary-color);
        }
        .main-nav ul {
            display: flex;
            list-style: none;
            gap: var(--spacing-md);
        }
        .main-nav a {
            font-weight: 600;
            padding: 0.5rem 0;
            position: relative;
        }
        .main-nav a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-color);
            transition: width 0.3s ease;
        }
        .main-nav a:hover:after {
            width: 100%;
        }
        .hamburger {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary-color);
        }
        .breadcrumb {
            padding: var(--spacing-sm) 0;
            background-color: #e2e8f0;
            font-size: 0.9rem;
        }
        .breadcrumb ol {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .breadcrumb li:not(:last-child):after {
            content: '/';
            margin-left: 0.5rem;
            color: var(--text-light);
        }
        .main-content {
            padding: var(--spacing-md) 0 var(--spacing-lg);
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: var(--spacing-lg);
        }
        .article-content {
            background: white;
            padding: var(--spacing-lg);
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        .article-header {
            margin-bottom: var(--spacing-md);
            padding-bottom: var(--spacing-md);
            border-bottom: 2px solid var(--accent-color);
        }
        .article-header h1 {
            font-size: 2.8rem;
            color: var(--primary-color);
            margin-bottom: var(--spacing-sm);
            line-height: 1.2;
        }
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-light);
            font-size: 0.95rem;
        }
        .update-time {
            background: #fef3c7;
            color: #92400e;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-weight: 600;
        }
        .article-body h2 {
            font-size: 2rem;
            color: var(--dark-bg);
            margin: var(--spacing-md) 0 var(--spacing-sm);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .article-body h3 {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin: var(--spacing-sm) 0;
        }
        .article-body h4 {
            font-size: 1.2rem;
            color: var(--secondary-color);
            margin: var(--spacing-sm) 0;
        }
        .article-body p {
            margin-bottom: 1.5rem;
            text-align: justify;
        }
        .article-body strong {
            color: var(--secondary-color);
            font-weight: 700;
        }
        .highlight-box {
            background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%);
            border-left: 5px solid var(--accent-color);
            padding: var(--spacing-sm);
            margin: var(--spacing-md) 0;
            border-radius: 0 8px 8px 0;
        }
        .codes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: var(--spacing-sm);
            margin: var(--spacing-md) 0;
        }
        .code-card {
            background: var(--dark-bg);
            color: white;
            padding: var(--spacing-sm);
            border-radius: 8px;
            text-align: center;
            font-family: monospace;
            font-size: 1.3rem;
            letter-spacing: 1px;
            border: 2px dashed var(--accent-color);
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        .code-card:hover {
            transform: translateY(-5px);
            background: #1e293b;
        }
        .featured-image {
            margin: var(--spacing-md) 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .featured-image figcaption {
            text-align: center;
            font-style: italic;
            color: var(--text-light);
            padding: 0.5rem;
            background: #f1f5f9;
        }
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }
        .widget {
            background: white;
            padding: var(--spacing-md);
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        .widget h3 {
            font-size: 1.3rem;
            color: var(--primary-color);
            margin-bottom: var(--spacing-sm);
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--accent-color);
        }
        .search-form {
            display: flex;
        }
        .search-form input {
            flex: 1;
            padding: 0.8rem;
            border: 1px solid var(--border-color);
            border-radius: 6px 0 0 6px;
            font-family: var(--font-body);
        }
        .search-form button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0 1.2rem;
            border-radius: 0 6px 6px 0;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .search-form button:hover {
            background: var(--secondary-color);
        }
        .rating-widget .stars {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin: 1rem 0;
            font-size: 1.8rem;
            color: #e2e8f0;
        }
        .star {
            cursor: pointer;
            transition: color 0.2s;
        }
        .star:hover,
        .star.active {
            color: var(--accent-color);
        }
        .rating-form button {
            width: 100%;
            padding: 0.8rem;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }
        .rating-form button:hover {
            background: var(--secondary-color);
        }
        .related-links ul {
            list-style: none;
        }
        .related-links li {
            margin-bottom: 0.8rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px dotted var(--border-color);
        }
        .related-links a {
            display: flex;
            align-items: center;
            gap: 0.7rem;
        }
        .related-links i {
            color: var(--accent-color);
        }
        .comments-section {
            margin-top: var(--spacing-lg);
            background: white;
            padding: var(--spacing-lg);
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        .comment-form textarea {
            width: 100%;
            padding: var(--spacing-sm);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-family: var(--font-body);
            margin-bottom: var(--spacing-sm);
            min-height: 120px;
            resize: vertical;
        }
        .comment-form .form-row {
            display: flex;
            gap: var(--spacing-sm);
            margin-bottom: var(--spacing-sm);
        }
        .comment-form input {
            flex: 1;
            padding: 0.8rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }
        .comment-form button {
            padding: 0.8rem 2rem;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }
        .comment-form button:hover {
            background: var(--secondary-color);
        }
        .comment-list {
            margin-top: var(--spacing-md);
        }
        .comment {
            padding: var(--spacing-sm);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: var(--spacing-sm);
        }
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-light);
        }
        .site-footer {
            background: var(--dark-bg);
            color: white;
            padding: var(--spacing-lg) 0;
            margin-top: var(--spacing-lg);
        }
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--spacing-md);
        }
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: var(--spacing-sm);
            color: white;
        }
        friend-link {
            display: block;
            background: rgba(255,255,255,0.05);
            padding: 0.8rem;
            margin-bottom: 0.5rem;
            border-radius: 6px;
            transition: background 0.3s;
        }
        friend-link:hover {
            background: rgba(255,255,255,0.1);
        }
        .copyright {
            text-align: center;
            padding-top: var(--spacing-md);
            margin-top: var(--spacing-md);
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 0.9rem;
            grid-column: 1 / -1;
        }
        @media (max-width: 992px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            .article-header h1 {
                font-size: 2.2rem;
            }
        }
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
            .main-nav ul {
                position: fixed;
                top: 80px;
                left: -100%;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: var(--spacing-md);
                box-shadow: 0 10px 15px rgba(0,0,0,0.1);
                transition: left 0.3s ease;
                z-index: 999;
            }
            .main-nav.active ul {
                left: 0;
            }
            .article-content {
                padding: var(--spacing-md);
            }
            .article-header h1 {
                font-size: 1.8rem;
            }
            .comment-form .form-row {
                flex-direction: column;
            }
        }
        @media (max-width: 480px) {
            .codes-grid {
                grid-template-columns: 1fr;
            }
            .article-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: var(--spacing-xs);
            }
        }
