*{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* 拖放区域样式 */
.drop-area {
  background: white;
  border-radius: 12px;
  border: 3px dashed #1a73e8;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.drop-area.highlight {
  background-color: #e8f0fe;
  border-color: #0d47a1;
}

.drop-area-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}

.drop-area h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1a73e8;
}

.drop-area p {
  font-size: 1rem;
  color: #5f6368;
  margin-bottom: 15px;
}

.file-input-wrapper {
  margin: 20px 0;
}

.file-input-label {
  display: inline-block;
  background: #1a73e8;
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s;
}

.file-input-label:hover {
  background: #0d47a1;
}

#fileInput {
  display: none;
}

/* 按钮区域 */
.button-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.extract-btn {
  background: #1a73e8;
  color: white;
}

.download-btn {
  background: #0f9d58;
  color: white;
}

.clear-btn {
  background: #f44336;
  color: white;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.extract-btn:hover {
  background: #0d47a1;
}

.download-btn:hover {
  background: #0b8043;
}

.clear-btn:hover {
  background: #d32f2f;
}

/* 图片列表区域 */
.image-list-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.image-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-list-header h2 {
  width: 100%;
  font-size: 1.4rem;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-count {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.image-card {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.image-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.image-preview {
  height: 200px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-info {
  padding: 10px;
}

.image-name {
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  color: #5f6368;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.image-actions {
  display: flex;
  gap: 10px;
}

.image-action-btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  background: #1a73e8;
  color: white;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.image-action-btn:hover {
  background: #0d47a1;
}

/* 底部样式 */
footer {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
}

.features-container {
  display: flex;
  gap: 25px;
  margin: 0 auto;
}

.feature-section {
  flex: 1;
}

.feature-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1a73e8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
}

footer .watermark{
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.manual-guide {
  background: #e8f0fe;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.manual-guide h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #0d47a1;
}

.manual-steps {
  padding-left: 25px;
}

.manual-steps li {
  margin-top: 10px;
  line-height: 1.6;
}

/* 通知样式 */
.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: white;
  padding: 18px 35px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}
