        /* 全局样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }
    
        
        /* 容器样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 标题区域 */
        .sheader {
            text-align: center;
            margin-bottom: 32px;
            padding: 20px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        
        .icon-container {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background-color: rgba(22, 93, 255, 0.1);
            color: #165DFF;
            margin-bottom: 16px;
            font-size: 24px;
        }
        
        .main-title {
            font-size: 26px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #1D2129;
        }
        
        .subtitle {
            color: #6B7280;
            font-size: 14px;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* 主编辑区域 */
        .editor-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 24px;
        }
        
        @media (min-width: 1024px) {
            .editor-container {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        .editor-panel {
            display: flex;
            flex-direction: column;
            height: 520px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        
        .panel-header {
            background-color: #f8fafc;
            padding: 14px 20px;
            border-bottom: 1px solid #E5E7EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .panel-title {
            font-weight: 500;
            font-size: 16px;
            display: flex;
            align-items: center;
            color: #334155;
        }
        
        .title-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .indicator-red {
            background-color: #EF4444;
        }
        
        .indicator-green {
            background-color: #10B981;
        }
        
        .button-group {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap; /* 防止按钮组换行 */
        }
        
        .panel-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* 代码区域和行号样式 */
        .code-container {
            position: relative;
            display: flex;
            flex-grow: 1;
            overflow: hidden;
        }
        
        .line-numbers {
            width: 48px;
            padding: 16px 10px;
            text-align: right;
            background-color: #F3F4F6;
            color: #6B7280;
            font-family: monospace;
            font-size: 14px;
            overflow: hidden;
            user-select: none;
            border-right: 1px solid #E5E7EB;
        }
        
        .code-content {
            flex: 1;
            overflow: auto;
            position: relative;
        }
        
        .code-input, .code-output {
            width: 100%;
            min-height: 100%;
            border: none;
            resize: none;
            font-family: monospace;
            font-size: 14px;
            line-height: 1.5;
            padding: 16px 20px;
            background-color: #F9FAFB;
        }
        
        .code-input:focus {
            outline: none;
            box-shadow: none;
        }
        
        /* 移除textarea的滚动条，只保留容器的滚动条 */
        .code-input {
            overflow: hidden !important;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
        }
        
        /* 单行不换行样式 */
        .single-line {
            white-space: nowrap !important;
        }
        
        /* 按钮样式 */
        .btn {
            font-size: 13px;
            padding: 6px 12px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap; /* 关键：防止按钮文字换行 */
        }
        
        .btn-primary {
            background-color: rgba(22, 93, 255, 0.1);
            color: #165DFF;
        }
        
        .btn-primary:hover {
            background-color: rgba(22, 93, 255, 0.2);
            transform: translateY(-1px);
        }
        
        .btn-secondary {
            background-color: #F3F4F6;
            color: #4B5563;
        }
        
        .btn-secondary:hover {
            background-color: #E5E7EB;
            transform: translateY(-1px);
        }
        
        .btn-active {
            background-color: #165DFF !important;
            color: white !important;
        }
        
        /* 操作按钮 */
        .action-button {
            display: flex;
            justify-content: center;
            margin: 25px 0 15px;
        }
        
        .extract-btn {
            background-color: #165DFF;
            color: white;
            font-weight: 500;
            padding: 11px 34px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
        }
        
        .extract-btn:hover {
            background-color: #0E4CD1;
            box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
            transform: translateY(-1px);
        }
        
        .extract-btn:active {
            transform: translateY(1px);
        }
        
        /* 状态提示 */
        .status-message {
            margin: 8px auto;
            padding: 9px 18px;
            border-radius: 8px;
            text-align: center;
            max-width: 300px;
            font-size: 14px;
            display: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .status-success {
            background-color: #D1FAE5;
            color: #059669;
        }
        
        .status-warning {
            background-color: #FEF3C7;
            color: #D97706;
        }
        
        .status-error {
            background-color: #FEE2E2;
            color: #DC2626;
        }
        
        .status-info {
            background-color: #DBEAFE;
            color: #1E40AF;
        }
        
        /* 剪贴板提示 */
        .clipboard-tip {
            margin: 8px auto;
            padding: 9px 18px;
            border-radius: 8px;
            text-align: center;
            max-width: 300px;
            font-size: 14px;
            background-color: #EFF6FF;
            color: #1E40AF;
            display: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        kbd {
            padding: 2px 6px;
            background-color: white;
            border: 1px solid #E5E7EB;
            border-radius: 4px;
            font-size: 12px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        /* 全局滚动条样式优化 */
        ::-webkit-scrollbar {
            width: 7px;
            height: 7px;
        }
        
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        
        ::-webkit-scrollbar-thumb {
            background-color: rgba(156, 163, 175, 0.5);
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background-color: rgba(156, 163, 175, 0.8);
        }
        
        /* 右侧输出区域固定宽度处理 */
        #textOutput {
            width: 100%;
            box-sizing: border-box;
            word-wrap: break-word; /* 确保在换行模式下正常换行 */
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .button-group {
                gap: 5px;
            }
            
            .btn {
                padding: 5px 8px;
                font-size: 12px;
            }
            
            .main-title {
                font-size: 22px;
            }
            
            .editor-panel {
                height: 450px;
            }
        }
        
        @media (max-width: 480px) {
            .panel-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 12px 15px;
            }
            
            .button-group {
                width: 100%;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 5px;
            }
            
            .header {
                padding: 15px;
                margin-bottom: 20px;
            }
            
            .action-button {
                margin: 15px 0;
            }
            
            .extract-btn {
                padding: 10px 24px;
                font-size: 15px;
            }
        }