@import url("/assets/css/ts_post6.css");

html,
body {
    background: transparent !important;
    background-image: none !important;
}

body::before,
body::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

.voiceflow-tool.aiimage-container {
    position: relative;
    min-height: 585px;
    height: auto;
    overflow: visible;
}

.voiceflow-tool .aiimage-logo {
    flex: 1;
    min-width: 0;
}

.voiceflow-tool .aiimage-title-group {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding-right: 0;
}

.voiceflow-tool .aiimage-title {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
    line-height: 1.2;
}

.voiceflow-tool .aiimage-version-wrap {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
    transform: translateY(-8px);
    flex: 0 0 auto;
}

.voiceflow-tool .aiimage-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
    min-width: 0;
    flex-shrink: 0;
}

.voiceflow-tool .aiimage-stats.header-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
}

.voiceflow-tool .header-stats .stat-card {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    align-self: center;
    gap: 6px;
    min-height: 30px;
    height: 30px;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(4, 8, 19, 0.1);
    white-space: nowrap;
    overflow: hidden;
    flex: 0 0 auto;
}

.voiceflow-tool .header-stats .stat-card::before {
    display: none;
}

.voiceflow-tool .header-stats .stat-label,
.voiceflow-tool .header-stats .stat-value {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1;
}

.voiceflow-tool .header-stats .stat-label {
    margin-bottom: 0;
    font-size: 11px;
}

.voiceflow-tool .header-stats .stat-value {
    justify-content: flex-end;
    font-size: 12px;
    text-align: right;
}

.voiceflow-tool .header-stats .stat-value.account-value {
    font-size: 12px;
}

.voiceflow-tool .aiimage-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    overflow: visible;
}

.voiceflow-tool .aiimage-controls,
.voiceflow-tool .aiimage-preview-area {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.voiceflow-tool .aiimage-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.voiceflow-tool .aiimage-preview-area {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.voiceflow-tool .voice-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
}

.voiceflow-tool .voice-detail-grid.has-result {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.voiceflow-tool .voice-detail-grid.has-result .aiimage-preview-area {
    display: flex;
}

.voiceflow-tool .aiimage-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.voiceflow-tool .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tool-text-primary);
}

.voiceflow-tool .section-hint {
    font-size: 13px;
    color: rgba(231, 238, 248, 0.62);
}

.voiceflow-tool .aiimage-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.voiceflow-tool .stat-card,
.voiceflow-tool .voice-glass-panel,
.voiceflow-tool .voice-flow-shell,
.voiceflow-tool .voice-modal-panel {
    border: 1px solid rgba(255, 255, 255, 0.065);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0.006) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.038), 0 10px 22px rgba(4, 8, 19, 0.08);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.voiceflow-tool .stat-card {
    position: relative;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    overflow: hidden;
}

.voiceflow-tool .stat-card-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 30px;
    height: 30px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(10, 23, 21, 0.92) 0%, rgba(14, 36, 32, 0.9) 100%) padding-box,
        linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(67, 211, 184, 0.92) 56%, rgba(102, 227, 255, 0.88) 100%) border-box;
    box-shadow: 0 12px 24px rgba(var(--emerald-rgb), 0.2);
    color: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
    flex: 0 0 auto;
}

.voiceflow-tool .stat-card-favorite .favorite-btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-image: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(74, 222, 200, 0.96) 58%, rgba(173, 245, 255, 0.94) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.voiceflow-tool .stat-card-favorite:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    border-color: rgba(var(--emerald-rgb), 0.56);
    box-shadow: 0 16px 30px rgba(var(--emerald-rgb), 0.28);
}

.voiceflow-tool .stat-card-favorite::before {
    display: none;
}

.voiceflow-tool .stat-card::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.92) 0%, rgba(102, 227, 255, 0.92) 100%);
}

.voiceflow-tool .stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(231, 238, 248, 0.58);
}

.voiceflow-tool .stat-value {
    display: block;
    color: var(--tool-text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voiceflow-tool .stat-value.account-value {
    font-size: 15px;
}

.voiceflow-tool .points-value {
    color: #9ccfff;
}

.voiceflow-tool .need-value {
    color: #ffe38d;
}

.voiceflow-tool .voice-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-column: 1 / -1;
}

.voiceflow-tool .voice-glass-panel {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    
}

.voiceflow-tool .voice-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
    color: rgba(235, 242, 251, 0.68);
}

