        /* ========== 完全复用统一的全局样式 ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
        }

        body {
            background-color: #f5f7fa;
            padding: 0;
            min-width: 1200px;
        }

        /* ========== 导航栏 ========== */
        .navbar {
            background-color: #28a745;
            color: #fff;
            padding: 15px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .navbar-container {
            max-width: 1920px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navbar-logo {
            font-size: 20px;
            font-weight: 700;
        }
        .navbar-menu {
            display: flex;
            gap: 30px;
        }
        .navbar-menu a {
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            transition: opacity 0.3s;
        }
        .navbar-menu a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* ========== 页脚 ========== */
        .footer {
            background-color: #333;
            color: #ccc;
            padding: 20px 15px;
            margin-top: 40px;
        }
        .footer-container {
            max-width: 1920px;
            margin: 0 auto;
        }
        .footer-copyright {
            text-align: center;
            font-size: 12px;
            color: #999;
            line-height: 1.6;
        }

        /* ========== 容器 ========== */
        .container {
            width: 98%;
            max-width: 1920px;
            margin: 0 auto;
            padding: 0 15px;
        }
        .container-inner {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            padding: 30px;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        /* ========== 模块 ========== */
        .module {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 25px;
        }
        .title-btn-container {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e5e9f0;
        }
        .title-btn-container h2 {
            margin: 0;
            color: #2c3e50;
            font-size: 20px;
            padding-left: 10px;
            border-left: 4px solid #28a745;
        }
        .card-link-btn {
            display: inline-block;
            padding: 10px 20px;
            background: #28a745;
            color: #fff;
            text-decoration: none;
            border-radius: 4px;
            font-size: 14px;
            transition: background-color 0.2s;
        }
        .card-link-btn:hover {
            background: #218838;
        }

        /* ========== 表单 ========== */
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: 600;
            font-size: 14px;
        }
        .form-control {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #e5e9f0;
            border-radius: 4px;
            font-size: 14px;
            color: #333;
            max-width: 100%;
        }
        .form-control:focus {
            outline: none;
            border-color: #28a745;
            box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
        }
        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #28a745;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            margin-right: 8px;
        }
        .btn:hover {
            background-color: #218838;
        }
        .btn-sm {
            padding: 6px 12px;
            font-size: 13px;
        }
        .btn-success {
            background-color: #28a745;
        }
        .btn-reset {
            background: #6c757d !important;
        }
        .btn-reset:hover {
            background: #5a6268 !important;
        }

        /* ========== 结果区域 ========== */
        .result-area {
            margin-top: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e5e9f0;
        }
        .result-pre {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 400px;
            overflow-y: auto;
        }

        /* ========== 状态样式 ========== */
        .delay-low { color: #28a745; font-weight: 500; }
        .delay-mid { color: #f59e0b; font-weight: 500; }
        .delay-high { color: #ef4444; font-weight: 500; }

        /* ========== 导航下拉菜单 ========== */
        .navbar-dropdown {
          position: relative;
          display: inline-block;
        }
        .navbar-submenu {
          display: none;
          position: absolute;
          top: 100%;
          left: 0;
          min-width: 160px;
          z-index: 9999;
          background: #ffffff;
          padding: 5px 0;
        }
        .navbar-submenu a {
          display: block;
          padding: 8px 15px;
          color: #333 !important;
          white-space: nowrap;
          text-decoration: none;
        }
        .navbar-submenu a:hover {
          background: #f5f5f5;
          color: #28a745 !important;
        }
        .navbar-dropdown:hover .navbar-submenu {
          display: block;
        }

        /* ========== 响应式（手机端） ========== */
        @media only screen and (max-width: 767px) {
            body {
                min-width: unset;
                width: 100%;
                overflow-x: hidden;
            }
            .container {
                width: 100%;
                padding: 0 10px;
            }
            .container-inner {
                padding: 15px;
                margin: 10px auto;
                border-radius: 8px;
            }
            .navbar {
                padding: 10px 15px;
            }
            .navbar-container {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            .navbar-menu {
                gap: 10px;
                flex-wrap: wrap;
                width: 100%;
            }
            .navbar-menu a {
                font-size: 12px;
            }
            .title-btn-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .card-link-btn {
                width: 100%;
                text-align: center;
            }
            .module {
                padding: 15px;
                margin-bottom: 15px;
            }
            .btn {
                width: 100%;
                margin-bottom: 5px;
            }
            .result-area {
                padding: 12px;
            }
            .form-control {
                max-width: unset;
                width: 100%;
            }
            .module div[style*="display:flex"] {
                flex-wrap: wrap !important;
                gap: 8px !important;
            }
        }
        /* 加密工具副导航栏样式 - 与主导航统一风格 */
        .sub-navbar {
            background-color: #208838; /* 比主导航稍深一点的绿色，区分但统一 */
            color: #fff;
            padding: 10px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 15px;
        }
        .sub-navbar-container {
            max-width: 1920px;
            margin: 0 auto;
            display: flex;
            justify-content: center; /* 居中显示 */
            align-items: center;
            gap: 25px;
            flex-wrap: wrap;
        }
        .sub-navbar-menu a {
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            padding: 5px 10px;
            border-radius: 4px;
            transition: all 0.2s;
        }
        .sub-navbar-menu a:hover,
        .sub-navbar-menu a.active {
            background-color: rgba(255,255,255,0.2);
            text-decoration: none;
        }
        
        /* 移动端适配副导航 */
        @media only screen and (max-width: 767px) {
            .sub-navbar {
                padding: 8px 15px;
            }
            .sub-navbar-container {
                gap: 10px;
                justify-content: flex-start;
            }
            .sub-navbar-menu a {
                font-size: 12px;
                padding: 4px 8px;
            }
        }

        textarea.form-control {
            height: 280px;
            resize: vertical;
            font-family: Consolas, "Microsoft YaHei", monospace;
            line-height: 1.6;
        }