/*! 由 ./zh/ext/tools/crypt/index.html 内联 <style> 原样提取，勿手改（保持视觉一致） */

        * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --primary: #87CEEB;
            --primary-dark: #4682B4;
            --bg: #E6F7FF;
            --card: #FFFFFF;
            --text: #333;
            --gray: #666;
            --alert-bg: #003366;
            --gap-sm: 8px;
            --gap-md: 16px;
            --gap-lg: 24px;
            --padding-sm: 12px;
            --padding-md: 20px;
            --padding-lg: 30px;
            --device-shadow: 0 0 20px rgba(0,0,0,0.15);
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: #f0f4f8;
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
        }
        .device-switch-container {
            position: fixed; top: 80px; right: 20px; z-index: 99;
            display: flex; flex-direction: column; gap: 10px;
            transition: all 0.25s ease;
        }
        .switch-toggle-btn {
            width: 50px; height: 50px; border-radius: 50%;
            background: var(--primary); color: var(--primary-dark);
            border: none; font-size: 18px; cursor: pointer;
            box-shadow: var(--device-shadow);
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.2s ease, background 0.25s ease;
        }
        .switch-toggle-btn:hover {
            transform: scale(1.08);
        }
        .device-options {
            display: none; flex-direction: column; gap: 8px;
            background: #fff; padding: 10px; border-radius: 10px;
            box-shadow: var(--device-shadow);
            transition: all 0.25s ease;
        }
        .device-options.show { display: flex; }
        .device-btn {
            padding: 8px 12px; border: 1px solid var(--primary);
            border-radius: 6px; background: #fff; color: var(--primary-dark);
            cursor: pointer; font-size: 14px; transition: all 0.25s ease;
        }
        .device-btn.active, .device-btn:hover { background: var(--primary); color: #fff; }
        .page-wrapper {
            flex: 1; display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            padding: 0 var(--padding-sm); transition: all 0.4s ease;
        }
        .container {
            flex: 1; max-width: 1200px; width: 100%;
            margin: 0 auto; padding: clamp(var(--padding-md), 5vw, var(--padding-lg)) var(--padding-sm);
            display: flex; flex-direction: column; gap: var(--gap-sm);
        }
        .device-pc { max-width: 1000px; width: 100%; aspect-ratio: 16/9; overflow-y: auto; border-radius: 12px; box-shadow: var(--device-shadow); background: var(--bg); transition: all 0.35s ease; }
        .device-tablet { max-width: 768px; width: 100%; aspect-ratio: 4/3; overflow-y: auto; border-radius: 12px; box-shadow: var(--device-shadow); background: var(--bg); transition: all 0.35s ease; }
        .device-mobile { max-width: 420px; width: 100%; aspect-ratio: 9/16; overflow-y: auto; border-radius: 20px; box-shadow: var(--device-shadow); background: var(--bg); transition: all 0.35s ease; }
        .navbar {
            background: var(--primary); padding: 12px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky; top: 0; z-index: 100; width: 100%;
            transition: all 0.3s ease;
        }
        .nav-container {
            max-width: 1200px; margin: 0 auto;
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 var(--padding-sm);
        }
        .logo { font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: bold; color: var(--primary-dark); text-decoration: none; }
        .nav-links { display: flex; gap: clamp(12px, 3vw, 20px); }
        .nav-links a { color: var(--primary-dark); font-weight: 500; text-decoration: none; font-size: clamp(0.9rem, 3vw, 1rem); transition: color 0.25s ease; }
        .nav-links a:hover, .nav-links a.active { text-decoration: underline; font-weight: 600; }
        .card {
            background: var(--card); width: 100%; max-width: 900px;
            border-radius: 16px; box-shadow: 0 8px 24px rgba(135, 206, 235, 0.4);
            padding: clamp(var(--padding-md), 5vw, var(--padding-lg));
            margin: var(--gap-sm) 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(135, 206, 235, 0.25);
        }
        .card h1 { color: var(--primary-dark); text-align: center; margin-bottom: var(--gap-lg); font-size: clamp(1.6rem, 5vw, 2rem); }
        .back-btn {
            color: var(--primary-dark); text-decoration: none;
            font-weight: 500; font-size: 0.9rem;
            padding: 6px 20px; border: 1px solid var(--primary-dark);
            border-radius: 6px; transition: all 0.25s ease; align-self: flex-start;
        }
        .back-btn:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }
        .anti-scam-bar {
            background-color: var(--alert-bg); color: #fff;
            text-align: center; padding: clamp(12px, 3vw, 15px) var(--padding-sm);
            font-weight: bold; font-size: clamp(0.85rem, 2.5vw, 0.95rem);
            border-top: 3px solid var(--primary); line-height: 1.6; width: 100%;
        }
        footer {
            text-align: center; padding: var(--padding-md);
            background-color: var(--primary); color: var(--primary-dark);
            font-size: clamp(0.8rem, 2.5vw, 0.85rem); line-height: 1.5; width: 100%;
        }

        .tool-area { margin: 20px 0; }
        .tool-area p { color: #090; margin: 10px 0; font-weight: 500; }
        .tool-area input, .tool-area select, .tool-area button {
            padding: 10px 14px; border-radius: 6px; border: 1px solid #ccc;
            font-size: 15px; margin: 6px 0; transition: all 0.25s ease;
        }
        .tool-area button {
            background: var(--primary-dark); color: #fff; border: none; cursor: pointer;
        }
        .tool-area button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(70,130,180,0.2);
        }

        .code-theme-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .code-theme-btn {
            padding: 6px 12px;
            border-radius: 6px;
            border: 1px solid var(--primary-dark);
            background: #fff;
            color: var(--primary-dark);
            cursor: pointer;
            transition: all 0.25s ease;
        }
        .code-theme-btn:hover {
            background: var(--primary-dark);
            color: #fff;
        }
        .tool-area pre {
            background: #1e1e1e; padding: 14px; border-radius: 8px;
            overflow: auto; margin: 10px 0;
            transition: all 0.3s ease;
        }
        .tool-area pre.light {
            background: #f7f7f7;
            color: #333;
        }
        #hashResult {
            margin-top: 10px; padding: 10px; background: #1e1e1e;
            border-radius: 6px; font-family: monospace; color: #fff;
            transition: all 0.3s ease;
        }
        #hashResult.light {
            background: #f7f7f7;
            color: #333;
        }

        .preview-container {
            margin-top: 20px;
        }
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        #preview {
            width: 100%;
            height: 320px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: #fff;
        }

        @media (max-width: 768px) {
            .device-switch-container { top: 70px; right: 10px; }
            .switch-toggle-btn { width: 40px; height: 40px; font-size: 16px; }
            #preview { height: 240px; }
        }
    