* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #4185ac;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-text {
    background: none;
    color: #4185ac;
    padding: 0.3rem 0.6rem;
}

.btn-text:hover {
    text-decoration: underline;
}

.delete-btn{
    color:#4185ac;
    font-size: large;
    background:none;
}
#convertBtn {
  /* 启用状态的样式 */
  background-color: #4185ac;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

#convertBtn:hover {
  background-color: #0056b3;
}

#convertBtn:disabled {
  /* 禁用状态的样式 */
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}
/* 涓婁紶鍖哄煙 */

.drop-zone {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone:hover {
  border-color: #666;
  background-color: #fcfcfc;
}
.result-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
}

.file-management-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.file-area {
  border: 2px dashed #bdc3c7;
  flex: 3;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.file-area:hover, .file-area.drag-over {
    border-color: #3498db;
    background-color: #f0f8ff;
}
/*文件转换选项*/
.convert-options {
  flex: 1;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.format-selection {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.radio-item:hover {
  background-color: #e9ecef;
}

.radio-item input[type="radio"] {
  margin: 0;
}

/* 文件列表样式 */
.file-list {
  height:290px;
  overflow-y: auto; /* 启用垂直滚动条 */
  padding: 10px;
  margin-top: 10px;
}

.file-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list li:hover {
  background-color: #f0f8ff;
}

.file-name {
  flex: 1;
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-action {
  display: flex;
  gap: 10px;
}

/* 结果列表样式 */
.result-container {
  margin-top: 10px;
}

.result-list {
  background-color: #fff;
}

.result-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.result-list li:last-child {
  border-bottom: none;
}

.result-list li:hover {
  background-color: #f0f8ff;
}

.result-list li a{
  color: #056fb6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.download-link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.download-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    padding: 2rem 0;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}


/* 结果文件样式 */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

/* 缁撴灉鏂囦欢椤� */
.result-file-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.result-file-item .file-info {
    display: flex;
    flex-direction: column;
}

.result-file-item .file-name {
    color: #27ae60;
}

.download-btn {
    background-color: #27ae60;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.download-btn:hover {
    background-color: #219955;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .output-format {
        margin-top: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}


#snackbar {
    display:none;
    min-width: 220px;
    color: #df7219;
    text-align: center;
    padding: 6px 2px;
    font-size: 0.85rem;
}

#snackbar.show {
    display:block;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from { opacity: 0;} 
    to { opacity: 1;}
}

@keyframes fadein {
    from { opacity: 0;}
    to { opacity: 1;}
}

@-webkit-keyframes fadeout {
    from { opacity: 1;} 
    to { opacity: 0;}
}

@keyframes fadeout {
    from { opacity: 1;}
    to { opacity: 0;}
}
