/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-thumb {
    border-radius: 0.25rem;
    background-color: #ffa500; /* 橙色 */
}

::-webkit-scrollbar-track {
    border-radius: 0.25rem;
    background-color: #f0f0f0; /* 浅灰色 */
}

/* HTML and Body Styles */
html {
    height: 100%;
    font-size: 14px; /* 基础字体大小 */
}

body {
  /*  背景图片*/
    background-image:url("../0.png");
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff8e1; /* 基础背景色 */
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: 'Roboto Mono', monospace;
  color: #333;
/*    全局透明度*/
    opacity: 0.95;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: #8cf8f6;
  opacity: 0.7;
  pointer-events: none; /* 防止粒子干扰点击事件 */
}

/* Container Layout */
.container {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 1.25rem; /* 20px */
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    margin: auto;
    min-width: 30rem; /* 480px */
    min-height: 25rem; /* 400px */
    padding: 1rem;
}

/* Upload and Filelist Containers */
.upload, .filelist {
    background: #fff; /* 白色背景 */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* 4px 8px */
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    flex: 1; /* 允许弹性伸缩 */
    min-width: 15rem;
}

.upload:hover, .filelist:hover {
    transform: translateY(-0.3125rem); /* 5px */
}

/* Title Styles */
.upload .title, .filelist .title {
    height: 2.8125rem; /* 45px */
    border-bottom: 1px solid #ffe0b2; /* 浅橙色边框 */
    color: #ff7043; /* 亮橙色 */
    font-weight: bold;
    padding: 0 0.9375rem; /* 15px */
    font-size: 1.125rem; /* 18px */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px */
}

.upload .title small{
    color: #888;
    font-weight: bold;
    font-size: 0.75rem; /* 12px */
}
#show {
    display: none;
    width: 100%;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 0.625rem; /* 10px */
    margin-top: 0.625rem; /* 10px */
}

.button-group button {
    width: 4.375rem; /* 70px */
    height: 1.75rem; /* 28px */
    border-radius: 0.25rem; /* 4px */
    background-color: #ffcc80; /* 浅橙色 */
    border: 1px solid #ffa500; /* 橙色边框 */
    color: #333;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); /* 2px 5px */
}

.button-group button:hover, .button-group button.active {
    background-color: #ffa500; /* 橙色 */
    border-color: #ffa500;
    color: #fff;
    transform: translateY(-0.125rem); /* 2px */
}


/* Upload Content Area */
.upload .content {
    cursor: pointer;
    height: calc(100% - 2.8125rem); /* 45px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background-color 0.3s;
    border: 2px dashed #ffa500; /* 橙色虚线边框 */
    border-radius: 0.5rem; /* 8px */
}

.upload .content:hover{
    border-color: #ff7043;
}
.upload .content:hover {
    background-color: #fffaf0; /* 浅米色 */
}

.upload .content .icon {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    margin-bottom: 0.625rem; /* 10px */
    fill: #ff7043; /* 亮橙色 */
}

.upload .content .desc {
    color: #777;
}

/* Drag Enter Effect */
.upload.dragenter {
    box-shadow: 0 0 1.25rem rgba(255, 112, 67, 0.35); /* 20px */
    background-color: #fffaf0;
    border: 2px dashed #ff7043;
}

/*.upload.dragenter .content>_ {*/
/*    pointer-events: none;*/
/*}*/

/* Filelist Container Animation */
.filelist {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 43.75rem; /* 700px */
    min-height: 25rem; /* 400px */
    overflow-y: auto;
}

/* Filelist List Area */
.filelist .list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0.625rem; /* 10px */
    padding-bottom: 1.25rem; /* 20px */
    margin-bottom: 0.625rem; /* 10px */
    scroll-behavior: smooth;
}

/* Filelist Item Styles */
.filelist .list .item {
    margin-bottom: 0.625rem; /* 10px */
}

.filelist .list .item:last-child {
    margin-bottom: 0.625rem; /* 10px */
}

.filelist .list .item .file {
    display: flex;
    align-items: center;
    margin-bottom: 0.3125rem; /* 5px */
}

.filelist .list .item .file .icon {
    width: 2.8125rem; /* 45px */
    height: 2.8125rem; /* 45px */
    margin-right: 0.625rem; /* 10px */
    fill: #ff7043; /* 亮橙色 */
}

.filelist .list .item .file .desc {
    flex: 1;
    min-width: 0;
}

.filelist .list .item .file .desc__name {
    font-size: 0.9375rem; /* 15px */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3125rem; /* 5px */
}

.filelist .list .item .file .desc__size {
    font-size: 0.75rem; /* 12px */
    color: #777;
}

.filelist .list .item .file .link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem; /* 5px */
    cursor: pointer;
    margin-left: 0.625rem; /* 10px */
    border-radius: 50%;
    transition: background 0.2s;
    color: #777;
}

.filelist .list .item .file .link svg {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
}

.filelist .list .item .file .link:hover {
    background: rgba(255, 112, 67, 0.2);
}

/* Progress Bar Styles */
.filelist .list .item .progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem; /* 12px */
}

.filelist .list .item .progress .progress-bar {
    flex: 1;
    min-width: 0;
}

.filelist .list .item .progress .progress-bar .progress-inner {
    width: 0%;
    height: 0.125rem; /* 2px */
    background: #ffa500; /* 橙色 */
    border-radius: 0.0625rem; /* 1px */
    transition: width 0.2s;
}

.filelist .list .item .progress .progress-bar .progress-inner.success {
    background: #67c23a;
}

.filelist .list .item .progress .progress-bar .progress-inner.error {
    background: #f56c6c;
}

.filelist .list .item .progress .progress-status {
    margin-left: 0.3125rem; /* 5px */
}

.filelist .list .item .progress .progress-status .icon {
    display: none;
    width: 0.875rem; /* 14px */
    height: 0.875rem; /* 14px */
}

/* Responsive Styles */
@media (max-width: 48rem) { /* 768px */
    body {
        height: auto;
        padding: 3.125rem 0; /* 50px */
    }
    .container {
        flex-direction: column; /* 垂直排列 */
        min-width: auto; /* 取消最小宽度 */
        max-width: 95%;
        padding: 0.5rem;
    }
    .upload .content .icon {
        width: 3.125rem; /* 50px */
        height: 3.125rem; /* 50px */
        margin-bottom: 0.3125rem; /* 5px */
    }
    .button-group button {
        width: 3.125rem; /* 50px */
        margin: 0 0.25rem; /* 4px */
    }
    .filelist {
        min-width: auto;
    }
    .select-group label {
        width: 5rem;
    }
}

/* Select Group Styles */
.select-group {
    display: flex;
    align-items: center;
    gap: 0.3125rem; /* 5px */
}

.select-group label {
    font-size: 0.875rem; /* 14px */
    text-align: right;
    width: 6.25rem; /* 100px */
    color: #ff8233;
    font-weight: bold;
}

.select-group select {
    padding: 0.1875rem 0.5rem; /* 3px 8px */
    border-radius: 0.25rem; /* 4px */
    border: 1px solid #ffa500; /* 橙色边框 */
    color: #333;
    font-size: 0.875rem; /* 14px */
    outline: none;
    background-color: #fffaf0;
}
.select-group select:focus {
    border-color: #ff7043; /* 亮橙色 */
}