        /* —— 深色科技风 · 规则数据库 · GitHub Gist 风格 —— */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #0a0f1a;
            color: #e3e9f5;
            font-family: 'Inter', 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: 
                linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 2;
        }

        /* ----- 导航栏 (与首页一致) ----- */
        header {
            background: rgba(8, 14, 23, 0.85);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid #1e3a5f;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            padding: 12px 0;
        }

        .logo-area h1 {
            font-size: 1.9rem;
            font-weight: 700;
            background: linear-gradient(135deg, #a0e9ff, #4f9cf7, #6ee7b7);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.02em;
            text-shadow: 0 0 12px rgba(37,99,235,0.3);
        }

        .logo-area p {
            font-size: 0.7rem;
            color: #7f9bc2;
            margin-top: 4px;
            font-weight: 400;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .nav-links {
            display: flex;
            gap: 1.8rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .nav-links a {
            text-decoration: none;
            font-weight: 530;
            color: #b0caf0;
            transition: all 0.15s;
            font-size: 0.9rem;
            padding: 6px 0;
            border-bottom: 2px solid transparent;
            font-family: inherit;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: #6ee7b7;
            border-bottom-color: #2dd4bf;
            text-shadow: 0 0 6px #14b8a6;
        }

        /* 页面标题 */
        .rules-hero {
            text-align: center;
            padding: 48px 0 20px;
        }

        .rules-badge {
            display: inline-block;
            background: #0f2840;
            color: #7ad0ff;
            padding: 6px 24px;
            border-radius: 40px;
            font-weight: 600;
            border: 1px solid #2d5f8b;
            margin-bottom: 20px;
        }

        .rules-hero h2 {
            font-size: 3.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #c4e6ff, #7dd3fc, #6ee7b7);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            line-height: 1.2;
        }

        /* 分类标签 */
        .category-bar {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
            margin: 30px 0 20px;
        }

        .cat-chip {
            background: #0e1a26e0;
            border: 1px solid #1e4970;
            padding: 8px 24px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(8px);
            transition: 0.15s;
        }

        .cat-chip.active {
            background: #1e4b6e;
            border-color: #2dd4bf;
            color: #e3f2fd;
        }

        /* 规则卡片网格 */
        .rules-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 24px;
            margin: 30px 0 50px;
        }

        .rule-card {
            background: rgba(12, 22, 34, 0.7);
            backdrop-filter: blur(8px);
            border: 1px solid #1e405b;
            border-radius: 32px;
            padding: 24px;
            transition: 0.15s;
        }

        .rule-card:hover {
            border-color: #2dd4bf;
            box-shadow: 0 0 24px #14b8a620;
        }

        .rule-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .rule-icon {
            font-size: 2rem;
        }

        .rule-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #d0e5ff;
        }

        .rule-desc {
            color: #9ab3d0;
            margin-bottom: 16px;
            font-size: 0.95rem;
        }

        /* 代码块 (Gist风格) */
        .code-block {
            background: #0b1621;
            border-radius: 24px;
            padding: 18px;
            border: 1px solid #1e4970;
            position: relative;
            margin-bottom: 16px;
            font-family: 'SF Mono', monospace;
            font-size: 0.85rem;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .code-block pre {
            color: #b9d5ff;
            margin: 0;
        }

        .copy-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: #1e3a5f;
            border: none;
            color: #a5f3fc;
            padding: 6px 14px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: 0.15s;
            border: 1px solid #2e7a9c;
        }

        .copy-btn:hover {
            background: #2dd4bf;
            color: #020c14;
        }

        .rule-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tag-group {
            display: flex;
            gap: 8px;
        }

        .rule-tag {
            background: #1e4b6e;
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
            color: #a5f3fc;
        }

        /* 号召下载 */
        .cta-rules {
            background: #07131e;
            border-radius: 48px;
            padding: 48px 30px;
            margin: 60px 0 40px;
            text-align: center;
            border: 1px solid #1a4b6d;
            box-shadow: 0 0 35px #00000099;
        }

        .cta-rules h3 {
            font-size: 2.4rem;
            font-weight: 750;
            color: #d6ecff;
        }

        .btn-cyber-rules {
            background: transparent;
            border: 2px solid #2dd4bf;
            color: #b9f3f0;
            padding: 18px 60px;
            border-radius: 60px;
            font-weight: 700;
            font-size: 1.5rem;
            text-decoration: none;
            display: inline-block;
            box-shadow: 0 0 28px #14b8a6;
            backdrop-filter: blur(8px);
            cursor: pointer;
        }

        /* footer */
        footer {
            background: #050b12f0;
            backdrop-filter: blur(8px);
            color: #9bb9da;
            padding: 40px 0 24px;
            margin-top: 40px;
            border-top: 1px solid #153e5a;
        }

        .footer-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 32px;
        }

        .footer-copyright {
            text-align: center;
            padding-top: 28px;
            font-size: 0.85rem;
            border-top: 1px solid #1a405a;
            margin-top: 20px;
        }

        a { color: #b0d4fc; text-decoration: none; }

        @media (max-width: 600px) {
            .rules-hero h2 { font-size: 2.2rem; }
            .rules-grid { grid-template-columns: 1fr; }
        }

        /* 复制提示 */
        .toast-msg {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: #10b981;
            color: #020c14;
            padding: 12px 28px;
            border-radius: 60px;
            font-weight: 600;
            z-index: 999;
            box-shadow: 0 0 25px #10b981;
            transition: opacity 0.2s;
        }