.voiceflow-tool .voice-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tool-text-primary);
}

.voiceflow-tool .voice-panel-desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(231, 238, 248, 0.68);
}

.voiceflow-tool .voice-capability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.voiceflow-tool .voice-capability-item {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    color: rgba(235, 242, 251, 0.76);
}

.voiceflow-tool .voice-simple-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.voiceflow-tool .voice-simple-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(231, 238, 248, 0.72);
}

.voiceflow-tool .voice-simple-item i {
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.96) 0%, rgba(102, 227, 255, 0.96) 100%);
    box-shadow: 0 0 12px rgba(var(--emerald-rgb), 0.26);
    flex: 0 0 auto;
}

.voiceflow-tool .voice-flow-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0%, rgba(255, 255, 255, 0.003) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028), 0 8px 18px rgba(4, 8, 19, 0.05);
}

.voiceflow-tool .voice-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.voiceflow-tool .voice-flow-step {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 142px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0%, rgba(255, 255, 255, 0.004) 100%);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.voiceflow-tool .voice-flow-step:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(var(--emerald-rgb), 0.26);
    box-shadow: 0 10px 22px rgba(4, 8, 19, 0.09);
}

.voiceflow-tool .voice-flow-step.is-active {
    border-color: rgba(var(--emerald-rgb), 0.92);
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.13) 0%, rgba(var(--emerald-rgb), 0.075) 48%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.24), 0 10px 22px rgba(4, 8, 19, 0.1), 0 0 0 2px rgba(var(--emerald-rgb), 0.1);
}

.voiceflow-tool .voice-flow-step.is-active .voice-flow-title {
    color: #fff;
}

.voiceflow-tool .voice-flow-step.is-active .voice-flow-desc,
.voiceflow-tool .voice-flow-step.is-active .voice-flow-foot,
.voiceflow-tool .voice-flow-step.is-active .voice-flow-badge {
    color: rgba(247, 252, 255, 0.9);
}

.voiceflow-tool .voice-flow-step.is-active .voice-flow-badge {
    border-color: rgba(var(--emerald-rgb), 0.48);
    background: rgba(var(--emerald-rgb), 0.2);
}

.voiceflow-tool .voice-flow-step.is-active .voice-flow-index {
    border-color: rgba(var(--emerald-rgb), 0.95);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.96) 0%, rgba(102, 227, 255, 0.92) 100%);
    color: #fff;
}

.voiceflow-tool .voice-flow-step.is-running {
    overflow: hidden;
    border-color: rgba(var(--emerald-rgb), 0.82);
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.18) 0%, rgba(var(--emerald-rgb), 0.1) 44%, rgba(255, 255, 255, 0.018) 100%);
    box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.24), 0 12px 24px rgba(4, 8, 19, 0.11), 0 0 0 2px rgba(var(--emerald-rgb), 0.1), 0 0 28px rgba(var(--emerald-rgb), 0.1);
}

.voiceflow-tool .voice-flow-step.is-running::before {
    content: "";
    position: absolute;
    left: -42%;
    top: -1px;
    width: 42%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--emerald-rgb), 0) 0%, rgba(var(--emerald-rgb), 0.95) 36%, rgba(102, 227, 255, 0.98) 68%, rgba(255, 255, 255, 0.88) 100%);
    box-shadow: 0 0 18px rgba(var(--emerald-rgb), 0.5), 0 0 26px rgba(102, 227, 255, 0.28);
    animation: qkVoiceRunLine 1.15s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.voiceflow-tool .voice-flow-step.is-running::after {
    content: "";
    position: absolute;
    inset: -22% auto -22% -36%;
    width: 48%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 24%, rgba(255, 255, 255, 0.18) 48%, rgba(102, 227, 255, 0.16) 56%, rgba(var(--emerald-rgb), 0.08) 72%, rgba(var(--emerald-rgb), 0) 100%);
    transform: skewX(-24deg);
    animation: qkVoiceRunSweep 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.voiceflow-tool .voice-flow-step.is-running .voice-flow-index {
    border-color: rgba(var(--emerald-rgb), 0.95);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(102, 227, 255, 0.94) 100%);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--emerald-rgb), 0.12), 0 0 18px rgba(var(--emerald-rgb), 0.26);
    animation: qkVoiceRunPulse 1s ease-in-out infinite;
}

