        /* 鍛戒护缂栬緫妯℃€佹 */
        .cmd-edit-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .cmd-edit-modal.show {
            display: flex;
        }

        .cmd-edit-content {
            background: var(--bg-primary);
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .cmd-edit-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cmd-edit-title {
            font-weight: 600;
            color: var(--text-primary);
        }

        .cmd-edit-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        .cmd-edit-close:hover {
            color: var(--text-primary);
        }

        .cmd-edit-body {
            padding: 20px;
        }

        .cmd-edit-input {
            width: 100%;
            padding: 12px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .cmd-edit-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .cmd-edit-error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
            color: #fca5a5;
            font-size: 13px;
        }

        .cmd-edit-error i {
            margin-right: 8px;
            color: #ef4444;
        }

        .cmd-edit-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .cmd-edit-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .cmd-edit-btn.cancel {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        .cmd-edit-btn.cancel:hover {
            background: var(--bg-secondary);
        }

        .cmd-edit-btn.execute {
            background: var(--accent);
            border: none;
            color: white;
        }

        .cmd-edit-btn.execute:hover {
            background: #2563eb;
        }

        /* 绉垎璐拱寮圭獥 */
        .credits-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .credits-modal.show {
            display: flex;
        }

        .credits-modal-content {
            background: white;
            border-radius: 16px;
            width: 95%;
            max-width: 580px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: creditsModalSlideIn 0.3s ease;
        }

        @keyframes creditsModalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .credits-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e5e7eb;
            background: white;
            border-radius: 16px 16px 0 0;
        }

        .credits-modal-header h3 {
            margin: 0;
            font-size: 1.1rem;
            color: #374151;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .credits-modal-close {
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            color: #6b7280;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .credits-modal-close:hover {
            background: #e5e7eb;
            color: #374151;
        }

        .credits-modal-body {
            padding: 1.25rem;
        }

        .credits-desc {
            text-align: center;
            color: #6b7280;
            font-size: 0.9rem;
            margin: 0 0 1rem;
        }

        .credits-options {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.6rem;
            margin-bottom: 1rem;
        }

        @media (max-width: 500px) {
            .credits-options {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .credits-option {
            cursor: pointer;
        }

        .credits-option input {
            display: none;
        }

        .credits-card {
            background: #f9fafb;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 1rem 0.5rem;
            text-align: center;
            transition: all 0.2s;
            position: relative;
        }

        .credits-option input:checked+.credits-card {
            border-color: #6366f1;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        }

        .credits-card:hover {
            border-color: #6366f1;
        }

        .credits-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ef4444, #f97316);
            color: white;
            font-size: 0.65rem;
            padding: 2px 6px;
            border-radius: 8px;
            font-weight: 600;
        }

        /* 鏂颁汉绀煎寘鏍峰紡 - 涓庢櫘閫氬崱鐗囦竴鑷?*/
        .credits-card.newbie-card {
            border: 2px solid #e5e7eb;
            background: #f9fafb;
        }

        .credits-option input:checked+.credits-card.newbie-card {
            border-color: #6366f1;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        }

        .credits-badge.newbie-badge {
            background: linear-gradient(135deg, #ef4444, #f97316);
        }

        /* 宸茶喘涔伴伄缃?*/
        .purchased-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #10b981;
            font-weight: 600;
            font-size: 0.85rem;
            gap: 4px;
        }

        .purchased-overlay i {
            font-size: 1.5rem;
        }

        .credits-option.disabled {
            pointer-events: none;
            opacity: 0.8;
        }

        .credits-amount {
            font-size: 1.1rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 4px;
        }

        .credits-price {
            font-size: 1.25rem;
            font-weight: 700;
            color: #6366f1;
        }

        .credits-tag {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-top: 4px;
        }

        .credits-summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: #f3f4f6;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .credits-summary span:last-child {
            font-size: 1.25rem;
            font-weight: 700;
            color: #6366f1;
        }

        .credits-tip {
            background: #f0f9ff;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 12px;
        }

        .credits-tip p {
            margin: 0;
            font-size: 0.85rem;
            color: #0369a1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .credits-modal-footer {
            display: flex;
            gap: 0.75rem;
            padding: 1rem 1.25rem;
            border-top: 1px solid #e5e7eb;
            background: #f9fafb;
            border-radius: 0 0 16px 16px;
        }

        .credits-btn-cancel {
            flex: 1;
            padding: 0.75rem;
            background: #e5e7eb;
            color: #374151;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .credits-btn-cancel:hover {
            background: #d1d5db;
        }

        .credits-btn-confirm {
            flex: 2;
            padding: 0.75rem;
            background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .credits-btn-confirm:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
        }

        .credits-btn-confirm:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* 淇濆瓨鍒颁簯绔ā鎬佹 */
        .save-cloud-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .save-cloud-modal.show {
            display: flex;
        }

        .save-cloud-content {
            background: var(--bg-primary);
            border-radius: 12px;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .save-cloud-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .save-cloud-title {
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .save-cloud-title i {
            color: var(--accent);
        }

        .save-cloud-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        .save-cloud-close:hover {
            color: var(--text-primary);
        }

        .save-cloud-body {
            padding: 20px;
        }

        .save-form-group {
            margin-bottom: 16px;
        }

        .save-form-label {
            display: block;
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .save-form-label .required {
            color: #ef4444;
        }

        .save-form-input {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 14px;
        }

        .save-form-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .save-form-readonly {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .save-cloud-info {
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 8px;
            padding: 12px;
            color: var(--text-secondary);
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .save-cloud-info i {
            color: var(--accent);
        }

        .save-cloud-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .save-cloud-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .save-cloud-btn.cancel {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        .save-cloud-btn.cancel:hover {
            background: var(--bg-secondary);
        }

        .save-cloud-btn.save {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border: none;
            color: white;
        }

        .save-cloud-btn.save:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        }

        .save-cloud-btn.save:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* 娉細骞虫澘鍜屾墜鏈虹鍝嶅簲寮忚鍒欏凡鍚堝苟鍒颁笂鏂圭殑 @media 鍧椾腑 */

        /* ========== 妫€娴嬫敮浠樼姸鎬佸脊绐?========== */
        .payment-checking-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10001;
        }

        .payment-checking-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            max-width: 320px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .checking-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .checking-icon i {
            font-size: 32px;
            color: white;
        }

        .payment-checking-content h3 {
            font-size: 1.2rem;
            color: #1f2937;
            margin: 0 0 0.5rem;
        }

        .payment-checking-content p {
            color: #6b7280;
            font-size: 0.9rem;
            margin: 0 0 1rem;
        }

        .checking-progress {
            height: 4px;
            background: #e5e7eb;
            border-radius: 2px;
            overflow: hidden;
        }

        .checking-progress .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6, #1d4ed8);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 2px;
        }

        /* ========== 鏀粯澶辫触寮圭獥 ========== */
        .payment-failed-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .payment-failed-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            max-width: 340px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        .failed-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .failed-icon i {
            font-size: 32px;
            color: white;
        }

        .payment-failed-content h3 {
            font-size: 1.25rem;
            color: #1f2937;
            margin: 0 0 0.5rem;
        }

        .payment-failed-content p {
            color: #6b7280;
            font-size: 0.9rem;
            margin: 0 0 0.75rem;
        }

        .payment-failed-content .failed-hint {
            font-size: 0.8rem;
            color: #9ca3af;
            margin-bottom: 1.25rem;
        }

        .failed-buttons {
            display: flex;
            justify-content: center;
        }

        .btn-retry {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-retry:hover {
            background: #1f2937;
        }

