/* pdf2xxx.css */
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
}

body {
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px
}

.fl {
    float: left
}

.fr {
    float: right
}

.cf:after {
    content: "";
    display: block;
    clear: both
}

.mt50 {
    margin-top: 50px
}

.line {
    display: inline-block;
    margin: 0 10px;
    color: #ddd
}

/* 主内容样式 */
main {
    padding: 20px 0 30px
}

.function-header {
    margin-bottom: 25px
}

.function-header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-align: center
}

.function-header-tips {
    font-size: 13px;
    color: #666;
    text-align: center
}

/* 核心功能区 - 统一高度和边距 */
.converter-function {
    background: #fff;
    border-radius: 16px;
    padding: 30px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 30px auto 30px;
    min-height: 500px; /* 统一最小高度 */
    display: flex;
    flex-direction: column;
    max-width: 900px; /* 统一最大宽度 */
    max-width: 1150px;
}

/* 上传区域 */
.interface-upload {
    background: #f9f9f9;
    border: 2px dashed #e5e9f2;
    border-radius: 12px;
    padding: 40px 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    flex: 1; /* 占满核心区剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
}

.interface-upload:hover {
    border-color: #4886ff;
    background: #f0f7ff
}

.upload-picker {
    width: 100%
}

.webuploader-pick {
    width: 100%;
    cursor: pointer
}

.upload-file-btn {
    margin-bottom: 15px
}

.upload-file-btn i {
    font-size: 40px;
    color: #4886ff;
    margin-bottom: 10px;
    display: block
}

.upload-file-btn .file-info {
    font-size: 16px;
    color: #333;
    font-weight: 500
}

.upload-file-text {
    font-size: 13px;
    color: #999
}

/* 步骤动画 - 统一位置和样式 */
.interface-animate {
    display: flex;
    justify-content: space-between;
    margin: 30px auto; /* 水平居中 */
    padding: 0 10px;
    max-width: 800px; /* 限制最大宽度 */
}

.animate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative
}

.animate-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f3ff;
    color: #4886ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
    position: relative;
    z-index: 2
}

.animate-icon.active {
    background: #4886ff;
    color: white
}

.animate-text {
    font-size: 12px;
    color: #666;
    text-align: center
}

.animate-text.active {
    color: #4886ff;
    font-weight: 500
}

.line-container {
    position: relative;
    flex: 0.8
}

.animate-line {
    position: absolute;
    top: 17px;
    height: 2px;
    background: #e5e9f2
}

.animate-line.active {
    background: #4886ff
}

.line-one {
    width: 45%;
    left: 0
}

.line-two {
    width: 45%;
    right: 0
}

.animate-dot {
    position: absolute;
    top: 11.3px;
    left: 45%;
    color: #4886ff
}

/* 功能特点区 - 统一布局 */
.interface-desc {
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1150px; /* 统一最大宽度 */
}

.interface-desc-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease
}

.interface-desc-item:hover {
    transform: translateY(-3px)
}

.desc-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px
}

.item-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4886ff;
    font-size: 16px;
    margin-right: 12px
}

.item-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a
}

.desc-item-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6
}

/* 进度条样式 - 修改为线性进度条 */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px
}

.dots_item {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4886ff;
    animation: animate_dots .9s infinite
}

.dot1 {
    animation-delay: .2s
}

.dot2 {
    animation-delay: .4s
}

@keyframes animate_dots {
    0% {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

.upload-picker {
    position: relative;
}

.webuploader-pick {
    position: relative;
    min-height: 200px;
}

/* 线性进度条容器样式 */
.progress-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    padding: 20px;
}

/* 线性进度条样式 */
.linear-progress {
    height: 8px;
    background-color: #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.linear-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4886ff 0%, #6bb1ff 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 16px;
    font-weight: bold;
    color: #4886ff;
}

.progress-status {
    font-size: 14px;
    color: #666;
}

.uploading .upload-file-btn, .uploading .upload-file-text {
    display: none !important;
}

.uploading .progress-container {
    display: block;
}

.webuploader-element-invisible, .element-invisible, .converter-holder {
    display: none !important;
}

/* 响应式统一调整 */
@media (min-width: 768px) {
    .interface-desc {
        grid-template-columns: repeat(3, 1fr);
    }

    .converter-function {
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .animate-text {
        display: none;
    }

    .user-name {
        display: none;
    }

    .progress-container {
        width: 90%;
    }
}