.voiceflow-tool .voice-flow-step.is-running .voice-flow-badge {
    color: #fff;
    border-color: rgba(var(--emerald-rgb), 0.58);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.28) 0%, rgba(102, 227, 255, 0.2) 100%);
    box-shadow: 0 0 18px rgba(var(--emerald-rgb), 0.16);
}

@keyframes qkVoiceRunLine {
    0% {
        left: -42%;
    }

    100% {
        left: 104%;
    }
}

@keyframes qkVoiceRunSweep {
    0% {
        left: -36%;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        left: 112%;
        opacity: 0;
    }
}

@keyframes qkVoiceRunPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(var(--emerald-rgb), 0.1), 0 0 16px rgba(var(--emerald-rgb), 0.22);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(var(--emerald-rgb), 0.16), 0 0 22px rgba(var(--emerald-rgb), 0.34);
        transform: scale(1.04);
    }
}

.voiceflow-tool .voice-flow-step.is-done .voice-flow-index {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.96) 0%, rgba(102, 227, 255, 0.96) 100%);
    color: #fff;
}

.voiceflow-tool .voice-flow-step.is-disabled {
    opacity: 0.58;
}

.voiceflow-tool .voice-flow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.voiceflow-tool .voice-flow-top-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.voiceflow-tool .voice-flow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(235, 242, 251, 0.9);
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.voiceflow-tool .voice-flow-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(231, 238, 248, 0.66);
    font-size: 11px;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.voiceflow-tool .voice-flow-badge[data-action] {
    cursor: pointer;
}

.voiceflow-tool .voice-flow-badge[data-action]:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--emerald-rgb), 0.55);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.28) 0%, rgba(102, 227, 255, 0.18) 100%);
    box-shadow: 0 10px 20px rgba(var(--emerald-rgb), 0.18);
    color: #fff;
    filter: brightness(1.03);
}

.voiceflow-tool .voice-flow-title {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tool-text-primary);
}

.voiceflow-tool .voice-flow-desc {
    display: block;
    font-size: 12px;
    line-height: 1.75;
    color: rgba(231, 238, 248, 0.66);
}

.voiceflow-tool .voice-flow-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(231, 238, 248, 0.54);
}

.voiceflow-tool .voice-flow-foot-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.voiceflow-tool .voice-flow-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.96) 0%, rgba(220, 38, 38, 0.92) 100%);
    box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.voiceflow-tool .voice-flow-stop:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, 0.42);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.98) 0%, rgba(220, 38, 38, 0.94) 100%);
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.28);
    filter: brightness(1.02);
}

.voiceflow-tool .voice-hidden-input {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.voiceflow-tool .voice-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 24px;
    text-align: center;
    line-height: 1.9;
    color: rgba(211, 223, 239, 0.48);
}

.voiceflow-tool .voice-log {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(226, 235, 247, 0.76);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

.voiceflow-tool .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.voiceflow-tool .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.voiceflow-tool .btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.voiceflow-tool .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(var(--emerald-rgb), 0.9) 36%, rgba(168, 85, 247, 0.88) 100%);
    box-shadow: 0 8px 18px rgba(var(--emerald-rgb), 0.2), 0 8px 20px rgba(168, 85, 247, 0.2);
}

.voiceflow-tool .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--tool-text-primary);
}

.voiceflow-tool .voice-export-actions,
.voiceflow-tool .voice-footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.voice-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    opacity: 0;
    pointer-events: none;
}

