/* Modern Professional UI for Advanced Image Processing Suite */

:root {
  --primary-color: #2c6bed;
  --primary-hover: #1a5edb;
  --secondary-color: #34c759;
  --secondary-hover: #28b74c;
  --dark-bg: #1c2130;
  --light-bg: #f5f8fc;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --card-padding: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--gray-800);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 语言切换按钮 */
.language-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Logo样式 */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: 200px;
  height: auto;
  margin-bottom: 5px;
}

/* 头部样式 */
header {
  margin-bottom: 30px;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), #5f43b2);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

header .subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* 标签页样式 */
.tab-container {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
}

.tab-btn {
  padding: 16px 22px;
  border: none;
  background: none;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 上传区域样式 */
.upload-area {
  background-color: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 30px;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: rgba(44, 107, 237, 0.03);
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 60px;
  height: 60px;
  fill: var(--gray-400);
  transition: var(--transition);
}

.upload-area:hover .upload-icon {
  fill: var(--primary-color);
}

.upload-box p {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.upload-box .sub-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* 预览区域样式 */
.preview-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.preview-box {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

.preview-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--gray-800);
  font-weight: 600;
}

.preview-box.full-width {
  flex: 100%;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 15px;
  min-height: 200px;
}

.image-container img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.file-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.spacer {
  margin: 0 8px;
  color: var(--gray-400);
}

/* 控制面板样式 */
.control-panel, .resize-control-panel {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.resize-section {
  margin-bottom: 25px;
}

.resize-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--gray-800);
  font-weight: 600;
}

.resize-mode-selector {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label {
  font-size: 1rem;
  color: var(--gray-700);
}

.dimension-inputs-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dimension-group {
  flex: 1;
}

.dimension-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.dimension-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.dimension-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.15);
}

.link-dimension {
  padding: 24px 0 0;
}

.link-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.link-button:hover {
  background-color: var(--gray-200);
}

.link-button.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.quality-control {
  margin-bottom: 25px;
}

.quality-control label {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--gray-700);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background-color: var(--gray-300);
  border-radius: 10px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.format-control {
  margin-bottom: 25px;
}

.format-control label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.file-type-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  cursor: pointer;
}

.file-type-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.15);
}

.download-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.download-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.download-btn:active {
  transform: translateY(0);
}

/* OCR相关样式 */
.ocr-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.ocr-preview {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

.ocr-result {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

.ocr-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.ocr-controls select {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  cursor: pointer;
}

.ocr-controls select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.action-btn {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--primary-hover);
}

.action-btn:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

.result-container h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--gray-800);
  font-weight: 600;
}

textarea#ocrResult {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-800);
  margin-bottom: 15px;
  resize: vertical;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(44, 107, 237, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Canvas Container */
.canvas-container {
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#eraseCanvas {
  max-width: 100%;
  display: block;
}

/* Erase Controls */
.erase-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.brush-controls {
  margin-bottom: 10px;
}

.brush-controls label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.erase-actions {
  margin-top: 20px;
}

/* PDF转换功能样式 */
.pdf-converter {
  display: none;
}

.conversion-type-selector {
  display: none;
}

.conversion-select {
  display: none;
}

.conversion-preview {
  display: none;
}

.preview-info {
  display: none;
}

.conversion-progress {
  display: none;
}

.progress-bar {
  display: none;
}

.progress-fill {
  display: none;
}

.progress-text {
  display: none;
}

/* Image List for Batch Processing */
.image-list {
  margin: 20px 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
}

.image-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.image-item:last-child {
  border-bottom: none;
}

.image-item .image-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid var(--gray-300);
}

.image-item .image-info {
  flex: 1;
}

.image-item .image-name {
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 5px;
}

.image-item .image-details {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .preview-container, .ocr-container {
    flex-direction: column;
  }
  
  .dimension-inputs-container {
    flex-direction: column;
  }
  
  .link-dimension {
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .erase-controls {
    grid-template-columns: 1fr;
  }
}

/* Light/Dark Mode Switch */
.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
}

.theme-switch:hover {
  transform: rotate(30deg);
}

