/* 整体布局 */
.submit-resource {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 英雄区域样式 */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--card-radius);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.1),
    inset 0 -2px 6px rgba(255, 255, 255, 0.7),
    inset 2px 2px 6px rgba(255, 255, 255, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-section:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.15),
    inset 0 -2px 6px rgba(255, 255, 255, 0.7),
    inset 2px 2px 6px rgba(255, 255, 255, 1);
}

/* 添加炫彩背景元素 */
.hero-section::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: -1;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 105, 180, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 70% 40%, rgba(64, 224, 208, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(123, 104, 238, 0.15) 0%, transparent 30%);
  animation: rotateSlow 20s infinite linear;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  text-shadow: 
    3px 3px 0 rgba(99, 102, 241, 0.2),
    6px 6px 10px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transform: perspective(500px) translateZ(10px);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 2;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

.small-spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
  margin-right: 10px;
}

.loading-inline {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: var(--gray-color);
}

/* 成功提交卡片 */
.success-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: var(--glass-border);
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite ease-in-out;
}

.success-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--success-color);
}

.success-card p {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 80%;
  margin: 0 auto 0.5rem;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* 表单卡片 */
.form-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: var(--glass-border);
  animation: fadeIn 0.5s ease;
}

/* 提示横幅 */
.info-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  font-weight: 500;
}

.info-banner i {
  font-size: 1.25rem;
}

/* 搜索卡片 */
.search-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.05);
}

.card-header {
  padding: 1.25rem 1.5rem;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
}

.card-body {
  padding: 1.5rem;
}

.text-note {
  color: var(--gray-color);
  margin-bottom: 1.25rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-btn {
  min-width: 100px;
}

.search-results {
  margin-top: 1.5rem;
}

.search-results h5 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.result-count {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--gray-color);
}

.results-list {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(99, 102, 241, 0.1);
}

.results-list::-webkit-scrollbar {
  width: 6px;
}

.results-list::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
}

.results-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.result-item {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.result-item.active {
  background: var(--primary-gradient);
  color: white;
}

.result-info {
  display: flex;
  flex-direction: column;
}

.result-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.result-type {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.result-item.active .result-type {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.results-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.empty-results {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-radius: var(--border-radius);
  margin-top: 1rem;
  position: relative;
}

.empty-results .btn-custom {
  position: absolute;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* 表单标题 */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  padding-bottom: 1rem;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}

.mode-badge {
  background: var(--secondary-gradient);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

/* 已选资源卡片 */
.selected-resource-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.selected-resource-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-row {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--gray-color);
}

.info-value {
  color: var(--dark-color);
}

/* 表单组 */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  display: block;
}

.optional-badge, .image-count-badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-color);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
}

.image-count-badge {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
}

.custom-input, .custom-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.custom-input:focus, .custom-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 资源类型多选样式 */
.resource-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.resource-type-option {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.resource-type-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.resource-type-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

.resource-type-option.selected {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.option-text {
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.check-icon {
  color: white;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.selected-types-preview {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 1rem;
}

.selected-type-text {
  font-weight: 600;
  color: var(--primary-color);
}

/* 链接管理样式 */
.links-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: var(--glass-border);
}

.link-info-text {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin: 1rem;
}

.links-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 1rem 1rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.2);
  position: relative;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  flex-wrap: wrap;
}

.links-tabs::-webkit-scrollbar {
  height: 6px;
}

.links-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.links-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(124, 58, 237, 0.15);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.links-content {
  padding: 0 1rem 1rem;
}

.empty-links {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--gray-color);
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.link-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.link-inputs {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 1rem;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--gray-color);
}

.remove-link-btn {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 1.2rem;
}

.remove-link-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

.add-link-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.add-link-btn {
  width: auto;
}

/* 拖放区域样式 */
.dropzone-container {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.active-dropzone {
  border-color: var(--primary-color);
  background-color: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.upload-hint {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 1rem;
}

.upload-limit-reached {
  color: var(--accent-color);
}

.upload-limit-reached i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* 上传进度 */
.upload-progress {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--box-shadow);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.progress-bar-container {
  background: rgba(124, 58, 237, 0.1);
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 100px;
  text-indent: -9999px;
  transition: width 0.3s ease;
}

/* 图片预览区域 */
.image-preview-section {
  margin-top: 1.5rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.image-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-item:hover {
  transform: translateY(-5px);
}

.image-preview-container {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-preview-container:hover .image-preview {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0.75rem;
}

.image-preview-container:hover .image-overlay {
  opacity: 1;
}

.image-action-btn {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.remove-btn {
  background: rgba(244, 63, 94, 0.7);
  color: white;
}

.remove-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* 错误消息 */
.error-message {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* 表单底部按钮 */
.form-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  margin-top: 1rem;
}

/* 按钮样式 */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--deep-shadow);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-custom:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-custom i {
  font-size: 1.1rem;
}

/* 动画定义 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 响应式样式 */
@media (max-width: 992px) {
  .link-inputs {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  .results-list {
    max-height: 250px; /* 移动端略微减小高度 */
  }
  
  .result-item {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .result-type {
    margin-top: 0.5rem;
    align-self: flex-start;
  }
  
  .results-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .results-actions .btn-custom {
    width: 100%;
  }
  
  .resource-type-option {
    flex: 1 1 calc(50% - 0.75rem);
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-actions .btn-custom {
    width: 100%;
  }
  
  /* 移动端按钮样式 */
  .btn-text {
    display: none;
  }
  
  .btn-custom {
    padding: 0.75rem 1rem;
  }
  
  .btn-sm {
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
  }
  
  .btn-sm i {
    margin: 0;
  }
  
  /* 成功页面的按钮始终显示文字 */
  .success-actions .btn-text-keep {
    display: inline;
  }
  
  /* 确保成功页面的按钮布局正确 */
  .success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .success-actions .btn-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  /* 确保清空所有按钮在移动端正确显示 */
  .preview-header {
    align-items: center;
  }
  
  .preview-header .btn-sm {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .preview-header .btn-sm i {
    margin: 0;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resource-type-option {
    flex: 1 1 100%;
  }
}

/* 确保文件上传按钮在移动端正常显示 */
.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.file-btn-text {
  display: inline-block;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .file-upload-btn {
    width: auto;
    padding: 8px 16px;
  }
  
  .file-btn-text {
    display: inline-block !important;
    visibility: visible !important;
  }
}

/* 图片上传选项卡 */
.upload-method-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.method-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.method-tab:first-child {
  border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.method-tab:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary-color);
}

.method-tab.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.method-tab i {
  font-size: 1.1rem;
}

/* URL上传区域 */
.url-upload-container {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.url-input-group {
  display: flex;
  gap: 0.75rem;
}

.add-url-btn {
  white-space: nowrap;
  min-width: 120px;
}

.url-hints {
  margin-top: 1rem;
}

.url-error {
  color: var(--accent-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-tip {
  color: var(--gray-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-error i, .url-tip i {
  font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .url-input-group {
    flex-direction: column;
  }
  
  .add-url-btn {
    width: 100%;
  }
}

/* 删除旧的图片上传选项卡样式 */
.image-upload-tabs {
  display: none;
}

.image-url-container {
  display: none;
}

.image-url-input-group {
  display: none;
}

.add-image-url-btn {
  display: none;
}

.image-url-hints {
  display: none;
}

.text-danger {
  display: none;
}