.voice-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.voice-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at top, rgba(var(--emerald-rgb), 0.14), transparent 34%), rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.voice-modal-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(720px, calc(100vw - 40px));
    max-height: min(760px, calc(100vh - 40px));
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.10), rgba(255, 255, 255, 0.03) 18%, rgba(12, 14, 22, 0.96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 14px 34px rgba(var(--emerald-rgb), 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: visible;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.voice-modal.is-open .voice-modal-panel {
    animation: voiceflowModalFadeIn 0.3s ease forwards;
}

@keyframes voiceflowModalFadeIn {
    from {
        transform: translate(-50%, calc(-50% + 20px)) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.voice-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-bottom: 1px solid rgba(var(--emerald-rgb), 0.18);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.voice-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--tool-text-primary);
}

.voice-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--green));
    box-shadow: 0 10px 24px rgba(var(--emerald-rgb), 0.26);
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-modal-close:hover {
    transform: rotate(90deg);
    filter: brightness(1.06);
}

.voice-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.voice-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.voice-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.voice-modal-body {
    padding: 24px;
    overflow-y: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--tool-text-secondary);
}

.voice-modal-body::-webkit-scrollbar,
.voiceflow-tool .voice-result-simple::-webkit-scrollbar {
    width: 6px;
}

.voice-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.voice-modal-body::-webkit-scrollbar-thumb {
    background: rgba(var(--emerald-rgb), 0.42);
    border-radius: 3px;
}

.voice-modal-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(231, 238, 248, 0.66);
}

.voice-result-modal .voice-modal-panel {
    width: min(650px, calc(100vw - 40px));
    max-height: min(760px, calc(100vh - 40px));
}

.voiceflow-tool .voice-result-simple {
    min-height: 460px;
    max-height: min(620px, calc(100vh - 160px));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.voiceflow-tool .voice-result-simple::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.voiceflow-tool .voice-result-simple::-webkit-scrollbar-thumb {
    background: rgba(var(--emerald-rgb), 0.4);
    border-radius: 999px;
}

.voiceflow-tool .voice-result-simple pre {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e5edf9;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

.voiceflow-tool .voice-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.voiceflow-tool .form-group {
    min-width: 0;
}

.voiceflow-tool .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tool-text-primary);
}

.voiceflow-tool .select-wrap {
    position: relative;
}

.voiceflow-tool .select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid rgba(232, 239, 249, 0.94);
    border-bottom: 1.6px solid rgba(232, 239, 249, 0.94);
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

.voiceflow-tool .form-select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tool-text-primary);
    font-size: 14px;
    appearance: none;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.voiceflow-tool .form-select:focus {
    border-color: rgba(var(--emerald-rgb), 0.36);
    box-shadow: 0 0 0 4px rgba(var(--emerald-rgb), 0.12);
}

.voiceflow-tool .form-select option {
    background: #14231f;
    color: #eef8f3;
}

.voiceflow-tool .voice-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.voiceflow-tool .voice-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.voiceflow-tool .voice-switch-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tool-text-primary);
}

.voiceflow-tool .voice-switch-text span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(231, 238, 248, 0.6);
}

.voiceflow-tool .voice-switch input {
    position: relative;
    width: 42px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    flex: 0 0 auto;
}

.voiceflow-tool .voice-switch input::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease;
}

.voiceflow-tool .voice-switch input:checked {
    border-color: rgba(var(--emerald-rgb), 0.72);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.96), rgba(102, 227, 255, 0.92));
    box-shadow: 0 8px 18px rgba(var(--emerald-rgb), 0.22);
}

.voiceflow-tool .voice-switch input:checked::before {
    transform: translateX(18px);
}

.voiceflow-tool .voice-switch input:focus {
    box-shadow: 0 0 0 4px rgba(var(--emerald-rgb), 0.12);
}

.voice-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.voice-modal-actions .btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.voice-modal-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}

.voice-modal-actions .btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.voice-modal-actions .btn-primary {
    min-height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(var(--emerald-rgb), 0.9) 36%, rgba(168, 85, 247, 0.88) 100%);
    box-shadow: 0 8px 18px rgba(var(--emerald-rgb), 0.2), 0 8px 20px rgba(168, 85, 247, 0.2);
}

.voice-modal-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.99) 0%, rgba(var(--emerald-rgb), 0.92) 38%, rgba(168, 85, 247, 0.93) 100%);
    box-shadow: 0 12px 24px rgba(var(--emerald-rgb), 0.22), 0 12px 26px rgba(168, 85, 247, 0.24);
    color: #fff;
}