.theme-icon {
  font-size: 1.2rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane {
  animation: fadeIn 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .language-switch {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* HEIC转换相关样式 */
.full-width {
    grid-column: 1 / -1;
}

.spacer {
    margin: 0 1rem;
    color: #86868B;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar h2 {
        display: none;
    }

    .content {
        padding: 1rem;
    }
}

/* 批量调整尺寸面板样式 */
.resize-control-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
}

.resize-options {
    margin-bottom: 2rem;
}

.resize-mode {
    margin-bottom: 1.5rem;
}

.resize-mode select {
    width: 200px;
    padding: 0.5rem;
    border: 2px solid #B0E0E6;
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.resize-values {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.percentage-input,
.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dimension-inputs {
    flex-wrap: wrap;
    gap: 1rem;
}

.width-input,
.height-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resize-values input[type="number"] {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid #B0E0E6;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.maintain-ratio {
    margin-top: 1rem;
}

.image-list {
    margin: 2rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.image-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #B0E0E6;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.image-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 1rem;
}

.image-info {
    flex: 1;
}

.image-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.image-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.image-status {
    margin-left: 1rem;
    font-weight: 600;
}

.image-status.pending {
    color: #666;
}

.image-status.processing {
    color: var(--primary-color);
}

.image-status.completed {
    color: #4CAF50;
}

.image-status.error {
    color: #f44336;
}

/* 保存选项样式 */
.save-options {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F0F8FF;
    border-radius: var(--border-radius);
    border: 2px solid #B0E0E6;
}

.save-option-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.save-option-item:last-child {
    margin-bottom: 0;
}

.save-option-item label {
    min-width: 120px;
    color: var(--text-color);
}

.save-option-item input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #B0E0E6;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
}

.save-option-item input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* OCR相关样式 */
.ocr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.ocr-preview, .ocr-result {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.ocr-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ocr-controls select {
    padding: 0.5rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
}

.result-container {
    margin-top: 1rem;
}

#ocrResult {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-size: 1rem;
    resize: vertical;
    background: #F7FAFC;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ocr-container {
        grid-template-columns: 1fr;
    }
}

/* 文字抹除功能样式 */
.erase-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.erase-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.brush-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brush-controls input[type="range"] {
    width: 150px;
}

.canvas-container {
    position: relative;
    margin: 1rem 0;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#eraseCanvas {
    display: block;
    max-width: 100%;
    cursor: crosshair;
}

.erase-actions {
    margin-top: 1rem;
    text-align: right;
}

/* PDF转换功能样式 */
.pdf-converter {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.conversion-type-selector {
    margin-bottom: 2rem;
}

.conversion-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-top: 0.5rem;
    background: white;
    color: var(--text-color);
}

.conversion-select optgroup {
    font-weight: 600;
    color: var(--primary-color);
}

.conversion-select option {
    padding: 0.5rem;
    color: var(--text-color);
}

.preview-info {
    background: #F7FAFC;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.file-details {
    margin-top: 1rem;
}

.file-details p {
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.conversion-progress {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--secondary-color);
}

/* 调整大小相关样式 */
.resize-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.resize-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.resize-mode-selector {
    display: flex;
    justify-content: center;
    background: #f7fafc;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.radio-container {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.8rem 0;
    cursor: pointer;
    border-right: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.radio-container:last-child {
    border-right: none;
}

.radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: inline-block;
    font-weight: 500;
    color: var(--secondary-color);
}

.radio-container input[type="radio"]:checked + .radio-label {
    color: var(--accent-color);
    font-weight: 600;
}

.dimension-inputs-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.dimension-group {
    flex: 1;
}

.dimension-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.dimension-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dimension-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.link-dimension {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.link-button:hover {
    background: #EDF2F7;
}

.link-button.active {
    color: var(--accent-color);
}

.format-control {
    margin-bottom: 1.5rem;
}

.format-control label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.file-type-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.file-type-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* 媒体查询适配 */
@media (max-width: 768px) {
    .dimension-inputs-container {
        flex-direction: column;
    }
    
    .link-dimension {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
} 