/* static/style.css */
body {
    background-color: #ebecf0;
    color: #3e3e5f;
    font-family: 'Rubik', 'Noto Sans SC', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 30px;
    background-color: #ebecf0;
    box-shadow: -10px -10px 30px #fff, 10px 10px 30px #babecc;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #3e3e5f;
    text-shadow: 1px 1px 1px #fff;
}

/* --- 拖拽上传区域 --- */
.upload-area {
    padding: 50px 20px;
    border-radius: 20px;
    background-color: #ebecf0;
    /* 凹陷效果 */
    box-shadow: inset 5px 5px 10px #babecc, inset -5px -5px 10px #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 2px solid transparent;
}
.upload-area:hover, .upload-area.dragover {
    box-shadow: inset 2px 2px 5px #babecc, inset -2px -2px 5px #fff;
    border-color: rgba(62, 62, 95, 0.1);
}

/* --- 漂亮的进度条 (核心修改) --- */
.progress-container {
    margin-top: 30px;
    display: none; /* 默认隐藏 */
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6e6e8e;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 进度条槽 (凹陷) */
.progress-track {
    width: 100%;
    height: 16px;
    background-color: #ebecf0;
    border-radius: 20px;
    box-shadow: inset 3px 3px 6px #babecc, inset -3px -3px 6px #fff;
    overflow: hidden;
    position: relative;
}

/* 进度条填充 (凸起/渐变) */
.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    /* 漂亮的蓝紫色渐变 */
    background: linear-gradient(90deg, #7d7dff, #9b9bff);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.1s linear;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6e6e8e;
    margin-top: 10px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace; /* 等宽字体显得更极客 */
    opacity: 0.8;
}

/* --- 结果/链接区域 --- */
.result-card {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: #ebecf0;
    box-shadow: -5px -5px 10px #fff, 5px 5px 10px #babecc;
    display: none;
    text-align: left;
}

.link-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #ebecf0;
    box-shadow: inset 2px 2px 5px #babecc, inset -2px -2px 5px #fff;
    color: #3e3e5f;
    font-family: monospace;
    font-size: 14px;
    margin: 10px 0;
    box-sizing: border-box;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    color: #3e3e5f;
    font-weight: bold;
    background: #ebecf0;
    box-shadow: -5px -5px 10px #fff, 5px 5px 10px #babecc;
    cursor: pointer;
    transition: transform 0.1s;
    outline: none;
    margin-top: 10px;
    width: 100%;
}
.btn:active {
    box-shadow: inset 2px 2px 5px #babecc, inset -2px -2px 5px #fff;
    transform: translateY(1px);
}