.voiceflow-tool .voice-hidden {
    display: none !important;
}

#qkVoiceHostSettingsModal,
#qkVoiceHostResultModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}

#qkVoiceHostSettingsModal.active,
#qkVoiceHostResultModal.active {
    pointer-events: auto;
    opacity: 1;
}

#qkVoiceHostSettingsModal .modal-backdrop,
#qkVoiceHostResultModal .modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at top, rgba(var(--emerald-rgb), 0.14), transparent 34%), rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#qkVoiceHostSettingsModal .modal-content,
#qkVoiceHostResultModal .modal-content {
    position: relative;
    z-index: 2;
    max-height: min(760px, calc(100vh - 40px));
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.10), rgba(255, 255, 255, 0.03) 18%, rgba(12, 14, 22, 0.96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 14px 34px rgba(var(--emerald-rgb), 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

#qkVoiceHostSettingsModal .modal-content {
    width: min(720px, calc(100vw - 40px));
}

#qkVoiceHostResultModal .modal-content {
    width: min(650px, calc(100vw - 40px));
}

#qkVoiceHostSettingsModal.active .modal-content,
#qkVoiceHostResultModal.active .modal-content {
    animation: qkVoiceHostModalFadeIn 0.3s ease forwards;
}

@keyframes qkVoiceHostModalFadeIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

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

#qkVoiceHostSettingsModal .modal-head,
#qkVoiceHostResultModal .modal-head {
    padding: 18px 24px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: linear-gradient(180deg, rgba(var(--emerald-rgb), 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-bottom: 1px solid rgba(var(--emerald-rgb), 0.18);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#qkVoiceHostSettingsModal .modal-head h3,
#qkVoiceHostResultModal .modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

#qkVoiceHostSettingsModal .modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    color: var(--text2);
    line-height: 1.8;
    font-size: 14px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

#qkVoiceHostSettingsModal .modal-body::-webkit-scrollbar,
#qkVoiceHostResultModal .result-simple::-webkit-scrollbar {
    width: 6px;
}

#qkVoiceHostSettingsModal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

#qkVoiceHostSettingsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(var(--emerald-rgb), 0.42);
    border-radius: 3px;
}

#qkVoiceHostResultModal .modal-body {
    padding: 18px;
    overflow: hidden;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

#qkVoiceHostSettingsModal .modal-close-btn,
#qkVoiceHostResultModal .modal-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, var(--emerald), var(--green));
    box-shadow: 0 10px 24px rgba(var(--emerald-rgb), 0.26);
    transition: all 0.3s ease;
}

#qkVoiceHostSettingsModal .modal-close-btn:hover,
#qkVoiceHostResultModal .modal-close-btn:hover {
    filter: brightness(1.06);
    transform: rotate(90deg);
}

#qkVoiceHostSettingsModal .modal-close-btn span,
#qkVoiceHostResultModal .modal-close-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

#qkVoiceHostSettingsModal .modal-close-btn span:first-child,
#qkVoiceHostResultModal .modal-close-btn span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

#qkVoiceHostSettingsModal .modal-close-btn span:last-child,
#qkVoiceHostResultModal .modal-close-btn span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#qkVoiceHostSettingsModal .qk-voice-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(231, 238, 248, 0.66);
}

#qkVoiceHostSettingsModal .qk-voice-grid,
#qkVoiceHostSettingsModal .qk-voice-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#qkVoiceHostSettingsModal .qk-voice-group {
    min-width: 0;
}

#qkVoiceHostSettingsModal .qk-voice-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

#qkVoiceHostSettingsModal .qk-voice-select-wrap {
    position: relative;
}

#qkVoiceHostSettingsModal .qk-voice-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid rgba(232, 239, 249, 0.94);
    border-bottom: 1.6px solid rgba(232, 239, 249, 0.94);
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

#qkVoiceHostSettingsModal .qk-voice-select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 14px;
    appearance: none;
    outline: none;
}

#qkVoiceHostSettingsModal .qk-voice-select option {
    background: #14231f;
    color: #eef8f3;
}

