/* ZenZefi 证书提取 - 前端样式 */

.zce-frontend-wrap {
    max-width: 640px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.zce-frontend-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.zce-frontend-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 6px;
    text-align: center;
}

.zce-frontend-desc {
    text-align: center;
    color: #718096;
    font-size: 13px;
    margin: 0 0 4px;
}

.zce-frontend-points {
    text-align: center;
    color: #b45309;
    font-size: 12px;
    margin: 0 0 20px;
}

/* 文件选择 */
.zce-file-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.zce-file-pick {
    flex: 0 0 38%;
    position: relative;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
    overflow: hidden;
}

.zce-file-pick:hover {
    border-color: #3182ce;
    background: #ebf4ff;
}

.zce-file-pick.selected {
    border-style: solid;
    border-color: #48bb78;
    background: #f0fff4;
}

.zce-file-pick.error {
    border-style: solid;
    border-color: #e53e3e;
    background: #fff5f5;
    animation: zce-shake 0.3s ease-in-out;
}

@keyframes zce-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.zce-file-pick input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.zce-pick-label {
    display: block;
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 2px;
}

.zce-pick-status {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    min-height: 14px;
}

.zce-file-pick.selected .zce-pick-status {
    color: #38a169;
}

.zce-file-pick.error .zce-pick-status {
    color: #c53030;
}

/* 按钮 */
.zce-frontend-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.zce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.zce-btn-primary {
    background: #3182ce;
    color: #fff;
}

.zce-btn-primary:hover {
    background: #2b6cb0;
    color: #fff;
}

.zce-btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.zce-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.zce-btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.zce-btn-lg {
    padding: 8px 24px;
    font-size: 14px;
    width: 28%;
    margin: 0 auto;
    white-space: nowrap;
}

/* 提示信息区 */
#zce-frontend-message {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 12px 12px;
    background: #fafbfc;
}
.zce-frontend-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.zce-frontend-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: zce-progress 1.5s ease-in-out infinite;
}

@keyframes zce-progress {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.zce-frontend-message-text {
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 6px 0;
}

.zce-frontend-message-text:empty {
    display: none;
    padding: 0;
}

.zce-msg-error {
    color: #c53030;
}

.zce-msg-success {
    color: #38a169;
}

.zce-msg-info {
    color: #718096;
}

/* 结果列表 */
.zce-frontend-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zce-frontend-success-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #38a169;
    margin: 0 0 4px;
}

.zce-frontend-file-list li {
    list-style: none;
    padding: 0;
    line-height: 1.35;
}

.zce-frontend-file-list .zce-frontend-file-name {
    font-size: 13px;
    color: #718096;
    word-break: break-all;
}

/* 响应式 */
@media (max-width: 480px) {
    .zce-frontend-wrap {
        margin: 16px;
    }

    .zce-frontend-card {
        padding: 16px;
    }

    .zce-file-row {
        flex-direction: column;
    }

    .zce-file-pick {
        flex: 1;
    }

    .zce-btn-lg {
        width: 50%;
    }
}
