* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.container {
  width: 100%;
  max-width: 520px;
  padding: 20px;
}

.section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
}

/* 输入框 */
.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: #4a90d9;
}

/* 按钮 */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: #4a90d9;
  color: #fff;
}

.btn-primary:hover {
  background: #3a7bc8;
}

.btn-outline {
  background: transparent;
  color: #4a90d9;
  border: 1.5px solid #4a90d9;
}

.btn-outline:hover {
  background: #4a90d9;
  color: #fff;
}

/* 拖拽区域 */
.drop-zone {
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #4a90d9;
  background: #f0f7ff;
}

.drop-icon {
  color: #999;
  margin-bottom: 12px;
}

.drop-zone.dragover .drop-icon {
  color: #4a90d9;
}

.drop-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.drop-hint {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* 进度条 */
.progress-section {
  margin-top: 24px;
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.file-size {
  font-size: 13px;
  color: #666;
}

.progress-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4a90d9;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

/* 结果 */
.result-section {
  margin-top: 24px;
  text-align: center;
}

.result-icon {
  width: 48px;
  height: 48px;
  background: #e6f7e6;
  color: #52c41a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
}

.result-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.result-link-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.result-link {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #f8f9fa;
  outline: none;
}

/* 错误提示 */
.error {
  color: #e74c3c;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 18px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
  }

  h1 {
    font-size: 20px;
  }

  .input-group {
    flex-direction: column;
  }

  .result-link-group {
    flex-direction: column;
  }
}