#qkVoiceHostSettingsModal .qk-voice-switches {
    margin-top: 14px;
}

#qkVoiceHostSettingsModal .qk-voice-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

#qkVoiceHostSettingsModal .qk-voice-switch strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

#qkVoiceHostSettingsModal .qk-voice-switch span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(231, 238, 248, 0.6);
}

#qkVoiceHostSettingsModal .qk-voice-switch input {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#qkVoiceHostSettingsModal .qk-voice-switch input::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease;
}

#qkVoiceHostSettingsModal .qk-voice-switch input:checked {
    border-color: rgba(var(--emerald-rgb), 0.72);
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.96), rgba(102, 227, 255, 0.92));
    box-shadow: 0 8px 18px rgba(var(--emerald-rgb), 0.22);
}

#qkVoiceHostSettingsModal .qk-voice-switch input:checked::before {
    transform: translateX(18px);
}

#qkVoiceHostSettingsModal .qk-voice-switch input:focus {
    box-shadow: 0 0 0 4px rgba(var(--emerald-rgb), 0.12);
}

#qkVoiceHostSettingsModal .qk-voice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

#qkVoiceHostSettingsModal .qk-voice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

#qkVoiceHostSettingsModal .qk-voice-btn-primary {
    min-height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.98) 0%, rgba(var(--emerald-rgb), 0.90) 36%, rgba(168, 85, 247, 0.88) 100%);
    box-shadow: 0 8px 18px rgba(var(--emerald-rgb), 0.20), 0 8px 20px rgba(168, 85, 247, 0.20);
}

#qkVoiceHostSettingsModal .qk-voice-btn-primary:hover {
    transform: translateY(-1px);
    filter: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.99) 0%, rgba(var(--emerald-rgb), 0.92) 38%, rgba(168, 85, 247, 0.93) 100%);
    box-shadow: 0 12px 24px rgba(var(--emerald-rgb), 0.22), 0 12px 26px rgba(168, 85, 247, 0.24);
}

#qkVoiceHostSettingsModal .qk-voice-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

#qkVoiceHostSettingsModal .qk-voice-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

#qkVoiceHostResultModal .result-simple {
    min-height: 460px;
    max-height: min(620px, calc(100vh - 160px));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

#qkVoiceHostResultModal .result-simple::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#qkVoiceHostResultModal .result-simple::-webkit-scrollbar-thumb {
    background: rgba(var(--emerald-rgb), 0.4);
    border-radius: 999px;
}

#qkVoiceHostResultModal .result-simple pre {
    margin: 0;
    padding: 16px 18px;
    color: #e5edf9;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

#qkVoiceHostResultModal .voice-empty {
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: rgba(211, 223, 239, 0.48);
    line-height: 1.9;
}

#qkVoiceHostResultModal .voice-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .voiceflow-tool .aiimage-main {
        flex-direction: column;
    }

    .voiceflow-tool .aiimage-controls {
        width: 100%;
        min-width: 0;
    }

    .voiceflow-tool .voice-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .voiceflow-tool .aiimage-stats,
    .voiceflow-tool .voice-detail-grid,
    .voiceflow-tool .voice-top-grid,
    .voiceflow-tool .voice-flow-grid,
    .voiceflow-tool .voice-form-grid,
    .voiceflow-tool .voice-switches {
        grid-template-columns: 1fr;
    }

    #qkVoiceHostSettingsModal .qk-voice-grid,
    #qkVoiceHostSettingsModal .qk-voice-switches {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .voiceflow-tool .aiimage-header {
        align-items: flex-start;
    }

    .voiceflow-tool .aiimage-header-right {
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        overflow: visible;
    }

    .voiceflow-tool .aiimage-stats.header-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .voiceflow-tool .aiimage-main {
        padding: 16px;
    }

    .voiceflow-tool .section-hint {
        display: none;
    }

    .voiceflow-tool .voice-capability-list {
        gap: 8px;
    }

    .voiceflow-tool .voice-capability-item:nth-child(n + 3) {
        display: none;
    }

    .voiceflow-tool .voice-result-simple,
    .voiceflow-tool .voice-empty {
        min-height: 360px;
    }
}
