:root {
            --primary-color: #9c27b0;
            --primary-dark: #7b1fa2;
            --secondary-color: #ff9800;
            --secondary-dark: #f57c00;
            --dark-bg: #1a1a2e;
            --content-bg: #f8f9fa;
            --text-dark: #333;
            --text-light: #666;
            --text-on-dark: #f0f0f0;
            --border-color: #ddd;
            --success-color: #4caf50;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --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.7;
            color: var(--text-dark);
            background-color: var(--content-bg);
            overflow-x: hidden;
        }
        a {
            text-decoration: none;
            color: var(--primary-color);
            transition: var(--transition);
        }
        a:hover {
            color: var(--primary-dark);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .site-header {
            background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
            color: var(--text-on-dark);
            padding: 1rem 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .my-logo {
            font-family: 'Arial Black', Gadget, sans-serif;
            font-size: 2.2rem;
            font-weight: 900;
            background: linear-gradient(to right, #ff9800, #9c27b0);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 1px;
        }
        .my-logo a {
            background: none;
            color: inherit;
        }
        .breadcrumb {
            background-color: #eee;
            padding: 12px 20px;
            font-size: 0.9rem;
            margin-bottom: 2rem;
            border-radius: 4px;
        }
        .breadcrumb a {
            color: var(--text-light);
        }
        .breadcrumb a:hover {
            color: var(--primary-color);
        }
        .breadcrumb span {
            color: var(--text-light);
            margin: 0 8px;
        }
        .main-nav ul {
            display: flex;
            list-style: none;
        }
        .main-nav li {
            margin-left: 2rem;
        }
        .main-nav a {
            color: var(--text-on-dark);
            font-weight: 600;
            padding: 0.5rem 0;
            position: relative;
        }
        .main-nav a:hover {
            color: var(--secondary-color);
        }
        .main-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background-color: var(--secondary-color);
            transition: var(--transition);
        }
        .main-nav a:hover::after {
            width: 100%;
        }
        .hamburger {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            color: var(--text-on-dark);
            cursor: pointer;
        }
        .search-container {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: 8px;
            margin: 2rem 0;
            text-align: center;
        }
        .search-form {
            display: flex;
            max-width: 600px;
            margin: 0 auto;
        }
        .search-input {
            flex-grow: 1;
            padding: 15px 20px;
            border: none;
            border-radius: 50px 0 0 50px;
            font-size: 1rem;
            outline: none;
        }
        .search-button {
            background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
            color: white;
            border: none;
            padding: 0 30px;
            border-radius: 0 50px 50px 0;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: var(--transition);
        }
        .search-button:hover {
            background: linear-gradient(to right, var(--secondary-dark), #e65100);
        }
        .content-wrapper {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 3rem;
            margin: 3rem 0;
        }
        @media (max-width: 992px) {
            .content-wrapper {
                grid-template-columns: 1fr;
            }
        }
        .main-article {
            background-color: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: var(--shadow);
        }
        .article-meta {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .update-time {
            color: var(--success-color);
            font-weight: 600;
        }
        h1 {
            font-size: 2.8rem;
            color: var(--dark-bg);
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        h2 {
            font-size: 2rem;
            color: var(--primary-dark);
            margin: 2.5rem 0 1.2rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px dashed var(--border-color);
        }
        h3 {
            font-size: 1.6rem;
            color: var(--secondary-dark);
            margin: 2rem 0 1rem;
        }
        h4 {
            font-size: 1.3rem;
            color: var(--text-dark);
            margin: 1.5rem 0 0.8rem;
        }
        p {
            margin-bottom: 1.2rem;
            text-align: justify;
        }
        .intro {
            font-size: 1.2rem;
            color: var(--text-light);
            font-weight: 500;
            background: #f5f5f5;
            padding: 1.5rem;
            border-left: 5px solid var(--primary-color);
            border-radius: 0 8px 8px 0;
            margin-bottom: 2rem;
        }
        .highlight-box {
            background: linear-gradient(135deg, #fff8e1, #ffecb3);
            border-left: 5px solid var(--secondary-color);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }
        .code-list {
            background-color: #2d3748;
            color: #e2e8f0;
            padding: 1.5rem;
            border-radius: 8px;
            margin: 2rem 0;
            font-family: 'Courier New', monospace;
        }
        .code-item {
            padding: 10px;
            margin: 8px 0;
            background-color: #4a5568;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .copy-btn {
            background-color: var(--success-color);
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .featured-image {
            margin: 2.5rem 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        .image-caption {
            text-align: center;
            font-style: italic;
            color: var(--text-light);
            margin-top: 10px;
            font-size: 0.95rem;
        }
        .sidebar {
            background-color: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--shadow);
            align-self: start;
            position: sticky;
            top: 120px;
        }
        .sidebar-widget {
            margin-bottom: 2.5rem;
        }
        .sidebar-widget h3 {
            font-size: 1.4rem;
            color: var(--primary-dark);
            margin-bottom: 1.2rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .related-links li {
            list-style: none;
            margin-bottom: 0.8rem;
            padding-left: 1.2rem;
            position: relative;
        }
        .related-links li::before {
            content: '🎮';
            position: absolute;
            left: 0;
        }
        .rating-section, .comments-section {
            background-color: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: var(--shadow);
            margin-top: 3rem;
        }
        .rating-form, .comment-form {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-top: 1.5rem;
        }
        .star-rating {
            direction: rtl;
            display: inline-block;
        }
        .star-rating input {
            display: none;
        }
        .star-rating label {
            font-size: 2rem;
            color: #ccc;
            cursor: pointer;
            transition: var(--transition);
        }
        .star-rating input:checked ~ label,
        .star-rating label:hover,
        .star-rating label:hover ~ label {
            color: #ffc107;
        }
        .form-group {
            display: flex;
            flex-direction: column;
        }
        .form-group label {
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text-dark);
        }
        .form-control {
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 1rem;
            transition: var(--transition);
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
        }
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
            font-family: inherit;
        }
        .submit-btn {
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 6px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            align-self: flex-start;
        }
        .submit-btn:hover {
            background: linear-gradient(to right, var(--primary-dark), #6a1b9a);
            transform: translateY(-3px);
            box-shadow: 0 7px 14px rgba(156, 39, 176, 0.3);
        }
        .site-footer {
            background-color: var(--dark-bg);
            color: var(--text-on-dark);
            padding: 3rem 0 1.5rem;
            margin-top: 4rem;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2.5rem;
            margin-bottom: 2.5rem;
        }
        .footer-widget h3 {
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
            font-size: 1.4rem;
        }
        .footer-links li {
            list-style: none;
            margin-bottom: 0.8rem;
        }
        .footer-links a {
            color: #ccc;
        }
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        friend-link {
            display: block;
            background-color: rgba(255, 255, 255, 0.05);
            padding: 15px;
            margin: 10px 0;
            border-radius: 6px;
            border-left: 4px solid var(--secondary-color);
        }
        friend-link a {
            color: #ffcc80;
            font-weight: 600;
        }
        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid #333;
            color: #aaa;
            font-size: 0.9rem;
        }
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
            .main-nav ul {
                position: fixed;
                top: 80px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: var(--dark-bg);
                flex-direction: column;
                align-items: center;
                padding-top: 3rem;
                transition: var(--transition);
                z-index: 999;
            }
            .main-nav.active ul {
                left: 0;
            }
            .main-nav li {
                margin: 1.5rem 0;
            }
            .main-nav a {
                font-size: 1.2rem;
            }
            h1 {
                font-size: 2.2rem;
            }
            h2 {
                font-size: 1.8rem;
            }
            h3 {
                font-size: 1.5rem;
            }
            .main-article, .sidebar {
                padding: 1.5rem;
            }
            .content-wrapper {
                gap: 2rem;
            }
        }
        .text-center { text-align: center; }
        .mb-1 { margin-bottom: 1rem; }
        .mb-2 { margin-bottom: 2rem; }
        .mt-2 { margin-top: 2rem; }
        .bold { font-weight: 700; color: var(--primary-dark); }
        .emoji { font-size: 1.2em; margin-right: 5px; }
        .divider { height: 1px; background: linear-gradient(to right, transparent, var(--border-color), transparent); margin: 2rem 0; }
