﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #fff;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
}


.main-nav {
    border-bottom: 1px solid #F9FAFA;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #F8F9FA;
}

.nav-container {
    max-width: 1400px;
    padding: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.brand-icon {
    font-size: 22px;
}

.nav-menu-left {
    margin-left: 60px;
    gap: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-menu-right {
    gap: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar-collapse.collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: space-between;
    align-items: center;
}

.nav-menu-left .nav-link {
    color: #333;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu-left .nav-link:hover {
    color: #4a90d9;
}

.nav-menu-left .nav-link.active {
    color: #4a90d9;
}

.nav-menu-left .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90d9;
}


.main-footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: 50px;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-footer .footer-column {
    flex: 1;
    text-align: left;
    padding: 0 15px;
}

.main-footer .footer-column h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.main-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-column ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.main-footer .footer-column ul li a {
    color: #666;
    text-decoration: none;
}

.main-footer .footer-column ul li a:hover {
    color: #0077cc;
}

.main-footer .footer-qr {
    text-align: center;
}

.main-footer .footer-qr p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.main-footer .footer-qr img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

.main-footer .footer-divider {
    border: none;
    border-top: 1px solid #c5c5c5;
    margin: 20px 0;
}

.main-footer .footer-copyright {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding-top: 10px;
}


.home-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px 0 0;
    width: 100%;
    min-height: 0;
}

.function-selector-vertical {
    flex: none;
    width: 130px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    margin: 0px 15px 0 40px;/* 上右下左 */
    background: transparent;
    border-radius: 0;
}

    .function-selector-vertical .function-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 15px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
        border: none;
    }

        .function-selector-vertical .function-btn:hover {
            background: #f0f5ff;
        }

        .function-selector-vertical .function-btn.active {
            background: #e8f0fe;
            border-color: #4a90d9;
        }

    .function-selector-vertical .function-icon {
        width: 86px;
    }

    .function-selector-vertical .function-name {
        font-size: 13px;
        color: #333;
        font-weight: 500;
        text-align: center;
    }

.function-selector {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    width: 120px;
}

.function-btn:hover {
    background: #F2F7FF;
}

.function-btn.active {
    background: #e8f0fe;
    border-color: #F2F7FF;
}

.function-icon {
    font-size: 36px;
}

.function-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.content-area {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 10px;
    padding-bottom: 0;
    gap: 10px;
    border: none;
    min-height: 0;
}

.content-row {
    display: flex;
    justify-content: space-between; /* 关键 */
    gap: 10px;
    min-height: 0;
}

.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: row; /* column子元素从上到下垂直排列，row 子元素从左到右水平排列 */
    gap: 20px;
}

.page-main-title {
    margin-bottom: 35px;
}

.page-main-title h2 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

.function-content {
    display: none;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.function-content.active {
    display: flex;
}

.text-input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.text-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
    padding: 6px;
    background: transparent;
    border-radius: 8px;
}

.toolbar-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

    .toolbar-btn:hover {
        border-color: #4a90d9;
        color: #4a90d9;
    }

.toolbar-icon {
    font-size: 16px;
}

.toolbar-text {
    color: #333;
}

.toolbar-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    min-width: 220px;
    z-index: 100;
    display: none;
}

.toolbar-btn:hover .toolbar-popup {
    display: block;
}

.popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.popup-content {
    margin-bottom: 12px;
}

.popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.popup-label {
    font-size: 13px;
    color: #666;
}

.popup-value {
    font-size: 14px;
    font-weight: 600;
    color: #4a90d9;
    min-width: 40px;
    text-align: center;
}

.popup-unit {
    font-size: 13px;
    color: #999;
}

.popup-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

    .popup-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #4a90d9;
        cursor: pointer;
    }

    .popup-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #4a90d9;
        cursor: pointer;
        border: none;
    }

