/* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 苹果风格基础设置 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
            background: linear-gradient(135deg, #F5F7FA 0%, #E8ECF5 100%);
            min-height: 100vh;
            color: #2D3748;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* 主容器 */
        .container {
            max-width: 1000px;
            margin: 4px auto;
            padding: 0 6px;
        }

        /* 卡片样式 */
        .card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 10px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
            padding: 10px;
            margin-bottom: 6px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* 标题样式 */
        h2 {
            color: #2D3748;
            text-align: center;
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 6px;
            letter-spacing: -0.5px;
        }

        h3 {
            color: #2D3748;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 4px;
            letter-spacing: -0.3px;
        }

        /* 表单元素样式 */
        label {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
            color: #2D3748;
            font-size: 13px;
            letter-spacing: -0.2px;
            position: relative;
            padding-left: 6px;
        }

        label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 16px;
            background: linear-gradient(135deg, #7C8BFE 0%, #5A67D8 100%);
            border-radius: 2px;
            opacity: 0.8;
        }

        input, textarea, select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e1e5e9;
            border-radius: 10px;
            font-size: 14px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            color: #2c3e50;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: inherit;
            min-height: 42px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            font-weight: 500;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
            position: relative;
        }

        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: #7C8BFE;
            background: linear-gradient(135deg, #ffffff 0%, #F8F9FE 100%);
            box-shadow: 0 0 0 3px rgba(124, 139, 254, 0.12), 0 3px 12px rgba(124, 139, 254, 0.08);
            transform: translateY(-1px);
        }

        input:hover, textarea:hover, select:hover {
            border-color: #bdc3c7;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }

        textarea {
            resize: vertical;
            min-height: 70px;
            line-height: 1.5;
        }

        /* 移除重要字段的特殊样式，使用统一样式 */

        /* 输入框填充状态 */
        input:not(:placeholder-shown), textarea:not(:placeholder-shown) {
            border-color: #bdc3c7;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        }

        /* 为字段容器添加醒目样式 */
        .col {
            position: relative;
            transition: all 0.3s ease;
            padding: 4px;
            border-radius: 6px;
        }

        .col:hover {
            background: rgba(124, 139, 254, 0.02);
            transform: translateY(-1px);
        }

        .col.focused {
            background: rgba(124, 139, 254, 0.04);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(124, 139, 254, 0.1);
        }


        /* 按钮样式 */
        .btn {
            background: linear-gradient(135deg, #7C8BFE 0%, #5A67D8 100%);
            color: #ffffff;
            border: none;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            letter-spacing: -0.1px;
            box-shadow: 0 3px 8px rgba(124, 139, 254, 0.25);
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
        }

        .btn:hover {
            transform: none;
        }

        .btn:active {
            transform: scale(0.98);
            transition: transform 0.1s ease;
        }

        .btn-orange {
            background: #FDE68A;
            color: #2D3748;
            box-shadow: 0 4px 12px rgba(253, 230, 138, 0.3);
        }

        .btn-secondary {
            background: #ffffff;
            color: #2D3748;
            border: 1px solid #E1E6F0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-secondary:hover {
            background: #F8F9FE;
            color: #7C8BFE;
            border-color: #7C8BFE;
            box-shadow: 0 6px 12px rgba(124, 139, 254, 0.1);
            transform: translateY(-2px);
        }

        .btn-secondary:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }

        .btn-secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(124, 139, 254, 0.1), transparent);
            transition: left 0.5s;
        }

        .btn-secondary:hover::before {
            left: 100%;
        }

        /* 布局 */
        .row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            margin-bottom: 8px;
        }

        .col {
            display: flex;
            flex-direction: column;
        }

        /* 按钮组 */
        .btn-group {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin: 8px 0;
            flex-direction: column;
        }

        .btn-group .btn {
            width: 100%;
            margin-bottom: 2px;
        }

        /* 搜索框 */
        .search-box {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            flex-direction: row;
            align-items: center;
        }

        .search-box input {
            flex: 4;
            min-height: 44px;
            font-size: 15px;
            border-radius: 10px;
            background: #ffffff;
            border: 1px solid #e1e5ea;
            box-shadow: 0 6px 16px rgba(31, 45, 61, 0.08);
        }

        .search-box input:focus {
            border-color: #5b8cff;
            box-shadow: 0 8px 18px rgba(63, 99, 255, 0.18);
        }

        /* 确保桌面端输入框宽度 */
        @media (min-width: 481px) {
            .search-box input,
            .search-box #searchInput {
                flex: 4 !important;
            }
        }

        /* 直接针对searchInput的样式 - 使用具体宽度确保生效 */
        #searchInput {
            flex: 4 !important;
            width: 100% !important;
            min-width: 280px !important;
            max-width: none !important;
        }
        
        .search-box #searchInput {
            flex: 4 !important;
            width: 100% !important;
            min-width: 280px !important;
        }
        
        div.search-box input#searchInput {
            flex: 4 !important;
            width: 100% !important;
            min-width: 280px !important;
        }

        .search-buttons {
            display: flex;
            gap: 10px;
            flex: 1;
        }

        .search-box button {
            flex: 1;
            min-height: 44px;
            font-size: 14px;
            border-radius: 12px;
            white-space: nowrap;
            box-shadow: 0 8px 16px rgba(23, 43, 77, 0.12);
        }

        /* 桌面端布局适配：模板按钮 + 输入框 + 操作按钮同行自适应，
           输入框可收缩，按钮按内容宽度展示不被截断，窄屏自动换行 */
        @media (min-width: 481px) {
            .search-container {
                display: flex;
                gap: 10px;
                align-items: center;
                flex-wrap: wrap;
            }

            .template-selector {
                flex: 0 0 auto;
            }

            .search-box {
                flex: 1 1 360px;
                min-width: 0;
                margin-bottom: 0;
            }

            .search-box input,
            .search-box #searchInput,
            div.search-box input#searchInput {
                flex: 1 1 180px !important;
                min-width: 0 !important;
                width: auto !important;
            }

            .search-buttons {
                flex: 0 0 auto;
            }

            .search-box button {
                flex: 0 0 auto;
                padding: 0 18px;
            }
        }


        /* 结果样式 */
        .result {
            margin-top: 12px;
        }

        .result img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            margin-top: 8px;
        }

        .params {
            font-size: 10px;
            color: #8e8e93;
            margin-top: 8px;
            padding: 8px;
            background: #f2f2f7;
            border-radius: 6px;
            word-break: break-all;
        }

        /* 查询结果列表 */
        .result-list {
            list-style: none;
            margin: 12px 0;
        }

        .result-list li {
            padding: 8px 0;
            border-bottom: 1px solid #e5e5e7;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }

        .result-list li:last-child {
            border-bottom: none;
        }

        .result-list strong {
            color: #1d1d1f;
            font-weight: 500;
            min-width: auto;
            font-size: 12px;
        }

        /* 错误和成功消息 */
        .error {
            color: #ff3b30;
            background: rgba(255, 59, 48, 0.1);
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(255, 59, 48, 0.2);
            font-size: 12px;
            line-height: 1.4;
        }

        .success {
            color: #34c759;
            background: rgba(52, 199, 89, 0.1);
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(52, 199, 89, 0.2);
            font-size: 12px;
            line-height: 1.4;
        }

        /* 高级选项切换 */
        .toggle-container {
            margin: 12px 0;
            padding: 10px;
            background: #f2f2f7;
            border-radius: 10px;
        }

        .toggle-container label {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            font-weight: normal;
            margin: 0;
        }

        .toggle-container input[type="checkbox"] {
            width: auto;
            margin: 0;
        }

        /* 分割线 */
        hr {
            border: none;
            height: 1px;
            background: #e5e5e7;
            margin: 12px 0;
        }

        /* 卡密验证区域 - 最上方，现代化设计 */
        .card-key-section {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid rgba(102, 126, 234, 0.15);
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-key-section:hover {
            border-color: rgba(102, 126, 234, 0.25);
            box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
            transform: translateY(-2px);
        }

        .card-key-section h3 {
            font-size: 14px;
            margin-bottom: 12px;
            color: #1d1d1f;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .card-key-row {
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }

        .card-key-input {
            flex: 2;
        }

        .card-key-input input {
            height: 40px;
            font-size: 14px;
            padding: 8px 12px;
            border-radius: 10px;
            border: 2px solid rgba(102, 126, 234, 0.2);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.9);
        }

        .card-key-input input:focus {
            border-color: rgba(102, 126, 234, 0.5);
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            outline: none;
            background: rgba(255, 255, 255, 1);
        }

        .card-key-button {
            flex: 1;
        }

        .card-key-button .btn {
            width: 100%;
            height: 40px;
            font-size: 13px;
            padding: 8px 12px;
            font-weight: 600;
            border-radius: 10px;
            border: none;
            min-width: 100px;
        }



        /* 预览区域 - 紧凑布局 */
        .preview-section {
            background: rgba(248, 249, 250, 0.8);
            border-radius: 10px;
            padding: 8px;
            margin-bottom: 8px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .preview-section h3 {
            font-size: 13px;
            margin-bottom: 6px;
            color: #1d1d1f;
        }

        .preview-image {
            max-width: 60%;
            border-radius: 6px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.08);
            margin: 6px auto;
            display: block;
        }

        /* 模板选择区域 - 紧凑布局 */
        .template-section {
            background: rgba(248, 249, 250, 0.8);
            border-radius: 10px;
            padding: 8px;
            margin-bottom: 8px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .template-section h4 {
            margin: 0 0 6px 0;
            color: #1d1d1f;
            font-size: 12px;
        }

        .template-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
            gap: 6px;
            margin-top: 8px;
        }

        .template-card {
            background: #ffffff;
            border-radius: 6px;
            padding: 4px;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .template-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .template-card.selected {
            border-color: #007aff;
            background: rgba(0, 122, 255, 0.05);
        }

        .template-preview {
            width: 100%;
            height: 14px;
            object-fit: cover;
            border-radius: 3px;
            margin-bottom: 1px;
            border: 1px solid #e5e5e7;
        }

        .template-name {
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 1px;
            font-size: 9px;
        }

        .template-description {
            font-size: 7px;
            color: #86868b;
        }

        .template-select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e5e5e7;
            border-radius: 10px;
            font-size: 12px;
            background: #fbfbfd;
            color: #1d1d1f;
            transition: all 0.3s ease;
            font-family: inherit;
            height: 28px;
        }

        .template-select:focus {
            outline: none;
            border-color: #007aff;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
        }

        /* 参数设置区域 */
        .params-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
            padding: 10px;
            background: rgba(248, 249, 250, 0.8);
            border-radius: 6px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .params-section label {
            font-size: 11px;
            color: #666;
            margin-bottom: 2px;
        }

        .params-section input {
            height: 32px;
            font-size: 13px;
        }

        /* 动态字段信息样式 */
        .field-info {
            font-size: 12px;
            color: #666;
            margin-top: 4px;
            padding: 4px 8px;
            background: rgba(0, 122, 255, 0.05);
            border-radius: 4px;
            border-left: 3px solid #007aff;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .field-info span {
            white-space: nowrap;
        }
        
        /* 动态字段容器样式 */
        #dynamicFields {
            margin-bottom: 16px;
        }
        
        #dynamicFields .row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 6px;
        }
        
        #dynamicFields .col {
            flex: 1;
            min-width: calc(50% - 6px);
            margin-bottom: 4px;
            max-width: calc(50% - 6px);
        }
        
        /* 全宽字段样式 */
        #dynamicFields .col.full-width {
            flex: none;
            width: 100%;
            min-width: 100%;
        }
        
        #dynamicFields .row.full-width-field {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 12px;
            padding: 16px;
            border: 1px solid #dee2e6;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        #dynamicFields .row.full-width-field label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        #dynamicFields .row.full-width-field label:before {
            content: "📝";
            font-size: 16px;
        }
        
        #dynamicFields .row.full-width-field textarea {
            min-height: 100px;
            resize: vertical;
            border: 2px solid #e3e8ed;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        
        #dynamicFields .row.full-width-field textarea:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
            transform: translateY(-1px);
        }
        
        #dynamicFields label {
            margin-bottom: 2px;
            font-size: 13px;
            color: #000000;
            font-weight: 500;
        }
        
        #dynamicFields input,
        #dynamicFields textarea {
            padding: 8px 12px;
            font-size: 14px;
            border: 2px solid #d1d5db;
            border-radius: 6px;
            background-color: #ffffff;
            transition: all 0.2s ease;
        }

        #dynamicFields input:focus,
        #dynamicFields textarea:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            outline: none;
        }

        /* 字段显示/隐藏控制 */
        .field-container {
            transition: all 0.3s ease;
            overflow: hidden;
        }


        /* 字段配置区域优化 */
        .field-config-section {
            margin-top: 12px;
            clear: both;
            position: relative;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
        }


        /* 卡密状态区域优化 */
        .api-status .api-status {
            padding: 6px;
        }

        .api-status .api-status > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 6px;
        }

        .api-status .api-status span:first-child {
            font-size: 11px !important;
            white-space: nowrap;
        }

        .api-status .api-status span:last-child {
            font-size: 8px !important;
            padding: 1px 3px !important;
            white-space: nowrap;
        }

        .api-status .api-status > div:last-child {
            font-size: 9px !important;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 移动端滚动优化 */
        body {
            -webkit-overflow-scrolling: touch;
        }

        /* 移动端状态栏适配 */
        @supports (padding: max(0px)) {
            .container {
                padding-left: max(12px, env(safe-area-inset-left));
                padding-right: max(12px, env(safe-area-inset-right));
            }
        }

        /* 动画效果 */
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 印章选择框样式 */
        .seal-option {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            user-select: none;
            position: relative;
            overflow: hidden;
        }

        .seal-option:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        }

        .seal-option:active {
            transform: translateY(0) scale(0.98);
        }

        .seal-option-enabled {
            border: 2px solid #28a745 !important;
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
        }

        .seal-option-enabled:hover {
            border-color: #1e7e34 !important;
            background: linear-gradient(135deg, #c3e6cb 0%, #b3d9b8 100%) !important;
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
        }

        .seal-option-enabled .selection-indicator {
            background: #28a745 !important;
            display: block !important;
            animation: pulse 2s infinite;
        }

        .seal-option-disabled {
            border: 2px solid #dee2e6 !important;
            background: #f8f9fa !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .seal-option-disabled:hover {
            border-color: #adb5bd !important;
            background: #e9ecef !important;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
        }

        .seal-option-disabled .selection-indicator {
            background: #dee2e6 !important;
            display: none !important;
        }

        /* 选中状态动画 */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .seal-option.selected {
            animation: slideIn 0.3s ease;
        }

        .seal-color-btn:hover {
            transform: scale(1.2);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        }
        .seal-color-btn.selected {
            border-color: #007bff !important;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.3) !important;
            transform: scale(1.1);
        }
        #sealColorCustom::-webkit-color-swatch-wrapper { padding: 2px; }
        #sealColorCustom::-webkit-color-swatch { border: none; border-radius: 3px; }
        #sealColorCustom::-moz-color-swatch { border: none; border-radius: 3px; }
        #sealColorHexInput:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.15); }

        /* 印章选择框波纹效果 */
        .seal-option::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .seal-option:active::before {
            width: 300px;
            height: 300px;
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* 深色模式支持 */
        @media (prefers-color-scheme: dark) {
            body {
                background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
                color: #ffffff;
            }

            .card {
                background: rgba(28, 28, 30, 0.95);
                border: 1px solid rgba(255, 255, 255, 0.1);
            }

            input, textarea, select {
                background: rgba(44, 44, 46, 0.8);
                border-color: rgba(255, 255, 255, 0.2);
                color: #ffffff;
            }

            input:focus, textarea:focus, select:focus {
                background: rgba(44, 44, 46, 1);
                border-color: #007aff;
            }

            .api-status.success {
                background: rgba(52, 199, 89, 0.2);
                border-color: rgba(52, 199, 89, 0.4);
            }

            .api-status.error {
                background: rgba(255, 59, 48, 0.2);
                border-color: rgba(255, 59, 48, 0.4);
            }

            .error {
                background: rgba(255, 59, 48, 0.2);
                border-color: rgba(255, 59, 48, 0.3);
            }

            .success {
                background: rgba(52, 199, 89, 0.2);
                border-color: rgba(52, 199, 89, 0.3);
            }

            .params {
                background: rgba(44, 44, 46, 0.8);
                color: rgba(255, 255, 255, 0.7);
            }

            .result-list li {
                border-bottom-color: rgba(255, 255, 255, 0.1);
            }

            .result-list strong {
                color: #ffffff;
            }

            .result-list span {
                color: rgba(255, 255, 255, 0.7);
            }
        }

        @keyframes cardFloatIn {
            0% {
                opacity: 0;
                transform: translateY(12px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeScaleIn {
            0% {
                opacity: 0;
                transform: scale(0.96);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes softPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.25);
            }
            100% {
                box-shadow: 0 0 0 8px rgba(0, 122, 255, 0);
            }
        }

        .seal-toggle {
            width: 100%;
            border: none;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            padding: 10px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
            color: #4a4a5f;
            box-shadow: 0 6px 12px rgba(92, 102, 255, 0.12);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .seal-toggle:active {
            transform: scale(0.98);
        }

        .seal-toggle-icon {
            font-size: 14px;
            transition: transform 0.2s ease;
        }

        .seal-settings-panel {
            margin-top: 12px;
        }

        .seal-settings-panel.is-collapsed {
            display: none;
        }

        /* 响应式设计优化 - 手机适配 */
        @media (max-width: 480px) {
            .container {
                margin: 4px auto;
                padding: 0 4px;
            }

            .card {
                padding: 12px 8px;
                margin-bottom: 8px;
                border-radius: 10px;
                box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
                animation: cardFloatIn 0.35s ease-out;
            }

            h2 {
                font-size: 18px;
                margin-bottom: 8px;
            }

            h3 {
                font-size: 13px;
                margin-bottom: 6px;
            }

            label {
                font-size: 12px;
                margin-bottom: 3px;
            }

            input, textarea, select {
                padding: 10px 12px;
                font-size: 13px;
                min-height: 38px;
                border-radius: 10px;
                transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            }

            input:focus, textarea:focus, select:focus {
                transform: translateY(-1px);
                box-shadow: 0 6px 16px rgba(0, 122, 255, 0.15);
            }

            .btn {
                padding: 10px 16px;
                font-size: 13px;
                min-height: 40px;
                border-radius: 10px;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .btn:active {
                transform: scale(0.98);
            }

            .row {
                gap: 10px;
                margin-bottom: 10px;
            }

            .btn-group {
                gap: 8px;
                margin: 10px 0;
            }

            .btn-group .btn {
                margin-bottom: 4px;
            }

            .search-box {
                gap: 8px;
                margin-bottom: 10px;
                flex-direction: column;
                align-items: stretch;
            }

            .search-box input {
                min-height: 40px;
                font-size: 14px;
                flex: 1;
                min-width: 0;
            }
            
            /* 手机端输入框占满宽度 */
            .search-box #searchInput {
                width: 100% !important;
                min-width: 0 !important;
                flex: none !important;
                margin-bottom: 0;
            }

            /* 手机端按钮容器 */
            .search-box {
                gap: 10px;
            }

            .search-buttons {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
                width: 100%;
            }

            .search-box button {
                min-height: 44px;
                font-size: 13px;
                flex: 1;
                padding: 10px 8px;
                white-space: nowrap;
                min-width: 0;
            }


            .result {
                margin-top: 8px;
            }

            .result img {
                margin-top: 6px;
                border-radius: 8px;
            }

            .params {
                font-size: 9px;
                margin-top: 6px;
                padding: 6px;
                border-radius: 4px;
            }

            .result-list {
                margin: 8px 0;
            }

            .result-list li {
                padding: 6px 0;
                gap: 3px;
            }

            .result-list strong {
                font-size: 11px;
            }

            .error, .success {
                padding: 8px;
                border-radius: 8px;
                font-size: 11px;
                line-height: 1.3;
            }

            .toggle-container {
                margin: 8px 0;
                padding: 8px;
                border-radius: 8px;
            }

            hr {
                margin: 8px 0;
            }

            /* 卡密验证区域手机优化 */
            .card-key-section {
                padding: 10px;
                margin-bottom: 10px;
                border-radius: 14px;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
                animation: fadeScaleIn 0.35s ease;
            }

            .card-key-section h3 {
                font-size: 13px;
                margin-bottom: 6px;
                gap: 6px;
                line-height: 1.35;
                word-break: break-all;
                text-align: left;
            }

            .card-key-section h3 + h3 {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .card-key-row {
                gap: 10px;
                flex-direction: column;
                align-items: stretch !important;
            }

            .card-key-input > div {
                flex-direction: column;
                gap: 10px !important;
            }

            .card-key-button .btn {
                width: 100%;
                height: 44px !important;
            }



            /* 预览区域手机优化 */
            .preview-section {
                padding: 10px;
                margin-bottom: 10px;
                border-radius: 12px;
                box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
                animation: fadeScaleIn 0.35s ease;
            }

            .preview-section h3 {
                font-size: 12px;
                margin-bottom: 6px;
            }

            .preview-image {
                max-width: 75%;
                border-radius: 8px;
                margin: 8px auto;
                box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
            }

            /* 模板选择区域手机优化 */
            .template-section {
                padding: 10px;
                margin-bottom: 10px;
                border-radius: 12px;
                box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
            }

            .template-section h4 {
                margin: 0 0 6px 0;
                font-size: 12px;
            }

            .template-grid {
                grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
                gap: 8px;
                margin-top: 8px;
            }

            .template-card {
                border-radius: 10px;
                padding: 8px;
                box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .template-card:active {
                transform: scale(0.98);
            }

            .template-preview {
                height: 36px;
                border-radius: 6px;
                margin-bottom: 4px;
            }

            .template-name {
                font-size: 11px;
                margin-bottom: 2px;
            }

            .template-description {
                font-size: 9px;
            }

            .template-select {
                padding: 8px 12px;
                font-size: 12px;
                height: 30px;
                border-radius: 10px;
            }

            /* 参数设置区域手机优化 */
            .params-section {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                margin-bottom: 10px;
                padding: 10px;
                border-radius: 10px;
            }

            .params-section label {
                font-size: 12px;
                margin-bottom: 4px;
                line-height: 1.3;
            }

            .params-section input {
                height: 32px;
                font-size: 12px;
                padding: 4px 8px;
                border-radius: 8px;
            }

            /* 快速操作按钮手机端三列 */
            .fixed-actions {
                padding: 10px !important;
                border-radius: 12px !important;
                background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
                border: 1px solid rgba(118, 75, 162, 0.15) !important;
            }

            .fixed-actions > div:first-child {
                font-size: 13px !important;
                letter-spacing: 1px;
                color: #4b4b5a !important;
            }

            .fixed-actions-buttons {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
                gap: 10px !important;
                justify-items: stretch;
            }

            .fixed-actions-buttons .btn {
                width: 100%;
                font-size: 12px;
                padding: 10px 6px;
                min-height: 40px;
                border-radius: 12px;
                box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
            }

            .fixed-actions-buttons .btn.btn-primary {
                background: linear-gradient(135deg, #2f80ff 0%, #6a5cff 100%) !important;
                border: none !important;
            }

            .fixed-actions-buttons .btn.btn-secondary {
                background: linear-gradient(135deg, #8f6bff 0%, #5b7cff 100%) !important;
                border: none !important;
                color: #ffffff !important;
            }

            /* 印章控制区域手机优化 */
            .seal-control-section {
                margin: 8px 0 !important;
                padding: 10px !important;
                border-radius: 12px !important;
                box-shadow: 0 6px 14px rgba(123, 97, 255, 0.1);
            }

            .seal-toggle {
                padding: 10px 12px !important;
                font-size: 13px !important;
            }

            .seal-settings-panel {
                margin-top: 10px !important;
            }
            
            .seal-control-flex-container {
                flex-direction: column !important;
                gap: 15px !important;
                align-items: stretch !important;
            }
            
            .seal-control-flex-container > div {
                width: 100% !important;
                min-width: 0 !important;
            }

            .seal-control-section > div:nth-child(2) {
                flex-direction: column !important;
                gap: 8px !important;
                text-align: left;
            }

            .seal-control-section label[style*="font-weight: 700"] {
                font-size: 12px !important;
            }

            .seal-control-section input[type="text"] {
                min-height: 38px !important;
                border-radius: 10px !important;
                padding: 8px 10px !important;
                text-align: left !important;
            }
            
            .seal-control-section > div:nth-child(2) > div:nth-child(2) {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                gap: 8px !important;
            }

            .seal-option {
                min-width: 0 !important;
                padding: 10px !important;
                font-size: 12px !important;
                border-radius: 10px !important;
                flex: 1 !important;
                white-space: nowrap !important;
            }
            
            .seal-option span:first-of-type {
                font-size: 16px !important;
            }
            
            .seal-option span:last-of-type {
                font-size: 12px !important;
                font-weight: 600 !important;
            }

            .seal-control-section > div:last-child {
                font-size: 10px !important;
                margin-top: 8px !important;
                padding: 0 2px;
            }

            .seal-control-section .seal-color-btn {
                width: 22px !important;
                height: 22px !important;
            }
            
            /* 字段配置区域手机优化 */
            .field-config-section {
                margin-top: 8px !important;
                padding: 12px !important;
                border-radius: 8px !important;
            }
            
            .field-config-section div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }
            
            .field-config-section input {
                padding: 6px 10px !important;
                font-size: 13px !important;
            }
            
            .field-config-section label {
                font-size: 12px !important;
                margin-bottom: 4px !important;
            }

            .field-top-row {
                display: grid !important;
                grid-template-columns: minmax(90px, 1fr) auto auto !important;
                align-items: center !important;
                column-gap: 8px !important;
                row-gap: 4px !important;
            }

            .field-top-row > div {
                display: flex !important;
                align-items: center !important;
                gap: 4px !important;
            }

            .field-top-row .field-config-font-size,
            .field-top-row .field-config-chars-per-line {
                width: 44px !important;
                min-width: 44px !important;
                padding: 4px 6px !important;
                font-size: 12px !important;
                text-align: center !important;
            }

            .field-top-row span {
                font-size: 11px !important;
                white-space: nowrap;
            }
            
            .field-config-toggle {
                padding: 8px 12px !important;
                font-size: 12px !important;
            }
            
            .field-config-section div[style*="border-bottom"] {
                font-size: 13px !important;
                margin-bottom: 12px !important;
                padding-bottom: 6px !important;
            }
            
            /* 移动端字段配置优化 */
            .field-config-section {
                padding: 8px 10px !important;
                margin-top: 6px !important;
            }
            
            /* 移除日期格式选项样式 - 不再需要 */
            
            /* 移动端配置控件优化 */
            .field-config-section div[style*="grid-template-columns"] {
                gap: 6px !important;
                margin-bottom: 4px !important;
            }
            
            .field-config-section label[style*="flex-direction: column"] div:first-of-type {
                font-size: 12px !important;
            }
            
            .field-config-section label[style*="flex-direction: column"] div:last-of-type {
                font-size: 10px !important;
            }

            /* 移动端字段布局优化 */
            #dynamicFields .row {
                flex-direction: column !important;
                gap: 6px !important;
                margin-bottom: 6px !important;
            }
            
            #dynamicFields .col {
                min-width: 100% !important;
                max-width: 100% !important;
                flex: none !important;
            }

            #dynamicFields .col label {
                font-size: 11px !important;
            }

            #dynamicFields .col input,
            #dynamicFields .col textarea,
            #dynamicFields .col select {
                min-height: 34px !important;
                font-size: 12px !important;
                padding: 6px 8px !important;
                border-radius: 8px !important;
            }

            #dynamicFields .row.full-width-field {
                padding: 8px !important;
                border-radius: 10px !important;
            }

            #dynamicFields .row.full-width-field textarea {
                min-height: 70px !important;
                font-size: 12px !important;
            }

            /* 字段顶部三列对齐（字段名 / 字体大小 / 每行字符数） */
            #dynamicFields .field-top-row {
                display: grid !important;
                grid-template-columns: minmax(84px, 1fr) auto auto !important;
                gap: 6px !important;
                align-items: center !important;
                overflow: visible !important;
                position: relative !important;
                z-index: 3 !important;
            }

            #dynamicFields .field-top-row label {
                margin: 0 !important;
                min-width: 0 !important;
                font-size: 11px !important;
                line-height: 1.2 !important;
                grid-column: auto !important;
                margin-bottom: 0 !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            #dynamicFields .field-top-row > div {
                display: flex !important;
                align-items: center !important;
                justify-content: flex-end !important;
                gap: 4px !important;
                white-space: nowrap !important;
                overflow: visible !important;
                min-width: 0 !important;
                width: auto !important;
            }

            #dynamicFields .field-top-row > div span {
                font-size: 10px !important;
            }

            #dynamicFields .field-top-row input.field-config-font-size,
            #dynamicFields .field-top-row input.field-config-chars-per-line {
                width: 44px !important;
                min-width: 44px !important;
                max-width: 44px !important;
                padding: 4px 4px !important;
                font-size: 12px !important;
                min-height: 32px !important;
                line-height: 1.2 !important;
                position: relative !important;
                z-index: 4 !important;
                touch-action: manipulation !important;
            }
        }
        
        /* 超小屏幕（宽度小于400px）使用单列布局 */
        @media (max-width: 400px) {
            #dynamicFields .row {
                flex-direction: column !important;
                gap: 6px !important;
                margin-bottom: 3px !important;
            }
            
            #dynamicFields .col {
                min-width: 100% !important;
                max-width: 100% !important;
                flex: none !important;
            }
            
            #dynamicFields .row.full-width-field {
                padding: 10px !important;
                margin-bottom: 10px !important;
            }
            
            #dynamicFields .row.full-width-field label {
                font-size: 13px !important;
            }
            
            #dynamicFields .row.full-width-field textarea {
                min-height: 80px !important;
                font-size: 14px !important;
            }

            #dynamicFields .field-top-row {
                grid-template-columns: minmax(76px, 1fr) auto auto !important;
                gap: 4px !important;
            }

            #dynamicFields .field-top-row label {
                font-size: 10px !important;
            }

            #dynamicFields .field-top-row > div span {
                font-size: 9px !important;
            }

            #dynamicFields .field-top-row input.field-config-font-size,
            #dynamicFields .field-top-row input.field-config-chars-per-line {
                width: 40px !important;
                min-width: 40px !important;
                max-width: 40px !important;
                min-height: 30px !important;
                font-size: 11px !important;
                padding: 3px 3px !important;
            }
            

            /* 确保在小屏幕上按钮组是垂直排列 */
            .btn-group {
                flex-direction: column;
            }

             /* 移动端印章控制区域优化 */
             .seal-control-section {
                 margin: 8px 0 !important;
                 padding: 12px !important;
             }

             /* 超小屏保持两列并排 */
             .seal-control-section > div:first-child {
                 flex-direction: row !important;
                 flex-wrap: wrap !important;
                 gap: 10px !important;
             }

             .seal-control-section > div:first-child > div {
                 width: calc(50% - 5px) !important;
                 min-width: 140px !important;
             }

             /* 移动端印章选择按钮优化 */
             .seal-control-section .seal-option {
                 min-width: 100px !important;
                 padding: 8px 12px !important;
                 font-size: 12px !important;
             }

            /* 超小屏幕搜索框垂直排列 */
            .search-box {
                flex-direction: column;
                gap: 6px;
            }
            
            .search-box input {
                flex: none;
                min-width: 0;
            }
            
            /* 超小屏幕输入框占满宽度 */
            .search-box #searchInput {
                width: 100% !important;
                min-width: 0 !important;
                flex: none !important;
            }
            
            .search-buttons {
                display: flex;
                gap: 4px;
                width: 100%;
                justify-content: center;
            }

            .search-box button {
                flex: 1;
                font-size: 10px;
                padding: 8px 4px;
                white-space: nowrap;
                min-width: 0;
            }

            .search-box {
                align-items: center;
            }
        }

        /* 超小屏幕优化 */
        @media (max-width: 360px) {
            .container {
                padding: 0 4px;
            }

            .card {
                padding: 8px 6px;
                margin-bottom: 6px;
            }

            .preview-image {
                max-width: 15%;
            }

            .template-grid {
                grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
            }

            .search-box {
                align-items: center;
                justify-content: center;
                width: 100%;
            }

            .search-buttons {
                justify-content: center;
                display: flex;
                gap: 3px;
            }
        }

