* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部样式 */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.logo-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.logo-subtitle {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #1a1a1a;
}

/* 主内容区 */
.main {
  padding: 60px 0;
}

/* 标题区域 */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 32px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 15px;
  color: #999;
  margin-bottom: 32px;
  font-weight: 400;
}

.notice {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  color: #999;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.notice-icon {
  margin-right: 6px;
}

/* 上传区域 */
.upload-section {
  margin-bottom: 30px;
}

.upload-box {
  border: 2px dashed #d0d0d0;
  border-radius: 4px;
  padding: 80px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background-color: #fafafa;
}

.upload-box:hover {
  border-color: #999;
}

.upload-box.dragover {
  border-color: #1a1a1a;
  background-color: #f5f5f5;
}

.upload-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1890ff;
}

.upload-icon svg {
  width: 64px;
  height: 64px;
}

.upload-text {
  color: #666;
  font-size: 15px;
  font-weight: 400;
}

/* 历史记录区域 */
.history-section {
  border-top: 1px solid #e5e5e5;
  padding-top: 40px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.history-header h2 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.clear-btn {
  background: none;
  color: #999;
  border: 1px solid #e5e5e5;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s;
}

.clear-btn:hover {
  color: #1a1a1a;
  border-color: #999;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: all 0.2s;
  background-color: #ffffff;
}

.history-item:hover {
  border-color: #999;
  background-color: #fafafa;
}

.history-thumbnail {
  width: 120px;
  height: 80px;
  object-fit: cover;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.history-thumbnail:hover {
  transform: scale(1.05);
}

.history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.history-filename {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.history-filename:hover {
  color: #666;
}

.history-url {
  color: #999;
  font-size: 12px;
  word-break: break-all;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  line-height: 1.5;
}

.history-time {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

.history-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s;
  background: #ffffff;
  color: #1a1a1a;
}

.btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-copy {
  /* 保持简洁，使用默认样式 */
}

.btn-copied {
  background-color: #52c41a;
  color: #ffffff;
  border-color: #52c41a;
}

.btn-copied:hover {
  background-color: #52c41a;
  color: #ffffff;
  border-color: #52c41a;
}

.btn-share {
  /* 保持简洁，使用默认样式 */
}

/* 加载提示 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e5e5;
  border-top: 2px solid #1a1a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
}

/* 消息提示 */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 10000;
  font-size: 14px;
  font-weight: 400;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #1a1a1a;
}

.toast.error {
  background: #1a1a1a;
}

/* 响应式设计 */

/* 页脚 */
.footer {
  border-top: 1px solid #e5e5e5;
  padding: 24px 0 32px;
  margin-top: 40px;
  font-size: 13px;
  color: #999;
}

.footer-text {
  text-align: center;
}

.footer-text a {
  color: #666;
  text-decoration: none;
}

.footer-text a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    gap: 24px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .upload-box {
    padding: 60px 24px;
  }

  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .clear-btn {
    align-self: flex-end;
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-thumbnail {
    width: 100%;
    height: 200px;
  }

  .history-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  .nav {
    gap: 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .upload-box {
    padding: 48px 20px;
  }

  .history-item {
    padding: 12px;
  }

  .history-thumbnail {
    width: 100%;
    height: 160px;
  }
}