/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Alata';
    src: url('https://bdwebtek.com/wp-content/uploads/2025/01/Alata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Montserrat';
    src: url('https://bdwebtek.com/wp-content/uploads/2025/01/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

body {
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background: transparent;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 移除container样式，因为页面将通过iframe嵌入到Elementor Pro的container中 */

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 15px;
    color: black;
    padding: 10px 20px 0;
}

.header h2 {
    font-family: Alata, Sans-serif;
    font-size: 16px;
    margin-bottom: 0;
    color: #1F2D40;
    font-weight: 600;
}

/* 主要内容区域 */
.main-content {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
}

/* 上传区域 */
.upload-section {
    padding: 15px 20px;
    background: transparent;
}

.upload-area {
    border: 3px dashed #0866ff;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #004ad9;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #004ad9;
    background: #f0f2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-content h3 {
    font-family: Alata, Sans-serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1F2D40;
    font-weight: 600;
}

.upload-content p {
    color: #666;
    margin-bottom: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: Alata, Sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 102, 255, 0.6);
}

/* 文件列表 */
.file-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.file-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.file-item.selected {
    outline: 3px solid #0866ff;
}

.file-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-item .file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.file-item .file-size {
    color: #666;
    font-size: 0.9rem;
}

/* 选项卡样式 */
.tabs-container {
    padding: 0 20px 20px;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-family: Alata, Sans-serif;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.tab-btn:hover {
    background: rgba(8, 102, 255, 0.1);
    color: #0866ff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.4);
}

/* 选项卡内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* 设置面板 */
.settings-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-family: Alata, Sans-serif;
    font-weight: 600;
    color: #1F2D40;
}

.setting-group input,
.setting-group select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #0866ff;
    box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.1);
}

.setting-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0866ff;
}

/* 处理按钮 */
.process-btn {
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: Alata, Sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 102, 255, 0.4);
    width: 100%;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 102, 255, 0.6);
}

.process-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 裁剪区域 */
.crop-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
}

.crop-preview {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.crop-preview canvas {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.crop-controls {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}



/* EXIF 显示 */
.exif-display {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 200px;
}

.exif-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.exif-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exif-item .label {
    font-weight: 600;
    color: #0866ff;
    margin-bottom: 5px;
}

.exif-item .value {
    color: #333;
}

/* 结果区域 */
.results-section {
    padding: 20px 20px;
    background: transparent;
    border-top: 1px solid #e9ecef;
}

.results-section h3 {
    font-family: Alata, Sans-serif;
    margin-bottom: 15px;
    color: #1F2D40;
    font-size: 1.3rem;
    font-weight: 600;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clear-results-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: Alata, Sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-results-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.result-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-item .file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-width: 100%;
}

.result-item .file-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
}

.result-item .original-file-name {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-style: italic;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
}

.result-item .download-single {
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item .download-single:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 102, 255, 0.4);
}

/* 下载操作 */
.download-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: Alata, Sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0866ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PC端固定布局 - 移除移动端响应式 */

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0866ff 0%, #004ad9 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0550d4 0%, #003aa8 100%);
}

/* 水印相关样式 */
.watermark-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.watermark-preview {
    flex: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f8f9fa;
    position: relative;
}

.watermark-preview canvas {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.preview-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

.watermark-settings {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 视频上传进度条 */
.video-upload-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0866ff 0%, #004ad9 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* 文件备注信息 */
.file-note {
    background: #f8f9fa;
    border-left: 3px solid #17a2b8;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
} 