/* ========== 查询数据源选择器（清晰版） ========== */
/* 始终独占一行（在 .search-container flex 容器中通过 flex-basis 100% 强制换行） */
.api-source-row {
    flex-basis: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%);
    border: 1px solid rgba(0, 122, 255, 0.28);
    border-left: 4px solid #007aff;
    border-radius: 10px;
    flex-wrap: nowrap;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.06);
}

.api-source-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.api-source-label .api-source-ic {
    font-size: 15px;
    line-height: 1;
}

.api-source-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 30px 6px 12px;
    height: 34px;
    line-height: 22px;
    border: 1.5px solid #007aff;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23007aff' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #0b3d9b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    width: auto;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.12);
}

.api-source-select:hover {
    border-color: #0056d6;
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
}

.api-source-select:focus {
    border-color: #0056d6;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

.api-source-select:active {
    transform: translateY(1px);
}

/* 当前源徽章（圆点 + 文字） */
.api-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #0b3d9b;
    flex-shrink: 0;
    white-space: nowrap;
}

.api-source-badge .api-source-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.18);
}

/* 不同源使用不同颜色，让用户一眼看到当前在用哪个 */
.api-source-row[data-source="auto"]       .api-source-dot { background: #007aff; box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2); }
.api-source-row[data-source="primary"]    .api-source-dot { background: #ff9500; box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.22); }
.api-source-row[data-source="xiaolanben"] .api-source-dot { background: #1d4ed8; box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.22); }
.api-source-row[data-source="yunma"]      .api-source-dot { background: #34c759; box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.22); }
.api-source-row[data-source="aliyun"]     .api-source-dot { background: #af52de; box-shadow: 0 0 0 2px rgba(175, 82, 222, 0.22); }

.api-source-hint {
    flex: 1;
    min-width: 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .api-source-hint {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .api-source-row {
        gap: 8px;
        padding: 8px 10px;
        flex-wrap: wrap;
    }
    .api-source-select {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
    .api-source-badge {
        order: 2;
    }
    .api-source-hint {
        flex-basis: 100%;
        white-space: normal;
        font-size: 11px;
    }
}

/* ========== 生成效果选择器（与数据源行同款，但用紫色强调以便区分） ========== */
.render-quality-row {
    flex-basis: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fbf7ff 0%, #f0e6ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-left: 4px solid #7c3aed;
    border-radius: 10px;
    flex-wrap: nowrap;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.06);
}

.render-quality-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6d28d9;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.render-quality-label .render-quality-ic {
    font-size: 15px;
    line-height: 1;
}

.render-quality-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 30px 6px 12px;
    height: 34px;
    line-height: 22px;
    border: 1.5px solid #7c3aed;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237c3aed' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: #4c1d95;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    width: auto;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.12);
}

.render-quality-select:hover {
    border-color: #6d28d9;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.2);
}

.render-quality-select:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.render-quality-select:active {
    transform: translateY(1px);
}

.render-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #4c1d95;
    flex-shrink: 0;
    white-space: nowrap;
}

.render-quality-badge .render-quality-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

/* normal=紫色（保守），highest=金色（强调"高级") */
.render-quality-row[data-quality="normal"]  .render-quality-dot { background: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22); }
.render-quality-row[data-quality="highest"] .render-quality-dot { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28); }

.render-quality-hint {
    flex: 1;
    min-width: 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .render-quality-hint {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .render-quality-row {
        gap: 8px;
        padding: 8px 10px;
        flex-wrap: wrap;
    }
    .render-quality-select {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
    .render-quality-badge {
        order: 2;
    }
    .render-quality-hint {
        flex-basis: 100%;
        white-space: normal;
        font-size: 11px;
    }
}

/* ========== 操作进度条（查询企业信息 / 免预览下载） ========== */
.op-progress {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.08);
    animation: opProgressFadeIn 0.25s ease-out;
}

.op-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
}

.op-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.op-progress-label .op-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
    animation: opProgressPulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.op-progress-label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.op-progress-percent {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: #0b66e4;
    margin-left: 12px;
    flex-shrink: 0;
}

.op-progress-track {
    position: relative;
    height: 8px;
    background: rgba(0, 122, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.op-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #4aa3ff 0%, #007aff 50%, #5856d6 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.4);
}

.op-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: opProgressShimmer 1.4s linear infinite;
}

.op-progress.is-indeterminate .op-progress-fill {
    width: 40% !important;
    animation: opProgressIndeterminate 1.4s ease-in-out infinite;
    transition: none;
}

.op-progress.is-indeterminate .op-progress-fill::after {
    animation: none;
}

.op-progress.is-success {
    background: linear-gradient(180deg, #f0fdf4 0%, #e6faec 100%);
    border-color: rgba(52, 199, 89, 0.28);
}

.op-progress.is-success .op-progress-header { color: #15803d; }
.op-progress.is-success .op-progress-percent { color: #15803d; }
.op-progress.is-success .op-progress-dot {
    background: #34c759;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
    animation: none;
}
.op-progress.is-success .op-progress-fill {
    background: linear-gradient(90deg, #34c759 0%, #30b24f 100%);
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}

.op-progress.is-error {
    background: linear-gradient(180deg, #fff5f5 0%, #ffe9e7 100%);
    border-color: rgba(255, 59, 48, 0.3);
}

.op-progress.is-error .op-progress-header { color: #c81e1e; }
.op-progress.is-error .op-progress-percent { color: #c81e1e; }
.op-progress.is-error .op-progress-dot {
    background: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.22);
    animation: none;
}
.op-progress.is-error .op-progress-fill {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff3b30 100%);
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.35);
}

.op-progress-steps {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
    flex-wrap: wrap;
}

.op-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(0, 122, 255, 0.06);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.op-progress-step.is-active {
    background: rgba(0, 122, 255, 0.14);
    color: #0b66e4;
    font-weight: 600;
}

.op-progress-step.is-done {
    background: rgba(52, 199, 89, 0.14);
    color: #15803d;
}

.op-progress-step.is-done::before { content: '✓ '; }

@keyframes opProgressFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes opProgressPulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

@keyframes opProgressShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}

@keyframes opProgressIndeterminate {
    0%   { left: -40%; }
    100% { left: 100%; }
}

@media (max-width: 480px) {
    .op-progress { padding: 10px 12px; }
    .op-progress-header { font-size: 12px; }
    .op-progress-percent { font-size: 11px; }
    .op-progress-steps { font-size: 10px; }
}