.popup-confirm-btn {
    width: 100%;
    padding: 4px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

    .popup-confirm-btn:hover {
        background: #3a7bc8;
    }

.text-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.text-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.text-input {
    width: 100%;
    min-width: 300px;
    flex: 1;
    min-height: 100px;
    height: 0;
    padding: 10px;
    border: 1px solid #4a90d9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    background: #fff;
    transition: border-color 0.3s;
}

.text-input:focus {
    border-color: #4a90d9;
}

.char-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 14px;
    color: #999;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
}

.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    flex-shrink: 0; /* 不挤扁，保持宽度 */
}

.control-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-player {
    margin: 0 6px -5px 4px;
}

.audio-player audio {
    height: 38px;
    outline: none;
}

.clear-btn {
    display: inline-block;
    font-size: 20px;
    width: 32px; /* 圆的大小 */
    height: 32px; /* 必须和宽度一样，才是正圆 */
    margin-top: -12px;
    margin-right: 6px;
    line-height: 32px; /* 让图标垂直居中 */
    text-align: center; /* 让图标水平居中 */
    color: #999 !important;
    border-radius: 50%; /* 圆形关键 */
}

    .clear-btn:hover {
        color: #FC6C6F !important;
        background-color: #eaeaea;
        cursor: pointer;
    }

/* 用于文件列表中的按钮设置 */
.icon-btn-small {
    font-size: 16px;
}

.icon-btn-mini {
    font-size: 13px;
}

.preview-action-btn {
    background: #F5D83E;
    color: #000;
    border: none;
}

.preview-action-btn:hover {
    background: #FAD61A;
}

.voice-settings-section {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0px 10px;
    background: transparent;
    min-height: 0;
    overflow-y: auto;
}

.voice-select-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

    .voice-select-btn:hover {
        background: #e9ecef;
    }

