/* 继承通用工具页面样式 */
.tool-page {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.tool-page h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.05);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.1);
}

.upload-content {
    pointer-events: none;
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-content p {
    margin: 10px 0;
    color: #666;
}

.upload-tip {
    font-size: 0.9rem;
    color: #999 !important;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 水印选项样式 */
.watermark-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    min-width: 100px;
    color: #666;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.watermark-type-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 输入控件样式 */
input[type="text"],
input[type="number"],
select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

input[type="range"] {
    flex: 1;
    margin: 0 15px;
}

input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 预览区域样式 */
.preview-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-wrapper {
    max-width: 100%;
    max-height: 500px;
    overflow: auto;
    position: relative;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-button,
.secondary-button {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.primary-button {
    background: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background: var(--secondary-color);
}

.secondary-button {
    background: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.secondary-button:hover {
    background: #e9ecef;
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .option-group label {
        min-width: auto;
    }

    input[type="range"] {
        width: 100%;
        margin: 10px 0;
    }

    .action-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
    }
} 