*,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        :root {
            --primary: #1a0a2e;
            --secondary: #e94560;
            --accent: #0f3460;
            --light: #f8f0e3;
            --dark: #0d0d0d;
            --card-bg: #1f1f2e;
            --text: #eaeaea;
            --text-muted: #b0b0b0;
            --border: #2a2a3e;
            --radius: 12px;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
            --font: 'Segoe UI', Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            --max-width: 1200px;
        }
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        body {
            font-family: var(--font);
            background: var(--dark);
            color: var(--text);
            line-height: 1.7;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        a {
            color: var(--secondary);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        a:hover,
        a:focus {
            color: #ff7a8a;
            text-decoration: underline;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius);
        }
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-weight: 700;
            line-height: 1.3;
            color: var(--light);
            margin-top: 1.6em;
            margin-bottom: 0.5em;
        }
        h1 {
            font-size: 2.4rem;
            border-bottom: 4px solid var(--secondary);
            padding-bottom: 0.3em;
            margin-top: 0.8em;
        }
        h2 {
            font-size: 1.8rem;
            border-left: 5px solid var(--secondary);
            padding-left: 0.7em;
            margin-top: 2em;
        }
        h3 {
            font-size: 1.4rem;
            margin-top: 1.6em;
            color: #f0d9ff;
        }
        h4 {
            font-size: 1.15rem;
            color: #d4b8ff;
            margin-top: 1.2em;
        }
        p {
            margin-bottom: 1.2em;
        }
        ul,
        ol {
            margin: 0.8em 0 1.2em 1.8em;
        }
        li {
            margin-bottom: 0.4em;
        }
        blockquote {
            border-left: 4px solid var(--secondary);
            padding: 1em 1.4em;
            margin: 1.4em 0;
            background: rgba(233, 69, 96, 0.08);
            border-radius: 0 var(--radius) var(--radius) 0;
            font-style: italic;
            color: var(--text-muted);
        }
        hr {
            border: none;
            border-top: 2px solid var(--border);
            margin: 2.4em 0;
        }
        .container {
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 20px;
        }
        .site-header {
            background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 100%);
            border-bottom: 2px solid var(--border);
            padding: 0.8em 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }
        .my-logo {
            font-size: 1.6rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--secondary), #ff8a9e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
            transition: transform 0.2s ease;
            display: inline-block;
        }
        .my-logo:hover {
            transform: scale(1.03);
            text-decoration: none;
        }
        .nav-toggle {
            display: none;
            background: none;
            border: 2px solid var(--border);
            color: var(--light);
            font-size: 1.6rem;
            padding: 6px 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .nav-toggle:hover {
            background: var(--card-bg);
        }
        .main-nav {
            display: flex;
            gap: 8px 20px;
            flex-wrap: wrap;
            align-items: center;
        }
        .main-nav a {
            color: var(--text);
            font-weight: 500;
            padding: 6px 0;
            border-bottom: 2px solid transparent;
            transition: border-color 0.2s, color 0.2s;
            font-size: 0.95rem;
        }
        .main-nav a:hover {
            color: var(--secondary);
            border-bottom-color: var(--secondary);
            text-decoration: none;
        }
        .breadcrumb {
            background: rgba(26, 10, 46, 0.6);
            padding: 0.6em 0;
            font-size: 0.9rem;
            border-bottom: 1px solid var(--border);
        }
        .breadcrumb ol {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            margin: 0;
            padding: 0;
        }
        .breadcrumb li+li::before {
            content: "›";
            margin-right: 12px;
            color: var(--text-muted);
        }
        .breadcrumb a {
            color: var(--text-muted);
        }
        .breadcrumb a:hover {
            color: var(--secondary);
        }
        .breadcrumb .current {
            color: var(--light);
            font-weight: 600;
        }
        .featured-figure {
            margin: 2em 0 1.5em;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            background: var(--card-bg);
            padding: 8px;
        }
        .featured-figure img {
            border-radius: calc(var(--radius) - 4px);
            width: 100%;
            min-height: 200px;
            object-fit: cover;
            background: #2a1a3e;
        }
        .featured-figure figcaption {
            padding: 0.8em 1em 0.4em;
            font-size: 0.92rem;
            color: var(--text-muted);
            text-align: center;
        }
        .mod-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 24px;
            margin: 1.8em 0;
        }
        .mod-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.4em 1.2em;
            border: 1px solid var(--border);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }
        .mod-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
            border-color: var(--secondary);
        }
        .mod-card h3 {
            margin-top: 0;
            font-size: 1.2rem;
            color: var(--light);
        }
        .mod-card .badge {
            display: inline-block;
            background: var(--secondary);
            color: #fff;
            font-size: 0.75rem;
            padding: 2px 12px;
            border-radius: 20px;
            font-weight: 600;
            letter-spacing: 0.3px;
            margin-bottom: 0.6em;
        }
        .mod-card p {
            font-size: 0.95rem;
            color: var(--text-muted);
            margin-bottom: 0.4em;
        }
        .mod-card .rating-star {
            color: #ffc107;
            letter-spacing: 2px;
        }
        .search-section {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 2em 1.5em;
            border: 1px solid var(--border);
            margin: 2em 0;
        }
        .search-section form {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }
        .search-section input[type="text"] {
            flex: 1;
            min-width: 200px;
            padding: 12px 18px;
            border-radius: 30px;
            border: 2px solid var(--border);
            background: #12121e;
            color: var(--light);
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
        }
        .search-section input[type="text"]:focus {
            border-color: var(--secondary);
        }
        .search-section button {
            background: var(--secondary);
            color: #fff;
            border: none;
            padding: 12px 28px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .search-section button:hover {
            background: #c73a52;
            transform: scale(1.02);
        }
        .feedback-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin: 2em 0;
        }
        @media (max-width:700px) {
            .feedback-grid {
                grid-template-columns: 1fr;
            }
        }
        .feedback-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.6em 1.4em;
            border: 1px solid var(--border);
        }
        .feedback-card h3 {
            margin-top: 0;
            font-size: 1.2rem;
        }
        .feedback-card form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .feedback-card input,
        .feedback-card textarea,
        .feedback-card select {
            padding: 10px 14px;
            border-radius: 8px;
            border: 2px solid var(--border);
            background: #12121e;
            color: var(--light);
            font-size: 0.95rem;
            font-family: var(--font);
            outline: none;
            transition: border-color 0.2s;
            width: 100%;
        }
        .feedback-card input:focus,
        .feedback-card textarea:focus,
        .feedback-card select:focus {
            border-color: var(--secondary);
        }
        .feedback-card textarea {
            min-height: 100px;
            resize: vertical;
        }
        .feedback-card button {
            background: var(--secondary);
            color: #fff;
            border: none;
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s;
            align-self: flex-start;
            font-size: 0.95rem;
        }
        .feedback-card button:hover {
            background: #c73a52;
        }
        .star-rating {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 4px;
        }
        .star-rating input {
            display: none;
        }
        .star-rating label {
            font-size: 1.8rem;
            color: var(--border);
            cursor: pointer;
            transition: color 0.15s;
        }
        .star-rating input:checked~label,
        .star-rating label:hover,
        .star-rating label:hover~label {
            color: #ffc107;
        }
        friend-link {
            display: block;
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.4em 1.6em;
            border: 1px solid var(--border);
            margin: 1.2em 0;
        }
        friend-link a {
            display: inline-block;
            margin: 0.3em 0.6em 0.3em 0;
            padding: 4px 14px;
            background: rgba(233, 69, 96, 0.12);
            border-radius: 20px;
            font-size: 0.92rem;
            transition: background 0.2s;
        }
        friend-link a:hover {
            background: rgba(233, 69, 96, 0.25);
            text-decoration: none;
        }
        .site-footer {
            background: linear-gradient(135deg, #0d0d1a, #1a0a2e);
            border-top: 2px solid var(--border);
            padding: 2em 0;
            margin-top: auto;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .site-footer .footer-inner {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }
        .site-footer .copyright {
            font-size: 0.85rem;
            opacity: 0.8;
        }
        .last-updated {
            display: inline-block;
            background: rgba(233, 69, 96, 0.12);
            padding: 0.3em 1em;
            border-radius: 20px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin: 0.8em 0 1.4em;
        }
        .toc {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.6em 2em;
            border: 1px solid var(--border);
            margin: 1.8em 0;
        }
        .toc h2 {
            margin-top: 0;
            border-left: none;
            padding-left: 0;
            font-size: 1.3rem;
        }
        .toc ol {
            margin: 0.6em 0 0 1.2em;
            columns: 2 240px;
            column-gap: 30px;
        }
        .toc li {
            break-inside: avoid;
            margin-bottom: 0.3em;
        }
        .toc a {
            color: var(--text-muted);
        }
        .toc a:hover {
            color: var(--secondary);
        }
        @media (max-width:768px) {
            h1 {
                font-size: 1.8rem;
            }
            h2 {
                font-size: 1.4rem;
            }
            h3 {
                font-size: 1.15rem;
            }
            .header-inner {
                flex-wrap: wrap;
            }
            .nav-toggle {
                display: block;
            }
            .main-nav {
                display: none;
                flex-direction: column;
                width: 100%;
                padding: 12px 0 6px;
                gap: 4px;
                border-top: 1px solid var(--border);
                margin-top: 8px;
            }
            .main-nav.open {
                display: flex;
            }
            .main-nav a {
                padding: 8px 12px;
                border-radius: 8px;
                width: 100%;
            }
            .main-nav a:hover {
                background: var(--card-bg);
                border-bottom-color: transparent;
            }
            .toc ol {
                columns: 1;
            }
            .mod-grid {
                grid-template-columns: 1fr;
            }
            .search-section form {
                flex-direction: column;
            }
            .search-section input[type="text"] {
                width: 100%;
                min-width: unset;
            }
            .search-section button {
                width: 100%;
                justify-content: center;
            }
        }
        @media (min-width:769px) {
            .nav-toggle {
                display: none !important;
            }
            .main-nav {
                display: flex !important;
            }
        }
        .text-muted {
            color: var(--text-muted);
        }
        .mt-1 {
            margin-top: 1em;
        }
        .mb-1 {
            margin-bottom: 1em;
        }
        .highlight {
            color: var(--secondary);
            font-weight: 600;
        }
        .tag {
            display: inline-block;
            background: rgba(15, 52, 96, 0.4);
            padding: 2px 14px;
            border-radius: 16px;
            font-size: 0.8rem;
            color: var(--text-muted);
            border: 1px solid var(--border);
        }
        .fa-ul {
            margin-left: 2em;
        }
        .fa-ul li {
            margin-bottom: 0.6em;
        }
        section[id] {
            scroll-margin-top: 80px;
        }