.voice-avatar {
    width: 50px;
    height: 50px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.voice-info {
    flex: 1;
}

.voice-name {
    font-weight: 500;
    color: #333;
}

.voice-desc {
    font-size: 13px;
    color: #666;
}

.voice-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.voice-gender-icon {
    font-size: 14px;
}

.voice-gender-icon.male {
    color: #4a90d9;
}

.voice-gender-icon.female {
    color: #ff69b4;
}

.voice-action-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voice-action-btn {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

.voice-action-btn.preview-btn {
    background: #fff;
    border: 1px solid #bbb;
    color: #333;
}

.voice-action-btns .icon-preplay {
    padding-right: 3px;
    color: #666;
}

    .voice-action-btns .icon-preplay:hover {
        color: #4a90d9;
    }

.voice-action-btn.preview-btn:hover {
    border-color: #4a90d9;
    color: #4a90d9;
}

    .voice-action-btn.choose-btn {
        background: #3BAAF2;
        color: #fff;
    }

        .voice-action-btn.choose-btn:hover {
            background: #2189DE;
        }

.setting-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.bg-music-select-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

    .bg-music-select-btn:hover {
        background: #e9ecef;
    }

.bg-music-icon {
    width: 40px;
    height: 40px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-music-info {
    flex: 1;
}

.bg-music-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.bg-music-desc {
    font-size: 13px;
    color: #666;
}

.bg-music-choose-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

    .bg-music-choose-btn:hover {
        border-color: #4a90d9;
        color: #4a90d9;
    }

.bg-music-modal {
    width: 800px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.bg-music-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.bg-music-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.bg-music-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.bg-music-section {
    margin-bottom: 25px;
}

.bg-music-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bg-music-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

    .bg-music-card:hover {
        background: #e9ecef;
    }

.bg-music-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bg-music-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bg-music-card-icon {
    font-size: 24px;
}

.bg-music-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}



.bg-music-card-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bg-music-card-btn {
    padding: 3px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

    .bg-music-card-btn.preview {
        background: #fff;
        border: 1px solid #ddd;
        color: #333;
    }

        .bg-music-card-btn.preview:hover {
            border-color: #4a90d9;
            color: #4a90d9;
        }

    .bg-music-card-btn.use {
        background: #4a90d9;
        color: #fff;
    }

        .bg-music-card-btn.use:hover {
            background: #3a7bc8;
        }

.voice-preview-btn,
.voice-choose-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

    .voice-preview-btn:hover,
    .voice-choose-btn:hover {
        border-color: #4a90d9;
        color: #4a90d9;
    }

.setting-row {
    display: flex;
    align-items: center;
    margin-right: 0px;
}

.setting-label {
    width: 76px;
    color: #333;
    font-size: 15px;
    font-weight: 400;
}

.setting-select {
    width: 180px;
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.setting-select:focus {
    border-color: #4a90d9;
}


.voice-set-select {
    flex: 1;
    margin-right: 10px;
}

.radio-group {
    display: flex;
    gap: 30px;
    flex: 1;
    height: 35px;
    margin-right: 10px;
    padding-left: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.radio-group-stt {
    display: flex;
    gap: 20px;
    flex: 1;
    margin-right: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

    .radio-option input[type="radio"] {
        cursor: pointer;
    }

.slider-row {
    padding: 5px 0;
}


.checkbox-row {
    margin-left: 6px;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-input:checked + .checkbox-custom {
    background: #3BAAF2; /*linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border-color: #3BAAF2;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-text {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #3BAAF2;
}

.setting-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0;
}

.slider-wrapper:hover .setting-slider::-webkit-slider-thumb {
    opacity: 1;
}

.setting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 1;
}

.setting-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    opacity: 1;
}

.setting-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #fff;
    border: 3px solid #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0;
}

.slider-wrapper:hover .setting-slider::-moz-range-thumb {
    opacity: 1;
}

.setting-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 1;
}

.slider-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {

    border-color: #4a90d9;
    color: #4a90d9;
}

.slider-btn:active {
    background: #f0f5ff;
}

.slider-value {
    width: 40px;
    text-align: left;
    color: #4a90d9;
    font-weight: 500;
}


.slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-min, .slider-max {
    font-size: 14px;
    color: #666;
    min-width: 25px;
    text-align: center;
}

.slider-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-wrapper .setting-slider {
    width: 100%;
}

.slider-tooltip {
    position: absolute;
    top: -27px;

    transform: translateX(-50%);
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.slider-wrapper:hover .slider-tooltip {
    opacity: 1;
}

.setting-slider.green-slider {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--value), #e0e0e0 var(--value), #e0e0e0 100%);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.action-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.action-btn.loading .btn-icon {
    display: none;
}

.action-btn.loading .btn-text {
    margin-left: 20px;
}

.action-btn.loading::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.primary-btn {
    background: #3BBFFA;
    color: #fff;
    border: none;
    gap: 6px;
}

.primary-btn:hover {
    background: #08ADF7;
}


.primary-btn.recording {
    background: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.secondary-btn {
    background: #00C121;
    color: #fff;
    border: none;
}

.secondary-btn:hover {
    background: #03A01C;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    text-align: center;
}

.placeholder-content.full-width {
    flex: 1;
    min-height: 500px;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.placeholder-content p {
    color: #666;
    margin-bottom: 30px;
}

.upload-area {
    margin-top: 20px;
}

.upload-btn {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 9px 30px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #3a7bc8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.3s;
}

    .modal-close:hover {
        color: #333;
    }

.modal-login-close {
    position: absolute;
    margin-top: -30px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-login-close:hover {
    color: #333;
}


.vip-modal {
    width: 900px;
}

.vip-container {
    display: flex;
    padding: 30px;
}

.vip-left {
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

    .vip-left h3 {
        font-size: 18px;
        color: #333;
        margin-bottom: 20px;
    }

.vip-compare-table {
    width: 100%;
    border-collapse: collapse;
}

    .vip-compare-table th,
    .vip-compare-table td {
        padding: 12px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .vip-compare-table th {
        background: #f8f9fa;
        font-weight: 500;
        color: #333;
    }

    .vip-compare-table td:first-child {
        text-align: left;
        color: #666;
    }

    .vip-compare-table td:nth-child(2) {
        color: #999;
    }

    .vip-compare-table td:nth-child(3) {
        color: #4a90d9;
        font-weight: 500;
    }

.vip-right {
    flex: 1;
    padding-left: 30px;
}

    .vip-right h3 {
        font-size: 18px;
        color: #333;
        margin-bottom: 20px;
    }

.price-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.price-card {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .price-card:hover {
        border-color: #4a90d9;
    }

    .price-card.selected {
        border-color: #4a90d9;
        background: #e8f0fe;
    }

.price-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.price-desc {
    font-size: 12px;
    color: #999;
}

.payment-method {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.payment-label {
    font-size: 14px;
    color: #333;
}

.qrcode-container {
    display: flex;
    justify-content: center;
}

.qrcode-box {
    width: 180px;
    height: 180px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.login-modal {
    width: 400px;
}




.login-qrcode {
    flex-direction: column;
    margin-top: 10px;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}
.qrcode_center {
    height: 206px;
    margin-top: 5px;
    margin-left: 4px;
    justify-content: center; /* 水平居中 */
    overflow: clip;
    /*background: #3a7bc8;*/
}

.login-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.voice-modal {
    width: 960px;
    height: 650px;
    max-height: 700px;
}

.voice-modal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.voice-modal-header {
    padding: 6px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.voice-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.voice-filter {
    background: #f8f9fa;
    padding: 9px 30px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.voice-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

    .filter-row:last-child {
        margin-bottom: 0;
    }

    .filter-row .filter-select {
        margin-left: 0;
    }

.filter-label {
    width: auto;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.filter-label-language {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-left: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 56px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filter-select {
    padding: 2px 12px;
    width: 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: #4a90d9;
}


.voice-section {
    margin-bottom: 25px;
}

    .voice-section:last-child {
        margin-bottom: 0;
    }

.section-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title::before,
    .section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #eee;
    }

.voice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 8px;
}


.voice-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s;
    position: relative;
}

/*
.voice-card:hover {
    border-color: #4a90d9;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.15);
}*/

    .voice-card-favorite {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
    padding: 0;
}

.voice-card-favorite:hover {
    color: #f4bc3a;
}

    .voice-card-favorite.favorited {
        color: #f4bc3a;
    }


.voice-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 24px;
}

.voice-card-avatar {
    width: 45px;
    height: 45px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.voice-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.voice-card-info {
    flex: 1;
    min-width: 0;
}

.voice-card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.voice-card-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.voice-card-gender {
    font-size: 14px;
}

    .voice-card-gender.male {
        color: #4a90d9;
    }

    .voice-card-gender.female {
        color: #ff69b4;
    }

.voice-card-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.voice-card-actions button {
    padding: 2px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-card-actions .preview-btn {
    background: #fff;
    border: 1px solid #bbb;
    color: #333;
}

    .voice-card-actions .use-btn {
        background: #3BAAF2;
        border: none;
        color: #fff;
    }

.voice-card-actions .favorite-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 5px 8px;
}

.voice-card-actions .favorite-btn.favorited {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

    .voice-card-actions .use-btn:hover {
        opacity: 0.8;
    }

    .voice-card-actions .preview-btn:hover {
        border-color: #4a90d9;
        color: #4a90d9;
    }

main {
    flex: 1;
}

.page-container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 32px;
        color: #333;
        margin-bottom: 10px;
    }

    .page-header p {
        color: #666;
        font-size: 16px;
    }

.tool-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.upload-section {
    display: flex;
    justify-content: center;
}

.upload-box {
    text-align: center;
    padding: 60px 100px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    transition: all 0.3s;
}

    .upload-box:hover {
        border-color: #4a90d9;
        background: #f8faff;
    }

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.file-audio-upload-icon {
    font-size: 64px;
}

.upload-box h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.upload-box p {
    color: #999;
    margin-bottom: 20px;
}

.video-preview {
    margin-top: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.video-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.video-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .video-container video {
        width: 100%;
        max-height: 400px;
    }

.cut-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .time-input label {
        color: #333;
        font-weight: 500;
    }

    .time-input input {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        width: 100px;
    }

.cut-btn {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: auto;
}

    .cut-btn:hover {
        background: #3a7bc8;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.tool-btn {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

    .tool-btn:hover {
        background: #3a7bc8;
    }

.file-upload-area {
    flex: 1;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.upload-box-large {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    min-height: 300px;
}

    .upload-box-large:hover {
        border-color: #4a90d9;
        background: #f8faff;
    }

    .upload-box-large.drag-over {
        border-color: #4a90d9;
        background: #e6f4ff;
    }

    .upload-box-large .upload-icon {
        font-size: 58px;
        margin-bottom: 20px;
        color: #548ED5;
    }

    .upload-box-large p {
        color: #666;
        margin-bottom: 10px;
    }

    .upload-box-large .upload-hint {
        font-size: 13px;
        color: #999;
        margin-bottom: 20px;
    }

.multi-voice-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

    .multi-voice-area .placeholder-icon {
        font-size: 64px;
        margin-bottom: 20px;
    }

    .multi-voice-area h3 {
        font-size: 24px;
        color: #333;
        margin-bottom: 10px;
    }

    .multi-voice-area p {
        color: #666;
        margin-bottom: 10px;
    }

    .multi-voice-area .coming-soon {
        color: #4a90d9;
        font-weight: 500;
    }

.placeholder-settings {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.file-list-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 500px; /* 设置最大高度，这样添加文件超出列表高度时可以显示滚动条 */
}

.file-list-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.toolbar-btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 25px;
    background: #55A5E8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

    .toolbar-btn-primary:hover {
        background: #4a90d9;
    }

.toolbar-btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 25px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-btn-secondary:hover {
    border-color: #FF5A5A;
    background-color: #FFEDED;
    color: #FF5A5A;
}


.file-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    min-height: 0;
}

.file-list-header {
    display: flex;
    background: #f5f5f5;
    color: #333;
    flex-shrink: 0;
    font-weight: 500;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.file-list-header .col-name {
    /* 文件名标题中间左对齐
    text-align: left;
    justify-content: flex-start;
    */
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.file-list-header .col-size,
.file-list-header .col-count,
.file-list-header .col-status,
.file-list-header .col-action {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.file-list-body {

    overflow-y: auto;
    min-height: 0;
}

.file-list-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 15px;
    border-top: 1px solid #e0e0e0;
}
.file-list-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    align-items: center;
    transition: background 0.2s;
}

    .file-list-item:hover {
        background: #f8faff;
    }

    .file-list-item:last-child {
        border-bottom: none;
    }

.col-name {
    flex: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.col-size {
    flex: 1.5;
    color: #666;
    padding-right: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-count {
    flex: 1.5;
    color: #666;
    padding-right: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-status {
    flex: 1;
    padding-right: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-ready {
    color: #666;
}
.status-pending {
    color: #4a90d9;
}

.status-processing {
    color: #ffc107;
}

.status-done {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.col-action {
    flex: 1.5;
    display: flex;
    gap: 0px;
    justify-content: center;
    align-items: center;
}

.action-icon {
    color: #666;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

    .action-icon:hover {
        color: #548ED5;
    }

    .action-icon.play:hover {
        color: #548ED5;
    }

    .action-icon.replace:hover {
        color: #548ED5;
    }

    .action-icon.play.playing {
        color: #548ED5;
    }

.action-icon.play.playing:hover {
    color: #28a745;
}


.action-icon.delete {
    color: #888;
}

.action-icon.delete:hover {
    color: #FF555A;
}

.action-icon.disabled,
.action-icon[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #999;
    border-color: #ddd;
}

.action-icon.disabled:hover,
.action-icon[disabled]:hover {
    background: #f0f0f0;
    color: #999;
    border-color: #ddd;
}

.audio2text-layout {
    flex: 1 !important;
    max-width: none !important;
    gap: 20px;
}


.audio2text-layout .content-row {
    display: flex;
    flex: 1;
    gap: 10px;
    min-height: 0;
}


/* 标题独占一行 */
.speech-section-title {
    flex: 0 0 100%;
    margin: 0 0 20px 0px;

    font-size: 26px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.audio2text-layout.active {
    display: flex !important;
}

.audio2text-left {
    flex: 1 !important;
    min-width: 0;
}

.audio2text-upload-area {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 480px;
}

.audio2text-upload-area .upload-box-large {
    padding: 20px;
}

.audio2text-upload-area .upload-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

.audio2text-upload-area p {
    font-size: 16px;
}

.audio2text-options {
    padding: 0px 0px 10px 0px;
}
.audio2text-srt-options {
    padding: 10px 0 10px 0;
}


.setting-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.setting-row-inline .setting-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row-inline .setting-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row-inline .radio-group {
    display: flex;
    gap: 10px;
}

.setting-row-inline .radio-option {
    margin: 0px 10px 0 0;
}

.setting-row-inline .file-list-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.setting-row-inline .file-list-btns .small-btn {
    padding: 4px 10px;
    font-size: 12px;
}

.audio2text-options .setting-row {
    margin-bottom: 5px;
}

.audio2text-options .setting-row:last-child {
    margin-bottom: 0;
}

.audio-file-list-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 15px;
    border-top: 1px solid #e0e0e0;
}

.audio-file-list {
    margin-bottom: 0px;
}

.audio-file-list .file-list-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    background: transparent;
}

.file-list-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 480px;
    overflow: hidden;
}

.file-list-row {
    display: flex;
    padding: 8px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.file-list-row:last-child {
    border-bottom: none;
}

.file-list-row.header-row {
    background: #f5f7fa;
    font-weight: 500;
    color: #333;
}

.file-list-row.header-row .file-col {
    justify-content: center;
    text-align: center;
}

.file-list-row.header-row .file-name-col {
    /* 文件名标题左对齐
    justify-content: flex-start;
    text-align: left;
    */
    justify-content: center;
}

.file-list-body .file-list-row {
    background: #fff;
    font-size: 14px;
}

.file-list-body .file-list-row:hover {
    background: #f9fafb;
}

.file-col {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-name-col {
    flex: 3;
    min-width: 0;
}

.file-name-col span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list-body .file-name-col {
    justify-content: flex-start;
}

.file-size-col {
    flex: 1;
    color: #666;
    justify-content: center;
    text-align: center;
}

.file-duration-col {
    flex: 1;
    color: #666;
    justify-content: center;
    text-align: center;
}

.file-status-col {
    flex: 1;
    justify-content: center;
    text-align: center;
}


.file-action-col {
    width: 10px;
    display: flex;
    gap: 0px;
    justify-content: center;
    align-items: center;
}

.action-icon {
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    border-radius: 8px;
    transition: background 0.2s;
}

.action-icon:hover {
    background: #f0f0f0;
}


.small-btn {
    padding: 6px 12px;
    font-size: 12px;
}


.audio2text-settings {
    flex: 1 !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 15px;
}

.audio2text-settings.active {
    display: flex !important;
}

.audio2text-settings .bottom-controls {
    margin-top: -5px;
    justify-content: space-between;
}

audio2txt-right-control {
    margin-bottom: 15px;
}


.bottom-controls .control-center {
    flex: 1;
    justify-content: center;
}

.bottom-controls .big-padding-btn {
    padding: 9px 46px 9px 40px;
}


.audio2text-left .bottom-controls {
    justify-content: center;
}

#file2speech-content .bottom-controls {
    justify-content: center;
}

#file2speech-content .control-left,
#file2speech-content .control-right {
    display: flex;
    gap: 10px;
}

.control-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.text-output-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.text-output-header-row {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.text-output-header-row .text-output-header {
    margin-bottom: 0;
    margin-left: 5px;
    font-size: 16px;
}

.header-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-label-six {
    width: 110px;
    color: #333;
    font-size: 15px;
    font-weight: 400;
}

.header-select .setting-select {
    padding: 4px 8px;
    font-size: 13px;
}

.text-output-header {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.text-output-area {
    width: 100%;
    height: 480px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
    background: #fbfbfb;
    min-height: 100px;
}

audio2text-output-text{
    padding-top: 2px;
}

.realtime-voice-layout {
    flex: 1 !important;
    gap: 20px;
}

.realtime-voice-left {
    flex: 1 !important;
    min-width: 0;
}

.realtime-voice-header {
    text-align: center;
    margin-bottom: 15px;
}

.realtime-voice-tip {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.realtime-start-btn {
    padding: 12px 30px;
    font-size: 15px;
}


.realtime-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.realtime-voice-right {
    flex: 1 !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 15px;
}


.realtime-voice-right .realtime-text-wrapper {
    flex: 1;
}

.realtime-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    flex-shrink: 0; /* 不挤扁，保持宽度 */
}


    .realtime-controls .control-center {
        grid-column: 2;
        justify-self: center;
    }

    .realtime-controls .control-right {
        grid-column: 3;
        justify-self: end;
    }

.realtime-micphone-btn {
    border: none;
    color: #fcfcfc;
    background: #3BBFFA;
    padding: 9px 36px 9px 36px;
    gap: 6px;
}

    .realtime-micphone-btn:hover {
        background: #08ADF7;
    }

.realtime-micphone-btn.recording {
    background: #dc3545;
    animation: pulse 1s infinite;
}

.realtime-voice-tip-bottom {
    text-align: center;
    margin: 15px 0 0 0;
    font-size: 12px;
    color: #888;
}

.translate-controls {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 0px;
    flex-shrink: 0; /* 不挤扁，保持宽度 */
}

.translate-controls .control-center {
    display: flex;
    flex: 1;
    gap: 10px;
    margin-left: 70px;
}

.translate-controls .control-right {
    gap: 10px;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-width: 100px;
    z-index: 100;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-item {
    padding: 2px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}

.dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

.dropdown-item:hover {
    background: #f0f5ff;
    color: #4a90d9;
}


/* PDF to Word*/
.pdf2word-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 10px;
    background: #f5f7fa;
}

.pdf2word-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.pdf2word-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.pdf2word-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.pdf-upload-area {
    margin-bottom: 20px;
}

.pdf-transform-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #ddd;
    border-radius: 12px;
    height: 340px;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.pdf-upload-logos {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin:20px 0 20px 0;
    font-size: 40px;
}

.pdf-transform-area .pdf-upload-logos {
    margin-top: 60px;
}

.pdf-upload-logos .logo_left {
    color: #E46028
}

.pdf-upload-logos .logo_right {
    color: #3a7bc8
}



.pdf-upload-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 50px 40px;
    height: 340px;
    transition: all 0.3s;
    cursor: pointer;
}

    .pdf-upload-box:hover,
    .pdf-upload-area.drag-over .pdf-upload-box {
        border-color: #4a90d9;
        background: #f0f7ff;
    }

.pdf-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.pdf-upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.pdf-convert-text {
    font-size: 15px;
    color: #666;
}

.pdf-progress-text {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.pdf-upload-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.pdf-select-btn {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

    .pdf-select-btn:hover {
        background: #357abd;
    }


.pdf-file-info {
    padding: 5px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.pdf-file-name {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-all;
}

.pdf-file-size {
    font-size: 15px;
    color: #999;
}

.pdf-file-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 8px;
}

.pdf-file-remove:hover {
    background: #ff5252;
}

.pdf-progress-area {
    width: 500px;
}

.pdf-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #67b26f);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.pdf-progress-text {
    font-size: 14px;
    color: #666;
}

.pdf-action-area {
    margin-bottom: 20px;
}

.pdf-convert-btn {
    background: linear-gradient(135deg, #74C9F7, #3EA5DE);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .pdf-convert-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(74,144,217,0.4);
    }

    .pdf-convert-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.pdf-result-area {
    margin-top: 10px;
}


.result-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.result-text {
    font-size: 20px;
    color: #2e7d32;
}

.pdf-download-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .pdf-download-btn:hover {
        background: #43A047;
    }

/* 针对备案链接特定类名的链接 */
.my-link:link,
.my-link:visited {
    color: #666;
    text-decoration: none;
}


.software-intro-section {
    
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 16px;

}

.intro-container {
    padding: 0px 10px 10px 10px;
    max-width: 1520px;
}

.intro-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

    .intro-title::after {
        content: '';
        display: block;
        height: 1px;
        background: #74A7E3;
        margin: 5px auto 0;
    }

.intro-content {
    background: #fff;
    padding: 0px;
}

.intro-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding: 0px 20px;
    text-align: justify;
    margin-bottom: 30px;
}

.highlights-title {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-left: 20px;
}

.intro-highlights {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 10px;
    margin: 10px;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    color: #444;
    padding: 4px 20px;
    line-height: 1.6;
}

.highlights-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4a90d9;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 10px;
    flex-shrink: 0;
}

.highlight-icon {
    display: none;
}

@media (max-width: 768px) {

    .intro-content {
        padding: 0px;
    }

    .intro-title{
        font-size: 26px;
    }
}


.faq-section {
    background: #fff;
    padding: 0px 20px 80px 20px;
}

.faq-container {
    max-width: 1520px;
    margin: 0 auto;
}


.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid #74A7E3;
}


.faq-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: start;
}


.faq-toggle-all {
    color: #4a90d9;
    padding: 0px 16px;
    margin-bottom: 2px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .faq-toggle-all:hover {
        color: #0A5DC9;
    }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.faq-item {
    background: #f8f9fa;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}



.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #fff;
}


.faq-question-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

    .faq-arrow.rotated {
        transform: rotate(180deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

    .faq-answer p {
        padding: 20px 25px;
        font-size: 15px;
        line-height: 1.8;
        color: #555;
        margin: 0;
    }

@media (max-width: 768px) {
    .faq-header {
        flex-direction: column;
        gap: 15px;
    }

    .faq-title {
        font-size: 26px;
    }

    .faq-toggle-all {
        align-self: flex-end;
        margin-top: -10px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-answer p {
        padding: 15px 20px;
    }
}


.orders-list {
    min-height: 200px;
}

.orders-table {
    width: 100%;
    
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/*设置标题*/
    .orders-table thead {
        background: #f5f7fa;
    }

    .orders-table th {
        padding: 15px 20px;
        text-align: left;
        font-weight: 500;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #e8e8e8;
    }

    .orders-table th:not(:first-child) {
        text-align: center;
    }

    .orders-table td {
        padding: 15px 20px;
        font-size: 14px;
        color: #555;
        border-bottom: 1px solid #f0f0f0;
    }

    .orders-table td:not(:first-child) {
        text-align: center;
    }

    .orders-table tbody tr:hover {
        background: #fcfcfc;
    }

    .orders-table tbody tr:last-child td {
        border-bottom: none;
    }

.order-amount {
    color: #ff6b6b;
    font-weight: 500;
}

.order-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

    .order-empty .empty-icon {
        font-size: 48px;
        display: block;
        margin-bottom: 15px;
    }

    .order-empty p {
        font-size: 14px;
        margin: 0;
    }

@media (max-width: 768px) {
    .orders-table th,
    .orders-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

.membership-status-section {
    margin-bottom: 30px;
}


.membership-status-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .membership-status-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .membership-status-table th {
        padding: 15px 20px;
        text-align: left;
        font-weight: 500;
        color: #fff;
        font-size: 14px;
    }

.membership-status-table th:not(:first-child) {
    text-align: center;
}

.membership-status-table td {
    padding: 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.membership-status-table td:not(:first-child) {
    text-align: center;
}

.membership-product-icon {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.membership-product-name {
    font-weight: 500;
    color: #333;
    vertical-align: middle;
}

.membership-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

    .membership-status-badge.valid {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .membership-status-badge.invalid {
        background: #ffebee;
        color: #c62828;
    }

.membership-expire-date {
    color: #666;
}

@media (max-width: 768px) {
    .membership-status-table th,
    .membership-status-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .membership-product-icon {
        font-size: 20px;
    }
}
